Skip to content

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

feat: refactor exchanges rates integration to use currency table

Brad Barbin1e80e8f073c9
diff --git a/apps/carbon/app/components/MultiSelect.tsx b/apps/carbon/app/components/MultiSelect.tsx
index ef7981c17b..219c9a7142 100644
--- a/apps/carbon/app/components/MultiSelect.tsx
+++ b/apps/carbon/app/components/MultiSelect.tsx
@@ -74,7 +74,11 @@ const MultiSelect = forwardRef<HTMLButtonElement, MultiSelectProps>(
e.preventDefault();
e.stopPropagation();
}}
- onClick={() => handleUnselect(item)}
+ onClick={(e) => {
+ e.preventDefault();
+ e.stopPropagation();
+ handleUnselect(item);
+ }}
/>
</Badge>
))}
diff --git a/apps/carbon/app/jobs/update-exchange-rates.server.ts b/apps/carbon/app/jobs/update-exchange-rates.server.ts
index 20176b363a..3b930ec53f 100644
--- a/apps/carbon/app/jobs/update-exchange-rates.server.ts
+++ b/apps/carbon/app/jobs/update-exchange-rates.server.ts
@@ -2,6 +2,7 @@ import { intervalTrigger } from "@trigger.dev/sdk";
import { getExchangeRatesClient } from "~/lib/exchange-rates.server";
import { getSupabaseServiceRole } from "~/lib/supabase";
import { triggerClient } from "~/lib/trigger.server";
+import type { CurrencyCode } from "~/modules/accounting";
import { exchangeRatesMetadata } from "~/modules/settings";
const supabaseClient = getSupabaseServiceRole();
@@ -39,15 +40,26 @@ export const job = triggerClient.defineJob({
const rates = await exchangeRatesClient.getExchangeRates();
const updatedAt = new Date().toISOString();
await io.logger.info(JSON.stringify(rates));
- const { error } = await supabaseClient
- .from("currencyExchangeRate")
- .upsert(
- Object.entries(rates).map(([currency, exchangeRate]) => ({
- currency,
- exchangeRate,
- updatedAt,
- }))
- );
+ const { data } = await supabaseClient.from("currency").select("*");
+ if (!data) return;
+
+ const updates = data
+ .map((currency) => ({
+ ...currency,
+ exchangeRate: Number(
+ rates[currency.code as CurrencyCode]?.toFixed(
+ currency.decimalPlaces
+ )
+ ),
+ updatedAt,
+ }))
+ .filter((currency) => currency.exchangeRate);
+
+ console.log({ updates });
+
+ if (updates?.length === 0) return;
+
+ const { error } = await supabaseClient.from("currency").upsert(updates);
if (error) {
await io.logger.error(JSON.stringify(error));
return;
diff --git a/apps/carbon/app/modules/accounting/accounting.models.ts b/apps/carbon/app/modules/accounting/accounting.models.ts
index e087f10d1c..f5440b0e6d 100644
--- a/apps/carbon/app/modules/accounting/accounting.models.ts
+++ b/apps/carbon/app/modules/accounting/accounting.models.ts
@@ -228,6 +228,7 @@ export const currencyValidator = withZod(
.max(1, { message: "Symbol can only be one character" })
.optional()
),
+ decimalPlaces: zfd.numeric(z.number().min(0).max(4)),
exchangeRate: zfd.numeric(
z.number().min(0, { message: "Rate is required" })
),
diff --git a/apps/carbon/app/modules/accounting/accounting.service.ts b/apps/carbon/app/modules/accounting/accounting.service.ts
index 2d0e08f3c2..243f44c203 100644
--- a/apps/carbon/app/modules/accounting/accounting.service.ts
+++ b/apps/carbon/app/modules/accounting/accounting.service.ts
@@ -375,7 +375,7 @@ export async function getCurrencies(
query = query.ilike("name", `%${args.name}%`);
}
- query = setGenericQueryFilters(query, args, "name");
+ query = setGenericQueryFilters(query, args);
return query;
}
diff --git a/apps/carbon/app/modules/accounting/ui/Currencies/CurrencyForm/CurrencyForm.tsx b/apps/carbon/app/modules/accounting/ui/Currencies/CurrencyForm/CurrencyForm.tsx
index d0865e3bf8..9c4a2e7362 100644
--- a/apps/carbon/app/modules/accounting/ui/Currencies/CurrencyForm/CurrencyForm.tsx
+++ b/apps/carbon/app/modules/accounting/ui/Currencies/CurrencyForm/CurrencyForm.tsx
@@ -27,6 +27,9 @@ const CurrencyForm = ({ initialValues }: CurrencyFormProps) => {
const permissions = usePermissions();
const navigate = useNavigate();
const onClose = () => navigate(-1);
+ const [decimalPlaces, setDecimalPlaces] = useState(
+ initialValues.decimalPlaces ?? 2
+ );
const routeData = useRouteData<{ baseCurrency?: Currency }>(
path.to.accountingRoot
@@ -72,13 +75,23 @@ const CurrencyForm = ({ initialValues }: CurrencyFormProps) => {
label="Name"
onChange={(e) => setName(e.target.value)}
/>
- <Input name="code" label="Code" />
+ <Input name="code" label="Code" isReadOnly={isEditing} />
<Input name="symbol" label="Symbol" />
+ <Number
+ name="decimalPlaces"
+ label="Decimal Places"
+ minValue={0}
+ maxValue={4}
+ onChange={setDecimalPlaces}
+ />
<Number
name="exchangeRate"
label="Exchange Rate"
minValue={isBaseCurrency ? 1 : 0}
maxValue={isBaseCurrency ? 1 : undefined}
+ formatOptions={{
+ minimumFractionDigits: decimalPlaces ?? 0,
+ }}
helperText={exchnageRateHelperText}
/>
<Boolean name="isBaseCurrency" label="Base Currency" />
diff --git a/apps/carbon/app/modules/documents/ui/Documents/DocumentsTable/DocumentsTable.tsx b/apps/carbon/app/modules/documents/ui/Documents/DocumentsTable/DocumentsTable.tsx
index c93a5f2c25..22890d450e 100644
--- a/apps/carbon/app/modules/documents/ui/Documents/DocumentsTable/DocumentsTable.tsx
+++ b/apps/carbon/app/modules/documents/ui/Documents/DocumentsTable/DocumentsTable.tsx
@@ -41,7 +41,6 @@ type DocumentsTableProps = {
};
const DocumentsTable = memo(({ data, count, labels }: DocumentsTableProps) => {
- console.log(labels);
const revalidator = useRevalidator();
const [params] = useUrlParams();
const filter = params.get("q");
diff --git a/apps/carbon/app/modules/resources/ui/Contractors/ContractorForm/ContractorForm.tsx b/apps/carbon/app/modules/resources/ui/Contractors/ContractorForm/ContractorForm.tsx
index 880fcfee84..86666a650b 100644
--- a/apps/carbon/app/modules/resources/ui/Contractors/ContractorForm/ContractorForm.tsx
+++ b/apps/carbon/app/modules/resources/ui/Contractors/ContractorForm/ContractorForm.tsx
@@ -3,6 +3,7 @@ import {
Drawer,
DrawerBody,
DrawerContent,
+ DrawerDescription,
DrawerFooter,
DrawerHeader,
DrawerTitle,
@@ -65,6 +66,10 @@ const ContractorForm = ({ initialValues }: ContractorFormProps) => {
>
<DrawerHeader>
<DrawerTitle>{isEditing ? "Edit" : "New"} Contractor</DrawerTitle>
+ <DrawerDescription>
+ A contractor is a supplier contact with particular abilities and
+ available hours
+ </DrawerDescription>
</DrawerHeader>
<DrawerBody>
<VStack spacing={4}>
@@ -83,7 +88,7 @@ const ContractorForm = ({ initialValues }: ContractorFormProps) => {
<Number
name="hoursPerWeek"
label="Hours per Week"
- helperText="The number of hours per week the supplier is available to work."
+ helperText="The number of hours per week the contractor is available to work."
minValue={0}
maxValue={10000}
/>
diff --git a/apps/carbon/app/modules/resources/ui/Partners/PartnerForm/PartnerForm.tsx b/apps/carbon/app/modules/resources/ui/Partners/PartnerForm/PartnerForm.tsx
index 700a0d4003..a579215cdb 100644
--- a/apps/carbon/app/modules/resources/ui/Partners/PartnerForm/PartnerForm.tsx
+++ b/apps/carbon/app/modules/resources/ui/Partners/PartnerForm/PartnerForm.tsx
@@ -3,6 +3,7 @@ import {
Drawer,
DrawerBody,
DrawerContent,
+ DrawerDescription,
DrawerFooter,
DrawerHeader,
DrawerTitle,
@@ -89,6 +90,10 @@ const PartnerForm = ({ initialValues }: PartnerFormProps) => {
>
<DrawerHeader>
<DrawerTitle>{isEditing ? "Edit" : "New"} Partner</DrawerTitle>
+ <DrawerDescription>
+ A partner is combination of a supplier location and and an ability
+ with a certain amount of time available
+ </DrawerDescription>
</DrawerHeader>
<DrawerBody>
<VStack spacing={4}>
diff --git a/apps/carbon/app/modules/settings/integrations.models.ts b/apps/carbon/app/modules/settings/integrations.models.ts
index 624cee8442..9f4f4282c6 100644
--- a/apps/carbon/app/modules/settings/integrations.models.ts
+++ b/apps/carbon/app/modules/settings/integrations.models.ts
@@ -1,8 +1,28 @@
import { withZod } from "@remix-validated-form/with-zod";
import { z } from "zod";
+import { zfd } from "zod-form-data";
+
+export const integration = z.object({
+ active: zfd.checkbox(),
+});
export const exchangeRatesMetadata = z.object({
apiKey: z.string(),
});
-export const exchangeRatesMetadataValidator = withZod(exchangeRatesMetadata);
+export const exchangeRatesIntegration = integration
+ .merge(exchangeRatesMetadata)
+ .refine(
+ (data) => {
+ if (data.active) {
+ return data.apiKey.length > 0;
+ }
+ return true;
+ },
+ {
+ message: "API key is required when integration is active",
+ path: ["apiKey"],
+ }
+ );
+
+export const exchangeRatesFormValidator = withZod(exchangeRatesIntegration);
diff --git a/apps/carbon/app/modules/settings/settings.service.ts b/apps/carbon/app/modules/settings/settings.service.ts
index 095f9b4fe5..ec2d824e65 100644
--- a/apps/carbon/app/modules/settings/settings.service.ts
+++ b/apps/carbon/app/modules/settings/settings.service.ts
@@ -164,6 +164,7 @@ export async function updateIntegration(
client: SupabaseClient<Database>,
update: {
id: string;
+ active: boolean;
metadata: Json;
updatedBy: string;
}
diff --git a/apps/carbon/app/modules/settings/types.ts b/apps/carbon/app/modules/settings/types.ts
index 73e127a855..671261439f 100644
--- a/apps/carbon/app/modules/settings/types.ts
+++ b/apps/carbon/app/modules/settings/types.ts
@@ -1,9 +1,17 @@
-import type { getCompany, getSequences } from "./settings.service";
+import type {
+ getCompany,
+ getIntegrations,
+ getSequences,
+} from "./settings.service";
export type Company = NonNullable<
Awaited<ReturnType<typeof getCompany>>["data"]
>;
+export type Integration = NonNullable<
+ Awaited<ReturnType<typeof getIntegrations>>["data"]
+>[number];
+
export type Sequence = NonNullable<
Awaited<ReturnType<typeof getSequences>>["data"]
>[number];
diff --git a/apps/carbon/app/modules/settings/ui/Integrations/ExchangeRatesForm.tsx b/apps/carbon/app/modules/settings/ui/Integrations/ExchangeRatesForm.tsx
index 97f7bce1cc..d032bed218 100644
--- a/apps/carbon/app/modules/settings/ui/Integrations/ExchangeRatesForm.tsx
+++ b/apps/carbon/app/modules/settings/ui/Integrations/ExchangeRatesForm.tsx
@@ -11,13 +11,14 @@ import {
VStack,
} from "@carbon/react";
import { ValidatedForm } from "remix-validated-form";
-import { Input, Submit } from "~/components/Form";
-import { exchangeRatesMetadataValidator } from "~/modules/settings";
+import { Boolean, Input, Submit } from "~/components/Form";
+import { usePermissions } from "~/hooks";
+import { exchangeRatesFormValidator } from "~/modules/settings";
import type { TypeOfValidator } from "~/types/validators";
import { path } from "~/utils/path";
type ExchangeRatesFormProps = {
- initialValues: TypeOfValidator<typeof exchangeRatesMetadataValidator>;
+ initialValues: TypeOfValidator<typeof exchangeRatesFormValidator>;
onClose: () => void;
};
@@ -25,6 +26,9 @@ const ExchangeRatesForm = ({
initialValues,
onClose,
}: ExchangeRatesFormProps) => {
+ const permissions = usePermissions();
+ const isDisabled = !permissions.can("update", "settings");
+
return (
<Drawer
open
@@ -34,27 +38,28 @@ const ExchangeRatesForm = ({
>
<DrawerContent>
<ValidatedForm
- validator={exchangeRatesMetadataValidator}
+ validator={exchangeRatesFormValidator}
method="post"
action={path.to.integration("exchange-rates-v1")}
defaultValues={initialValues}
className="flex flex-col h-full"
>
<DrawerHeader>
- <DrawerTitle>Exchange Rates Integration</DrawerTitle>
+ <DrawerTitle>Update Exchange Rates</DrawerTitle>
<DrawerDescription>
Updates the exchange rates using
- http://api.exchangeratesapi.io/v1/ three times per day
+ http://api.exchangeratesapi.io/v1/
</DrawerDescription>
</DrawerHeader>
<DrawerBody>
- <VStack>
+ <VStack spacing={4}>
+ <Boolean name="active" label="Active" />
<Input name="apiKey" label="API Key" />
</VStack>
</DrawerBody>
<DrawerFooter>
<HStack>
- <Submit>Save</Submit>
+ <Submit isDisabled={isDisabled}>Save</Submit>
<Button size="md" variant="solid" onClick={onClose}>
Cancel
</Button>
diff --git a/apps/carbon/app/modules/settings/ui/Integrations/IntegrationsList.tsx b/apps/carbon/app/modules/settings/ui/Integrations/IntegrationsList.tsx
new file mode 100644
index 0000000000..3f12ef909e
--- /dev/null
+++ b/apps/carbon/app/modules/settings/ui/Integrations/IntegrationsList.tsx
@@ -0,0 +1,44 @@
+import {
+ Card,
+ CardContent,
+ CardDescription,
+ CardHeader,
+ CardTitle,
+ Switch,
+} from "@carbon/react";
+import { useNavigate } from "@remix-run/react";
+import type { Integration } from "../../types";
+
+type IntegrationsListProps = {
+ integrations: Integration[];
+};
+
+const IntegrationsList = ({ integrations }: IntegrationsListProps) => {
+ const navigate = useNavigate();
+ return (
+ <div className="grid gap-4 grid-cols-1 md:grid-cols-2 lg:grid-cols-3 p-4 w-full">
+ {integrations.map((integration) => {
+ return (
+ <Card
+ key={integration.id}
+ className="cursor-pointer"
+ onClick={() => navigate(integration.id)}
+ >
+ <CardHeader>
+ <CardTitle className="text-base md:text-lg">
+ {integration.title}
+ </CardTitle>
+ <CardDescription>{integration.description}</CardDescription>
+ </CardHeader>
+
+ <CardContent>
+ <Switch checked={integration.active} />
+ </CardContent>
+ </Card>
+ );
+ })}
+ </div>
+ );
+};
+
+export default IntegrationsList;
diff --git a/apps/carbon/app/modules/settings/ui/Integrations/index.ts b/apps/carbon/app/modules/settings/ui/Integrations/index.ts
new file mode 100644
index 0000000000..7f7340cbff
--- /dev/null
+++ b/apps/carbon/app/modules/settings/ui/Integrations/index.ts
@@ -0,0 +1,4 @@
+import ExchangeRatesForm from "./ExchangeRatesForm";
+import IntegrationsList from "./IntegrationsList";
+
+export { ExchangeRatesForm, IntegrationsList };
diff --git a/apps/carbon/app/modules/settings/ui/index.ts b/apps/carbon/app/modules/settings/ui/index.ts
index fd9c564cf9..841b19b323 100644
--- a/apps/carbon/app/modules/settings/ui/index.ts
+++ b/apps/carbon/app/modules/settings/ui/index.ts
@@ -1,5 +1,6 @@
import useSettingsSidebar from "./useSettingsSidebar";
export * from "./Company";
+export * from "./Integrations";
export * from "./Sequences";
export { useSettingsSidebar };
diff --git a/apps/carbon/app/routes/api+/sales.customer-locations.ts b/apps/carbon/app/routes/api+/sales.customer-locations.ts
index 3b16018e27..8e798e8a2e 100644
--- a/apps/carbon/app/routes/api+/sales.customer-locations.ts
+++ b/apps/carbon/app/routes/api+/sales.customer-locations.ts
@@ -10,8 +10,6 @@ export async function loader({ request }: LoaderFunctionArgs) {
view: "sales",
});
- console.log("customer locations endpoint");
-
const url = new URL(request.url);
const searchParams = new URLSearchParams(url.search);
const customerId = searchParams.get("customerId") as string;
@@ -21,8 +19,6 @@ export async function loader({ request }: LoaderFunctionArgs) {
data: [],
});
- console.log({ customerId });
-
const locations = await getCustomerLocations(authorized.client, customerId);
if (locations.error) {
return json(
diff --git a/apps/carbon/app/routes/x+/_layout.tsx b/apps/carbon/app/routes/x+/_layout.tsx
index 8b6626969f..52a63d8129 100644
--- a/apps/carbon/app/routes/x+/_layout.tsx
+++ b/apps/carbon/app/routes/x+/_layout.tsx
@@ -75,7 +75,6 @@ export default function AuthenticatedRoute() {
/* Toast Messages */
useEffect(() => {
- console.log("result", result);
if (result?.success === true) {
toast.success(result.message);
} else if (result?.message) {
diff --git a/apps/carbon/app/routes/x+/accounting+/currencies.$currencyId.tsx b/apps/carbon/app/routes/x+/accounting+/currencies.$currencyId.tsx
index 2d707bd5d6..a756586e63 100644
--- a/apps/carbon/app/routes/x+/accounting+/currencies.$currencyId.tsx
+++ b/apps/carbon/app/routes/x+/accounting+/currencies.$currencyId.tsx
@@ -77,6 +77,7 @@ export default function EditCurrencysRoute() {
code: currency?.code ?? "",
symbol: currency?.symbol ?? "",
exchangeRate: currency?.exchangeRate ?? 1,
+ decimalPlaces: currency?.decimalPlaces ?? 2,
isBaseCurrency: currency?.isBaseCurrency ?? false,
};
diff --git a/apps/carbon/app/routes/x+/resources+/departments.$departmentId.tsx b/apps/carbon/app/routes/x+/resources+/departments.$departmentId.tsx
index 701d882ecc..18cdda07ec 100644
--- a/apps/carbon/app/routes/x+/resources+/departments.$departmentId.tsx
+++ b/apps/carbon/app/routes/x+/resources+/departments.$departmentId.tsx
@@ -85,7 +85,5 @@ export default function DepartmentRoute() {
parentDepartmentId: department.parentDepartmentId ?? undefined,
};
- console.log({ initialValues });
-
return <DepartmentForm initialValues={initialValues} />;
}
diff --git a/apps/carbon/app/routes/x+/settings+/integrations.exchange-rates-v1.tsx b/apps/carbon/app/routes/x+/settings+/integrations.exchange-rates-v1.tsx
index eda2c138bc..cd18469d59 100644
--- a/apps/carbon/app/routes/x+/settings+/integrations.exchange-rates-v1.tsx
+++ b/apps/carbon/app/routes/x+/settings+/integrations.exchange-rates-v1.tsx
@@ -3,8 +3,8 @@ import { json, redirect } from "@remix-run/node";
import { useLoaderData, useNavigate } from "@remix-run/react";
import { validationError } from "remix-validated-form";
import {
+ exchangeRatesFormValidator,
exchangeRatesMetadata,
- exchangeRatesMetadataValidator,
getIntegration,
updateIntegration,
} from "~/modules/settings";
@@ -17,11 +17,12 @@ import { error, success } from "~/utils/result";
const defaultValue = {
apiKey: "",
+ active: false,
};
export async function loader({ request }: LoaderFunctionArgs) {
const { client } = await requirePermissions(request, {
- view: "settings",
+ update: "settings",
});
const integration = await getIntegration(client, "exchange-rates-v1");
@@ -41,7 +42,10 @@ export async function loader({ request }: LoaderFunctionArgs) {
return json({
integration: validIntegration.success
- ? validIntegration.data
+ ? {
+ active: integration.data?.active,
+ ...validIntegration.data,
+ }
: defaultValue,
});
}
@@ -52,10 +56,7 @@ export async function action({ request, params }: ActionFunctionArgs) {
update: "settings",
});
- const { customerId } = params;
- if (!customerId) throw new Error("Could not find customerId");
-
- const validation = await exchangeRatesMetadataValidator.validate(
+ const validation = await exchangeRatesFormValidator.validate(
await request.formData()
);
@@ -63,10 +64,13 @@ export async function action({ request, params }: ActionFunctionArgs) {
return validationError(validation.error);
}
+ const { active, ...data } = validation.data;
+
const update = await updateIntegration(client, {
id: "exchange-rates-v1",
+ active,
metadata: {
- ...validation.data,
+ ...data,
},
updatedBy: userId,
});
@@ -88,6 +92,7 @@ export async function action({ request, params }: ActionFunctionArgs) {
export default function ExchangeRatesIntegrationRoute() {
const { integration } = useLoaderData<typeof loader>();
+
const navigate = useNavigate();
return (
diff --git a/apps/carbon/app/routes/x+/settings+/integrations.tsx b/apps/carbon/app/routes/x+/settings+/integrations.tsx
index 79c8eefaaa..7f4e02e05a 100644
--- a/apps/carbon/app/routes/x+/settings+/integrations.tsx
+++ b/apps/carbon/app/routes/x+/settings+/integrations.tsx
@@ -1,6 +1,6 @@
import { json, redirect, type LoaderFunctionArgs } from "@remix-run/node";
import { Outlet, useLoaderData } from "@remix-run/react";
-import { getIntegrations } from "~/modules/settings";
+import { IntegrationsList, getIntegrations } from "~/modules/settings";
import { requirePermissions } from "~/services/auth";
import { flash } from "~/services/session";
import { path } from "~/utils/path";
@@ -30,9 +30,10 @@ export async function loader({ request }: LoaderFunctionArgs) {
export default function IntegrationsRoute() {
const { integrations } = useLoaderData<typeof loader>();
+
return (
<>
- <pre>{JSON.stringify(integrations, null, 2)}</pre>
+ <IntegrationsList integrations={integrations} />
<Outlet />
</>
);
diff --git a/package-lock.json b/package-lock.json
index edd938930b..e720c8eaff 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -2,10 +2,8 @@
"name": "carbon",
"lockfileVersion": 3,
"requires": true,
- "description": "Carbon ERP is an open-source, high performance ERP",
"packages": {
"": {
- "name": "carbon",
"license": "Apache-2.0",
"workspaces": [
"apps/*",
@@ -112,1421 +110,93 @@
"node": ">=18"
}
},
- "apps/carbon/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"
- }
- },
- "apps/carbon/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"
- }
- },
- "apps/carbon/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"
- }
- },
- "apps/carbon/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"
- }
- },
- "apps/carbon/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"
- }
- },
- "apps/carbon/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"
- }
- },
- "apps/carbon/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"
- }
- },
- "apps/carbon/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"
- }
- },
- "apps/carbon/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"
- }
- },
- "apps/carbon/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"
- }
- },
- "apps/carbon/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"
- }
- },
- "apps/carbon/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"
- }
- },
- "apps/carbon/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"
- }
- },
- "apps/carbon/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"
- }
- },
- "apps/carbon/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"
- }
- },
- "apps/carbon/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"
- }
- },
- "apps/carbon/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"
- }
- },
- "apps/carbon/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"
- }
- },
- "apps/carbon/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"
- }
- },
- "apps/carbon/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"
- ],
- "engines": {
- "node": ">=12"
- }
- },
- "apps/carbon/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"
- ],
- "engines": {
- "node": ">=12"
- }
- },
- "apps/carbon/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"
- ],
- "engines": {
- "node": ">=12"
- }
- },
- "apps/carbon/node_modules/@remix-run/dev": {
- "version": "2.5.1",
- "resolved": "https://registry.npmjs.org/@remix-run/dev/-/dev-2.5.1.tgz",
- "integrity": "sha512-IrYhWANubH+WM62Wz55n8NWT5kBqfbyytXDFlP0VoZLrr1IpJf2GtaT4IA+CODMaNoeXeMACOD5Tw5/Y2bO5lA==",
- "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.23.2",
- "@babel/types": "^7.22.5",
- "@mdx-js/mdx": "^2.3.0",
- "@npmcli/package-json": "^4.0.1",
- "@remix-run/node": "2.5.1",
- "@remix-run/router": "1.14.2",
- "@remix-run/server-runtime": "2.5.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",
- "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",
- "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",
- "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",
- "set-cookie-parser": "^2.6.0",
- "tar-fs": "^2.1.1",
- "tsconfig-paths": "^4.0.0",
- "ws": "^7.4.5"
- },
- "bin": {
- "remix": "dist/cli.js"
- },
- "engines": {
- "node": ">=18.0.0"
- },
- "peerDependencies": {
- "@remix-run/serve": "^2.5.1",
- "typescript": "^5.1.0",
- "vite": "^5.0.0"
- },
- "peerDependenciesMeta": {
- "@remix-run/serve": {
- "optional": true
- },
- "typescript": {
- "optional": true
- },
- "vite": {
- "optional": true
- }
- }
- },
- "apps/carbon/node_modules/@remix-run/eslint-config": {
- "version": "2.5.1",
- "resolved": "https://registry.npmjs.org/@remix-run/eslint-config/-/eslint-config-2.5.1.tgz",
- "integrity": "sha512-PpLj0QSd2NZ12KdTA2QYPd/FK3Szu9Np7kTmx26VxDZJTzQYSgGb5i2O9uby+j2sD68zR/+EAYaIcOlq66ekJw==",
- "dependencies": {
- "@babel/core": "^7.21.8",
- "@babel/eslint-parser": "^7.21.8",
- "@babel/preset-react": "^7.18.6",
- "@rushstack/eslint-patch": "^1.2.0",
- "@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"
- },
- "engines": {
- "node": ">=18.0.0"
- },
- "peerDependencies": {
- "eslint": "^8.0.0",
- "react": "^18.0.0",
- "typescript": "^5.1.0"
- },
- "peerDependenciesMeta": {
- "typescript": {
- "optional": true
- }
- }
- },
- "apps/carbon/node_modules/@remix-run/express": {
- "version": "2.5.1",
- "resolved": "https://registry.npmjs.org/@remix-run/express/-/express-2.5.1.tgz",
- "integrity": "sha512-ISaf2hzHxDTS1hNsOovRoSfIQC29m4ogzXvBC6xp2BuJj0K8R0yQ4RFD4+qUFEUnS2n6MyWyjFQRhOC6PhQhRw==",
- "dependencies": {
- "@remix-run/node": "2.5.1"
- },
- "engines": {
- "node": ">=18.0.0"
- },
- "peerDependencies": {
- "express": "^4.17.1",
- "typescript": "^5.1.0"
- },
- "peerDependenciesMeta": {
- "typescript": {
- "optional": true
- }
- }
- },
- "apps/carbon/node_modules/@remix-run/node": {
- "version": "2.5.1",
- "resolved": "https://registry.npmjs.org/@remix-run/node/-/node-2.5.1.tgz",
- "integrity": "sha512-UI442xzHAiokmsfrYOabMQB024+IizmRhZBGcNa42QjJWsNqogy1bNwYhzEpB6oQEB1wF3vwOKK1AD1/iYA/9A==",
- "dependencies": {
- "@remix-run/server-runtime": "2.5.1",
- "@remix-run/web-fetch": "^4.4.2",
- "@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"
- },
- "engines": {
- "node": ">=18.0.0"
- },
- "peerDependencies": {
- "typescript": "^5.1.0"
- },
- "peerDependenciesMeta": {
- "typescript": {
- "optional": true
- }
- }
- },
- "apps/carbon/node_modules/@remix-run/react": {
- "version": "2.5.1",
- "resolved": "https://registry.npmjs.org/@remix-run/react/-/react-2.5.1.tgz",
- "integrity": "sha512-MNXHLj4Iu9Iyi+3uY61JZJ1Rtx2nM/z11j9AtwQdEADkh1/t9GruhtT/8VLplToOl0qWZKItboWScKf6uRQsrw==",
- "dependencies": {
- "@remix-run/router": "1.14.2",
- "@remix-run/server-runtime": "2.5.1",
- "react-router": "6.21.3",
- "react-router-dom": "6.21.3"
- },
- "engines": {
- "node": ">=18.0.0"
- },
- "peerDependencies": {
- "react": "^18.0.0",
- "react-dom": "^18.0.0",
- "typescript": "^5.1.0"
- },
- "peerDependenciesMeta": {
- "typescript": {
- "optional": true
- }
- }
- },
- "apps/carbon/node_modules/@remix-run/router": {
- "version": "1.14.2",
- "resolved": "https://registry.npmjs.org/@remix-run/router/-/router-1.14.2.tgz",
- "integrity": "sha512-ACXpdMM9hmKZww21yEqWwiLws/UPLhNKvimN8RrYSqPSvB3ov7sLvAcfvaxePeLvccTQKGdkDIhLYApZVDFuKg==",
- "engines": {
- "node": ">=14.0.0"
- }
- },
- "apps/carbon/node_modules/@remix-run/serve": {
- "version": "2.5.1",
- "resolved": "https://registry.npmjs.org/@remix-run/serve/-/serve-2.5.1.tgz",
- "integrity": "sha512-r1IWfirwkLrxADd8uFUIpLR1wMU8VeRI4ED4SpbhrKwqODLrYtv5irzjei+r/w0y0Oob8DMHnYxg03UY4T7ejg==",
- "dependencies": {
- "@remix-run/express": "2.5.1",
- "@remix-run/node": "2.5.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"
- }
- },
- "apps/carbon/node_modules/@remix-run/server-runtime": {
- "version": "2.5.1",
- "resolved": "https://registry.npmjs.org/@remix-run/server-runtime/-/server-runtime-2.5.1.tgz",
- "integrity": "sha512-bP31jrVbYTJ2eP5sxZfDgT1YyXzDlzsfMxGYVzpaoLCYDJAekq1QpHLLXKGOXhmyb46O9rdhlQKfwD6WpAxr3A==",
- "dependencies": {
- "@remix-run/router": "1.14.2",
- "@types/cookie": "^0.6.0",
- "@web3-storage/multipart-parser": "^1.0.0",
- "cookie": "^0.6.0",
- "set-cookie-parser": "^2.4.8",
- "source-map": "^0.7.3"
- },
- "engines": {
- "node": ">=18.0.0"
- },
- "peerDependencies": {
- "typescript": "^5.1.0"
- },
- "peerDependenciesMeta": {
- "typescript": {
- "optional": true
- }
- }
- },
- "apps/carbon/node_modules/@types/cookie": {
- "version": "0.6.0",
- "resolved": "https://registry.npmjs.org/@types/cookie/-/cookie-0.6.0.tgz",
- "integrity": "sha512-4Kh9a6B2bQciAhf7FSuMRRkUWecJgJu9nPnx3yzpsfXX/c50REIqpHY4C82bXP90qrLtXtkDxTZosYO3UpOwlA=="
- },
- "apps/carbon/node_modules/@vercel/remix": {
- "version": "2.5.1",
- "resolved": "https://registry.npmjs.org/@vercel/remix/-/remix-2.5.1.tgz",
- "integrity": "sha512-b38Av3htXlF5L/Gy0vufWtSPLQOCKTYGLANWIrpLnB2m3Ro8Q56SgkBE1iMqVnHQ6A32fyAXg9y0BrVRRLhy6A==",
- "dependencies": {
- "@remix-run/node": "2.5.1",
- "@remix-run/server-runtime": "2.5.1",
- "isbot": "^3.6.8"
- },
- "engines": {
- "node": ">=18.0.0"
- },
- "peerDependencies": {
- "react": "*",
- "react-dom": "*"
- }
- },
- "apps/carbon/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==",
- "dependencies": {
- "balanced-match": "^1.0.0"
- }
- },
- "apps/carbon/node_modules/cookie": {
- "version": "0.6.0",
- "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.6.0.tgz",
- "integrity": "sha512-U71cyTamuh1CRNCfpGY6to28lxvNwPG4Guz/EVjgf3Jmzv0vlDp1atT9eS5dDjMYHucpHbWns6Lwf3BKz6svdw==",
- "engines": {
- "node": ">= 0.6"
- }
- },
- "apps/carbon/node_modules/esbuild": {
- "version": "0.17.6",
- "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.17.6.tgz",
- "integrity": "sha512-TKFRp9TxrJDdRWfSsSERKEovm6v30iHnrjlcGhLBOtReE28Yp1VSBRfO3GTaOFMoxsNerx4TjrhzSuma9ha83Q==",
- "hasInstallScript": true,
- "bin": {
- "esbuild": "bin/esbuild"
- },
- "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"
- }
- },
- "apps/carbon/node_modules/execa": {
- "version": "5.1.1",
- "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz",
- "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==",
- "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"
- }
- },
- "apps/carbon/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"
- }
- },
- "apps/carbon/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"
- },
- "funding": {
- "url": "https://github.com/sponsors/sindresorhus"
- }
- },
- "apps/carbon/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==",
- "bin": {
- "jsesc": "bin/jsesc"
- },
- "engines": {
- "node": ">=6"
- }
- },
- "apps/carbon/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"
- }
- },
- "apps/carbon/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"
- }
- },
- "apps/carbon/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"
- }
- },
- "apps/carbon/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==",
- "dependencies": {
- "path-key": "^3.0.0"
- },
- "engines": {
- "node": ">=8"
- }
- },
- "apps/carbon/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"
- },
- "engines": {
- "node": ">=6"
- },
- "funding": {
- "url": "https://github.com/sponsors/sindresorhus"
- }
- },
- "apps/carbon/node_modules/postcss-import": {
- "version": "15.1.0",
- "resolved": "https://registry.npmjs.org/postcss-import/-/postcss-import-15.1.0.tgz",
- "integrity": "sha512-hpr+J05B2FVYUAXHeK1YyI267J/dDDhMU6B6civm8hSY1jYJnBXxzKDKDswzJmtLHryrjhnDjqqp/49t8FALew==",
- "dev": true,
- "dependencies": {
- "postcss-value-parser": "^4.0.0",
- "read-cache": "^1.0.0",
- "resolve": "^1.1.7"
- },
- "engines": {
- "node": ">=14.0.0"
- },
- "peerDependencies": {
- "postcss": "^8.0.0"
- }
- },
- "apps/carbon/node_modules/postcss-load-config": {
- "version": "4.0.2",
- "resolved": "https://registry.npmjs.org/postcss-load-config/-/postcss-load-config-4.0.2.tgz",
- "integrity": "sha512-bSVhyJGL00wMVoPUzAVAnbEoWyqRxkjv64tUl427SKnPrENtq6hJwUojroMz2VB+Q1edmi4IfrAPpami5VVgMQ==",
- "funding": [
- {
- "type": "opencollective",
- "url": "https://opencollective.com/postcss/"
- },
- {
- "type": "github",
- "url": "https://github.com/sponsors/ai"
- }
- ],
- "dependencies": {
- "lilconfig": "^3.0.0",
- "yaml": "^2.3.4"
- },
- "engines": {
- "node": ">= 14"
- },
- "peerDependencies": {
- "postcss": ">=8.0.9",
- "ts-node": ">=9.0.0"
- },
- "peerDependenciesMeta": {
- "postcss": {
- "optional": true
- },
- "ts-node": {
- "optional": true
- }
- }
- },
- "apps/carbon/node_modules/postcss-load-config/node_modules/lilconfig": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/lilconfig/-/lilconfig-3.0.0.tgz",
- "integrity": "sha512-K2U4W2Ff5ibV7j7ydLr+zLAkIg5JJ4lPn1Ltsdt+Tz/IjQ8buJ55pZAxoP34lqIiwtF9iAvtLv3JGv7CAyAg+g==",
- "engines": {
- "node": ">=14"
- }
- },
- "apps/carbon/node_modules/postcss-nested": {
- "version": "6.0.1",
- "resolved": "https://registry.npmjs.org/postcss-nested/-/postcss-nested-6.0.1.tgz",
- "integrity": "sha512-mEp4xPMi5bSWiMbsgoPfcP74lsWLHkQbZc3sY+jWYd65CUwXrUaTp0fmNpa01ZcETKlIgUdFN/MpS2xZtqL9dQ==",
- "dev": true,
- "dependencies": {
- "postcss-selector-parser": "^6.0.11"
- },
- "engines": {
- "node": ">=12.0"
- },
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/postcss/"
- },
- "peerDependencies": {
- "postcss": "^8.2.14"
- }
- },
- "apps/carbon/node_modules/react-router": {
- "version": "6.21.3",
- "resolved": "https://registry.npmjs.org/react-router/-/react-router-6.21.3.tgz",
- "integrity": "sha512-a0H638ZXULv1OdkmiK6s6itNhoy33ywxmUFT/xtSoVyf9VnC7n7+VT4LjVzdIHSaF5TIh9ylUgxMXksHTgGrKg==",
- "dependencies": {
- "@remix-run/router": "1.14.2"
- },
- "engines": {
- "node": ">=14.0.0"
- },
- "peerDependencies": {
- "react": ">=16.8"
- }
- },
- "apps/carbon/node_modules/react-router-dom": {
- "version": "6.21.3",
- "resolved": "https://registry.npmjs.org/react-router-dom/-/react-router-dom-6.21.3.tgz",
- "integrity": "sha512-kNzubk7n4YHSrErzjLK72j0B5i969GsuCGazRl3G6j1zqZBLjuSlYBdVdkDOgzGdPIffUOc9nmgiadTEVoq91g==",
- "dependencies": {
- "@remix-run/router": "1.14.2",
- "react-router": "6.21.3"
- },
- "engines": {
- "node": ">=14.0.0"
- },
- "peerDependencies": {
- "react": ">=16.8",
- "react-dom": ">=16.8"
- }
- },
- "apps/carbon/node_modules/rollup": {
- "version": "4.9.5",
- "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.9.5.tgz",
- "integrity": "sha512-E4vQW0H/mbNMw2yLSqJyjtkHY9dslf/p0zuT1xehNRqUTBOFMqEjguDvqhXr7N7r/4ttb2jr4T41d3dncmIgbQ==",
- "optional": true,
- "peer": true,
- "dependencies": {
- "@types/estree": "1.0.5"
- },
- "bin": {
- "rollup": "dist/bin/rollup"
- },
- "engines": {
- "node": ">=18.0.0",
- "npm": ">=8.0.0"
- },
- "optionalDependencies": {
- "@rollup/rollup-android-arm-eabi": "4.9.5",
- "@rollup/rollup-android-arm64": "4.9.5",
- "@rollup/rollup-darwin-arm64": "4.9.5",
- "@rollup/rollup-darwin-x64": "4.9.5",
- "@rollup/rollup-linux-arm-gnueabihf": "4.9.5",
- "@rollup/rollup-linux-arm64-gnu": "4.9.5",
- "@rollup/rollup-linux-arm64-musl": "4.9.5",
- "@rollup/rollup-linux-riscv64-gnu": "4.9.5",
- "@rollup/rollup-linux-x64-gnu": "4.9.5",
- "@rollup/rollup-linux-x64-musl": "4.9.5",
- "@rollup/rollup-win32-arm64-msvc": "4.9.5",
- "@rollup/rollup-win32-ia32-msvc": "4.9.5",
- "@rollup/rollup-win32-x64-msvc": "4.9.5",
- "fsevents": "~2.3.2"
- }
- },
- "apps/carbon/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"
- }
- },
- "apps/carbon/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"
- }
- },
- "apps/carbon/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"
- }
- },
- "apps/carbon/node_modules/tailwindcss": {
- "version": "3.3.2",
- "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-3.3.2.tgz",
- "integrity": "sha512-9jPkMiIBXvPc2KywkraqsUfbfj+dHDb+JPWtSJa9MLFdrPyazI7q6WX2sUrm7R9eVR7qqv3Pas7EvQFzxKnI6w==",
- "dev": true,
- "dependencies": {
- "@alloc/quick-lru": "^5.2.0",
- "arg": "^5.0.2",
- "chokidar": "^3.5.3",
- "didyoumean": "^1.2.2",
- "dlv": "^1.1.3",
- "fast-glob": "^3.2.12",
- "glob-parent": "^6.0.2",
- "is-glob": "^4.0.3",
- "jiti": "^1.18.2",
- "lilconfig": "^2.1.0",
- "micromatch": "^4.0.5",
- "normalize-path": "^3.0.0",
- "object-hash": "^3.0.0",
- "picocolors": "^1.0.0",
- "postcss": "^8.4.23",
- "postcss-import": "^15.1.0",
- "postcss-js": "^4.0.1",
- "postcss-load-config": "^4.0.1",
- "postcss-nested": "^6.0.1",
- "postcss-selector-parser": "^6.0.11",
- "postcss-value-parser": "^4.2.0",
- "resolve": "^1.22.2",
- "sucrase": "^3.32.0"
- },
- "bin": {
- "tailwind": "lib/cli.js",
- "tailwindcss": "lib/cli.js"
- },
- "engines": {
- "node": ">=14.0.0"
- }
- },
- "apps/carbon/node_modules/vite": {
- "version": "5.0.12",
- "resolved": "https://registry.npmjs.org/vite/-/vite-5.0.12.tgz",
- "integrity": "sha512-4hsnEkG3q0N4Tzf1+t6NdN9dg/L3BM+q8SWgbSPnJvrgH2kgdyzfVJwbR1ic69/4uMJJ/3dqDZZE5/WwqW8U1w==",
- "optional": true,
- "peer": true,
- "dependencies": {
- "esbuild": "^0.19.3",
- "postcss": "^8.4.32",
- "rollup": "^4.2.0"
- },
- "bin": {
- "vite": "bin/vite.js"
- },
- "engines": {
- "node": "^18.0.0 || >=20.0.0"
- },
- "funding": {
- "url": "https://github.com/vitejs/vite?sponsor=1"
- },
- "optionalDependencies": {
- "fsevents": "~2.3.3"
- },
- "peerDependencies": {
- "@types/node": "^18.0.0 || >=20.0.0",
- "less": "*",
- "lightningcss": "^1.21.0",
- "sass": "*",
- "stylus": "*",
- "sugarss": "*",
- "terser": "^5.4.0"
- },
- "peerDependenciesMeta": {
- "@types/node": {
- "optional": true
- },
- "less": {
- "optional": true
- },
- "lightningcss": {
- "optional": true
- },
- "sass": {
- "optional": true
- },
- "stylus": {
- "optional": true
- },
- "sugarss": {
- "optional": true
- },
- "terser": {
- "optional": true
- }
- }
- },
- "apps/carbon/node_modules/vite/node_modules/@esbuild/android-arm": {
- "version": "0.19.11",
- "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.19.11.tgz",
- "integrity": "sha512-5OVapq0ClabvKvQ58Bws8+wkLCV+Rxg7tUVbo9xu034Nm536QTII4YzhaFriQ7rMrorfnFKUsArD2lqKbFY4vw==",
- "cpu": [
- "arm"
- ],
- "optional": true,
- "os": [
- "android"
- ],
- "peer": true,
- "engines": {
- "node": ">=12"
- }
- },
- "apps/carbon/node_modules/vite/node_modules/@esbuild/android-arm64": {
- "version": "0.19.11",
- "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.19.11.tgz",
- "integrity": "sha512-aiu7K/5JnLj//KOnOfEZ0D90obUkRzDMyqd/wNAUQ34m4YUPVhRZpnqKV9uqDGxT7cToSDnIHsGooyIczu9T+Q==",
- "cpu": [
- "arm64"
- ],
- "optional": true,
- "os": [
- "android"
- ],
- "peer": true,
- "engines": {
- "node": ">=12"
- }
- },
- "apps/carbon/node_modules/vite/node_modules/@esbuild/android-x64": {
- "version": "0.19.11",
- "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.19.11.tgz",
- "integrity": "sha512-eccxjlfGw43WYoY9QgB82SgGgDbibcqyDTlk3l3C0jOVHKxrjdc9CTwDUQd0vkvYg5um0OH+GpxYvp39r+IPOg==",
- "cpu": [
- "x64"
- ],
- "optional": true,
- "os": [
- "android"
- ],
- "peer": true,
- "engines": {
- "node": ">=12"
- }
- },
- "apps/carbon/node_modules/vite/node_modules/@esbuild/darwin-arm64": {
- "version": "0.19.11",
- "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.19.11.tgz",
- "integrity": "sha512-ETp87DRWuSt9KdDVkqSoKoLFHYTrkyz2+65fj9nfXsaV3bMhTCjtQfw3y+um88vGRKRiF7erPrh/ZuIdLUIVxQ==",
- "cpu": [
- "arm64"
- ],
- "optional": true,
- "os": [
- "darwin"
- ],
- "peer": true,
- "engines": {
- "node": ">=12"
- }
- },
- "apps/carbon/node_modules/vite/node_modules/@esbuild/darwin-x64": {
- "version": "0.19.11",
- "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.19.11.tgz",
- "integrity": "sha512-fkFUiS6IUK9WYUO/+22omwetaSNl5/A8giXvQlcinLIjVkxwTLSktbF5f/kJMftM2MJp9+fXqZ5ezS7+SALp4g==",
- "cpu": [
- "x64"
- ],
- "optional": true,
- "os": [
- "darwin"
- ],
- "peer": true,
- "engines": {
- "node": ">=12"
- }
- },
- "apps/carbon/node_modules/vite/node_modules/@esbuild/freebsd-arm64": {
- "version": "0.19.11",
- "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.19.11.tgz",
- "integrity": "sha512-lhoSp5K6bxKRNdXUtHoNc5HhbXVCS8V0iZmDvyWvYq9S5WSfTIHU2UGjcGt7UeS6iEYp9eeymIl5mJBn0yiuxA==",
- "cpu": [
- "arm64"
- ],
- "optional": true,
- "os": [
- "freebsd"
- ],
- "peer": true,
- "engines": {
- "node": ">=12"
- }
- },
- "apps/carbon/node_modules/vite/node_modules/@esbuild/freebsd-x64": {
- "version": "0.19.11",
- "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.19.11.tgz",
- "integrity": "sha512-JkUqn44AffGXitVI6/AbQdoYAq0TEullFdqcMY/PCUZ36xJ9ZJRtQabzMA+Vi7r78+25ZIBosLTOKnUXBSi1Kw==",
- "cpu": [
- "x64"
- ],
- "optional": true,
- "os": [
- "freebsd"
- ],
- "peer": true,
- "engines": {
- "node": ">=12"
- }
- },
- "apps/carbon/node_modules/vite/node_modules/@esbuild/linux-arm": {
- "version": "0.19.11",
- "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.19.11.tgz",
- "integrity": "sha512-3CRkr9+vCV2XJbjwgzjPtO8T0SZUmRZla+UL1jw+XqHZPkPgZiyWvbDvl9rqAN8Zl7qJF0O/9ycMtjU67HN9/Q==",
- "cpu": [
- "arm"
- ],
- "optional": true,
- "os": [
- "linux"
- ],
- "peer": true,
- "engines": {
- "node": ">=12"
- }
- },
- "apps/carbon/node_modules/vite/node_modules/@esbuild/linux-arm64": {
- "version": "0.19.11",
- "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.19.11.tgz",
- "integrity": "sha512-LneLg3ypEeveBSMuoa0kwMpCGmpu8XQUh+mL8XXwoYZ6Be2qBnVtcDI5azSvh7vioMDhoJFZzp9GWp9IWpYoUg==",
- "cpu": [
- "arm64"
- ],
- "optional": true,
- "os": [
- "linux"
- ],
- "peer": true,
- "engines": {
- "node": ">=12"
- }
- },
- "apps/carbon/node_modules/vite/node_modules/@esbuild/linux-ia32": {
- "version": "0.19.11",
- "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.19.11.tgz",
- "integrity": "sha512-caHy++CsD8Bgq2V5CodbJjFPEiDPq8JJmBdeyZ8GWVQMjRD0sU548nNdwPNvKjVpamYYVL40AORekgfIubwHoA==",
- "cpu": [
- "ia32"
- ],
- "optional": true,
- "os": [
- "linux"
- ],
- "peer": true,
- "engines": {
- "node": ">=12"
- }
- },
- "apps/carbon/node_modules/vite/node_modules/@esbuild/linux-loong64": {
- "version": "0.19.11",
- "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.19.11.tgz",
- "integrity": "sha512-ppZSSLVpPrwHccvC6nQVZaSHlFsvCQyjnvirnVjbKSHuE5N24Yl8F3UwYUUR1UEPaFObGD2tSvVKbvR+uT1Nrg==",
- "cpu": [
- "loong64"
- ],
- "optional": true,
- "os": [
- "linux"
- ],
- "peer": true,
- "engines": {
- "node": ">=12"
- }
- },
- "apps/carbon/node_modules/vite/node_modules/@esbuild/linux-mips64el": {
- "version": "0.19.11",
- "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.19.11.tgz",
- "integrity": "sha512-B5x9j0OgjG+v1dF2DkH34lr+7Gmv0kzX6/V0afF41FkPMMqaQ77pH7CrhWeR22aEeHKaeZVtZ6yFwlxOKPVFyg==",
- "cpu": [
- "mips64el"
- ],
- "optional": true,
- "os": [
- "linux"
- ],
- "peer": true,
- "engines": {
- "node": ">=12"
- }
- },
- "apps/carbon/node_modules/vite/node_modules/@esbuild/linux-ppc64": {
- "version": "0.19.11",
- "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.19.11.tgz",
- "integrity": "sha512-MHrZYLeCG8vXblMetWyttkdVRjQlQUb/oMgBNurVEnhj4YWOr4G5lmBfZjHYQHHN0g6yDmCAQRR8MUHldvvRDA==",
- "cpu": [
- "ppc64"
- ],
- "optional": true,
- "os": [
- "linux"
- ],
- "peer": true,
- "engines": {
- "node": ">=12"
- }
- },
- "apps/carbon/node_modules/vite/node_modules/@esbuild/linux-riscv64": {
- "version": "0.19.11",
- "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.19.11.tgz",
- "integrity": "sha512-f3DY++t94uVg141dozDu4CCUkYW+09rWtaWfnb3bqe4w5NqmZd6nPVBm+qbz7WaHZCoqXqHz5p6CM6qv3qnSSQ==",
- "cpu": [
- "riscv64"
- ],
- "optional": true,
- "os": [
- "linux"
- ],
- "peer": true,
- "engines": {
- "node": ">=12"
- }
- },
- "apps/carbon/node_modules/vite/node_modules/@esbuild/linux-s390x": {
- "version": "0.19.11",
- "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.19.11.tgz",
- "integrity": "sha512-A5xdUoyWJHMMlcSMcPGVLzYzpcY8QP1RtYzX5/bS4dvjBGVxdhuiYyFwp7z74ocV7WDc0n1harxmpq2ePOjI0Q==",
- "cpu": [
- "s390x"
- ],
- "optional": true,
- "os": [
- "linux"
- ],
- "peer": true,
- "engines": {
- "node": ">=12"
- }
- },
- "apps/carbon/node_modules/vite/node_modules/@esbuild/linux-x64": {
- "version": "0.19.11",
- "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.19.11.tgz",
- "integrity": "sha512-grbyMlVCvJSfxFQUndw5mCtWs5LO1gUlwP4CDi4iJBbVpZcqLVT29FxgGuBJGSzyOxotFG4LoO5X+M1350zmPA==",
- "cpu": [
- "x64"
- ],
- "optional": true,
- "os": [
- "linux"
- ],
- "peer": true,
- "engines": {
- "node": ">=12"
- }
- },
- "apps/carbon/node_modules/vite/node_modules/@esbuild/netbsd-x64": {
- "version": "0.19.11",
- "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.19.11.tgz",
- "integrity": "sha512-13jvrQZJc3P230OhU8xgwUnDeuC/9egsjTkXN49b3GcS5BKvJqZn86aGM8W9pd14Kd+u7HuFBMVtrNGhh6fHEQ==",
- "cpu": [
- "x64"
- ],
- "optional": true,
- "os": [
- "netbsd"
- ],
- "peer": true,
- "engines": {
- "node": ">=12"
- }
- },
- "apps/carbon/node_modules/vite/node_modules/@esbuild/openbsd-x64": {
- "version": "0.19.11",
- "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.19.11.tgz",
- "integrity": "sha512-ysyOGZuTp6SNKPE11INDUeFVVQFrhcNDVUgSQVDzqsqX38DjhPEPATpid04LCoUr2WXhQTEZ8ct/EgJCUDpyNw==",
- "cpu": [
- "x64"
- ],
- "optional": true,
- "os": [
- "openbsd"
- ],
- "peer": true,
- "engines": {
- "node": ">=12"
- }
- },
- "apps/carbon/node_modules/vite/node_modules/@esbuild/sunos-x64": {
- "version": "0.19.11",
- "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.19.11.tgz",
- "integrity": "sha512-Hf+Sad9nVwvtxy4DXCZQqLpgmRTQqyFyhT3bZ4F2XlJCjxGmRFF0Shwn9rzhOYRB61w9VMXUkxlBy56dk9JJiQ==",
- "cpu": [
- "x64"
- ],
- "optional": true,
- "os": [
- "sunos"
- ],
- "peer": true,
- "engines": {
- "node": ">=12"
- }
- },
- "apps/carbon/node_modules/vite/node_modules/@esbuild/win32-arm64": {
- "version": "0.19.11",
- "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.19.11.tgz",
- "integrity": "sha512-0P58Sbi0LctOMOQbpEOvOL44Ne0sqbS0XWHMvvrg6NE5jQ1xguCSSw9jQeUk2lfrXYsKDdOe6K+oZiwKPilYPQ==",
- "cpu": [
- "arm64"
- ],
- "optional": true,
- "os": [
- "win32"
- ],
- "peer": true,
- "engines": {
- "node": ">=12"
- }
- },
- "apps/carbon/node_modules/vite/node_modules/@esbuild/win32-ia32": {
- "version": "0.19.11",
- "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.19.11.tgz",
- "integrity": "sha512-6YOrWS+sDJDmshdBIQU+Uoyh7pQKrdykdefC1avn76ss5c+RN6gut3LZA4E2cH5xUEp5/cA0+YxRaVtRAb0xBg==",
- "cpu": [
- "ia32"
- ],
- "optional": true,
- "os": [
- "win32"
+ "apps/carbon/node_modules/postcss-load-config": {
+ "version": "4.0.2",
+ "resolved": "https://registry.npmjs.org/postcss-load-config/-/postcss-load-config-4.0.2.tgz",
+ "integrity": "sha512-bSVhyJGL00wMVoPUzAVAnbEoWyqRxkjv64tUl427SKnPrENtq6hJwUojroMz2VB+Q1edmi4IfrAPpami5VVgMQ==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/postcss/"
+ },
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/ai"
+ }
],
- "peer": true,
+ "dependencies": {
+ "lilconfig": "^3.0.0",
+ "yaml": "^2.3.4"
+ },
"engines": {
- "node": ">=12"
- }
- },
- "apps/carbon/node_modules/vite/node_modules/@esbuild/win32-x64": {
- "version": "0.19.11",
- "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.19.11.tgz",
- "integrity": "sha512-vfkhltrjCAb603XaFhqhAF4LGDi2M4OrCRrFusyQ+iTLQ/o60QQXxc9cZC/FFpihBI9N1Grn6SMKVJ4KP7Fuiw==",
- "cpu": [
- "x64"
- ],
- "optional": true,
- "os": [
- "win32"
- ],
- "peer": true,
+ "node": ">= 14"
+ },
+ "peerDependencies": {
+ "postcss": ">=8.0.9",
+ "ts-node": ">=9.0.0"
+ },
+ "peerDependenciesMeta": {
+ "postcss": {
+ "optional": true
+ },
+ "ts-node": {
+ "optional": true
+ }
+ }
+ },
+ "apps/carbon/node_modules/postcss-load-config/node_modules/lilconfig": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/lilconfig/-/lilconfig-3.0.0.tgz",
+ "integrity": "sha512-K2U4W2Ff5ibV7j7ydLr+zLAkIg5JJ4lPn1Ltsdt+Tz/IjQ8buJ55pZAxoP34lqIiwtF9iAvtLv3JGv7CAyAg+g==",
+ "dev": true,
"engines": {
- "node": ">=12"
+ "node": ">=14"
}
},
- "apps/carbon/node_modules/vite/node_modules/esbuild": {
- "version": "0.19.11",
- "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.19.11.tgz",
- "integrity": "sha512-HJ96Hev2hX/6i5cDVwcqiJBBtuo9+FeIJOtZ9W1kA5M6AMJRHUZlpYZ1/SbEwtO0ioNAW8rUooVpC/WehY2SfA==",
- "hasInstallScript": true,
- "optional": true,
- "peer": true,
+ "apps/carbon/node_modules/tailwindcss": {
+ "version": "3.3.2",
+ "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-3.3.2.tgz",
+ "integrity": "sha512-9jPkMiIBXvPc2KywkraqsUfbfj+dHDb+JPWtSJa9MLFdrPyazI7q6WX2sUrm7R9eVR7qqv3Pas7EvQFzxKnI6w==",
+ "dev": true,
+ "dependencies": {
+ "@alloc/quick-lru": "^5.2.0",
+ "arg": "^5.0.2",
+ "chokidar": "^3.5.3",
+ "didyoumean": "^1.2.2",
+ "dlv": "^1.1.3",
+ "fast-glob": "^3.2.12",
+ "glob-parent": "^6.0.2",
+ "is-glob": "^4.0.3",
+ "jiti": "^1.18.2",
+ "lilconfig": "^2.1.0",
+ "micromatch": "^4.0.5",
+ "normalize-path": "^3.0.0",
+ "object-hash": "^3.0.0",
+ "picocolors": "^1.0.0",
+ "postcss": "^8.4.23",
+ "postcss-import": "^15.1.0",
+ "postcss-js": "^4.0.1",
+ "postcss-load-config": "^4.0.1",
+ "postcss-nested": "^6.0.1",
+ "postcss-selector-parser": "^6.0.11",
+ "postcss-value-parser": "^4.2.0",
+ "resolve": "^1.22.2",
+ "sucrase": "^3.32.0"
+ },
"bin": {
- "esbuild": "bin/esbuild"
+ "tailwind": "lib/cli.js",
+ "tailwindcss": "lib/cli.js"
},
"engines": {
- "node": ">=12"
- },
- "optionalDependencies": {
- "@esbuild/aix-ppc64": "0.19.11",
- "@esbuild/android-arm": "0.19.11",
- "@esbuild/android-arm64": "0.19.11",
- "@esbuild/android-x64": "0.19.11",
- "@esbuild/darwin-arm64": "0.19.11",
- "@esbuild/darwin-x64": "0.19.11",
- "@esbuild/freebsd-arm64": "0.19.11",
- "@esbuild/freebsd-x64": "0.19.11",
- "@esbuild/linux-arm": "0.19.11",
- "@esbuild/linux-arm64": "0.19.11",
- "@esbuild/linux-ia32": "0.19.11",
- "@esbuild/linux-loong64": "0.19.11",
- "@esbuild/linux-mips64el": "0.19.11",
- "@esbuild/linux-ppc64": "0.19.11",
- "@esbuild/linux-riscv64": "0.19.11",
- "@esbuild/linux-s390x": "0.19.11",
- "@esbuild/linux-x64": "0.19.11",
- "@esbuild/netbsd-x64": "0.19.11",
- "@esbuild/openbsd-x64": "0.19.11",
- "@esbuild/sunos-x64": "0.19.11",
- "@esbuild/win32-arm64": "0.19.11",
- "@esbuild/win32-ia32": "0.19.11",
- "@esbuild/win32-x64": "0.19.11"
+ "node": ">=14.0.0"
}
},
"apps/carbon/node_modules/yaml": {
"version": "2.3.4",
"resolved": "https://registry.npmjs.org/yaml/-/yaml-2.3.4.tgz",
"integrity": "sha512-8aAvwVUSHpfEqTQ4w/KMlf3HcRdt50E5ODIQJBw1fQ5RL34xabzxtUlzTXVqc4rkZsPbvrXKWnABCD7kWSmocA==",
+ "dev": true,
"engines": {
"node": ">= 14"
}
@@ -1564,11 +234,11 @@
}
},
"node_modules/@babel/code-frame": {
- "version": "7.22.13",
- "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.22.13.tgz",
- "integrity": "sha512-XktuhWlJ5g+3TJXc5upd9Ks1HutSArik6jf2eAjYFyIOf4ej3RN+184cZbzDvbPnuTJIUhPKKJE3cIsYTiAT3w==",
+ "version": "7.23.5",
+ "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.23.5.tgz",
+ "integrity": "sha512-CgH3s1a96LipHCmSUmYFPwY7MNx8C3avkq7i4Wl3cfa662ldtUe4VM1TPXX70pfmrlWTb6jLqTYrZyT2ZTJBgA==",
"dependencies": {
- "@babel/highlight": "^7.22.13",
+ "@babel/highlight": "^7.23.4",
"chalk": "^2.4.2"
},
"engines": {
@@ -1640,28 +310,28 @@
}
},
"node_modules/@babel/compat-data": {
- "version": "7.23.2",
- "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.23.2.tgz",
- "integrity": "sha512-0S9TQMmDHlqAZ2ITT95irXKfxN9bncq8ZCoJhun3nHL/lLUxd2NKBJYoNGWH7S0hz6fRQwWlAWn/ILM0C70KZQ==",
+ "version": "7.23.5",
+ "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.23.5.tgz",
+ "integrity": "sha512-uU27kfDRlhfKl+w1U6vp16IuvSLtjAxdArVXPa9BvLkrr7CYIsxH5adpHObeAGY/41+syctUWOZ140a2Rvkgjw==",
"engines": {
"node": ">=6.9.0"
}
},
"node_modules/@babel/core": {
- "version": "7.23.2",
- "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.23.2.tgz",
- "integrity": "sha512-n7s51eWdaWZ3vGT2tD4T7J6eJs3QoBXydv7vkUM06Bf1cbVD2Kc2UrkzhiQwobfV7NwOnQXYL7UBJ5VPU+RGoQ==",
+ "version": "7.23.7",
+ "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.23.7.tgz",
+ "integrity": "sha512-+UpDgowcmqe36d4NwqvKsyPMlOLNGMsfMmQ5WGCu+siCe3t3dfe9njrzGfdN4qq+bcNUt0+Vw6haRxBOycs4dw==",
"dependencies": {
"@ampproject/remapping": "^2.2.0",
- "@babel/code-frame": "^7.22.13",
- "@babel/generator": "^7.23.0",
- "@babel/helper-compilation-targets": "^7.22.15",
- "@babel/helper-module-transforms": "^7.23.0",
- "@babel/helpers": "^7.23.2",
- "@babel/parser": "^7.23.0",
+ "@babel/code-frame": "^7.23.5",
+ "@babel/generator": "^7.23.6",
+ "@babel/helper-compilation-targets": "^7.23.6",
+ "@babel/helper-module-transforms": "^7.23.3",
+ "@babel/helpers": "^7.23.7",
+ "@babel/parser": "^7.23.6",
"@babel/template": "^7.22.15",
- "@babel/traverse": "^7.23.2",
- "@babel/types": "^7.23.0",
+ "@babel/traverse": "^7.23.7",
+ "@babel/types": "^7.23.6",
"convert-source-map": "^2.0.0",
"debug": "^4.1.0",
"gensync": "^1.0.0-beta.2",
@@ -1718,11 +388,11 @@
}
},
"node_modules/@babel/generator": {
- "version": "7.23.0",
- "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.23.0.tgz",
- "integrity": "sha512-lN85QRR+5IbYrMWM6Y4pE/noaQtg4pNiqeNGX60eqOfo6gtEj6uw/JagelB8vVztSd7R6M5n1+PQkDbHbBRU4g==",
+ "version": "7.23.6",
+ "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.23.6.tgz",
+ "integrity": "sha512-qrSfCYxYQB5owCmGLbl8XRpX1ytXlpueOb0N0UmQwA073KZxejgQTzAmJezxvpwQD9uGtK2shHdi55QT+MbjIw==",
"dependencies": {
- "@babel/types": "^7.23.0",
+ "@babel/types": "^7.23.6",
"@jridgewell/gen-mapping": "^0.3.2",
"@jridgewell/trace-mapping": "^0.3.17",
"jsesc": "^2.5.1"
@@ -1743,13 +413,13 @@
}
},
"node_modules/@babel/helper-compilation-targets": {
- "version": "7.22.15",
- "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.22.15.tgz",
- "integrity": "sha512-y6EEzULok0Qvz8yyLkCvVX+02ic+By2UdOhylwUOvOn9dvYc9mKICJuuU1n1XBI02YWsNsnrY1kc6DVbjcXbtw==",
+ "version": "7.23.6",
+ "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.23.6.tgz",
+ "integrity": "sha512-9JB548GZoQVmzrFgp8o7KxdgkTGm6xs9DW0o/Pim72UDjzr5ObUQ6ZzYPqA+g9OTS2bBQoctLJrky0RDCAWRgQ==",
"dependencies": {
- "@babel/compat-data": "^7.22.9",
- "@babel/helper-validator-option": "^7.22.15",
- "browserslist": "^4.21.9",
+ "@babel/compat-data": "^7.23.5",
+ "@babel/helper-validator-option": "^7.23.5",
+ "browserslist": "^4.22.2",
"lru-cache": "^5.1.1",
"semver": "^6.3.1"
},
@@ -1779,16 +449,16 @@
"integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g=="
},
"node_modules/@babel/helper-create-class-features-plugin": {
- "version": "7.22.15",
- "resolved": "https://registry.npmjs.org/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.22.15.tgz",
- "integrity": "sha512-jKkwA59IXcvSaiK2UN45kKwSC9o+KuoXsBDvHvU/7BecYIp8GQ2UwrVvFgJASUT+hBnwJx6MhvMCuMzwZZ7jlg==",
+ "version": "7.23.7",
+ "resolved": "https://registry.npmjs.org/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.23.7.tgz",
+ "integrity": "sha512-xCoqR/8+BoNnXOY7RVSgv6X+o7pmT5q1d+gGcRlXYkI+9B31glE4jeejhKVpA04O1AtzOt7OSQ6VYKP5FcRl9g==",
"dependencies": {
"@babel/helper-annotate-as-pure": "^7.22.5",
- "@babel/helper-environment-visitor": "^7.22.5",
- "@babel/helper-function-name": "^7.22.5",
- "@babel/helper-member-expression-to-functions": "^7.22.15",
+ "@babel/helper-environment-visitor": "^7.22.20",
+ "@babel/helper-function-name": "^7.23.0",
+ "@babel/helper-member-expression-to-functions": "^7.23.0",
"@babel/helper-optimise-call-expression": "^7.22.5",
- "@babel/helper-replace-supers": "^7.22.9",
+ "@babel/helper-replace-supers": "^7.22.20",
"@babel/helper-skip-transparent-expression-wrappers": "^7.22.5",
"@babel/helper-split-export-declaration": "^7.22.6",
"semver": "^6.3.1"
@@ -1862,9 +532,9 @@
}
},
"node_modules/@babel/helper-module-transforms": {
- "version": "7.23.0",
- "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.23.0.tgz",
- "integrity": "sha512-WhDWw1tdrlT0gMgUJSlX0IQvoO1eN279zrAUbVB+KpV2c3Tylz8+GnKOLllCS6Z/iZQEyVYxhZVUdPTqs2YYPw==",
+ "version": "7.23.3",
+ "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.23.3.tgz",
+ "integrity": "sha512-7bBs4ED9OmswdfDzpz4MpWgSrV7FXlc3zIagvLFjS5H+Mk7Snr21vQ6QwrsoCGMfNC4e4LQPdoULEt4ykz0SRQ==",
"dependencies": {
"@babel/helper-environment-visitor": "^7.22.20",
"@babel/helper-module-imports": "^7.22.15",
@@ -1948,9 +618,9 @@
}
},
"node_modules/@babel/helper-string-parser": {
- "version": "7.22.5",
- "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.22.5.tgz",
- "integrity": "sha512-mM4COjgZox8U+JcXQwPijIZLElkgEpO5rsERVDJTc2qfCDfERyob6k5WegS14SX18IIjv+XD+GrqNumY5JRCDw==",
+ "version": "7.23.4",
+ "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.23.4.tgz",
+ "integrity": "sha512-803gmbQdqwdf4olxrX4AJyFBV/RTr3rSmOj0rKwesmzlfhYNDEs+/iOcznzpNWlJlIlTJC2QfPFcHB6DlzdVLQ==",
"engines": {
"node": ">=6.9.0"
}
@@ -1964,30 +634,30 @@
}
},
"node_modules/@babel/helper-validator-option": {
- "version": "7.22.15",
- "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.22.15.tgz",
- "integrity": "sha512-bMn7RmyFjY/mdECUbgn9eoSY4vqvacUnS9i9vGAGttgFWesO6B4CYWA7XlpbWgBt71iv/hfbPlynohStqnu5hA==",
+ "version": "7.23.5",
+ "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.23.5.tgz",
+ "integrity": "sha512-85ttAOMLsr53VgXkTbkx8oA6YTfT4q7/HzXSLEYmjcSTJPMPQtvq1BD79Byep5xMUYbGRzEpDsjUf3dyp54IKw==",
"engines": {
"node": ">=6.9.0"
}
},
"node_modules/@babel/helpers": {
- "version": "7.23.2",
- "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.23.2.tgz",
- "integrity": "sha512-lzchcp8SjTSVe/fPmLwtWVBFC7+Tbn8LGHDVfDp9JGxpAY5opSaEFgt8UQvrnECWOTdji2mOWMz1rOhkHscmGQ==",
+ "version": "7.23.8",
+ "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.23.8.tgz",
+ "integrity": "sha512-KDqYz4PiOWvDFrdHLPhKtCThtIcKVy6avWD2oG4GEvyQ+XDZwHD4YQd+H2vNMnq2rkdxsDkU82T+Vk8U/WXHRQ==",
"dependencies": {
"@babel/template": "^7.22.15",
- "@babel/traverse": "^7.23.2",
- "@babel/types": "^7.23.0"
+ "@babel/traverse": "^7.23.7",
+ "@babel/types": "^7.23.6"
},
"engines": {
"node": ">=6.9.0"
}
},
"node_modules/@babel/highlight": {
- "version": "7.22.20",
- "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.22.20.tgz",
- "integrity": "sha512-dkdMCN3py0+ksCgYmGG8jKeGA/8Tk+gJwSYYlFGxG5lmhfKNoAy004YpLxpS1W2J8m/EK2Ew+yOs9pVRwO89mg==",
+ "version": "7.23.4",
+ "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.23.4.tgz",
+ "integrity": "sha512-acGdbYSfp2WheJoJm/EBBBLh/ID8KDc64ISZ9DYtBmC8/Q204PZJLHyzeB5qMzJ5trcOkybd78M4x2KWsUq++A==",
"dependencies": {
"@babel/helper-validator-identifier": "^7.22.20",
"chalk": "^2.4.2",
@@ -2062,9 +732,9 @@
}
},
"node_modules/@babel/parser": {
- "version": "7.23.0",
- "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.23.0.tgz",
- "integrity": "sha512-vvPKKdMemU85V9WE/l5wZEmImpCtLqbnTvqDS2U1fJ96KrxoW7KrXhNsNCblQlg8Ck4b85yxdTyelsMUgFUXiw==",
+ "version": "7.23.6",
+ "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.23.6.tgz",
+ "integrity": "sha512-Z2uID7YJ7oNvAI20O9X0bblw7Qqs8Q2hFy0R9tAfnfLkp5MW0UH9eUvnDSnFwKZ0AvgS1ucqR4KzvVHgnke1VQ==",
"bin": {
"parser": "bin/babel-parser.js"
},
@@ -2106,9 +776,9 @@
}
},
"node_modules/@babel/plugin-syntax-decorators": {
- "version": "7.22.10",
- "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-decorators/-/plugin-syntax-decorators-7.22.10.tgz",
- "integrity": "sha512-z1KTVemBjnz+kSEilAsI4lbkPOl5TvJH7YDSY1CTIzvLWJ+KHXp+mRe8VPmfnyvqOPqar1V2gid2PleKzRUstQ==",
+ "version": "7.23.3",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-decorators/-/plugin-syntax-decorators-7.23.3.tgz",
+ "integrity": "sha512-cf7Niq4/+/juY67E0PbgH0TDhLQ5J7zS8C/Q5FFx+DWyrRa9sUQdTXkjqKu8zGvuqr7vw1muKiukseihU+PJDA==",
"dependencies": {
"@babel/helper-plugin-utils": "^7.22.5"
},
@@ -2142,9 +812,9 @@
}
},
"node_modules/@babel/plugin-syntax-jsx": {
- "version": "7.22.5",
- "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.22.5.tgz",
- "integrity": "sha512-gvyP4hZrgrs/wWMaocvxZ44Hw0b3W8Pe+cMxc8V1ULQ07oh8VNbIRaoD1LRZVTvD+0nieDKjfgKg89sD7rrKrg==",
+ "version": "7.23.3",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.23.3.tgz",
+ "integrity": "sha512-EB2MELswq55OHUoRZLGg/zC7QWUKfNLpE57m/S2yr1uEneIgsTgrSzXP3NXEsMkVn76OlaVVnzN+ugObuYGwhg==",
"dependencies": {
"@babel/helper-plugin-utils": "^7.22.5"
},
@@ -2236,9 +906,9 @@
}
},
"node_modules/@babel/plugin-syntax-typescript": {
- "version": "7.22.5",
- "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.22.5.tgz",
- "integrity": "sha512-1mS2o03i7t1c6VzH6fdQ3OA8tcEIxwG18zIPRp+UY1Ihv6W+XZzBCVxExF9upussPXJ0xE9XRHwMoNs1ep/nRQ==",
+ "version": "7.23.3",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.23.3.tgz",
+ "integrity": "sha512-9EiNjVJOMwCO+43TqoTrgQ8jMwcAd0sWyXi9RPfIsLTj4R2MADDDQXELhffaUx/uJv2AYcxBgPwH6j4TIA4ytQ==",
"dependencies": {
"@babel/helper-plugin-utils": "^7.22.5"
},
@@ -2250,11 +920,11 @@
}
},
"node_modules/@babel/plugin-transform-modules-commonjs": {
- "version": "7.23.0",
- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.23.0.tgz",
- "integrity": "sha512-32Xzss14/UVc7k9g775yMIvkVK8xwKE0DPdP5JTapr3+Z9w4tzeOuLNY6BXDQR6BdnzIlXnCGAzsk/ICHBLVWQ==",
+ "version": "7.23.3",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.23.3.tgz",
+ "integrity": "sha512-aVS0F65LKsdNOtcz6FRCpE4OgsP2OFnW46qNxNIX9h3wuzaNcSQsJysuMwqSibC98HPrf2vCgtxKNwS0DAlgcA==",
"dependencies": {
- "@babel/helper-module-transforms": "^7.23.0",
+ "@babel/helper-module-transforms": "^7.23.3",
"@babel/helper-plugin-utils": "^7.22.5",
"@babel/helper-simple-access": "^7.22.5"
},
@@ -2266,9 +936,9 @@
}
},
"node_modules/@babel/plugin-transform-react-display-name": {
- "version": "7.22.5",
- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-display-name/-/plugin-transform-react-display-name-7.22.5.tgz",
- "integrity": "sha512-PVk3WPYudRF5z4GKMEYUrLjPl38fJSKNaEOkFuoprioowGuWN6w2RKznuFNSlJx7pzzXXStPUnNSOEO0jL5EVw==",
+ "version": "7.23.3",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-display-name/-/plugin-transform-react-display-name-7.23.3.tgz",
+ "integrity": "sha512-GnvhtVfA2OAtzdX58FJxU19rhoGeQzyVndw3GgtdECQvQFXPEZIOVULHVZGAYmOgmqjXpVpfocAbSjh99V/Fqw==",
"dependencies": {
"@babel/helper-plugin-utils": "^7.22.5"
},
@@ -2280,15 +950,15 @@
}
},
"node_modules/@babel/plugin-transform-react-jsx": {
- "version": "7.22.15",
- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx/-/plugin-transform-react-jsx-7.22.15.tgz",
- "integrity": "sha512-oKckg2eZFa8771O/5vi7XeTvmM6+O9cxZu+kanTU7tD4sin5nO/G8jGJhq8Hvt2Z0kUoEDRayuZLaUlYl8QuGA==",
+ "version": "7.23.4",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx/-/plugin-transform-react-jsx-7.23.4.tgz",
+ "integrity": "sha512-5xOpoPguCZCRbo/JeHlloSkTA8Bld1J/E1/kLfD1nsuiW1m8tduTA1ERCgIZokDflX/IBzKcqR3l7VlRgiIfHA==",
"dependencies": {
"@babel/helper-annotate-as-pure": "^7.22.5",
"@babel/helper-module-imports": "^7.22.15",
"@babel/helper-plugin-utils": "^7.22.5",
- "@babel/plugin-syntax-jsx": "^7.22.5",
- "@babel/types": "^7.22.15"
+ "@babel/plugin-syntax-jsx": "^7.23.3",
+ "@babel/types": "^7.23.4"
},
"engines": {
"node": ">=6.9.0"
@@ -2312,9 +982,9 @@
}
},
"node_modules/@babel/plugin-transform-react-pure-annotations": {
- "version": "7.22.5",
- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-pure-annotations/-/plugin-transform-react-pure-annotations-7.22.5.tgz",
- "integrity": "sha512-gP4k85wx09q+brArVinTXhWiyzLl9UpmGva0+mWyKxk6JZequ05x3eUcIUE+FyttPKJFRRVtAvQaJ6YF9h1ZpA==",
+ "version": "7.23.3",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-pure-annotations/-/plugin-transform-react-pure-annotations-7.23.3.tgz",
+ "integrity": "sha512-qMFdSS+TUhB7Q/3HVPnEdYJDQIk57jkntAwSuz9xfSE4n+3I+vHYCli3HoHawN1Z3RfCz/y1zXA/JXjG6cVImQ==",
"dependencies": {
"@babel/helper-annotate-as-pure": "^7.22.5",
"@babel/helper-plugin-utils": "^7.22.5"
@@ -2327,14 +997,14 @@
}
},
"node_modules/@babel/plugin-transform-typescript": {
- "version": "7.22.15",
- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typescript/-/plugin-transform-typescript-7.22.15.tgz",
- "integrity": "sha512-1uirS0TnijxvQLnlv5wQBwOX3E1wCFX7ITv+9pBV2wKEk4K+M5tqDaoNXnTH8tjEIYHLO98MwiTWO04Ggz4XuA==",
+ "version": "7.23.6",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typescript/-/plugin-transform-typescript-7.23.6.tgz",
+ "integrity": "sha512-6cBG5mBvUu4VUD04OHKnYzbuHNP8huDsD3EDqqpIpsswTDoqHCjLoHb6+QgsV1WsT2nipRqCPgxD3LXnEO7XfA==",
"dependencies": {
"@babel/helper-annotate-as-pure": "^7.22.5",
- "@babel/helper-create-class-features-plugin": "^7.22.15",
+ "@babel/helper-create-class-features-plugin": "^7.23.6",
"@babel/helper-plugin-utils": "^7.22.5",
- "@babel/plugin-syntax-typescript": "^7.22.5"
+ "@babel/plugin-syntax-typescript": "^7.23.3"
},
"engines": {
"node": ">=6.9.0"
@@ -2363,15 +1033,15 @@
}
},
"node_modules/@babel/preset-typescript": {
- "version": "7.23.2",
- "resolved": "https://registry.npmjs.org/@babel/preset-typescript/-/preset-typescript-7.23.2.tgz",
- "integrity": "sha512-u4UJc1XsS1GhIGteM8rnGiIvf9rJpiVgMEeCnwlLA7WJPC+jcXWJAGxYmeqs5hOZD8BbAfnV5ezBOxQbb4OUxA==",
+ "version": "7.23.3",
+ "resolved": "https://registry.npmjs.org/@babel/preset-typescript/-/preset-typescript-7.23.3.tgz",
+ "integrity": "sha512-17oIGVlqz6CchO9RFYn5U6ZpWRZIngayYCtrPRSgANSwC2V1Jb+iP74nVxzzXJte8b8BYxrL1yY96xfhTBrNNQ==",
"dependencies": {
"@babel/helper-plugin-utils": "^7.22.5",
"@babel/helper-validator-option": "^7.22.15",
- "@babel/plugin-syntax-jsx": "^7.22.5",
- "@babel/plugin-transform-modules-commonjs": "^7.23.0",
- "@babel/plugin-transform-typescript": "^7.22.15"
+ "@babel/plugin-syntax-jsx": "^7.23.3",
+ "@babel/plugin-transform-modules-commonjs": "^7.23.3",
+ "@babel/plugin-transform-typescript": "^7.23.3"
},
"engines": {
"node": ">=6.9.0"
@@ -2381,9 +1051,9 @@
}
},
"node_modules/@babel/runtime": {
- "version": "7.23.6",
- "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.23.6.tgz",
- "integrity": "sha512-zHd0eUrf5GZoOWVCXp6koAKQTfZV07eit6bGPmJgnZdnSAvvZee6zniW2XMF7Cmc4ISOOnPy3QaSiIJGJkVEDQ==",
+ "version": "7.23.8",
+ "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.23.8.tgz",
+ "integrity": "sha512-Y7KbAP984rn1VGMbGqKmBLio9V7y5Je9GvU4rQPCPinCyNfUcToxIXl06d59URp/F3LwinvODxab5N/G6qggkw==",
"dependencies": {
"regenerator-runtime": "^0.14.0"
},
@@ -2405,19 +1075,19 @@
}
},
"node_modules/@babel/traverse": {
- "version": "7.23.2",
- "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.23.2.tgz",
- "integrity": "sha512-azpe59SQ48qG6nu2CzcMLbxUudtN+dOM9kDbUqGq3HXUJRlo7i8fvPoxQUzYgLZ4cMVmuZgm8vvBpNeRhd6XSw==",
+ "version": "7.23.7",
+ "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.23.7.tgz",
+ "integrity": "sha512-tY3mM8rH9jM0YHFGyfC0/xf+SB5eKUu7HPj7/k3fpi9dAlsMc5YbQvDi0Sh2QTPXqMhyaAtzAr807TIyfQrmyg==",
"dependencies": {
- "@babel/code-frame": "^7.22.13",
- "@babel/generator": "^7.23.0",
+ "@babel/code-frame": "^7.23.5",
+ "@babel/generator": "^7.23.6",
"@babel/helper-environment-visitor": "^7.22.20",
"@babel/helper-function-name": "^7.23.0",
"@babel/helper-hoist-variables": "^7.22.5",
"@babel/helper-split-export-declaration": "^7.22.6",
- "@babel/parser": "^7.23.0",
- "@babel/types": "^7.23.0",
- "debug": "^4.1.0",
+ "@babel/parser": "^7.23.6",
+ "@babel/types": "^7.23.6",
+ "debug": "^4.3.1",
"globals": "^11.1.0"
},
"engines": {
@@ -2433,11 +1103,11 @@
}
},
"node_modules/@babel/types": {
- "version": "7.23.0",
- "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.23.0.tgz",
- "integrity": "sha512-0oIyUfKoI3mSqMvsxBdclDwxXKXAUA8v/apZbc+iSyARYou1o8ZGDxbUYyLFoW2arqS2jDGqJuZvv1d/io1axg==",
+ "version": "7.23.6",
+ "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.23.6.tgz",
+ "integrity": "sha512-+uarb83brBzPKN38NX1MkB6vb6+mwvR6amUulqAE7ccQw1pEl+bCia9TbdG1lsnFP7lZySvUn37CHyXQdfTwzg==",
"dependencies": {
- "@babel/helper-string-parser": "^7.22.5",
+ "@babel/helper-string-parser": "^7.23.4",
"@babel/helper-validator-identifier": "^7.22.20",
"to-fast-properties": "^2.0.0"
},
@@ -2511,6 +1181,21 @@
"resolved": "https://registry.npmjs.org/@emotion/hash/-/hash-0.9.1.tgz",
"integrity": "sha512-gJB6HLm5rYwSLI6PQa+X1t5CFGrv1J1TWG+sOyMCeKz2ojaj6Fnl/rZEspogG+cvqbt4AE/2eIyD2QfLKTBNlQ=="
},
+ "node_modules/@emotion/is-prop-valid": {
+ "version": "0.8.8",
+ "resolved": "https://registry.npmjs.org/@emotion/is-prop-valid/-/is-prop-valid-0.8.8.tgz",
+ "integrity": "sha512-u5WtneEAr5IDG2Wv65yhunPSMLIpuKsbuOktRojfrEiEvRyC85LgPMZI63cr7NUqT8ZIGdSVg8ZKGxIug4lXcA==",
+ "optional": true,
+ "dependencies": {
+ "@emotion/memoize": "0.7.4"
+ }
+ },
+ "node_modules/@emotion/memoize": {
+ "version": "0.7.4",
+ "resolved": "https://registry.npmjs.org/@emotion/memoize/-/memoize-0.7.4.tgz",
+ "integrity": "sha512-Ja/Vfqe3HpuzRsG1oBtWTHk2PGZ7GR+2Vz5iYGelAw8dx32K0y7PjVuxK6z1nMpZOqAFsRUPCkK1YjJ56qJlgw==",
+ "optional": true
+ },
"node_modules/@esbuild/aix-ppc64": {
"version": "0.19.11",
"resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.19.11.tgz",
@@ -2522,7 +1207,6 @@
"os": [
"aix"
],
- "peer": true,
"engines": {
"node": ">=12"
}
@@ -2880,9 +1564,9 @@
}
},
"node_modules/@eslint/eslintrc": {
- "version": "2.1.3",
- "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.1.3.tgz",
- "integrity": "sha512-yZzuIG+jnVu6hNSzFEN07e8BxF3uAzYtQb6uDkaYZLo6oYZDCq454c5kB8zxnzfCYyP4MIuyBn10L0DqwujTmA==",
+ "version": "2.1.4",
+ "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.1.4.tgz",
+ "integrity": "sha512-269Z39MS6wVJtsoUl10L60WdkhJVdPG24Q4eZTH3nnF6lpvSShEK3wQjDX9JRWAUPvPh7COouPpU9IrqaZFvtQ==",
"dependencies": {
"ajv": "^6.12.4",
"debug": "^4.3.2",
@@ -2902,45 +1586,36 @@
}
},
"node_modules/@eslint/js": {
- "version": "8.53.0",
- "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.53.0.tgz",
- "integrity": "sha512-Kn7K8dx/5U6+cT1yEhpX1w4PCSg0M+XyRILPgvwcEBjerFWCwQj5sbr3/VmxqV0JGHCBCzyd6LxypEuehypY1w==",
+ "version": "8.56.0",
+ "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.56.0.tgz",
+ "integrity": "sha512-gMsVel9D7f2HLkBma9VbtzZRehRogVRfbr++f06nL2vnCGCNlzOD+/MUov/F4p8myyAHspEhVobgjpX64q5m6A==",
"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==",
- "peer": true,
- "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",
- "integrity": "sha512-kK1h4m36DQ0UHGj5Ah4db7R0rHemTqqO0QLvUqi1/mUUp3LuAWbWxdxSIf/XsnH9VS6rRVPLJCncjRzUvyCLXg==",
+ "version": "1.5.3",
+ "resolved": "https://registry.npmjs.org/@floating-ui/core/-/core-1.5.3.tgz",
+ "integrity": "sha512-O0WKDOo0yhJuugCx6trZQj5jVJ9yR0ystG2JaNAemYUWce+pmM6WUEFIibnWyEJKdrDxhm75NoSRME35FNaM/Q==",
"dependencies": {
- "@floating-ui/utils": "^0.1.3"
+ "@floating-ui/utils": "^0.2.0"
}
},
"node_modules/@floating-ui/dom": {
- "version": "1.5.3",
- "resolved": "https://registry.npmjs.org/@floating-ui/dom/-/dom-1.5.3.tgz",
- "integrity": "sha512-ClAbQnEqJAKCJOEbbLo5IUlZHkNszqhuxS4fHAVxRPXPya6Ysf2G8KypnYcOTpx6I8xcgF9bbHb6g/2KpbV8qA==",
+ "version": "1.5.4",
+ "resolved": "https://registry.npmjs.org/@floating-ui/dom/-/dom-1.5.4.tgz",
+ "integrity": "sha512-jByEsHIY+eEdCjnTVu+E3ephzTOzkQ8hgUfGwos+bg7NlH33Zc5uO+QHz1mrQUOgIKKDD1RtS201P9NvAfq3XQ==",
"dependencies": {
- "@floating-ui/core": "^1.4.2",
- "@floating-ui/utils": "^0.1.3"
+ "@floating-ui/core": "^1.5.3",
+ "@floating-ui/utils": "^0.2.0"
}
},
"node_modules/@floating-ui/react-dom": {
- "version": "2.0.4",
- "resolved": "https://registry.npmjs.org/@floating-ui/react-dom/-/react-dom-2.0.4.tgz",
- "integrity": "sha512-CF8k2rgKeh/49UrnIBs4BdxPUV6vize/Db1d/YbCLyp9GiVZ0BEwf5AiDSxJRCr6yOkGqTFHtmrULxkEfYZ7dQ==",
+ "version": "2.0.6",
+ "resolved": "https://registry.npmjs.org/@floating-ui/react-dom/-/react-dom-2.0.6.tgz",
+ "integrity": "sha512-IB8aCRFxr8nFkdYZgH+Otd9EVQPJoynxeFRGTB8voPoZMRWo8XjYuCRgpI1btvuKY69XMiLnW+ym7zoBHM90Rw==",
"dependencies": {
- "@floating-ui/dom": "^1.5.1"
+ "@floating-ui/dom": "^1.5.4"
},
"peerDependencies": {
"react": ">=16.8.0",
@@ -2948,16 +1623,16 @@
}
},
"node_modules/@floating-ui/utils": {
- "version": "0.1.6",
- "resolved": "https://registry.npmjs.org/@floating-ui/utils/-/utils-0.1.6.tgz",
- "integrity": "sha512-OfX7E2oUDYxtBvsuS4e/jSn4Q9Qb6DzgeYtsAdkPZ47znpoNsMgZw0+tVijiv3uGNR6dgNlty6r9rzIzHjtd/A=="
+ "version": "0.2.1",
+ "resolved": "https://registry.npmjs.org/@floating-ui/utils/-/utils-0.2.1.tgz",
+ "integrity": "sha512-9TANp6GPoMtYzQdt54kfAyMmz1+osLlXdg2ENroU7zzrtflTLrrC/lgrIfaSe+Wu0b89GKccT7vxXA0MoAIO+Q=="
},
"node_modules/@formatjs/ecma402-abstract": {
- "version": "1.17.2",
- "resolved": "https://registry.npmjs.org/@formatjs/ecma402-abstract/-/ecma402-abstract-1.17.2.tgz",
- "integrity": "sha512-k2mTh0m+IV1HRdU0xXM617tSQTi53tVR2muvYOsBeYcUgEAyxV1FOC7Qj279th3fBVQ+Dj6muvNJZcHSPNdbKg==",
+ "version": "1.18.2",
+ "resolved": "https://registry.npmjs.org/@formatjs/ecma402-abstract/-/ecma402-abstract-1.18.2.tgz",
+ "integrity": "sha512-+QoPW4csYALsQIl8GbN14igZzDbuwzcpWrku9nyMXlaqAlwRBgl5V+p0vWMGFqHOw37czNXaP/lEk4wbLgcmtA==",
"dependencies": {
- "@formatjs/intl-localematcher": "0.4.2",
+ "@formatjs/intl-localematcher": "0.5.4",
"tslib": "^2.4.0"
}
},
@@ -2970,37 +1645,38 @@
}
},
"node_modules/@formatjs/icu-messageformat-parser": {
- "version": "2.7.0",
- "resolved": "https://registry.npmjs.org/@formatjs/icu-messageformat-parser/-/icu-messageformat-parser-2.7.0.tgz",
- "integrity": "sha512-7uqC4C2RqOaBQtcjqXsSpGRYVn+ckjhNga5T/otFh6MgxRrCJQqvjfbrGLpX1Lcbxdm5WH3Z2WZqt1+Tm/cn/Q==",
+ "version": "2.7.5",
+ "resolved": "https://registry.npmjs.org/@formatjs/icu-messageformat-parser/-/icu-messageformat-parser-2.7.5.tgz",
+ "integrity": "sha512-zCB53HdGDibh6/2ISEN3TGsFQruQ6gGKMFV94qHNyVrs0tNO6ncKhV0vq0n3Ydz8ipIQ2GaYAvfCoimNOVvKqA==",
"dependencies": {
- "@formatjs/ecma402-abstract": "1.17.2",
- "@formatjs/icu-skeleton-parser": "1.6.2",
+ "@formatjs/ecma402-abstract": "1.18.2",
+ "@formatjs/icu-skeleton-parser": "1.7.2",
"tslib": "^2.4.0"
}
},
"node_modules/@formatjs/icu-skeleton-parser": {
- "version": "1.6.2",
- "resolved": "https://registry.npmjs.org/@formatjs/icu-skeleton-parser/-/icu-skeleton-parser-1.6.2.tgz",
- "integrity": "sha512-VtB9Slo4ZL6QgtDFJ8Injvscf0xiDd4bIV93SOJTBjUF4xe2nAWOoSjLEtqIG+hlIs1sNrVKAaFo3nuTI4r5ZA==",
+ "version": "1.7.2",
+ "resolved": "https://registry.npmjs.org/@formatjs/icu-skeleton-parser/-/icu-skeleton-parser-1.7.2.tgz",
+ "integrity": "sha512-nlIXVv280bjGW3ail5Np1+xgGKBnMhwQQIivgbk9xX0af8ESQO+y2VW9TOY7mCrs3WH786uVpZlLimXAlXH7SA==",
"dependencies": {
- "@formatjs/ecma402-abstract": "1.17.2",
+ "@formatjs/ecma402-abstract": "1.18.2",
"tslib": "^2.4.0"
}
},
"node_modules/@formatjs/intl-localematcher": {
- "version": "0.4.2",
- "resolved": "https://registry.npmjs.org/@formatjs/intl-localematcher/-/intl-localematcher-0.4.2.tgz",
- "integrity": "sha512-BGdtJFmaNJy5An/Zan4OId/yR9Ih1OojFjcduX/xOvq798OgWSyDtd6Qd5jqJXwJs1ipe4Fxu9+cshic5Ox2tA==",
+ "version": "0.5.4",
+ "resolved": "https://registry.npmjs.org/@formatjs/intl-localematcher/-/intl-localematcher-0.5.4.tgz",
+ "integrity": "sha512-zTwEpWOzZ2CiKcB93BLngUX59hQkuZjT2+SAQEscSm52peDW/getsawMcWF1rGRpMCX6D7nSJA3CzJ8gn13N/g==",
"dependencies": {
"tslib": "^2.4.0"
}
},
"node_modules/@headlessui/react": {
- "version": "1.7.17",
- "resolved": "https://registry.npmjs.org/@headlessui/react/-/react-1.7.17.tgz",
- "integrity": "sha512-4am+tzvkqDSSgiwrsEpGWqgGo9dz8qU5M3znCkC4PgkpY4HcCZzEDEvozltGGGHIKl9jbXbZPSH5TWn4sWJdow==",
+ "version": "1.7.18",
+ "resolved": "https://registry.npmjs.org/@headlessui/react/-/react-1.7.18.tgz",
+ "integrity": "sha512-4i5DOrzwN4qSgNsL4Si61VMkUcWbcSKueUV7sFhpHzQcSShdlHENE5+QBntMSRvHt8NyoFO2AGG8si9lq+w4zQ==",
"dependencies": {
+ "@tanstack/react-virtual": "^3.0.0-beta.60",
"client-only": "^0.0.1"
},
"engines": {
@@ -3012,12 +1688,12 @@
}
},
"node_modules/@humanwhocodes/config-array": {
- "version": "0.11.13",
- "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.13.tgz",
- "integrity": "sha512-JSBDMiDKSzQVngfRjOdFXgFfklaXI4K9nLF49Auh21lmBWRLIK3+xTErTWD4KU54pb6coM6ESE7Awz/FNU3zgQ==",
+ "version": "0.11.14",
+ "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.14.tgz",
+ "integrity": "sha512-3T8LkOmg45BV5FICb15QQMsyUSWrQ8AygVfC7ZG32zOalnqrilm018ZVCw0eapXux8FtA33q8PSRSstjee3jSg==",
"dependencies": {
- "@humanwhocodes/object-schema": "^2.0.1",
- "debug": "^4.1.1",
+ "@humanwhocodes/object-schema": "^2.0.2",
+ "debug": "^4.3.1",
"minimatch": "^3.0.5"
},
"engines": {
@@ -3037,9 +1713,9 @@
}
},
"node_modules/@humanwhocodes/object-schema": {
- "version": "2.0.1",
- "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-2.0.1.tgz",
- "integrity": "sha512-dvuCeX5fC9dXgJn9t+X5atfmgQAzUOWqS1254Gh0m6i8wKd10ebXkfNKiRK+1GWi/yTvvLDHpoxLr0xxxeslWw=="
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-2.0.2.tgz",
+ "integrity": "sha512-6EwiSjwWYP7pTckG6I5eyFANjPhmPjUX9JRLUSfNPC7FX7zK9gyZAfUEaECL6ALTpGX5AjnBq3C9XmVWPitNpw=="
},
"node_modules/@internationalized/date": {
"version": "3.5.1",
@@ -3627,9 +2303,9 @@
"integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg=="
},
"node_modules/@jridgewell/trace-mapping": {
- "version": "0.3.20",
- "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.20.tgz",
- "integrity": "sha512-R8LcPeWZol2zR8mmH3JeKQ6QRCFb7XgUhV9ZlGhHLGyg4wpPiPZNQOOWhFZhxKw8u//yTbNGI42Bx/3paXEQ+Q==",
+ "version": "0.3.22",
+ "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.22.tgz",
+ "integrity": "sha512-Wf963MzWtA2sjrNt+g18IAln9lKnlRp+K2eH4jjIoF1wYeq3aMREpG09xhlhdzS0EjwU7qmUJYangWa+151vZw==",
"dependencies": {
"@jridgewell/resolve-uri": "^3.1.0",
"@jridgewell/sourcemap-codec": "^1.4.14"
@@ -4598,30 +3274,6 @@
}
}
},
- "node_modules/@radix-ui/react-dialog/node_modules/react-remove-scroll": {
- "version": "2.5.5",
- "resolved": "https://registry.npmjs.org/react-remove-scroll/-/react-remove-scroll-2.5.5.tgz",
- "integrity": "sha512-ImKhrzJJsyXJfBZ4bzu8Bwpka14c/fQt0k+cyFp/PBhTfyDnU5hjOtM4AG/0AMyy8oKzOTR0lDgJIM7pYXI0kw==",
- "dependencies": {
- "react-remove-scroll-bar": "^2.3.3",
- "react-style-singleton": "^2.2.1",
- "tslib": "^2.1.0",
- "use-callback-ref": "^1.3.0",
- "use-sidecar": "^1.1.2"
- },
- "engines": {
- "node": ">=10"
- },
- "peerDependencies": {
- "@types/react": "^16.8.0 || ^17.0.0 || ^18.0.0",
- "react": "^16.8.0 || ^17.0.0 || ^18.0.0"
- },
- "peerDependenciesMeta": {
- "@types/react": {
- "optional": true
- }
- }
- },
"node_modules/@radix-ui/react-direction": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/@radix-ui/react-direction/-/react-direction-1.0.1.tgz",
@@ -4826,30 +3478,6 @@
}
}
},
- "node_modules/@radix-ui/react-menu/node_modules/react-remove-scroll": {
- "version": "2.5.5",
- "resolved": "https://registry.npmjs.org/react-remove-scroll/-/react-remove-scroll-2.5.5.tgz",
- "integrity": "sha512-ImKhrzJJsyXJfBZ4bzu8Bwpka14c/fQt0k+cyFp/PBhTfyDnU5hjOtM4AG/0AMyy8oKzOTR0lDgJIM7pYXI0kw==",
- "dependencies": {
- "react-remove-scroll-bar": "^2.3.3",
- "react-style-singleton": "^2.2.1",
- "tslib": "^2.1.0",
- "use-callback-ref": "^1.3.0",
- "use-sidecar": "^1.1.2"
- },
- "engines": {
- "node": ">=10"
- },
- "peerDependencies": {
- "@types/react": "^16.8.0 || ^17.0.0 || ^18.0.0",
- "react": "^16.8.0 || ^17.0.0 || ^18.0.0"
- },
- "peerDependenciesMeta": {
- "@types/react": {
- "optional": true
- }
- }
- },
"node_modules/@radix-ui/react-popover": {
"version": "1.0.7",
"resolved": "https://registry.npmjs.org/@radix-ui/react-popover/-/react-popover-1.0.7.tgz",
@@ -4887,30 +3515,6 @@
}
}
},
- "node_modules/@radix-ui/react-popover/node_modules/react-remove-scroll": {
- "version": "2.5.5",
- "resolved": "https://registry.npmjs.org/react-remove-scroll/-/react-remove-scroll-2.5.5.tgz",
- "integrity": "sha512-ImKhrzJJsyXJfBZ4bzu8Bwpka14c/fQt0k+cyFp/PBhTfyDnU5hjOtM4AG/0AMyy8oKzOTR0lDgJIM7pYXI0kw==",
- "dependencies": {
- "react-remove-scroll-bar": "^2.3.3",
- "react-style-singleton": "^2.2.1",
- "tslib": "^2.1.0",
- "use-callback-ref": "^1.3.0",
- "use-sidecar": "^1.1.2"
- },
- "engines": {
- "node": ">=10"
- },
- "peerDependencies": {
- "@types/react": "^16.8.0 || ^17.0.0 || ^18.0.0",
- "react": "^16.8.0 || ^17.0.0 || ^18.0.0"
- },
- "peerDependenciesMeta": {
- "@types/react": {
- "optional": true
- }
- }
- },
"node_modules/@radix-ui/react-popper": {
"version": "1.1.3",
"resolved": "https://registry.npmjs.org/@radix-ui/react-popper/-/react-popper-1.1.3.tgz",
@@ -5122,48 +3726,24 @@
"@radix-ui/react-slot": "1.0.2",
"@radix-ui/react-use-callback-ref": "1.0.1",
"@radix-ui/react-use-controllable-state": "1.0.1",
- "@radix-ui/react-use-layout-effect": "1.0.1",
- "@radix-ui/react-use-previous": "1.0.1",
- "@radix-ui/react-visually-hidden": "1.0.3",
- "aria-hidden": "^1.1.1",
- "react-remove-scroll": "2.5.5"
- },
- "peerDependencies": {
- "@types/react": "*",
- "@types/react-dom": "*",
- "react": "^16.8 || ^17.0 || ^18.0",
- "react-dom": "^16.8 || ^17.0 || ^18.0"
- },
- "peerDependenciesMeta": {
- "@types/react": {
- "optional": true
- },
- "@types/react-dom": {
- "optional": true
- }
- }
- },
- "node_modules/@radix-ui/react-select/node_modules/react-remove-scroll": {
- "version": "2.5.5",
- "resolved": "https://registry.npmjs.org/react-remove-scroll/-/react-remove-scroll-2.5.5.tgz",
- "integrity": "sha512-ImKhrzJJsyXJfBZ4bzu8Bwpka14c/fQt0k+cyFp/PBhTfyDnU5hjOtM4AG/0AMyy8oKzOTR0lDgJIM7pYXI0kw==",
- "dependencies": {
- "react-remove-scroll-bar": "^2.3.3",
- "react-style-singleton": "^2.2.1",
- "tslib": "^2.1.0",
- "use-callback-ref": "^1.3.0",
- "use-sidecar": "^1.1.2"
- },
- "engines": {
- "node": ">=10"
+ "@radix-ui/react-use-layout-effect": "1.0.1",
+ "@radix-ui/react-use-previous": "1.0.1",
+ "@radix-ui/react-visually-hidden": "1.0.3",
+ "aria-hidden": "^1.1.1",
+ "react-remove-scroll": "2.5.5"
},
"peerDependencies": {
- "@types/react": "^16.8.0 || ^17.0.0 || ^18.0.0",
- "react": "^16.8.0 || ^17.0.0 || ^18.0.0"
+ "@types/react": "*",
+ "@types/react-dom": "*",
+ "react": "^16.8 || ^17.0 || ^18.0",
+ "react-dom": "^16.8 || ^17.0 || ^18.0"
},
"peerDependenciesMeta": {
"@types/react": {
"optional": true
+ },
+ "@types/react-dom": {
+ "optional": true
}
}
},
@@ -6240,52 +4820,53 @@
}
},
"node_modules/@react-pdf/fns": {
- "version": "2.0.1",
- "resolved": "https://registry.npmjs.org/@react-pdf/fns/-/fns-2.0.1.tgz",
- "integrity": "sha512-/vgecczzFYBQFkgUupH+sxXhLWQtBwdwCgweyh25XOlR4NZuaMD/UVUDl4loFHhRQqDMQq37lkTcchh7zzW6ug==",
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/@react-pdf/fns/-/fns-2.1.0.tgz",
+ "integrity": "sha512-EZAvv96Ec0zxwvpL5jyVHY22FlzTQcrQn7WFzknx1BsaeF5P74m1SV2UnIfyFxrottw0H4f3n5XJjMgrR5yTYg==",
"dependencies": {
"@babel/runtime": "^7.20.13"
}
},
"node_modules/@react-pdf/font": {
- "version": "2.3.7",
- "resolved": "https://registry.npmjs.org/@react-pdf/font/-/font-2.3.7.tgz",
- "integrity": "sha512-NoCieWea6c1mCpDBoyjPbUEC1qXa+S/M7+8vYPZ71aTMgX7co3gQc2e6YKwrSQeQP+BsBq3LSVhjI2ETXfcytw==",
+ "version": "2.4.2",
+ "resolved": "https://registry.npmjs.org/@react-pdf/font/-/font-2.4.2.tgz",
+ "integrity": "sha512-p4bDluB99/Rdhy8ynPND4k335RT2bhCuV6jzwqqZkKOKZ2lG2VjE7/DJyKdFMLE+dbPuM5MDX5dDp0FQbtQT/w==",
"dependencies": {
"@babel/runtime": "^7.20.13",
- "@react-pdf/types": "^2.3.4",
+ "@react-pdf/types": "^2.4.0",
"cross-fetch": "^3.1.5",
"fontkit": "^2.0.2",
"is-url": "^1.2.4"
}
},
"node_modules/@react-pdf/image": {
- "version": "2.2.2",
- "resolved": "https://registry.npmjs.org/@react-pdf/image/-/image-2.2.2.tgz",
- "integrity": "sha512-990JvRZuhsnHyAGd7gvmhfr+4/5PAHLH9IgDstaEDLEq2eFAIQFuNM7k3D6kjKgV1mM7Jqif3CWqrcHBF3jrJw==",
+ "version": "2.3.1",
+ "resolved": "https://registry.npmjs.org/@react-pdf/image/-/image-2.3.1.tgz",
+ "integrity": "sha512-wfnbw0AGFRHIyx6I/LbHfYwD/OW8JM1ItR2H6pdY80SclgiM+jS2tOu7LOwoqCbXr9X6ReyhqqZPBLUa+hSLmA==",
"dependencies": {
"@babel/runtime": "^7.20.13",
- "@react-pdf/png-js": "^2.2.0",
- "cross-fetch": "^3.1.5"
+ "@react-pdf/png-js": "^2.3.0",
+ "cross-fetch": "^3.1.5",
+ "jpeg-exif": "^1.1.4"
}
},
"node_modules/@react-pdf/layout": {
- "version": "3.6.3",
- "resolved": "https://registry.npmjs.org/@react-pdf/layout/-/layout-3.6.3.tgz",
- "integrity": "sha512-w6ACZ9o18Q5wbzsY9a4KW2Gqn6Drt3AN/kb/I6SBz/L7PAJ9rPQBIDq/s5qZJ+/WwWy33rcC8WC1givtDhjCHQ==",
+ "version": "3.10.2",
+ "resolved": "https://registry.npmjs.org/@react-pdf/layout/-/layout-3.10.2.tgz",
+ "integrity": "sha512-cZfkFb5bUZOR2LTWk3ch3bpQ53nbQSNE6oVkUPP5Qy99r1YxSdqWOrw2Z5mJLyzaN+0tf7DXhfG7HZ1bRFbgOA==",
"dependencies": {
"@babel/runtime": "^7.20.13",
- "@react-pdf/fns": "2.0.1",
- "@react-pdf/image": "^2.2.2",
- "@react-pdf/pdfkit": "^3.0.2",
- "@react-pdf/primitives": "^3.0.0",
- "@react-pdf/stylesheet": "^4.1.8",
- "@react-pdf/textkit": "^4.2.0",
- "@react-pdf/types": "^2.3.4",
- "@react-pdf/yoga": "^4.1.2",
+ "@react-pdf/fns": "2.1.0",
+ "@react-pdf/image": "^2.3.1",
+ "@react-pdf/pdfkit": "^3.1.1",
+ "@react-pdf/primitives": "^3.1.1",
+ "@react-pdf/stylesheet": "^4.2.2",
+ "@react-pdf/textkit": "^4.3.0",
+ "@react-pdf/types": "^2.4.0",
"cross-fetch": "^3.1.5",
- "emoji-regex": "^10.2.1",
- "queue": "^6.0.1"
+ "emoji-regex": "^10.3.0",
+ "queue": "^6.0.1",
+ "yoga-layout": "^2.0.1"
}
},
"node_modules/@react-pdf/layout/node_modules/emoji-regex": {
@@ -6294,86 +4875,61 @@
"integrity": "sha512-QpLs9D9v9kArv4lfDEgg1X/gN5XLnf/A6l9cs8SPZLRZR3ZkY9+kwIQTxm+fsSej5UMYGE8fdoaZVIBlqG0XTw=="
},
"node_modules/@react-pdf/pdfkit": {
- "version": "3.0.2",
- "resolved": "https://registry.npmjs.org/@react-pdf/pdfkit/-/pdfkit-3.0.2.tgz",
- "integrity": "sha512-+m5rwNCwyEH6lmnZWpsQJvdqb6YaCCR0nMWrc/KKDwznuPMrGmGWyNxqCja+bQPORcHZyl6Cd/iFL0glyB3QGw==",
+ "version": "3.1.1",
+ "resolved": "https://registry.npmjs.org/@react-pdf/pdfkit/-/pdfkit-3.1.1.tgz",
+ "integrity": "sha512-woyyE10vnj9bXh+C15qFx+4MmbcS40gfwFOcGsRb4iA/bTDyVzUmfCIbxZNhbosKLULlT7IF1Leg/6zp+DgNTQ==",
"dependencies": {
"@babel/runtime": "^7.20.13",
- "@react-pdf/png-js": "^2.2.0",
+ "@react-pdf/png-js": "^2.3.0",
"browserify-zlib": "^0.2.0",
- "crypto-js": "^4.0.0",
+ "crypto-js": "^4.2.0",
"fontkit": "^2.0.2",
+ "jpeg-exif": "^1.1.4",
"vite-compatible-readable-stream": "^3.6.1"
}
},
- "node_modules/@react-pdf/pdfkit/node_modules/browserify-zlib": {
- "version": "0.2.0",
- "resolved": "https://registry.npmjs.org/browserify-zlib/-/browserify-zlib-0.2.0.tgz",
- "integrity": "sha512-Z942RysHXmJrhqk88FmKBVq/v5tqmSkDz7p54G/MGyjMnCFFnC79XWNbg+Vta8W6Wb2qtSZTSxIGkJrRpCFEiA==",
- "dependencies": {
- "pako": "~1.0.5"
- }
- },
- "node_modules/@react-pdf/pdfkit/node_modules/pako": {
- "version": "1.0.11",
- "resolved": "https://registry.npmjs.org/pako/-/pako-1.0.11.tgz",
- "integrity": "sha512-4hLB8Py4zZce5s4yd9XzopqwVv/yGNhV1Bl8NTmCq1763HeK2+EwVTv+leGeL13Dnh2wfbqowVPXCIO0z4taYw=="
- },
"node_modules/@react-pdf/png-js": {
- "version": "2.2.0",
- "resolved": "https://registry.npmjs.org/@react-pdf/png-js/-/png-js-2.2.0.tgz",
- "integrity": "sha512-csZU5lfNW73tq7s7zB/1rWXGro+Z9cQhxtsXwxS418TSszHUiM6PwddouiKJxdGhbVLjRIcuuFVa0aR5cDOC6w==",
+ "version": "2.3.0",
+ "resolved": "https://registry.npmjs.org/@react-pdf/png-js/-/png-js-2.3.0.tgz",
+ "integrity": "sha512-+HLW7JZ09P8isxFq3hJJ9ppdCyQWLErfekkQHKNdpxoVW9S3tokJmaKofTvhAy6XA4Yd1QlN9en0iJ8V5mDdQA==",
"dependencies": {
"browserify-zlib": "^0.2.0"
}
},
- "node_modules/@react-pdf/png-js/node_modules/browserify-zlib": {
- "version": "0.2.0",
- "resolved": "https://registry.npmjs.org/browserify-zlib/-/browserify-zlib-0.2.0.tgz",
- "integrity": "sha512-Z942RysHXmJrhqk88FmKBVq/v5tqmSkDz7p54G/MGyjMnCFFnC79XWNbg+Vta8W6Wb2qtSZTSxIGkJrRpCFEiA==",
- "dependencies": {
- "pako": "~1.0.5"
- }
- },
- "node_modules/@react-pdf/png-js/node_modules/pako": {
- "version": "1.0.11",
- "resolved": "https://registry.npmjs.org/pako/-/pako-1.0.11.tgz",
- "integrity": "sha512-4hLB8Py4zZce5s4yd9XzopqwVv/yGNhV1Bl8NTmCq1763HeK2+EwVTv+leGeL13Dnh2wfbqowVPXCIO0z4taYw=="
- },
"node_modules/@react-pdf/primitives": {
- "version": "3.0.1",
- "resolved": "https://registry.npmjs.org/@react-pdf/primitives/-/primitives-3.0.1.tgz",
- "integrity": "sha512-0HGcknrLNwyhxe+SZCBL29JY4M85mXKdvTZE9uhjNbADGgTc8wVnkc5+e4S/lDvugbVISXyuIhZnYwtK9eDnyQ=="
+ "version": "3.1.1",
+ "resolved": "https://registry.npmjs.org/@react-pdf/primitives/-/primitives-3.1.1.tgz",
+ "integrity": "sha512-miwjxLwTnO3IjoqkTVeTI+9CdyDggwekmSLhVCw+a/7FoQc+gF3J2dSKwsHvAcVFM0gvU8mzCeTofgw0zPDq0w=="
},
"node_modules/@react-pdf/render": {
- "version": "3.2.7",
- "resolved": "https://registry.npmjs.org/@react-pdf/render/-/render-3.2.7.tgz",
- "integrity": "sha512-fAgbbAAkVL0hpcf1vUJLHxuPjPBqZuq8nors7fCwvoatBBwOWP9fza7IDPeFKN7+ZOnfmIZzes8Kc/DNHzJohw==",
+ "version": "3.4.0",
+ "resolved": "https://registry.npmjs.org/@react-pdf/render/-/render-3.4.0.tgz",
+ "integrity": "sha512-7QX7YwNbrESvWWfhJF1jyF61S6OnKcBfXBT7tBpc+dgbk5czp7l46EL3p5kZdojLeQTcgQyfycWolWujldlJ3A==",
"dependencies": {
"@babel/runtime": "^7.20.13",
- "@react-pdf/fns": "2.0.1",
- "@react-pdf/primitives": "^3.0.0",
- "@react-pdf/textkit": "^4.2.0",
- "@react-pdf/types": "^2.3.4",
+ "@react-pdf/fns": "2.1.0",
+ "@react-pdf/primitives": "^3.1.1",
+ "@react-pdf/textkit": "^4.3.0",
+ "@react-pdf/types": "^2.4.0",
"abs-svg-path": "^0.1.1",
- "color-string": "^1.5.3",
+ "color-string": "^1.9.1",
"normalize-svg-path": "^1.1.0",
"parse-svg-path": "^0.1.2",
"svg-arc-to-cubic-bezier": "^3.2.0"
}
},
"node_modules/@react-pdf/renderer": {
- "version": "3.1.14",
- "resolved": "https://registry.npmjs.org/@react-pdf/renderer/-/renderer-3.1.14.tgz",
- "integrity": "sha512-Qk29uTamH6q+drK/YmiFbuQQ+yutesfIe+wyrsXFoUJUutIiDIaibO6zByMkhWb3M6CMt6NvG3NLHio1OF8U6Q==",
+ "version": "3.3.2",
+ "resolved": "https://registry.npmjs.org/@react-pdf/renderer/-/renderer-3.3.2.tgz",
+ "integrity": "sha512-UR6kciz+aKwqyiPdhnKJMaKxrH6vAPsNz8prgoQrIpKz6+9lMUw+6H352cFvHj/POMaVB+Gov8aDX031Ma1g5A==",
"dependencies": {
"@babel/runtime": "^7.20.13",
- "@react-pdf/font": "^2.3.7",
- "@react-pdf/layout": "^3.6.3",
- "@react-pdf/pdfkit": "^3.0.2",
- "@react-pdf/primitives": "^3.0.0",
- "@react-pdf/render": "^3.2.7",
- "@react-pdf/types": "^2.3.4",
+ "@react-pdf/font": "^2.4.2",
+ "@react-pdf/layout": "^3.10.2",
+ "@react-pdf/pdfkit": "^3.1.1",
+ "@react-pdf/primitives": "^3.1.1",
+ "@react-pdf/render": "^3.4.0",
+ "@react-pdf/types": "^2.4.0",
"events": "^3.3.0",
"object-assign": "^4.1.1",
"prop-types": "^15.6.2",
@@ -6384,52 +4940,35 @@
"react": "^16.8.6 || ^17.0.0 || ^18.0.0"
}
},
- "node_modules/@react-pdf/renderer/node_modules/scheduler": {
- "version": "0.17.0",
- "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.17.0.tgz",
- "integrity": "sha512-7rro8Io3tnCPuY4la/NuI5F2yfESpnfZyT6TtkXnSWVkcu0BCDJ+8gk5ozUaFaxpIyNuWAPXrH0yFcSi28fnDA==",
- "dependencies": {
- "loose-envify": "^1.1.0",
- "object-assign": "^4.1.1"
- }
- },
"node_modules/@react-pdf/stylesheet": {
- "version": "4.1.8",
- "resolved": "https://registry.npmjs.org/@react-pdf/stylesheet/-/stylesheet-4.1.8.tgz",
- "integrity": "sha512-/EuB9RBsH3YYRj8mwzImaul619MvX3rsHNF4h8LnlwDOuBehPA3L/fHrikfPqtJvHqK2ty3GXnkw0HG5SQpMzw==",
+ "version": "4.2.2",
+ "resolved": "https://registry.npmjs.org/@react-pdf/stylesheet/-/stylesheet-4.2.2.tgz",
+ "integrity": "sha512-2VRjp2oIXrSqYZebEMfIiFfbHeuVag8hrY2APAfCsQptvSpc6JHv/2OK1o07zxS6AkUDSyjlH6MUbEcIkwhdIA==",
"dependencies": {
"@babel/runtime": "^7.20.13",
- "@react-pdf/fns": "2.0.1",
- "@react-pdf/types": "^2.3.4",
- "color-string": "^1.5.3",
+ "@react-pdf/fns": "2.1.0",
+ "@react-pdf/types": "^2.4.0",
+ "color-string": "^1.9.1",
"hsl-to-hex": "^1.0.0",
"media-engine": "^1.0.3",
"postcss-value-parser": "^4.1.0"
}
},
"node_modules/@react-pdf/textkit": {
- "version": "4.2.0",
- "resolved": "https://registry.npmjs.org/@react-pdf/textkit/-/textkit-4.2.0.tgz",
- "integrity": "sha512-R90pEOW6NdhUx4p99iROvKmwB06IRYdXMhh0QcmUeoPOLe64ZdMfs3LZliNUWgI5fCmq71J+nv868i/EakFPDg==",
+ "version": "4.3.0",
+ "resolved": "https://registry.npmjs.org/@react-pdf/textkit/-/textkit-4.3.0.tgz",
+ "integrity": "sha512-A0bbHFxLYOh2lEFKbtgefmxlJEVbCX5dRhaI5ORwgHJNpbFOCTQyowq3h9gWXO9sSWl5GQdTTYAO35wp4oS2NQ==",
"dependencies": {
"@babel/runtime": "^7.20.13",
- "@react-pdf/fns": "2.0.1",
+ "@react-pdf/fns": "2.1.0",
"hyphen": "^1.6.4",
"unicode-properties": "^1.4.1"
}
},
"node_modules/@react-pdf/types": {
- "version": "2.3.4",
- "resolved": "https://registry.npmjs.org/@react-pdf/types/-/types-2.3.4.tgz",
- "integrity": "sha512-vGGz21BTE05EktBbotbd7fjC0Yi8A/lOSIpzd7L7aF1XY+vyIHlQVb35DWCipM1p/6XN4cr9etGAmm1e4Mtmjw=="
- },
- "node_modules/@react-pdf/yoga": {
- "version": "4.1.2",
- "resolved": "https://registry.npmjs.org/@react-pdf/yoga/-/yoga-4.1.2.tgz",
- "integrity": "sha512-OlMZkFrJDj4GyKZ70thiObwwPVZ52B7mlPyfzwa+sgwsioqHXg9nMWOO+7SQFNUbbOGagMUu0bCuTv+iXYZuaQ==",
- "dependencies": {
- "@babel/runtime": "^7.20.13"
- }
+ "version": "2.4.0",
+ "resolved": "https://registry.npmjs.org/@react-pdf/types/-/types-2.4.0.tgz",
+ "integrity": "sha512-vq+xghyedWYtVvTmKl+pwoKgHzCtWzful1YJ2vqR4w0/lhtq4RK473jLUrhgzrGgE+xnpHiNW8AkGov6bnQmkg=="
},
"node_modules/@react-stately/calendar": {
"version": "3.4.3",
@@ -7100,11 +5639,11 @@
}
},
"node_modules/@reactflow/background": {
- "version": "11.3.4",
- "resolved": "https://registry.npmjs.org/@reactflow/background/-/background-11.3.4.tgz",
- "integrity": "sha512-bgwvqWxF09chwmdkyClpYEMaewBspdwjgLbbFlLf4SpWPFMYyuvCBQrcISsvy/EDEWO9i3Uj9ktgGAhvtSQsmA==",
+ "version": "11.3.7",
+ "resolved": "https://registry.npmjs.org/@reactflow/background/-/background-11.3.7.tgz",
+ "integrity": "sha512-PhkvoFtO/NXJgFtBvfbPwdR/6/dl25egQlFhKWS3T4aYa7rh80dvf6dF3t6+JXJS4q5ToYJizD2/n8/qylo1yQ==",
"dependencies": {
- "@reactflow/core": "11.9.4",
+ "@reactflow/core": "11.10.2",
"classcat": "^5.0.3",
"zustand": "^4.4.1"
},
@@ -7114,11 +5653,11 @@
}
},
"node_modules/@reactflow/controls": {
- "version": "11.2.4",
- "resolved": "https://registry.npmjs.org/@reactflow/controls/-/controls-11.2.4.tgz",
- "integrity": "sha512-x6e5p9iHjC6gd+4SoZ3DOOp0F1MefGKQ8hT6yPVdqxfo1+rV2WhrWvrX/MCoEu12Dp7457LdLfa0giy3aho8tQ==",
+ "version": "11.2.7",
+ "resolved": "https://registry.npmjs.org/@reactflow/controls/-/controls-11.2.7.tgz",
+ "integrity": "sha512-mugzVALH/SuKlVKk+JCRm1OXQ+p8e9+k8PCTIaqL+nBl+lPF8KA4uMm8ApsOvhuSAb2A80ezewpyvYHr0qSYVA==",
"dependencies": {
- "@reactflow/core": "11.9.4",
+ "@reactflow/core": "11.10.2",
"classcat": "^5.0.3",
"zustand": "^4.4.1"
},
@@ -7128,9 +5667,9 @@
}
},
"node_modules/@reactflow/core": {
- "version": "11.9.4",
- "resolved": "https://registry.npmjs.org/@reactflow/core/-/core-11.9.4.tgz",
- "integrity": "sha512-Ko7nKPOYalwDTTbRHi2+QXDiidSAcpUzGN3G+0B+QysLZkcaPCkpkMjjHiDC4c/Z1BJBzs1FRJg/T6BXaBnYkg==",
+ "version": "11.10.2",
+ "resolved": "https://registry.npmjs.org/@reactflow/core/-/core-11.10.2.tgz",
+ "integrity": "sha512-/cbTxtFpfkIGReSVkcnQhS4Jx4VFY2AhPlJ5n0sbPtnR7OWowF9zodh5Yyzr4j1NOUoBgJ9h+UqGEwwY2dbAlw==",
"dependencies": {
"@types/d3": "^7.4.0",
"@types/d3-drag": "^3.0.1",
@@ -7148,11 +5687,11 @@
}
},
"node_modules/@reactflow/minimap": {
- "version": "11.7.4",
- "resolved": "https://registry.npmjs.org/@reactflow/minimap/-/minimap-11.7.4.tgz",
- "integrity": "sha512-Jo1R+uDey9IV7O2s3m0gK2+cZpg9M8hq2EZJb3NGfOSzMAPhj3mby0fNJIgTzycreuht0TpA51c2YfjGI3YIOw==",
+ "version": "11.7.7",
+ "resolved": "https://registry.npmjs.org/@reactflow/minimap/-/minimap-11.7.7.tgz",
+ "integrity": "sha512-Pwqw31tJ663cJur6ypqyJU33nPckvTepmz96erdQZoHsfOyLmFj4nXT7afC30DJ48lp0nfNsw+028mlf7f/h4g==",
"dependencies": {
- "@reactflow/core": "11.9.4",
+ "@reactflow/core": "11.10.2",
"@types/d3-selection": "^3.0.3",
"@types/d3-zoom": "^3.0.1",
"classcat": "^5.0.3",
@@ -7166,11 +5705,11 @@
}
},
"node_modules/@reactflow/node-resizer": {
- "version": "2.2.4",
- "resolved": "https://registry.npmjs.org/@reactflow/node-resizer/-/node-resizer-2.2.4.tgz",
- "integrity": "sha512-+p271/hAsM5M1+RQTWW/02pbNkCHeGXwxGimIlL1tMIagyuko0NX2vOz2B8jxJnPKlF09Wj18BcXBNUm3nDcSg==",
+ "version": "2.2.7",
+ "resolved": "https://registry.npmjs.org/@reactflow/node-resizer/-/node-resizer-2.2.7.tgz",
+ "integrity": "sha512-BMBstmWNiklHnnAjHu8irkiPQ8/k8nnjzqlTql4acbVhD6Tsdxx/t/saOkELmfQODqGZNiPw9+pHcAHgtE6oNQ==",
"dependencies": {
- "@reactflow/core": "11.9.4",
+ "@reactflow/core": "11.10.2",
"classcat": "^5.0.4",
"d3-drag": "^3.0.0",
"d3-selection": "^3.0.0",
@@ -7182,11 +5721,11 @@
}
},
"node_modules/@reactflow/node-toolbar": {
- "version": "1.3.4",
- "resolved": "https://registry.npmjs.org/@reactflow/node-toolbar/-/node-toolbar-1.3.4.tgz",
- "integrity": "sha512-TfcmpXHRBb2mUfzKGjburiU6FWqRME9pPFs1OwIC1z5e9BjupQhNDEKEk8XHi7PKL/mAiDfwuGXaM1BVVFuPqw==",
+ "version": "1.3.7",
+ "resolved": "https://registry.npmjs.org/@reactflow/node-toolbar/-/node-toolbar-1.3.7.tgz",
+ "integrity": "sha512-75moEQKg23YKA3A2DNSFhq719ZPmby5mpwOD+NO7ZffJ88oMS/2eY8l8qpA3hvb1PTBHDxyKazhJirW+f4t0Wg==",
"dependencies": {
- "@reactflow/core": "11.9.4",
+ "@reactflow/core": "11.10.2",
"classcat": "^5.0.3",
"zustand": "^4.4.1"
},
@@ -7240,10 +5779,9 @@
}
},
"node_modules/@remix-run/dev": {
- "version": "2.2.0",
- "resolved": "https://registry.npmjs.org/@remix-run/dev/-/dev-2.2.0.tgz",
- "integrity": "sha512-JtteMtYirQlj1Xf9FSLLjqO+owxlqJVsTESgVWdF+CR5kon2i12YjPnRx1xGtB4UGgU/yTZseMTPNhTKc5mwpQ==",
- "peer": true,
+ "version": "2.5.1",
+ "resolved": "https://registry.npmjs.org/@remix-run/dev/-/dev-2.5.1.tgz",
+ "integrity": "sha512-IrYhWANubH+WM62Wz55n8NWT5kBqfbyytXDFlP0VoZLrr1IpJf2GtaT4IA+CODMaNoeXeMACOD5Tw5/Y2bO5lA==",
"dependencies": {
"@babel/core": "^7.21.8",
"@babel/generator": "^7.21.5",
@@ -7255,9 +5793,9 @@
"@babel/types": "^7.22.5",
"@mdx-js/mdx": "^2.3.0",
"@npmcli/package-json": "^4.0.1",
- "@remix-run/node": "2.2.0",
- "@remix-run/router": "1.11.0",
- "@remix-run/server-runtime": "2.2.0",
+ "@remix-run/node": "2.5.1",
+ "@remix-run/router": "1.14.2",
+ "@remix-run/server-runtime": "2.5.1",
"@types/mdx": "^2.0.5",
"@vanilla-extract/integration": "^6.2.0",
"arg": "^5.0.1",
@@ -7280,9 +5818,7 @@
"lodash": "^4.17.21",
"lodash.debounce": "^4.0.8",
"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",
@@ -7299,7 +5835,6 @@
"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": {
@@ -7309,9 +5844,9 @@
"node": ">=18.0.0"
},
"peerDependencies": {
- "@remix-run/serve": "^2.2.0",
+ "@remix-run/serve": "^2.5.1",
"typescript": "^5.1.0",
- "vite": "^4.4.9"
+ "vite": "^5.0.0"
},
"peerDependenciesMeta": {
"@remix-run/serve": {
@@ -7336,7 +5871,6 @@
"os": [
"android"
],
- "peer": true,
"engines": {
"node": ">=12"
}
@@ -7352,7 +5886,6 @@
"os": [
"android"
],
- "peer": true,
"engines": {
"node": ">=12"
}
@@ -7368,7 +5901,6 @@
"os": [
"android"
],
- "peer": true,
"engines": {
"node": ">=12"
}
@@ -7384,7 +5916,6 @@
"os": [
"darwin"
],
- "peer": true,
"engines": {
"node": ">=12"
}
@@ -7400,7 +5931,6 @@
"os": [
"darwin"
],
- "peer": true,
"engines": {
"node": ">=12"
}
@@ -7416,7 +5946,6 @@
"os": [
"freebsd"
],
- "peer": true,
"engines": {
"node": ">=12"
}
@@ -7432,7 +5961,6 @@
"os": [
"freebsd"
],
- "peer": true,
"engines": {
"node": ">=12"
}
@@ -7448,7 +5976,6 @@
"os": [
"linux"
],
- "peer": true,
"engines": {
"node": ">=12"
}
@@ -7464,7 +5991,6 @@
"os": [
"linux"
],
- "peer": true,
"engines": {
"node": ">=12"
}
@@ -7480,7 +6006,6 @@
"os": [
"linux"
],
- "peer": true,
"engines": {
"node": ">=12"
}
@@ -7496,7 +6021,6 @@
"os": [
"linux"
],
- "peer": true,
"engines": {
"node": ">=12"
}
@@ -7512,7 +6036,6 @@
"os": [
"linux"
],
- "peer": true,
"engines": {
"node": ">=12"
}
@@ -7528,7 +6051,6 @@
"os": [
"linux"
],
- "peer": true,
"engines": {
"node": ">=12"
}
@@ -7544,7 +6066,6 @@
"os": [
"linux"
],
- "peer": true,
"engines": {
"node": ">=12"
}
@@ -7560,7 +6081,6 @@
"os": [
"linux"
],
- "peer": true,
"engines": {
"node": ">=12"
}
@@ -7576,7 +6096,6 @@
"os": [
"linux"
],
- "peer": true,
"engines": {
"node": ">=12"
}
@@ -7592,7 +6111,6 @@
"os": [
"netbsd"
],
- "peer": true,
"engines": {
"node": ">=12"
}
@@ -7608,7 +6126,6 @@
"os": [
"openbsd"
],
- "peer": true,
"engines": {
"node": ">=12"
}
@@ -7624,7 +6141,6 @@
"os": [
"sunos"
],
- "peer": true,
"engines": {
"node": ">=12"
}
@@ -7640,7 +6156,6 @@
"os": [
"win32"
],
- "peer": true,
"engines": {
"node": ">=12"
}
@@ -7656,7 +6171,6 @@
"os": [
"win32"
],
- "peer": true,
"engines": {
"node": ">=12"
}
@@ -7672,7 +6186,6 @@
"os": [
"win32"
],
- "peer": true,
"engines": {
"node": ">=12"
}
@@ -7681,7 +6194,6 @@
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz",
"integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==",
- "peer": true,
"dependencies": {
"balanced-match": "^1.0.0"
}
@@ -7691,7 +6203,6 @@
"resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.17.6.tgz",
"integrity": "sha512-TKFRp9TxrJDdRWfSsSERKEovm6v30iHnrjlcGhLBOtReE28Yp1VSBRfO3GTaOFMoxsNerx4TjrhzSuma9ha83Q==",
"hasInstallScript": true,
- "peer": true,
"bin": {
"esbuild": "bin/esbuild"
},
@@ -7727,7 +6238,6 @@
"version": "5.1.1",
"resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz",
"integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==",
- "peer": true,
"dependencies": {
"cross-spawn": "^7.0.3",
"get-stream": "^6.0.0",
@@ -7750,7 +6260,6 @@
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz",
"integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==",
- "peer": true,
"engines": {
"node": ">=10.17.0"
}
@@ -7759,7 +6268,6 @@
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz",
"integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==",
- "peer": true,
"engines": {
"node": ">=8"
},
@@ -7771,7 +6279,6 @@
"version": "3.0.2",
"resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.0.2.tgz",
"integrity": "sha512-xKqzzWXDttJuOcawBt4KnKHHIf5oQ/Cxax+0PWFG+DFDgHNAdi+TXECADI+RYiFUMmx8792xsMbbgXj4CwnP4g==",
- "peer": true,
"bin": {
"jsesc": "bin/jsesc"
},
@@ -7779,11 +6286,18 @@
"node": ">=6"
}
},
+ "node_modules/@remix-run/dev/node_modules/lilconfig": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/lilconfig/-/lilconfig-3.0.0.tgz",
+ "integrity": "sha512-K2U4W2Ff5ibV7j7ydLr+zLAkIg5JJ4lPn1Ltsdt+Tz/IjQ8buJ55pZAxoP34lqIiwtF9iAvtLv3JGv7CAyAg+g==",
+ "engines": {
+ "node": ">=14"
+ }
+ },
"node_modules/@remix-run/dev/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==",
- "peer": true,
"dependencies": {
"yallist": "^4.0.0"
},
@@ -7795,7 +6309,6 @@
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz",
"integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==",
- "peer": true,
"engines": {
"node": ">=6"
}
@@ -7804,7 +6317,6 @@
"version": "9.0.3",
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.3.tgz",
"integrity": "sha512-RHiac9mvaRw0x3AYRgDC1CxAP7HTcNrrECeA8YYJeWnpo+2Q5CegtZjaotWTWxDG3UeGA1coE05iH1mPjT/2mg==",
- "peer": true,
"dependencies": {
"brace-expansion": "^2.0.1"
},
@@ -7815,31 +6327,10 @@
"url": "https://github.com/sponsors/isaacs"
}
},
- "node_modules/@remix-run/dev/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==",
- "peer": true,
- "dependencies": {
- "whatwg-url": "^5.0.0"
- },
- "engines": {
- "node": "4.x || >=6.0.0"
- },
- "peerDependencies": {
- "encoding": "^0.1.0"
- },
- "peerDependenciesMeta": {
- "encoding": {
- "optional": true
- }
- }
- },
"node_modules/@remix-run/dev/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==",
- "peer": true,
"dependencies": {
"path-key": "^3.0.0"
},
@@ -7851,7 +6342,6 @@
"version": "5.1.2",
"resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz",
"integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==",
- "peer": true,
"dependencies": {
"mimic-fn": "^2.1.0"
},
@@ -7863,21 +6353,26 @@
}
},
"node_modules/@remix-run/dev/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==",
- "peer": true,
+ "version": "4.0.2",
+ "resolved": "https://registry.npmjs.org/postcss-load-config/-/postcss-load-config-4.0.2.tgz",
+ "integrity": "sha512-bSVhyJGL00wMVoPUzAVAnbEoWyqRxkjv64tUl427SKnPrENtq6hJwUojroMz2VB+Q1edmi4IfrAPpami5VVgMQ==",
+ "funding": [
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/postcss/"
+ },
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/ai"
+ }
+ ],
"dependencies": {
- "lilconfig": "^2.0.5",
- "yaml": "^2.1.1"
+ "lilconfig": "^3.0.0",
+ "yaml": "^2.3.4"
},
"engines": {
"node": ">= 14"
},
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/postcss/"
- },
"peerDependencies": {
"postcss": ">=8.0.9",
"ts-node": ">=9.0.0"
@@ -7895,7 +6390,6 @@
"version": "7.5.4",
"resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz",
"integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==",
- "peer": true,
"dependencies": {
"lru-cache": "^6.0.0"
},
@@ -7910,19 +6404,80 @@
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz",
"integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==",
- "peer": true,
"engines": {
"node": ">=6"
}
},
+ "node_modules/@remix-run/dev/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"
+ },
+ "peerDependenciesMeta": {
+ "bufferutil": {
+ "optional": true
+ },
+ "utf-8-validate": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@remix-run/dev/node_modules/yaml": {
+ "version": "2.3.4",
+ "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.3.4.tgz",
+ "integrity": "sha512-8aAvwVUSHpfEqTQ4w/KMlf3HcRdt50E5ODIQJBw1fQ5RL34xabzxtUlzTXVqc4rkZsPbvrXKWnABCD7kWSmocA==",
+ "engines": {
+ "node": ">= 14"
+ }
+ },
+ "node_modules/@remix-run/eslint-config": {
+ "version": "2.5.1",
+ "resolved": "https://registry.npmjs.org/@remix-run/eslint-config/-/eslint-config-2.5.1.tgz",
+ "integrity": "sha512-PpLj0QSd2NZ12KdTA2QYPd/FK3Szu9Np7kTmx26VxDZJTzQYSgGb5i2O9uby+j2sD68zR/+EAYaIcOlq66ekJw==",
+ "dependencies": {
+ "@babel/core": "^7.21.8",
+ "@babel/eslint-parser": "^7.21.8",
+ "@babel/preset-react": "^7.18.6",
+ "@rushstack/eslint-patch": "^1.2.0",
+ "@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"
+ },
+ "engines": {
+ "node": ">=18.0.0"
+ },
+ "peerDependencies": {
+ "eslint": "^8.0.0",
+ "react": "^18.0.0",
+ "typescript": "^5.1.0"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
"node_modules/@remix-run/express": {
- "version": "2.2.0",
- "resolved": "https://registry.npmjs.org/@remix-run/express/-/express-2.2.0.tgz",
- "integrity": "sha512-ztiQxiRCVAeo5UiYf/GiH3ON57V/WGX+RAjuIX1vZvlrtuupPIkfOWfxgFD3osgOuI2CIdvkHbm9No4cPOWMXw==",
- "optional": true,
- "peer": true,
+ "version": "2.5.1",
+ "resolved": "https://registry.npmjs.org/@remix-run/express/-/express-2.5.1.tgz",
+ "integrity": "sha512-ISaf2hzHxDTS1hNsOovRoSfIQC29m4ogzXvBC6xp2BuJj0K8R0yQ4RFD4+qUFEUnS2n6MyWyjFQRhOC6PhQhRw==",
"dependencies": {
- "@remix-run/node": "2.2.0"
+ "@remix-run/node": "2.5.1"
},
"engines": {
"node": ">=18.0.0"
@@ -7938,13 +6493,12 @@
}
},
"node_modules/@remix-run/node": {
- "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==",
- "peer": true,
+ "version": "2.5.1",
+ "resolved": "https://registry.npmjs.org/@remix-run/node/-/node-2.5.1.tgz",
+ "integrity": "sha512-UI442xzHAiokmsfrYOabMQB024+IizmRhZBGcNa42QjJWsNqogy1bNwYhzEpB6oQEB1wF3vwOKK1AD1/iYA/9A==",
"dependencies": {
- "@remix-run/server-runtime": "2.2.0",
- "@remix-run/web-fetch": "^4.4.1",
+ "@remix-run/server-runtime": "2.5.1",
+ "@remix-run/web-fetch": "^4.4.2",
"@remix-run/web-file": "^3.1.0",
"@remix-run/web-stream": "^1.1.0",
"@web3-storage/multipart-parser": "^1.0.0",
@@ -7965,14 +6519,14 @@
}
},
"node_modules/@remix-run/react": {
- "version": "2.2.0",
- "resolved": "https://registry.npmjs.org/@remix-run/react/-/react-2.2.0.tgz",
- "integrity": "sha512-1nD5ihI0A1wUpFr9Eo9bquEtqjhjvg1OwFF7qDXXHgQ4Zh13y3MKO5dRmHf+Os999o0vqVJ+xSnVPN+Vbco3uA==",
- "peer": true,
+ "version": "2.5.1",
+ "resolved": "https://registry.npmjs.org/@remix-run/react/-/react-2.5.1.tgz",
+ "integrity": "sha512-MNXHLj4Iu9Iyi+3uY61JZJ1Rtx2nM/z11j9AtwQdEADkh1/t9GruhtT/8VLplToOl0qWZKItboWScKf6uRQsrw==",
"dependencies": {
- "@remix-run/router": "1.11.0",
- "@remix-run/server-runtime": "2.2.0",
- "react-router-dom": "6.18.0"
+ "@remix-run/router": "1.14.2",
+ "@remix-run/server-runtime": "2.5.1",
+ "react-router": "6.21.3",
+ "react-router-dom": "6.21.3"
},
"engines": {
"node": ">=18.0.0"
@@ -7989,23 +6543,20 @@
}
},
"node_modules/@remix-run/router": {
- "version": "1.11.0",
- "resolved": "https://registry.npmjs.org/@remix-run/router/-/router-1.11.0.tgz",
- "integrity": "sha512-BHdhcWgeiudl91HvVa2wxqZjSHbheSgIiDvxrF1VjFzBzpTtuDPkOdOi3Iqvc08kXtFkLjhbS+ML9aM8mJS+wQ==",
- "peer": true,
+ "version": "1.14.2",
+ "resolved": "https://registry.npmjs.org/@remix-run/router/-/router-1.14.2.tgz",
+ "integrity": "sha512-ACXpdMM9hmKZww21yEqWwiLws/UPLhNKvimN8RrYSqPSvB3ov7sLvAcfvaxePeLvccTQKGdkDIhLYApZVDFuKg==",
"engines": {
"node": ">=14.0.0"
}
},
"node_modules/@remix-run/serve": {
- "version": "2.2.0",
- "resolved": "https://registry.npmjs.org/@remix-run/serve/-/serve-2.2.0.tgz",
- "integrity": "sha512-hUdxQeb/KwIiJTaW5w6OFgcF8lEucafxOkZDH66XYKdUAW4Mj300+gG8R0f20xdnf0Ud7PnhdVjkMhVNETyXqw==",
- "optional": true,
- "peer": true,
+ "version": "2.5.1",
+ "resolved": "https://registry.npmjs.org/@remix-run/serve/-/serve-2.5.1.tgz",
+ "integrity": "sha512-r1IWfirwkLrxADd8uFUIpLR1wMU8VeRI4ED4SpbhrKwqODLrYtv5irzjei+r/w0y0Oob8DMHnYxg03UY4T7ejg==",
"dependencies": {
- "@remix-run/express": "2.2.0",
- "@remix-run/node": "2.2.0",
+ "@remix-run/express": "2.5.1",
+ "@remix-run/node": "2.5.1",
"chokidar": "^3.5.3",
"compression": "^1.7.4",
"express": "^4.17.1",
@@ -8021,15 +6572,14 @@
}
},
"node_modules/@remix-run/server-runtime": {
- "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==",
- "peer": true,
+ "version": "2.5.1",
+ "resolved": "https://registry.npmjs.org/@remix-run/server-runtime/-/server-runtime-2.5.1.tgz",
+ "integrity": "sha512-bP31jrVbYTJ2eP5sxZfDgT1YyXzDlzsfMxGYVzpaoLCYDJAekq1QpHLLXKGOXhmyb46O9rdhlQKfwD6WpAxr3A==",
"dependencies": {
- "@remix-run/router": "1.11.0",
- "@types/cookie": "^0.4.1",
+ "@remix-run/router": "1.14.2",
+ "@types/cookie": "^0.6.0",
"@web3-storage/multipart-parser": "^1.0.0",
- "cookie": "^0.4.1",
+ "cookie": "^0.6.0",
"set-cookie-parser": "^2.4.8",
"source-map": "^0.7.3"
},
@@ -8049,7 +6599,6 @@
"version": "0.7.4",
"resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.4.tgz",
"integrity": "sha512-l3BikUxvPOcn5E74dZiq5BGsTb5yEwhaTSzccU6t4sDOH8NWJCstKO5QT2CvtFoK6F0saL7p9xHAqHOlCPJygA==",
- "peer": true,
"engines": {
"node": ">= 8"
}
@@ -8156,178 +6705,165 @@
}
},
"node_modules/@rollup/rollup-android-arm-eabi": {
- "version": "4.9.5",
- "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.9.5.tgz",
- "integrity": "sha512-idWaG8xeSRCfRq9KpRysDHJ/rEHBEXcHuJ82XY0yYFIWnLMjZv9vF/7DOq8djQ2n3Lk6+3qfSH8AqlmHlmi1MA==",
+ "version": "4.9.6",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.9.6.tgz",
+ "integrity": "sha512-MVNXSSYN6QXOulbHpLMKYi60ppyO13W9my1qogeiAqtjb2yR4LSmfU2+POvDkLzhjYLXz9Rf9+9a3zFHW1Lecg==",
"cpu": [
"arm"
],
"optional": true,
"os": [
"android"
- ],
- "peer": true
+ ]
},
"node_modules/@rollup/rollup-android-arm64": {
- "version": "4.9.5",
- "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.9.5.tgz",
- "integrity": "sha512-f14d7uhAMtsCGjAYwZGv6TwuS3IFaM4ZnGMUn3aCBgkcHAYErhV1Ad97WzBvS2o0aaDv4mVz+syiN0ElMyfBPg==",
+ "version": "4.9.6",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.9.6.tgz",
+ "integrity": "sha512-T14aNLpqJ5wzKNf5jEDpv5zgyIqcpn1MlwCrUXLrwoADr2RkWA0vOWP4XxbO9aiO3dvMCQICZdKeDrFl7UMClw==",
"cpu": [
"arm64"
],
"optional": true,
"os": [
"android"
- ],
- "peer": true
+ ]
},
"node_modules/@rollup/rollup-darwin-arm64": {
- "version": "4.9.5",
- "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.9.5.tgz",
- "integrity": "sha512-ndoXeLx455FffL68OIUrVr89Xu1WLzAG4n65R8roDlCoYiQcGGg6MALvs2Ap9zs7AHg8mpHtMpwC8jBBjZrT/w==",
+ "version": "4.9.6",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.9.6.tgz",
+ "integrity": "sha512-CqNNAyhRkTbo8VVZ5R85X73H3R5NX9ONnKbXuHisGWC0qRbTTxnF1U4V9NafzJbgGM0sHZpdO83pLPzq8uOZFw==",
"cpu": [
"arm64"
],
"optional": true,
"os": [
"darwin"
- ],
- "peer": true
+ ]
},
"node_modules/@rollup/rollup-darwin-x64": {
- "version": "4.9.5",
- "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.9.5.tgz",
- "integrity": "sha512-UmElV1OY2m/1KEEqTlIjieKfVwRg0Zwg4PLgNf0s3glAHXBN99KLpw5A5lrSYCa1Kp63czTpVll2MAqbZYIHoA==",
+ "version": "4.9.6",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.9.6.tgz",
+ "integrity": "sha512-zRDtdJuRvA1dc9Mp6BWYqAsU5oeLixdfUvkTHuiYOHwqYuQ4YgSmi6+/lPvSsqc/I0Omw3DdICx4Tfacdzmhog==",
"cpu": [
"x64"
],
"optional": true,
"os": [
"darwin"
- ],
- "peer": true
+ ]
},
"node_modules/@rollup/rollup-linux-arm-gnueabihf": {
- "version": "4.9.5",
- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.9.5.tgz",
- "integrity": "sha512-Q0LcU61v92tQB6ae+udZvOyZ0wfpGojtAKrrpAaIqmJ7+psq4cMIhT/9lfV6UQIpeItnq/2QDROhNLo00lOD1g==",
+ "version": "4.9.6",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.9.6.tgz",
+ "integrity": "sha512-oNk8YXDDnNyG4qlNb6is1ojTOGL/tRhbbKeE/YuccItzerEZT68Z9gHrY3ROh7axDc974+zYAPxK5SH0j/G+QQ==",
"cpu": [
"arm"
],
"optional": true,
"os": [
"linux"
- ],
- "peer": true
+ ]
},
"node_modules/@rollup/rollup-linux-arm64-gnu": {
- "version": "4.9.5",
- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.9.5.tgz",
- "integrity": "sha512-dkRscpM+RrR2Ee3eOQmRWFjmV/payHEOrjyq1VZegRUa5OrZJ2MAxBNs05bZuY0YCtpqETDy1Ix4i/hRqX98cA==",
+ "version": "4.9.6",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.9.6.tgz",
+ "integrity": "sha512-Z3O60yxPtuCYobrtzjo0wlmvDdx2qZfeAWTyfOjEDqd08kthDKexLpV97KfAeUXPosENKd8uyJMRDfFMxcYkDQ==",
"cpu": [
"arm64"
],
"optional": true,
"os": [
"linux"
- ],
- "peer": true
+ ]
},
"node_modules/@rollup/rollup-linux-arm64-musl": {
- "version": "4.9.5",
- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.9.5.tgz",
- "integrity": "sha512-QaKFVOzzST2xzY4MAmiDmURagWLFh+zZtttuEnuNn19AiZ0T3fhPyjPPGwLNdiDT82ZE91hnfJsUiDwF9DClIQ==",
+ "version": "4.9.6",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.9.6.tgz",
+ "integrity": "sha512-gpiG0qQJNdYEVad+1iAsGAbgAnZ8j07FapmnIAQgODKcOTjLEWM9sRb+MbQyVsYCnA0Im6M6QIq6ax7liws6eQ==",
"cpu": [
"arm64"
],
"optional": true,
"os": [
"linux"
- ],
- "peer": true
+ ]
},
"node_modules/@rollup/rollup-linux-riscv64-gnu": {
- "version": "4.9.5",
- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.9.5.tgz",
- "integrity": "sha512-HeGqmRJuyVg6/X6MpE2ur7GbymBPS8Np0S/vQFHDmocfORT+Zt76qu+69NUoxXzGqVP1pzaY6QIi0FJWLC3OPA==",
+ "version": "4.9.6",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.9.6.tgz",
+ "integrity": "sha512-+uCOcvVmFUYvVDr27aiyun9WgZk0tXe7ThuzoUTAukZJOwS5MrGbmSlNOhx1j80GdpqbOty05XqSl5w4dQvcOA==",
"cpu": [
"riscv64"
],
"optional": true,
"os": [
"linux"
- ],
- "peer": true
+ ]
},
"node_modules/@rollup/rollup-linux-x64-gnu": {
- "version": "4.9.5",
- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.9.5.tgz",
- "integrity": "sha512-Dq1bqBdLaZ1Gb/l2e5/+o3B18+8TI9ANlA1SkejZqDgdU/jK/ThYaMPMJpVMMXy2uRHvGKbkz9vheVGdq3cJfA==",
+ "version": "4.9.6",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.9.6.tgz",
+ "integrity": "sha512-HUNqM32dGzfBKuaDUBqFB7tP6VMN74eLZ33Q9Y1TBqRDn+qDonkAUyKWwF9BR9unV7QUzffLnz9GrnKvMqC/fw==",
"cpu": [
"x64"
],
"optional": true,
"os": [
"linux"
- ],
- "peer": true
+ ]
},
"node_modules/@rollup/rollup-linux-x64-musl": {
- "version": "4.9.5",
- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.9.5.tgz",
- "integrity": "sha512-ezyFUOwldYpj7AbkwyW9AJ203peub81CaAIVvckdkyH8EvhEIoKzaMFJj0G4qYJ5sw3BpqhFrsCc30t54HV8vg==",
+ "version": "4.9.6",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.9.6.tgz",
+ "integrity": "sha512-ch7M+9Tr5R4FK40FHQk8VnML0Szi2KRujUgHXd/HjuH9ifH72GUmw6lStZBo3c3GB82vHa0ZoUfjfcM7JiiMrQ==",
"cpu": [
"x64"
],
"optional": true,
"os": [
"linux"
- ],
- "peer": true
+ ]
},
"node_modules/@rollup/rollup-win32-arm64-msvc": {
- "version": "4.9.5",
- "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.9.5.tgz",
- "integrity": "sha512-aHSsMnUw+0UETB0Hlv7B/ZHOGY5bQdwMKJSzGfDfvyhnpmVxLMGnQPGNE9wgqkLUs3+gbG1Qx02S2LLfJ5GaRQ==",
+ "version": "4.9.6",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.9.6.tgz",
+ "integrity": "sha512-VD6qnR99dhmTQ1mJhIzXsRcTBvTjbfbGGwKAHcu+52cVl15AC/kplkhxzW/uT0Xl62Y/meBKDZvoJSJN+vTeGA==",
"cpu": [
"arm64"
],
"optional": true,
"os": [
"win32"
- ],
- "peer": true
+ ]
},
"node_modules/@rollup/rollup-win32-ia32-msvc": {
- "version": "4.9.5",
- "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.9.5.tgz",
- "integrity": "sha512-AiqiLkb9KSf7Lj/o1U3SEP9Zn+5NuVKgFdRIZkvd4N0+bYrTOovVd0+LmYCPQGbocT4kvFyK+LXCDiXPBF3fyA==",
+ "version": "4.9.6",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.9.6.tgz",
+ "integrity": "sha512-J9AFDq/xiRI58eR2NIDfyVmTYGyIZmRcvcAoJ48oDld/NTR8wyiPUu2X/v1navJ+N/FGg68LEbX3Ejd6l8B7MQ==",
"cpu": [
"ia32"
],
"optional": true,
"os": [
"win32"
- ],
- "peer": true
+ ]
},
"node_modules/@rollup/rollup-win32-x64-msvc": {
- "version": "4.9.5",
- "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.9.5.tgz",
- "integrity": "sha512-1q+mykKE3Vot1kaFJIDoUFv5TuW+QQVaf2FmTT9krg86pQrGStOSJJ0Zil7CFagyxDuouTepzt5Y5TVzyajOdQ==",
+ "version": "4.9.6",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.9.6.tgz",
+ "integrity": "sha512-jqzNLhNDvIZOrt69Ce4UjGRpXJBzhUBzawMwnaDAwyHriki3XollsewxWzOzz+4yOFDkuJHtTsZFwMxhYJWmLQ==",
"cpu": [
"x64"
],
"optional": true,
"os": [
"win32"
- ],
- "peer": true
+ ]
},
"node_modules/@rushstack/eslint-patch": {
- "version": "1.5.1",
- "resolved": "https://registry.npmjs.org/@rushstack/eslint-patch/-/eslint-patch-1.5.1.tgz",
- "integrity": "sha512-6i/8UoL0P5y4leBIGzvkZdS85RDMG9y1ihZzmTZQ5LdHUYmZ7pKFoj8X0236s3lusPs1Fa5HTQUpwI+UfTcmeA=="
+ "version": "1.7.0",
+ "resolved": "https://registry.npmjs.org/@rushstack/eslint-patch/-/eslint-patch-1.7.0.tgz",
+ "integrity": "sha512-Jh4t/593gxs0lJZ/z3NnasKlplXT2f+4y/LZYuaKZW5KAaiVFL/fThhs+17EbUd53jUVJ0QudYCBGbN/psvaqg=="
},
"node_modules/@sinonjs/commons": {
"version": "1.8.6",
@@ -8354,17 +6890,17 @@
}
},
"node_modules/@supabase/gotrue-js": {
- "version": "2.62.0",
- "resolved": "https://registry.npmjs.org/@supabase/gotrue-js/-/gotrue-js-2.62.0.tgz",
- "integrity": "sha512-4eBuZNXGOk7ewqJuHPYMnk8clCtEx6Hfnu6yHLjZlx7w18TqcojcTRUBZagErtpgwwdfzUwKbquexhbrpH/ysw==",
+ "version": "2.62.2",
+ "resolved": "https://registry.npmjs.org/@supabase/gotrue-js/-/gotrue-js-2.62.2.tgz",
+ "integrity": "sha512-AP6e6W9rQXFTEJ7sTTNYQrNf0LCcnt1hUW+RIgUK+Uh3jbWvcIST7wAlYyNZiMlS9+PYyymWQ+Ykz/rOYSO0+A==",
"dependencies": {
"@supabase/node-fetch": "^2.6.14"
}
},
"node_modules/@supabase/node-fetch": {
- "version": "2.6.14",
- "resolved": "https://registry.npmjs.org/@supabase/node-fetch/-/node-fetch-2.6.14.tgz",
- "integrity": "sha512-w/Tsd22e/5fAeoxqQ4P2MX6EyF+iM6rc9kmlMVFkHuG0rAltt2TLhFbDJfemnHbtvnazWaRfy5KnFU/SYT37dQ==",
+ "version": "2.6.15",
+ "resolved": "https://registry.npmjs.org/@supabase/node-fetch/-/node-fetch-2.6.15.tgz",
+ "integrity": "sha512-1ibVeYUacxWYi9i0cf5efil6adJ9WRyZBLivgjs+AUpewx1F3xPi7gLgaASI2SmIQxPoCEjAsLAzKPgMJVgOUQ==",
"dependencies": {
"whatwg-url": "^5.0.0"
},
@@ -8373,42 +6909,42 @@
}
},
"node_modules/@supabase/postgrest-js": {
- "version": "1.9.0",
- "resolved": "https://registry.npmjs.org/@supabase/postgrest-js/-/postgrest-js-1.9.0.tgz",
- "integrity": "sha512-axP6cU69jDrLbfihJKQ6vU27tklD0gzb9idkMN363MtTXeJVt5DQNT3JnJ58JVNBdL74hgm26rAsFNvHk+tnSw==",
+ "version": "1.9.2",
+ "resolved": "https://registry.npmjs.org/@supabase/postgrest-js/-/postgrest-js-1.9.2.tgz",
+ "integrity": "sha512-I6yHo8CC9cxhOo6DouDMy9uOfW7hjdsnCxZiaJuIVZm1dBGTFiQPgfMa9zXCamEWzNyWRjZvupAUuX+tqcl5Sw==",
"dependencies": {
"@supabase/node-fetch": "^2.6.14"
}
},
"node_modules/@supabase/realtime-js": {
- "version": "2.8.4",
- "resolved": "https://registry.npmjs.org/@supabase/realtime-js/-/realtime-js-2.8.4.tgz",
- "integrity": "sha512-5C9slLTGikHnYmAnIBOaPogAgbcNY68vnIyE6GpqIKjHElVb6LIi4clwNcjHSj4z6szuvvzj8T/+ePEgGEGekw==",
+ "version": "2.9.3",
+ "resolved": "https://registry.npmjs.org/@supabase/realtime-js/-/realtime-js-2.9.3.tgz",
+ "integrity": "sha512-lAp50s2n3FhGJFq+wTSXLNIDPw5Y0Wxrgt44eM5nLSA3jZNUUP3Oq2Ccd1CbZdVntPCWLZvJaU//pAd2NE+QnQ==",
"dependencies": {
"@supabase/node-fetch": "^2.6.14",
"@types/phoenix": "^1.5.4",
- "@types/websocket": "^1.0.3",
- "websocket": "^1.0.34"
+ "@types/ws": "^8.5.10",
+ "ws": "^8.14.2"
}
},
"node_modules/@supabase/storage-js": {
- "version": "2.5.4",
- "resolved": "https://registry.npmjs.org/@supabase/storage-js/-/storage-js-2.5.4.tgz",
- "integrity": "sha512-yspHD19I9uQUgfTh0J94+/r/g6hnhdQmw6Y7OWqr/EbnL6uvicGV1i1UDkkmeUHqfF9Mbt2sLtuxRycYyKv2ew==",
+ "version": "2.5.5",
+ "resolved": "https://registry.npmjs.org/@supabase/storage-js/-/storage-js-2.5.5.tgz",
+ "integrity": "sha512-OpLoDRjFwClwc2cjTJZG8XviTiQH4Ik8sCiMK5v7et0MDu2QlXjCAW3ljxJB5+z/KazdMOTnySi+hysxWUPu3w==",
"dependencies": {
"@supabase/node-fetch": "^2.6.14"
}
},
"node_modules/@supabase/supabase-js": {
- "version": "2.39.1",
- "resolved": "https://registry.npmjs.org/@supabase/supabase-js/-/supabase-js-2.39.1.tgz",
- "integrity": "sha512-nz0aQPButJWjChX+bLXqvhHutfiOuiJwzibyJs0uhFrQ6JRDZZsl9+nX2jgyox2v2V+e4PEwbn/eaEOFVUr8iA==",
+ "version": "2.39.3",
+ "resolved": "https://registry.npmjs.org/@supabase/supabase-js/-/supabase-js-2.39.3.tgz",
+ "integrity": "sha512-NoltJSaJNKDJNutO5sJPAAi5RIWrn1z2XH+ig1+cHDojT6BTN7TvZPNa3Kq3gFQWfO5H1N9El/bCTZJ3iFW2kQ==",
"dependencies": {
"@supabase/functions-js": "^2.1.5",
"@supabase/gotrue-js": "^2.60.0",
"@supabase/node-fetch": "^2.6.14",
- "@supabase/postgrest-js": "^1.8.6",
- "@supabase/realtime-js": "^2.8.4",
+ "@supabase/postgrest-js": "^1.9.0",
+ "@supabase/realtime-js": "^2.9.3",
"@supabase/storage-js": "^2.5.4"
}
},
@@ -8509,11 +7045,11 @@
}
},
"node_modules/@tanstack/react-table": {
- "version": "8.10.7",
- "resolved": "https://registry.npmjs.org/@tanstack/react-table/-/react-table-8.10.7.tgz",
- "integrity": "sha512-bXhjA7xsTcsW8JPTTYlUg/FuBpn8MNjiEPhkNhIGCUR6iRQM2+WEco4OBpvDeVcR9SE+bmWLzdfiY7bCbCSVuA==",
+ "version": "8.11.7",
+ "resolved": "https://registry.npmjs.org/@tanstack/react-table/-/react-table-8.11.7.tgz",
+ "integrity": "sha512-ZbzfMkLjxUTzNPBXJYH38pv2VpC9WUA+Qe5USSHEBz0dysDTv4z/ARI3csOed/5gmlmrPzVUN3UXGuUMbod3Jg==",
"dependencies": {
- "@tanstack/table-core": "8.10.7"
+ "@tanstack/table-core": "8.11.7"
},
"engines": {
"node": ">=12"
@@ -8527,10 +7063,26 @@
"react-dom": ">=16"
}
},
+ "node_modules/@tanstack/react-virtual": {
+ "version": "3.0.2",
+ "resolved": "https://registry.npmjs.org/@tanstack/react-virtual/-/react-virtual-3.0.2.tgz",
+ "integrity": "sha512-9XbRLPKgnhMwwmuQMnJMv+5a9sitGNCSEtf/AZXzmJdesYk7XsjYHaEDny+IrJzvPNwZliIIDwCRiaUqR3zzCA==",
+ "dependencies": {
+ "@tanstack/virtual-core": "3.0.0"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/tannerlinsley"
+ },
+ "peerDependencies": {
+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0",
+ "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0"
+ }
+ },
"node_modules/@tanstack/table-core": {
- "version": "8.10.7",
- "resolved": "https://registry.npmjs.org/@tanstack/table-core/-/table-core-8.10.7.tgz",
- "integrity": "sha512-KQk5OMg5OH6rmbHZxuNROvdI+hKDIUxANaHlV+dPlNN7ED3qYQ/WkpY2qlXww1SIdeMlkIhpN/2L00rof0fXFw==",
+ "version": "8.11.7",
+ "resolved": "https://registry.npmjs.org/@tanstack/table-core/-/table-core-8.11.7.tgz",
+ "integrity": "sha512-N3ksnkbPbsF3PjubuZCB/etTqvctpXWRHIXTmYfJFnhynQKjeZu8BCuHvdlLPpumKbA+bjY4Ay9AELYLOXPWBg==",
"engines": {
"node": ">=12"
},
@@ -8539,6 +7091,15 @@
"url": "https://github.com/sponsors/tannerlinsley"
}
},
+ "node_modules/@tanstack/virtual-core": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/@tanstack/virtual-core/-/virtual-core-3.0.0.tgz",
+ "integrity": "sha512-SYXOBTjJb05rXa2vl55TTwO40A6wKu0R5i1qQwhJYNDIqaIGF7D0HsLw+pJAyi2OvntlEIVusx3xtbbgSUi6zg==",
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/tannerlinsley"
+ }
+ },
"node_modules/@testing-library/dom": {
"version": "8.20.1",
"resolved": "https://registry.npmjs.org/@testing-library/dom/-/dom-8.20.1.tgz",
@@ -8570,9 +7131,9 @@
}
},
"node_modules/@theguild/remark-mermaid/node_modules/@types/unist": {
- "version": "3.0.1",
- "resolved": "https://registry.npmjs.org/@types/unist/-/unist-3.0.1.tgz",
- "integrity": "sha512-ue/hDUpPjC85m+PM9OQDMZr3LywT+CT6mPsQq8OJtCLiERkGRcQUFvu9XASF5XWqyZFXbf15lvb3JFJ4dRLWPg=="
+ "version": "3.0.2",
+ "resolved": "https://registry.npmjs.org/@types/unist/-/unist-3.0.2.tgz",
+ "integrity": "sha512-dqId9J8K/vGi5Zr7oo212BGii5m3q5Hxlkwy3WpYuKPklmBEvsbMYYyLxAQpSffdLl/gdW0XUpKWFvYmyoWCoQ=="
},
"node_modules/@theguild/remark-mermaid/node_modules/unist-util-is": {
"version": "6.0.0",
@@ -8610,9 +7171,9 @@
}
},
"node_modules/@theguild/remark-npm2yarn/node_modules/@types/unist": {
- "version": "3.0.1",
- "resolved": "https://registry.npmjs.org/@types/unist/-/unist-3.0.1.tgz",
- "integrity": "sha512-ue/hDUpPjC85m+PM9OQDMZr3LywT+CT6mPsQq8OJtCLiERkGRcQUFvu9XASF5XWqyZFXbf15lvb3JFJ4dRLWPg=="
+ "version": "3.0.2",
+ "resolved": "https://registry.npmjs.org/@types/unist/-/unist-3.0.2.tgz",
+ "integrity": "sha512-dqId9J8K/vGi5Zr7oo212BGii5m3q5Hxlkwy3WpYuKPklmBEvsbMYYyLxAQpSffdLl/gdW0XUpKWFvYmyoWCoQ=="
},
"node_modules/@theguild/remark-npm2yarn/node_modules/unist-util-is": {
"version": "6.0.0",
@@ -8641,9 +7202,9 @@
}
},
"node_modules/@tiptap/core": {
- "version": "2.1.12",
- "resolved": "https://registry.npmjs.org/@tiptap/core/-/core-2.1.12.tgz",
- "integrity": "sha512-ZGc3xrBJA9KY8kln5AYTj8y+GDrKxi7u95xIl2eccrqTY5CQeRu6HRNM1yT4mAjuSaG9jmazyjGRlQuhyxCKxQ==",
+ "version": "2.1.16",
+ "resolved": "https://registry.npmjs.org/@tiptap/core/-/core-2.1.16.tgz",
+ "integrity": "sha512-nKnV603UyzbcrqhCXTWxDN22Ujb4VNfmKkACms1JOMGo7BVARmMCp2nBsLW8fmgCxmf8AS0LXY63tU7ILWYc5g==",
"funding": {
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
@@ -8653,9 +7214,9 @@
}
},
"node_modules/@tiptap/extension-blockquote": {
- "version": "2.1.12",
- "resolved": "https://registry.npmjs.org/@tiptap/extension-blockquote/-/extension-blockquote-2.1.12.tgz",
- "integrity": "sha512-Qb3YRlCfugx9pw7VgLTb+jY37OY4aBJeZnqHzx4QThSm13edNYjasokbX0nTwL1Up4NPTcY19JUeHt6fVaVVGg==",
+ "version": "2.1.16",
+ "resolved": "https://registry.npmjs.org/@tiptap/extension-blockquote/-/extension-blockquote-2.1.16.tgz",
+ "integrity": "sha512-1OMk8cBrL0VnbnzD3XHx7U4oMDCiXRR7Spfl9JqwC9pS4RosOUBySNxpEBwhSegB0pK6sd7m44qLqj00If+cHA==",
"funding": {
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
@@ -8665,9 +7226,9 @@
}
},
"node_modules/@tiptap/extension-bold": {
- "version": "2.1.12",
- "resolved": "https://registry.npmjs.org/@tiptap/extension-bold/-/extension-bold-2.1.12.tgz",
- "integrity": "sha512-AZGxIxcGU1/y6V2YEbKsq6BAibL8yQrbRm6EdcBnby41vj1WziewEKswhLGmZx5IKM2r2ldxld03KlfSIlKQZg==",
+ "version": "2.1.16",
+ "resolved": "https://registry.npmjs.org/@tiptap/extension-bold/-/extension-bold-2.1.16.tgz",
+ "integrity": "sha512-gz2VrBkRRsGBiOHx1qB++VUfpuRdhJp6jlgNqqHFbIkjKr2NB+u7oiH5SbjlL4eG0wlam1QA4jAkXhZgdvkA4g==",
"funding": {
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
@@ -8677,9 +7238,9 @@
}
},
"node_modules/@tiptap/extension-bubble-menu": {
- "version": "2.1.12",
- "resolved": "https://registry.npmjs.org/@tiptap/extension-bubble-menu/-/extension-bubble-menu-2.1.12.tgz",
- "integrity": "sha512-gAGi21EQ4wvLmT7klgariAc2Hf+cIjaNU2NWze3ut6Ku9gUo5ZLqj1t9SKHmNf4d5JG63O8GxpErqpA7lHlRtw==",
+ "version": "2.1.16",
+ "resolved": "https://registry.npmjs.org/@tiptap/extension-bubble-menu/-/extension-bubble-menu-2.1.16.tgz",
+ "integrity": "sha512-MwKCmu2kU7+Xln/BvlrolU2hCXgoCoTr4NXJ+3v8A9w7tIq8leADoWacfEee2t3VNnGdXw/Xjza+DAr77JWjGg==",
"dependencies": {
"tippy.js": "^6.3.7"
},
@@ -8693,9 +7254,9 @@
}
},
"node_modules/@tiptap/extension-bullet-list": {
- "version": "2.1.12",
- "resolved": "https://registry.npmjs.org/@tiptap/extension-bullet-list/-/extension-bullet-list-2.1.12.tgz",
- "integrity": "sha512-vtD8vWtNlmAZX8LYqt2yU9w3mU9rPCiHmbp4hDXJs2kBnI0Ju/qAyXFx6iJ3C3XyuMnMbJdDI9ee0spAvFz7cQ==",
+ "version": "2.1.16",
+ "resolved": "https://registry.npmjs.org/@tiptap/extension-bullet-list/-/extension-bullet-list-2.1.16.tgz",
+ "integrity": "sha512-Cheaep5JShO9TtRslrOObSVKtRQFKozou2ZWDas5sIeef/A/GWPfVTzusfBGE/ItHwZNaDXwJOoVnSUPT8ulfw==",
"funding": {
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
@@ -8705,9 +7266,9 @@
}
},
"node_modules/@tiptap/extension-code": {
- "version": "2.1.12",
- "resolved": "https://registry.npmjs.org/@tiptap/extension-code/-/extension-code-2.1.12.tgz",
- "integrity": "sha512-CRiRq5OTC1lFgSx6IMrECqmtb93a0ZZKujEnaRhzWliPBjLIi66va05f/P1vnV6/tHaC3yfXys6dxB5A4J8jxw==",
+ "version": "2.1.16",
+ "resolved": "https://registry.npmjs.org/@tiptap/extension-code/-/extension-code-2.1.16.tgz",
+ "integrity": "sha512-2+fVfh3qQORgMRSZ6hn+yW5/rLzlulCzMhdL07G0lWY8/eWEv3p9DCfgw9AOHrrHFim8/MVWyRkrkBM/yHX9FA==",
"funding": {
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
@@ -8717,9 +7278,9 @@
}
},
"node_modules/@tiptap/extension-code-block": {
- "version": "2.1.12",
- "resolved": "https://registry.npmjs.org/@tiptap/extension-code-block/-/extension-code-block-2.1.12.tgz",
- "integrity": "sha512-RXtSYCVsnk8D+K80uNZShClfZjvv1EgO42JlXLVGWQdIgaNyuOv/6I/Jdf+ZzhnpsBnHufW+6TJjwP5vJPSPHA==",
+ "version": "2.1.16",
+ "resolved": "https://registry.npmjs.org/@tiptap/extension-code-block/-/extension-code-block-2.1.16.tgz",
+ "integrity": "sha512-IspVmwg17Vx59W8lEIbVRIeMscJtRCdsif45CkzVv1uSHMl7tmrJh3n8vv/vrB+rnLasQrOEbEKNEqUL3eHlKQ==",
"funding": {
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
@@ -8730,9 +7291,9 @@
}
},
"node_modules/@tiptap/extension-color": {
- "version": "2.1.12",
- "resolved": "https://registry.npmjs.org/@tiptap/extension-color/-/extension-color-2.1.12.tgz",
- "integrity": "sha512-Myd6iSbPJvvclr+NRBEdE0k52QlQrXZnJljk4JKn0b25cl60ERA40FH9QLBjkpTed7SDbI3oX7LWIzTUoCj39w==",
+ "version": "2.1.16",
+ "resolved": "https://registry.npmjs.org/@tiptap/extension-color/-/extension-color-2.1.16.tgz",
+ "integrity": "sha512-DDqYG9pj5vz9hBtVZzWvKVLpOmjVIELlDGhDIeOQ3+xg0JZidKTzxp34AYBJPILtJU1rvadqFFOGxai4hFgT/A==",
"funding": {
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
@@ -8743,9 +7304,9 @@
}
},
"node_modules/@tiptap/extension-document": {
- "version": "2.1.12",
- "resolved": "https://registry.npmjs.org/@tiptap/extension-document/-/extension-document-2.1.12.tgz",
- "integrity": "sha512-0QNfAkCcFlB9O8cUNSwTSIQMV9TmoEhfEaLz/GvbjwEq4skXK3bU+OQX7Ih07waCDVXIGAZ7YAZogbvrn/WbOw==",
+ "version": "2.1.16",
+ "resolved": "https://registry.npmjs.org/@tiptap/extension-document/-/extension-document-2.1.16.tgz",
+ "integrity": "sha512-VSOrzGnpI9dJDffFn3ZjmPKYkH/YtYeDl6nqLu7TafRqyLMSEqxxxq/+Qs/7j8jbzq6osslY0sySckSulroIOg==",
"funding": {
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
@@ -8755,9 +7316,9 @@
}
},
"node_modules/@tiptap/extension-dropcursor": {
- "version": "2.1.12",
- "resolved": "https://registry.npmjs.org/@tiptap/extension-dropcursor/-/extension-dropcursor-2.1.12.tgz",
- "integrity": "sha512-0tT/q8nL4NBCYPxr9T0Brck+RQbWuczm9nV0bnxgt0IiQXoRHutfPWdS7GA65PTuVRBS/3LOco30fbjFhkfz/A==",
+ "version": "2.1.16",
+ "resolved": "https://registry.npmjs.org/@tiptap/extension-dropcursor/-/extension-dropcursor-2.1.16.tgz",
+ "integrity": "sha512-voWEIAmxV3f9Q0gc3K89HRq8KFeOVtHJBRHYihZwxMnvq2aMIwdpCx0GbiCd4slQaBLd1ASJHz1uAigVhR2+uA==",
"funding": {
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
@@ -8768,9 +7329,9 @@
}
},
"node_modules/@tiptap/extension-floating-menu": {
- "version": "2.1.12",
- "resolved": "https://registry.npmjs.org/@tiptap/extension-floating-menu/-/extension-floating-menu-2.1.12.tgz",
- "integrity": "sha512-uo0ydCJNg6AWwLT6cMUJYVChfvw2PY9ZfvKRhh9YJlGfM02jS4RUG/bJBts6R37f+a5FsOvAVwg8EvqPlNND1A==",
+ "version": "2.1.16",
+ "resolved": "https://registry.npmjs.org/@tiptap/extension-floating-menu/-/extension-floating-menu-2.1.16.tgz",
+ "integrity": "sha512-VBT4HBhkKr9S1VExyTb/qfQyZ5F0VJLasUoH8E4kdq3deCeifmTTIOukuXK5QbicFHVQmY2epeU6+w5c/bAcHQ==",
"dependencies": {
"tippy.js": "^6.3.7"
},
@@ -8784,9 +7345,9 @@
}
},
"node_modules/@tiptap/extension-gapcursor": {
- "version": "2.1.12",
- "resolved": "https://registry.npmjs.org/@tiptap/extension-gapcursor/-/extension-gapcursor-2.1.12.tgz",
- "integrity": "sha512-zFYdZCqPgpwoB7whyuwpc8EYLYjUE5QYKb8vICvc+FraBUDM51ujYhFSgJC3rhs8EjI+8GcK8ShLbSMIn49YOQ==",
+ "version": "2.1.16",
+ "resolved": "https://registry.npmjs.org/@tiptap/extension-gapcursor/-/extension-gapcursor-2.1.16.tgz",
+ "integrity": "sha512-Bgjo0da0W1QOhtnT3NR7GHPmVBZykNRekNGsTA3+nxCjkqh1G32Jt58TBKP3vdLBaww3lhrii0SYVErlFgIJnA==",
"funding": {
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
@@ -8797,9 +7358,9 @@
}
},
"node_modules/@tiptap/extension-hard-break": {
- "version": "2.1.12",
- "resolved": "https://registry.npmjs.org/@tiptap/extension-hard-break/-/extension-hard-break-2.1.12.tgz",
- "integrity": "sha512-nqKcAYGEOafg9D+2cy1E4gHNGuL12LerVa0eS2SQOb+PT8vSel9OTKU1RyZldsWSQJ5rq/w4uIjmLnrSR2w6Yw==",
+ "version": "2.1.16",
+ "resolved": "https://registry.npmjs.org/@tiptap/extension-hard-break/-/extension-hard-break-2.1.16.tgz",
+ "integrity": "sha512-H3Bk8Gu5pV7xH8TrzH0WAoXrJVEKsDA6Evyl7H7aCAMAvotQL0ehuuX88bjPMCSAvBXZE39wYnJCJshGbVx0BA==",
"funding": {
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
@@ -8809,9 +7370,9 @@
}
},
"node_modules/@tiptap/extension-heading": {
- "version": "2.1.12",
- "resolved": "https://registry.npmjs.org/@tiptap/extension-heading/-/extension-heading-2.1.12.tgz",
- "integrity": "sha512-MoANP3POAP68Ko9YXarfDKLM/kXtscgp6m+xRagPAghRNujVY88nK1qBMZ3JdvTVN6b/ATJhp8UdrZX96TLV2w==",
+ "version": "2.1.16",
+ "resolved": "https://registry.npmjs.org/@tiptap/extension-heading/-/extension-heading-2.1.16.tgz",
+ "integrity": "sha512-vFQuAAnIxDwKjTV+ScSwIaeG4Uhm1cZddnbLTru1EJfIz9VvpHDZKEyL4ZJvWuKMAhCzlw54TQhBCVHqalXyaA==",
"funding": {
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
@@ -8821,9 +7382,9 @@
}
},
"node_modules/@tiptap/extension-history": {
- "version": "2.1.12",
- "resolved": "https://registry.npmjs.org/@tiptap/extension-history/-/extension-history-2.1.12.tgz",
- "integrity": "sha512-6b7UFVkvPjq3LVoCTrYZAczt5sQrQUaoDWAieVClVZoFLfjga2Fwjcfgcie8IjdPt8YO2hG/sar/c07i9vM0Sg==",
+ "version": "2.1.16",
+ "resolved": "https://registry.npmjs.org/@tiptap/extension-history/-/extension-history-2.1.16.tgz",
+ "integrity": "sha512-9YHPf8Xqqp5CQy1hJonkBzROj0ZHR1ZaIk9IaLlAPTpdkrUDXV9SC7qp3lozQsMg4vmU3K6H5VQo4ADpnR00OQ==",
"funding": {
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
@@ -8834,9 +7395,9 @@
}
},
"node_modules/@tiptap/extension-horizontal-rule": {
- "version": "2.1.12",
- "resolved": "https://registry.npmjs.org/@tiptap/extension-horizontal-rule/-/extension-horizontal-rule-2.1.12.tgz",
- "integrity": "sha512-RRuoK4KxrXRrZNAjJW5rpaxjiP0FJIaqpi7nFbAua2oHXgsCsG8qbW2Y0WkbIoS8AJsvLZ3fNGsQ8gpdliuq3A==",
+ "version": "2.1.16",
+ "resolved": "https://registry.npmjs.org/@tiptap/extension-horizontal-rule/-/extension-horizontal-rule-2.1.16.tgz",
+ "integrity": "sha512-Q+Zp0lJF7212YIuZnbMmn4KC1MZoZjQIuvSd+DOgCwKSeUcTXBbljDjOiN8yrY134r+A4fFM7KHTXWYqZGZQug==",
"funding": {
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
@@ -8847,9 +7408,9 @@
}
},
"node_modules/@tiptap/extension-italic": {
- "version": "2.1.12",
- "resolved": "https://registry.npmjs.org/@tiptap/extension-italic/-/extension-italic-2.1.12.tgz",
- "integrity": "sha512-/XYrW4ZEWyqDvnXVKbgTXItpJOp2ycswk+fJ3vuexyolO6NSs0UuYC6X4f+FbHYL5VuWqVBv7EavGa+tB6sl3A==",
+ "version": "2.1.16",
+ "resolved": "https://registry.npmjs.org/@tiptap/extension-italic/-/extension-italic-2.1.16.tgz",
+ "integrity": "sha512-6mFGPBGxd2aICJ5Q3zYxuXO8slKoOP/PsSjEQn1bjs3h8Q3mPxHX290ePVp728o5F0myM9sxKSz2V6/VeuS/Yw==",
"funding": {
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
@@ -8859,9 +7420,9 @@
}
},
"node_modules/@tiptap/extension-list-item": {
- "version": "2.1.12",
- "resolved": "https://registry.npmjs.org/@tiptap/extension-list-item/-/extension-list-item-2.1.12.tgz",
- "integrity": "sha512-Gk7hBFofAPmNQ8+uw8w5QSsZOMEGf7KQXJnx5B022YAUJTYYxO3jYVuzp34Drk9p+zNNIcXD4kc7ff5+nFOTrg==",
+ "version": "2.1.16",
+ "resolved": "https://registry.npmjs.org/@tiptap/extension-list-item/-/extension-list-item-2.1.16.tgz",
+ "integrity": "sha512-RLUodzFispIe1adarCEzf+OfaGZna/WR/k/HqPnbflSiJ6/I2P5MqI+ELjGGvc53eanf3+KpsHlB2Pganp8sMA==",
"funding": {
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
@@ -8871,9 +7432,9 @@
}
},
"node_modules/@tiptap/extension-ordered-list": {
- "version": "2.1.12",
- "resolved": "https://registry.npmjs.org/@tiptap/extension-ordered-list/-/extension-ordered-list-2.1.12.tgz",
- "integrity": "sha512-tF6VGl+D2avCgn9U/2YLJ8qVmV6sPE/iEzVAFZuOSe6L0Pj7SQw4K6AO640QBob/d8VrqqJFHCb6l10amJOnXA==",
+ "version": "2.1.16",
+ "resolved": "https://registry.npmjs.org/@tiptap/extension-ordered-list/-/extension-ordered-list-2.1.16.tgz",
+ "integrity": "sha512-6QLUm90wz2lfzWGV4fX5NOOFA8zKlcDBNrTeOd0V7H4fcafLmANqU/5o4LLNJmK8y8f1YAvmHr9xgciqggGJJA==",
"funding": {
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
@@ -8883,9 +7444,9 @@
}
},
"node_modules/@tiptap/extension-paragraph": {
- "version": "2.1.12",
- "resolved": "https://registry.npmjs.org/@tiptap/extension-paragraph/-/extension-paragraph-2.1.12.tgz",
- "integrity": "sha512-hoH/uWPX+KKnNAZagudlsrr4Xu57nusGekkJWBcrb5MCDE91BS+DN2xifuhwXiTHxnwOMVFjluc0bPzQbkArsw==",
+ "version": "2.1.16",
+ "resolved": "https://registry.npmjs.org/@tiptap/extension-paragraph/-/extension-paragraph-2.1.16.tgz",
+ "integrity": "sha512-JwCKSFjBLd9xAmxLe7hf1h4AucDvkGTfDb/wA1jId64g+uf0/tm6RDjnk/QD+D2YzoLGFLjQm0GAdPXTmyTPdA==",
"funding": {
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
@@ -8895,9 +7456,9 @@
}
},
"node_modules/@tiptap/extension-strike": {
- "version": "2.1.12",
- "resolved": "https://registry.npmjs.org/@tiptap/extension-strike/-/extension-strike-2.1.12.tgz",
- "integrity": "sha512-HlhrzIjYUT8oCH9nYzEL2QTTn8d1ECnVhKvzAe6x41xk31PjLMHTUy8aYjeQEkWZOWZ34tiTmslV1ce6R3Dt8g==",
+ "version": "2.1.16",
+ "resolved": "https://registry.npmjs.org/@tiptap/extension-strike/-/extension-strike-2.1.16.tgz",
+ "integrity": "sha512-Z1hmBK1QWMMGDV2MJ3KBDiMuzcScjyx88cP5ln5G7626Zxeqywf84KF+2WyHBzJWfwMWpAouzwHKe9ld39Vu1w==",
"funding": {
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
@@ -8907,9 +7468,9 @@
}
},
"node_modules/@tiptap/extension-text": {
- "version": "2.1.12",
- "resolved": "https://registry.npmjs.org/@tiptap/extension-text/-/extension-text-2.1.12.tgz",
- "integrity": "sha512-rCNUd505p/PXwU9Jgxo4ZJv4A3cIBAyAqlx/dtcY6cjztCQuXJhuQILPhjGhBTOLEEL4kW2wQtqzCmb7O8i2jg==",
+ "version": "2.1.16",
+ "resolved": "https://registry.npmjs.org/@tiptap/extension-text/-/extension-text-2.1.16.tgz",
+ "integrity": "sha512-XzSJmAj32uYpaL/9FX3tRSU52DwZ9w+3yEffIcSN9MSwioqLsSolXOz7TuJfW6lSTar1ml9UPlRqX4dpayUTDQ==",
"funding": {
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
@@ -8919,9 +7480,9 @@
}
},
"node_modules/@tiptap/extension-text-style": {
- "version": "2.1.12",
- "resolved": "https://registry.npmjs.org/@tiptap/extension-text-style/-/extension-text-style-2.1.12.tgz",
- "integrity": "sha512-nfjWXX0JSRHLcscfiMESh+RN+Z7bG8nio/C9+8yQASM90VxU9f8oKgF8HnnSYsSrD4lLf44Q6XjmB7aMVUuikg==",
+ "version": "2.1.16",
+ "resolved": "https://registry.npmjs.org/@tiptap/extension-text-style/-/extension-text-style-2.1.16.tgz",
+ "integrity": "sha512-s7sd5kqDIhfh0LzyxC7T0tXReXuZwhMIqoMAM2G56UvA1ANLnlvXKRWg3fSqxeFenGRdN1sS23gujybBG/j9pA==",
"funding": {
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
@@ -8963,12 +7524,12 @@
}
},
"node_modules/@tiptap/react": {
- "version": "2.1.12",
- "resolved": "https://registry.npmjs.org/@tiptap/react/-/react-2.1.12.tgz",
- "integrity": "sha512-RMO4QmmpL7sPR7w8o1Wq0hrUe/ttHzsn5I/eWwqg1d3fGx5y9mOdfCoQ9XBtm49Xzdejy3QVzt4zYp9fX0X/xg==",
+ "version": "2.1.16",
+ "resolved": "https://registry.npmjs.org/@tiptap/react/-/react-2.1.16.tgz",
+ "integrity": "sha512-ywws50aV/8TNBBlFNXVR/bWpi5n0f+CDiwixsPGzne9T/zMfz30FnXej2xo7Qm1LLBdC0d65Mz7otdz+rn65cA==",
"dependencies": {
- "@tiptap/extension-bubble-menu": "^2.1.12",
- "@tiptap/extension-floating-menu": "^2.1.12"
+ "@tiptap/extension-bubble-menu": "^2.1.16",
+ "@tiptap/extension-floating-menu": "^2.1.16"
},
"funding": {
"type": "github",
@@ -8982,29 +7543,29 @@
}
},
"node_modules/@tiptap/starter-kit": {
- "version": "2.1.12",
- "resolved": "https://registry.npmjs.org/@tiptap/starter-kit/-/starter-kit-2.1.12.tgz",
- "integrity": "sha512-+RoP1rWV7rSCit2+3wl2bjvSRiePRJE/7YNKbvH8Faz/+AMO23AFegHoUFynR7U0ouGgYDljGkkj35e0asbSDA==",
- "dependencies": {
- "@tiptap/core": "^2.1.12",
- "@tiptap/extension-blockquote": "^2.1.12",
- "@tiptap/extension-bold": "^2.1.12",
- "@tiptap/extension-bullet-list": "^2.1.12",
- "@tiptap/extension-code": "^2.1.12",
- "@tiptap/extension-code-block": "^2.1.12",
- "@tiptap/extension-document": "^2.1.12",
- "@tiptap/extension-dropcursor": "^2.1.12",
- "@tiptap/extension-gapcursor": "^2.1.12",
- "@tiptap/extension-hard-break": "^2.1.12",
- "@tiptap/extension-heading": "^2.1.12",
- "@tiptap/extension-history": "^2.1.12",
- "@tiptap/extension-horizontal-rule": "^2.1.12",
- "@tiptap/extension-italic": "^2.1.12",
- "@tiptap/extension-list-item": "^2.1.12",
- "@tiptap/extension-ordered-list": "^2.1.12",
- "@tiptap/extension-paragraph": "^2.1.12",
- "@tiptap/extension-strike": "^2.1.12",
- "@tiptap/extension-text": "^2.1.12"
+ "version": "2.1.16",
+ "resolved": "https://registry.npmjs.org/@tiptap/starter-kit/-/starter-kit-2.1.16.tgz",
+ "integrity": "sha512-DudGvkNEB1IwfMAqBKCcT49BY275hKF6SwjTWN89cLvVBd2TBe4R6wWMNKDhwfR8fmXz/aXpGJWWO2AFimY3jg==",
+ "dependencies": {
+ "@tiptap/core": "^2.1.16",
+ "@tiptap/extension-blockquote": "^2.1.16",
+ "@tiptap/extension-bold": "^2.1.16",
+ "@tiptap/extension-bullet-list": "^2.1.16",
+ "@tiptap/extension-code": "^2.1.16",
+ "@tiptap/extension-code-block": "^2.1.16",
+ "@tiptap/extension-document": "^2.1.16",
+ "@tiptap/extension-dropcursor": "^2.1.16",
+ "@tiptap/extension-gapcursor": "^2.1.16",
+ "@tiptap/extension-hard-break": "^2.1.16",
+ "@tiptap/extension-heading": "^2.1.16",
+ "@tiptap/extension-history": "^2.1.16",
+ "@tiptap/extension-horizontal-rule": "^2.1.16",
+ "@tiptap/extension-italic": "^2.1.16",
+ "@tiptap/extension-list-item": "^2.1.16",
+ "@tiptap/extension-ordered-list": "^2.1.16",
+ "@tiptap/extension-paragraph": "^2.1.16",
+ "@tiptap/extension-strike": "^2.1.16",
+ "@tiptap/extension-text": "^2.1.16"
},
"funding": {
"type": "github",
@@ -9020,9 +7581,9 @@
}
},
"node_modules/@trigger.dev/core": {
- "version": "2.3.15",
- "resolved": "https://registry.npmjs.org/@trigger.dev/core/-/core-2.3.15.tgz",
- "integrity": "sha512-BoiGwJb6QYzReWOwZtLP7Cxg1ShdHhnUxclzhTBqN1fwiHLrAl/SqbLsLw7mRP663xlBI+4ses6DJFHdoxc98Q==",
+ "version": "2.3.16",
+ "resolved": "https://registry.npmjs.org/@trigger.dev/core/-/core-2.3.16.tgz",
+ "integrity": "sha512-X2elWrlc9jWP4cLi+EiodC18/SbaEm415brfhd8BF14g7KwYgGxrLREufhCzw3WU5weJTvQSUreiWz/RLJ06Ww==",
"dependencies": {
"ulidx": "^2.2.1",
"zod": "3.22.3",
@@ -9033,9 +7594,9 @@
}
},
"node_modules/@trigger.dev/core-backend": {
- "version": "2.3.15",
- "resolved": "https://registry.npmjs.org/@trigger.dev/core-backend/-/core-backend-2.3.15.tgz",
- "integrity": "sha512-MyX9SfG5WGLw4x0mdzr/zhW9Bzm5gsGWXPMBxVrVZfsyExzeBCW8qVsRhauPqxSr6bsfWCnnvBY3iOKaPRXyPw==",
+ "version": "2.3.16",
+ "resolved": "https://registry.npmjs.org/@trigger.dev/core-backend/-/core-backend-2.3.16.tgz",
+ "integrity": "sha512-4NNDepH5e+BSZg9/qpJsyoERoAJcipkXnI7X+itYgoPsN6Sc2tWaFyDhL32u4IbXXGmCShALPAafupe1JArW+g==",
"engines": {
"node": ">=18.0.0"
}
@@ -9049,12 +7610,12 @@
}
},
"node_modules/@trigger.dev/react": {
- "version": "2.3.15",
- "resolved": "https://registry.npmjs.org/@trigger.dev/react/-/react-2.3.15.tgz",
- "integrity": "sha512-4WGDSGjr8DlJW0REvYCmyXifC1tlb5e/sjKjurjScm+2zNO4bNnHqzozANJfs6TzqO3mbrjBrpISAeN1MW8vzA==",
+ "version": "2.3.16",
+ "resolved": "https://registry.npmjs.org/@trigger.dev/react/-/react-2.3.16.tgz",
+ "integrity": "sha512-O7RzyeTrjczTMH+heoFQDu0Jc7ZAnIBdphVutly78DucV0XvJMCY2FPG+LqNk9TAC+cKy2e/6iY/MRSMapgiWQ==",
"dependencies": {
"@tanstack/react-query": "5.0.0-beta.2",
- "@trigger.dev/core": "^2.3.15",
+ "@trigger.dev/core": "^2.3.16",
"debug": "^4.3.4",
"zod": "3.22.3"
},
@@ -9071,9 +7632,9 @@
}
},
"node_modules/@trigger.dev/remix": {
- "version": "2.3.15",
- "resolved": "https://registry.npmjs.org/@trigger.dev/remix/-/remix-2.3.15.tgz",
- "integrity": "sha512-RNngiNCB80iF7d+OriUXdAPreuhIIiJNLq9vl0rfWgt75v2P4tlZKdbF6xp2e57/Eda91OjXf/FJ5qZJxSR2lQ==",
+ "version": "2.3.16",
+ "resolved": "https://registry.npmjs.org/@trigger.dev/remix/-/remix-2.3.16.tgz",
+ "integrity": "sha512-L/LMsgSlTvlQ98W0I7Wclf+22fwKf73q1mRWy2bcRfp/cD2zu5FzVikkgIDcS2I1Bc6COwOm+K4oSHYCZCuFxw==",
"dependencies": {
"debug": "^4.3.4"
},
@@ -9082,16 +7643,16 @@
},
"peerDependencies": {
"@remix-run/server-runtime": ">1.19.0",
- "@trigger.dev/sdk": "^2.3.15"
+ "@trigger.dev/sdk": "^2.3.16"
}
},
"node_modules/@trigger.dev/sdk": {
- "version": "2.3.15",
- "resolved": "https://registry.npmjs.org/@trigger.dev/sdk/-/sdk-2.3.15.tgz",
- "integrity": "sha512-6ICeF5GYZ1CeqyaFurqUnYxmKgrq1eXeRaceOEhpgeNWhNArE0eGzGsv+c064lkCpqEQ2XphFLAEnp2NgQgZFw==",
+ "version": "2.3.16",
+ "resolved": "https://registry.npmjs.org/@trigger.dev/sdk/-/sdk-2.3.16.tgz",
+ "integrity": "sha512-Tv60z/eDniC+nYuMmTqkESF16mIKudSLdepB0+wreKVXXF9D/kZuTbbQISeNQ7DAKMTkMAFSU0vvntsqyRC4wQ==",
"dependencies": {
- "@trigger.dev/core": "^2.3.15",
- "@trigger.dev/core-backend": "^2.3.15",
+ "@trigger.dev/core": "^2.3.16",
+ "@trigger.dev/core-backend": "^2.3.16",
"chalk": "^5.2.0",
"cronstrue": "^2.21.0",
"debug": "^4.3.4",
@@ -9121,26 +7682,6 @@
"url": "https://github.com/chalk/chalk?sponsor=1"
}
},
- "node_modules/@trigger.dev/sdk/node_modules/ws": {
- "version": "8.14.2",
- "resolved": "https://registry.npmjs.org/ws/-/ws-8.14.2.tgz",
- "integrity": "sha512-wEBG1ftX4jcglPxgFCMJmZ2PLtSbJ2Peg6TmpJFTbe9GZYOQCDPdMYu/Tm0/bGZkw8paZnJY45J4K2PZrLYq8g==",
- "engines": {
- "node": ">=10.0.0"
- },
- "peerDependencies": {
- "bufferutil": "^4.0.1",
- "utf-8-validate": ">=5.0.2"
- },
- "peerDependenciesMeta": {
- "bufferutil": {
- "optional": true
- },
- "utf-8-validate": {
- "optional": true
- }
- }
- },
"node_modules/@trigger.dev/sdk/node_modules/zod": {
"version": "3.22.3",
"resolved": "https://registry.npmjs.org/zod/-/zod-3.22.3.tgz",
@@ -9158,14 +7699,14 @@
}
},
"node_modules/@types/aria-query": {
- "version": "5.0.3",
- "resolved": "https://registry.npmjs.org/@types/aria-query/-/aria-query-5.0.3.tgz",
- "integrity": "sha512-0Z6Tr7wjKJIk4OUEjVUQMtyunLDy339vcMaj38Kpj6jM2OE1p3S4kXExKZ7a3uXQAPCoy3sbrP1wibDKaf39oA=="
+ "version": "5.0.4",
+ "resolved": "https://registry.npmjs.org/@types/aria-query/-/aria-query-5.0.4.tgz",
+ "integrity": "sha512-rfT93uj5s0PRL7EzccGMs3brplhcrghnDoV26NqKhCAS1hVo+WdNsPvE/yb6ilfr5hi2MEk6d5EWJTKdxg8jVw=="
},
"node_modules/@types/babel__core": {
- "version": "7.20.3",
- "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.3.tgz",
- "integrity": "sha512-54fjTSeSHwfan8AyHWrKbfBWiEUrNTZsUwPTDSNaaP1QDQIZbeNUg3a59E9D+375MzUw/x1vx2/0F5LBz+AeYA==",
+ "version": "7.20.5",
+ "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.5.tgz",
+ "integrity": "sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==",
"dependencies": {
"@babel/parser": "^7.20.7",
"@babel/types": "^7.20.7",
@@ -9175,40 +7716,39 @@
}
},
"node_modules/@types/babel__generator": {
- "version": "7.6.6",
- "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.6.6.tgz",
- "integrity": "sha512-66BXMKb/sUWbMdBNdMvajU7i/44RkrA3z/Yt1c7R5xejt8qh84iU54yUWCtm0QwGJlDcf/gg4zd/x4mpLAlb/w==",
+ "version": "7.6.8",
+ "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.6.8.tgz",
+ "integrity": "sha512-ASsj+tpEDsEiFr1arWrlN6V3mdfjRMZt6LtK/Vp/kreFLnr5QH5+DhvD5nINYZXzwJvXeGq+05iUXcAzVrqWtw==",
"dependencies": {
"@babel/types": "^7.0.0"
}
},
"node_modules/@types/babel__template": {
- "version": "7.4.3",
- "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.3.tgz",
- "integrity": "sha512-ciwyCLeuRfxboZ4isgdNZi/tkt06m8Tw6uGbBSBgWrnnZGNXiEyM27xc/PjXGQLqlZ6ylbgHMnm7ccF9tCkOeQ==",
+ "version": "7.4.4",
+ "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.4.tgz",
+ "integrity": "sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A==",
"dependencies": {
"@babel/parser": "^7.1.0",
"@babel/types": "^7.0.0"
}
},
"node_modules/@types/babel__traverse": {
- "version": "7.20.3",
- "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.20.3.tgz",
- "integrity": "sha512-Lsh766rGEFbaxMIDH7Qa+Yha8cMVI3qAK6CHt3OR0YfxOIn5Z54iHiyDRycHrBqeIiqGa20Kpsv1cavfBKkRSw==",
+ "version": "7.20.5",
+ "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.20.5.tgz",
+ "integrity": "sha512-WXCyOcRtH37HAUkpXhUduaxdm82b4GSlyTqajXviN4EfiuPgNYR109xMCKvpl6zPIpua0DGlMEDCq+g8EdoheQ==",
"dependencies": {
"@babel/types": "^7.20.7"
}
},
"node_modules/@types/cookie": {
- "version": "0.4.1",
- "resolved": "https://registry.npmjs.org/@types/cookie/-/cookie-0.4.1.tgz",
- "integrity": "sha512-XW/Aa8APYr6jSVVA1y/DEIZX0/GMKLEVekNG727R8cs56ahETkRAy/3DR7+fJyh7oUgGwNQaRfXCun0+KbWY7Q==",
- "peer": true
+ "version": "0.6.0",
+ "resolved": "https://registry.npmjs.org/@types/cookie/-/cookie-0.6.0.tgz",
+ "integrity": "sha512-4Kh9a6B2bQciAhf7FSuMRRkUWecJgJu9nPnx3yzpsfXX/c50REIqpHY4C82bXP90qrLtXtkDxTZosYO3UpOwlA=="
},
"node_modules/@types/d3": {
- "version": "7.4.2",
- "resolved": "https://registry.npmjs.org/@types/d3/-/d3-7.4.2.tgz",
- "integrity": "sha512-Y4g2Yb30ZJmmtqAJTqMRaqXwRawfvpdpVmyEYEcyGNhrQI/Zvkq3k7yE1tdN07aFSmNBfvmegMQ9Fe2qy9ZMhw==",
+ "version": "7.4.3",
+ "resolved": "https://registry.npmjs.org/@types/d3/-/d3-7.4.3.tgz",
+ "integrity": "sha512-lZXZ9ckh5R8uiFVt8ogUNf+pIrK4EsWrx2Np75WvF/eTpJ0FMHNhjXk8CKEx/+gpHbNQyJWehbFaTvqmHWB3ww==",
"dependencies": {
"@types/d3-array": "*",
"@types/d3-axis": "*",
@@ -9248,25 +7788,25 @@
"integrity": "sha512-Reoy+pKnvsksN0lQUlcH6dOGjRZ/3WRwXR//m+/8lt1BXeI4xyaUZoqULNjyXXRuh0Mj4LNpkCvhUpQlY3X5xQ=="
},
"node_modules/@types/d3-axis": {
- "version": "3.0.5",
- "resolved": "https://registry.npmjs.org/@types/d3-axis/-/d3-axis-3.0.5.tgz",
- "integrity": "sha512-ufDAV3SQzju+uB3Jlty7SUb/jMigjpIlvDDcSGvGmmO6OT/sNO93UE0dRzwWOZeBLzrLSA0CQM4bf3iq1std3A==",
+ "version": "3.0.6",
+ "resolved": "https://registry.npmjs.org/@types/d3-axis/-/d3-axis-3.0.6.tgz",
+ "integrity": "sha512-pYeijfZuBd87T0hGn0FO1vQ/cgLk6E1ALJjfkC0oJ8cbwkZl3TpgS8bVBLZN+2jjGgg38epgxb2zmoGtSfvgMw==",
"dependencies": {
"@types/d3-selection": "*"
}
},
"node_modules/@types/d3-brush": {
- "version": "3.0.5",
- "resolved": "https://registry.npmjs.org/@types/d3-brush/-/d3-brush-3.0.5.tgz",
- "integrity": "sha512-JROQXZNq1X6QdWstESDUv1VilwZ2hBCQnWB91yal+5yZvYwGQvYsGCjrkHGfKK/8/AcX1JnERmpQzdDDuLRUsA==",
+ "version": "3.0.6",
+ "resolved": "https://registry.npmjs.org/@types/d3-brush/-/d3-brush-3.0.6.tgz",
+ "integrity": "sha512-nH60IZNNxEcrh6L1ZSMNA28rj27ut/2ZmI3r96Zd+1jrZD++zD3LsMIjWlvg4AYrHn/Pqz4CF3veCxGjtbqt7A==",
"dependencies": {
"@types/d3-selection": "*"
}
},
"node_modules/@types/d3-chord": {
- "version": "3.0.5",
- "resolved": "https://registry.npmjs.org/@types/d3-chord/-/d3-chord-3.0.5.tgz",
- "integrity": "sha512-rs26AIhJjtc+XLR4YQU8IjPTLOlDVO4PR1y+pVFYEHzKh2tE5tYz3MF4QV6iz7HboXQEaYpJQt8dH9uUkne8yA=="
+ "version": "3.0.6",
+ "resolved": "https://registry.npmjs.org/@types/d3-chord/-/d3-chord-3.0.6.tgz",
+ "integrity": "sha512-LFYWWd8nwfwEmTZG9PfQxd17HbNPksHBiJHaKuY1XeqscXacsS2tyoo6OdRsjf+NQYeB6XrNL3a25E3gH69lcg=="
},
"node_modules/@types/d3-color": {
"version": "3.1.0",
@@ -9274,9 +7814,9 @@
"integrity": "sha512-HKuicPHJuvPgCD+np6Se9MQvS6OCbJmOjGvylzMJRlDwUXjKTTXs6Pwgk79O09Vj/ho3u1ofXnhFOaEWWPrlwA=="
},
"node_modules/@types/d3-contour": {
- "version": "3.0.5",
- "resolved": "https://registry.npmjs.org/@types/d3-contour/-/d3-contour-3.0.5.tgz",
- "integrity": "sha512-wLvjwdOQVd1NL1IcW90CCt1VtpeZ3V20p/OTXlkT8uAiprrJnq2PNNnRNe1QCez4U9aMU29Z14zpJQVLW1+Lcg==",
+ "version": "3.0.6",
+ "resolved": "https://registry.npmjs.org/@types/d3-contour/-/d3-contour-3.0.6.tgz",
+ "integrity": "sha512-BjzLgXGnCWjUSYGfH1cpdo41/hgdWETu4YxpezoztawmqsvCeep+8QGfiY6YbDvfgHz/DkjeIkkZVJavB4a3rg==",
"dependencies": {
"@types/d3-array": "*",
"@types/geojson": "*"
@@ -9288,40 +7828,40 @@
"integrity": "sha512-tLxQ2sfT0p6sxdG75c6f/ekqxjyYR0+LwPrsO1mbC9YDBzPJhs2HbJJRrn8Ez1DBoHRo2yx7YEATI+8V1nGMnQ=="
},
"node_modules/@types/d3-dispatch": {
- "version": "3.0.5",
- "resolved": "https://registry.npmjs.org/@types/d3-dispatch/-/d3-dispatch-3.0.5.tgz",
- "integrity": "sha512-hxvq2kc+9hydVppo21JCGfcM0tLTh1DXnG3MLN0KlxsNZJH4bsdl1iXDuWtXFpWWlBrCMwSqlnoLPDxNAZU3Bg=="
+ "version": "3.0.6",
+ "resolved": "https://registry.npmjs.org/@types/d3-dispatch/-/d3-dispatch-3.0.6.tgz",
+ "integrity": "sha512-4fvZhzMeeuBJYZXRXrRIQnvUYfyXwYmLsdiN7XXmVNQKKw1cM8a5WdID0g1hVFZDqT9ZqZEY5pD44p24VS7iZQ=="
},
"node_modules/@types/d3-drag": {
- "version": "3.0.5",
- "resolved": "https://registry.npmjs.org/@types/d3-drag/-/d3-drag-3.0.5.tgz",
- "integrity": "sha512-arHyAGvO0NEGGPCU2jTb31TlXeSxwty1bIxr5wOFOCVqVjgriXloLWXoRp39Oa0Y/qXxcAVMIonAWLrtLxUZAQ==",
+ "version": "3.0.7",
+ "resolved": "https://registry.npmjs.org/@types/d3-drag/-/d3-drag-3.0.7.tgz",
+ "integrity": "sha512-HE3jVKlzU9AaMazNufooRJ5ZpWmLIoc90A37WU2JMmeq28w1FQqCZswHZ3xR+SuxYftzHq6WU6KJHvqxKzTxxQ==",
"dependencies": {
"@types/d3-selection": "*"
}
},
"node_modules/@types/d3-dsv": {
- "version": "3.0.5",
- "resolved": "https://registry.npmjs.org/@types/d3-dsv/-/d3-dsv-3.0.5.tgz",
- "integrity": "sha512-73WZR3QFOaSRVz9iOrebTbTnbo7xjcgS/i0Cq5zy0jMXPO3v/JbkTD3Zqii1eYE6v4EJ78g5VP407rm+p8fdlA=="
+ "version": "3.0.7",
+ "resolved": "https://registry.npmjs.org/@types/d3-dsv/-/d3-dsv-3.0.7.tgz",
+ "integrity": "sha512-n6QBF9/+XASqcKK6waudgL0pf/S5XHPPI8APyMLLUHd8NqouBGLsU8MgtO7NINGtPBtk9Kko/W4ea0oAspwh9g=="
},
"node_modules/@types/d3-ease": {
- "version": "3.0.1",
- "resolved": "https://registry.npmjs.org/@types/d3-ease/-/d3-ease-3.0.1.tgz",
- "integrity": "sha512-VZofjpEt8HWv3nxUAosj5o/+4JflnJ7Bbv07k17VO3T2WRuzGdZeookfaF60iVh5RdhVG49LE5w6LIshVUC6rg=="
+ "version": "3.0.2",
+ "resolved": "https://registry.npmjs.org/@types/d3-ease/-/d3-ease-3.0.2.tgz",
+ "integrity": "sha512-NcV1JjO5oDzoK26oMzbILE6HW7uVXOHLQvHshBUW4UMdZGfiY6v5BeQwh9a9tCzv+CeefZQHJt5SRgK154RtiA=="
},
"node_modules/@types/d3-fetch": {
- "version": "3.0.5",
- "resolved": "https://registry.npmjs.org/@types/d3-fetch/-/d3-fetch-3.0.5.tgz",
- "integrity": "sha512-Rc8pb6H0RRLpAV2hEXduykUgcDUOhjSLTLmCIeo6ejzgs4SaITh/EteMb3p5Env3Hqjsqw0fCksyqopHHzMkMg==",
+ "version": "3.0.7",
+ "resolved": "https://registry.npmjs.org/@types/d3-fetch/-/d3-fetch-3.0.7.tgz",
+ "integrity": "sha512-fTAfNmxSb9SOWNB9IoG5c8Hg6R+AzUHDRlsXsDZsNp6sxAEOP0tkP3gKkNSO/qmHPoBFTxNrjDprVHDQDvo5aA==",
"dependencies": {
"@types/d3-dsv": "*"
}
},
"node_modules/@types/d3-force": {
- "version": "3.0.7",
- "resolved": "https://registry.npmjs.org/@types/d3-force/-/d3-force-3.0.7.tgz",
- "integrity": "sha512-rsok4CEvPLyVWRPsFiBhanJc3up03H/EARVz4d8soPh8drv82YMuAckYy4yv8g4/81JwCng5U5/o9aj9d0T6bQ=="
+ "version": "3.0.9",
+ "resolved": "https://registry.npmjs.org/@types/d3-force/-/d3-force-3.0.9.tgz",
+ "integrity": "sha512-IKtvyFdb4Q0LWna6ymywQsEYjK/94SGhPrMfEr1TIc5OBeziTi+1jcCvttts8e0UWZIxpasjnQk9MNk/3iS+kA=="
},
"node_modules/@types/d3-format": {
"version": "3.0.1",
@@ -9329,17 +7869,17 @@
"integrity": "sha512-5KY70ifCCzorkLuIkDe0Z9YTf9RR2CjBX1iaJG+rgM/cPP+sO+q9YdQ9WdhQcgPj1EQiJ2/0+yUkkziTG6Lubg=="
},
"node_modules/@types/d3-geo": {
- "version": "3.0.6",
- "resolved": "https://registry.npmjs.org/@types/d3-geo/-/d3-geo-3.0.6.tgz",
- "integrity": "sha512-wblAES3b+C3hvp4VakwECEKtHquT/xc6K4HOna95LM1j1fd7s7WmU4V+JMQZfKhNCMkV2vWD+ZUgY2Uj6gqfuA==",
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/@types/d3-geo/-/d3-geo-3.1.0.tgz",
+ "integrity": "sha512-856sckF0oP/diXtS4jNsiQw/UuK5fQG8l/a9VVLeSouf1/PPbBE1i1W852zVwKwYCBkFJJB7nCFTbk6UMEXBOQ==",
"dependencies": {
"@types/geojson": "*"
}
},
"node_modules/@types/d3-hierarchy": {
- "version": "3.1.5",
- "resolved": "https://registry.npmjs.org/@types/d3-hierarchy/-/d3-hierarchy-3.1.5.tgz",
- "integrity": "sha512-DEcBUj1IL3WyPLDlh4m2nsNXnMLITXM5Vwcu4G85yJHtf2cVGPBjgky3L11WBnT+ayHKf06Tchk5mY1eGmd4WQ=="
+ "version": "3.1.6",
+ "resolved": "https://registry.npmjs.org/@types/d3-hierarchy/-/d3-hierarchy-3.1.6.tgz",
+ "integrity": "sha512-qlmD/8aMk5xGorUvTUWHCiumvgaUXYldYjNVOWtYoTYY/L+WwIEAmJxUmTgr9LoGNG0PPAOmqMDJVDPc7DOpPw=="
},
"node_modules/@types/d3-interpolate": {
"version": "3.0.1",
@@ -9350,24 +7890,24 @@
}
},
"node_modules/@types/d3-path": {
- "version": "1.0.10",
- "resolved": "https://registry.npmjs.org/@types/d3-path/-/d3-path-1.0.10.tgz",
- "integrity": "sha512-19YfheAnvYgDezl00WQTGHPqYAT6DDzmzSLoT9MUl+d/EQmHC3WEoiY/bZ4OpBVMHieVg9C/Jj/yn329RiGqrg=="
+ "version": "1.0.11",
+ "resolved": "https://registry.npmjs.org/@types/d3-path/-/d3-path-1.0.11.tgz",
+ "integrity": "sha512-4pQMp8ldf7UaB/gR8Fvvy69psNHkTpD/pVw3vmEi8iZAB9EPMBruB1JvHO4BIq9QkUUd2lV1F5YXpMNj7JPBpw=="
},
"node_modules/@types/d3-polygon": {
- "version": "3.0.1",
- "resolved": "https://registry.npmjs.org/@types/d3-polygon/-/d3-polygon-3.0.1.tgz",
- "integrity": "sha512-nrcWPk7B9qs6xnpq60Cls44zm9eDmFAv65qi/N/emh/oftnG6uYz49aIS0mdFaGeJxVN8H3pHneMuZMV8EwFdw=="
+ "version": "3.0.2",
+ "resolved": "https://registry.npmjs.org/@types/d3-polygon/-/d3-polygon-3.0.2.tgz",
+ "integrity": "sha512-ZuWOtMaHCkN9xoeEMr1ubW2nGWsp4nIql+OPQRstu4ypeZ+zk3YKqQT0CXVe/PYqrKpZAi+J9mTs05TKwjXSRA=="
},
"node_modules/@types/d3-quadtree": {
- "version": "3.0.4",
- "resolved": "https://registry.npmjs.org/@types/d3-quadtree/-/d3-quadtree-3.0.4.tgz",
- "integrity": "sha512-B725MopFDIOQ6njFbeOxIEf42HVO2Xv+FmcxQISdOKErvLbFqWz3Riu+OWujUYoogreqqyHBHcGGL/JzzXQYsw=="
+ "version": "3.0.6",
+ "resolved": "https://registry.npmjs.org/@types/d3-quadtree/-/d3-quadtree-3.0.6.tgz",
+ "integrity": "sha512-oUzyO1/Zm6rsxKRHA1vH0NEDG58HrT5icx/azi9MF1TWdtttWl0UIUsjEQBBh+SIkrpd21ZjEv7ptxWys1ncsg=="
},
"node_modules/@types/d3-random": {
- "version": "3.0.2",
- "resolved": "https://registry.npmjs.org/@types/d3-random/-/d3-random-3.0.2.tgz",
- "integrity": "sha512-8QhsqkKs6mymAZMrg3ZFXPxKA34rdgp3ZrtB8o6mhFsKAd1gOvR1gocWnca+kmXypQdwgnzKm9gZE2Uw8NjjKw=="
+ "version": "3.0.3",
+ "resolved": "https://registry.npmjs.org/@types/d3-random/-/d3-random-3.0.3.tgz",
+ "integrity": "sha512-Imagg1vJ3y76Y2ea0871wpabqp613+8/r0mCLEBfdtqC7xMSfj9idOnmBYyMoULfHePJyxMAw3nWhJxzc+LFwQ=="
},
"node_modules/@types/d3-scale": {
"version": "4.0.2",
@@ -9378,19 +7918,19 @@
}
},
"node_modules/@types/d3-scale-chromatic": {
- "version": "3.0.1",
- "resolved": "https://registry.npmjs.org/@types/d3-scale-chromatic/-/d3-scale-chromatic-3.0.1.tgz",
- "integrity": "sha512-Ob7OrwiTeQXY/WBBbRHGZBOn6rH1h7y3jjpTSKYqDEeqFjktql6k2XSgNwLrLDmAsXhEn8P9NHDY4VTuo0ZY1w=="
+ "version": "3.0.3",
+ "resolved": "https://registry.npmjs.org/@types/d3-scale-chromatic/-/d3-scale-chromatic-3.0.3.tgz",
+ "integrity": "sha512-laXM4+1o5ImZv3RpFAsTRn3TEkzqkytiOY0Dz0sq5cnd1dtNlk6sHLon4OvqaiJb28T0S/TdsBI3Sjsy+keJrw=="
},
"node_modules/@types/d3-selection": {
- "version": "3.0.8",
- "resolved": "https://registry.npmjs.org/@types/d3-selection/-/d3-selection-3.0.8.tgz",
- "integrity": "sha512-pxCZUfQyedq/DIlPXIR5wE1mIH37omOdx1yxRudL3KZ4AC+156jMjOv1z5RVlGq62f8WX2kyO0hTVgEx627QFg=="
+ "version": "3.0.10",
+ "resolved": "https://registry.npmjs.org/@types/d3-selection/-/d3-selection-3.0.10.tgz",
+ "integrity": "sha512-cuHoUgS/V3hLdjJOLTT691+G2QoqAjCVLmr4kJXR4ha56w1Zdu8UUQ5TxLRqudgNjwXeQxKMq4j+lyf9sWuslg=="
},
"node_modules/@types/d3-shape": {
- "version": "1.3.10",
- "resolved": "https://registry.npmjs.org/@types/d3-shape/-/d3-shape-1.3.10.tgz",
- "integrity": "sha512-Nu+/Hyo/owxYH61aBSV9qOM9szEw81BIebdaRgm8VBedyRIW/V2H9AJVp+gwrS+1BMiW7HkoDF9eUtmLOHzTgQ==",
+ "version": "1.3.12",
+ "resolved": "https://registry.npmjs.org/@types/d3-shape/-/d3-shape-1.3.12.tgz",
+ "integrity": "sha512-8oMzcd4+poSLGgV0R1Q1rOlx/xdmozS4Xab7np0eamFFUYq71AU9pOCJEFnkXW2aI/oXdVYJzw6pssbSut7Z9Q==",
"dependencies": {
"@types/d3-path": "^1"
}
@@ -9406,31 +7946,31 @@
"integrity": "sha512-/myT3I7EwlukNOX2xVdMzb8FRgNzRMpsZddwst9Ld/VFe6LyJyRp0s32l/V9XoUzk+Gqu56F/oGk6507+8BxrA=="
},
"node_modules/@types/d3-timer": {
- "version": "3.0.1",
- "resolved": "https://registry.npmjs.org/@types/d3-timer/-/d3-timer-3.0.1.tgz",
- "integrity": "sha512-GGTvzKccVEhxmRfJEB6zhY9ieT4UhGVUIQaBzFpUO9OXy2ycAlnPCSJLzmGGgqt3KVjqN3QCQB4g1rsZnHsWhg=="
+ "version": "3.0.2",
+ "resolved": "https://registry.npmjs.org/@types/d3-timer/-/d3-timer-3.0.2.tgz",
+ "integrity": "sha512-Ps3T8E8dZDam6fUyNiMkekK3XUsaUEik+idO9/YjPtfj2qruF8tFBXS7XhtE4iIXBLxhmLjP3SXpLhVf21I9Lw=="
},
"node_modules/@types/d3-transition": {
- "version": "3.0.6",
- "resolved": "https://registry.npmjs.org/@types/d3-transition/-/d3-transition-3.0.6.tgz",
- "integrity": "sha512-K0To23B5UxNwFtKORnS5JoNYvw/DnknU5MzhHIS9czJ/lTqFFDeU6w9lArOdoTl0cZFNdNrMJSFCbRCEHccH2w==",
+ "version": "3.0.8",
+ "resolved": "https://registry.npmjs.org/@types/d3-transition/-/d3-transition-3.0.8.tgz",
+ "integrity": "sha512-ew63aJfQ/ms7QQ4X7pk5NxQ9fZH/z+i24ZfJ6tJSfqxJMrYLiK01EAs2/Rtw/JreGUsS3pLPNV644qXFGnoZNQ==",
"dependencies": {
"@types/d3-selection": "*"
}
},
"node_modules/@types/d3-zoom": {
- "version": "3.0.6",
- "resolved": "https://registry.npmjs.org/@types/d3-zoom/-/d3-zoom-3.0.6.tgz",
- "integrity": "sha512-dGZQaXEu7aNcCL71LPpjB58IjoQNM9oDPfQuMUJ7N/fbkcIWGX2PnmUWO1jPJ+RLbZBpRUggJUX8twKRvo2hKQ==",
+ "version": "3.0.8",
+ "resolved": "https://registry.npmjs.org/@types/d3-zoom/-/d3-zoom-3.0.8.tgz",
+ "integrity": "sha512-iqMC4/YlFCSlO8+2Ii1GGGliCAY4XdeG748w5vQUbevlbDu0zSjH/+jojorQVBK/se0j6DUFNPBGSqD3YWYnDw==",
"dependencies": {
"@types/d3-interpolate": "*",
"@types/d3-selection": "*"
}
},
"node_modules/@types/debug": {
- "version": "4.1.10",
- "resolved": "https://registry.npmjs.org/@types/debug/-/debug-4.1.10.tgz",
- "integrity": "sha512-tOSCru6s732pofZ+sMv9o4o3Zc+Sa8l3bxd/tweTQudFn06vAzb13ZX46Zi6m6EJ+RUbRTHvgQJ1gBtSgkaUYA==",
+ "version": "4.1.12",
+ "resolved": "https://registry.npmjs.org/@types/debug/-/debug-4.1.12.tgz",
+ "integrity": "sha512-vIChWdVG3LG1SMxEvI/AK+FWJthlrqlTu7fbrlywTkkaONwk/UAGaULXRlf8vkzFBLVm0zkMdCquhL5aOjhXPQ==",
"dependencies": {
"@types/ms": "*"
}
@@ -9445,9 +7985,9 @@
}
},
"node_modules/@types/eslint": {
- "version": "8.44.6",
- "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-8.44.6.tgz",
- "integrity": "sha512-P6bY56TVmX8y9J87jHNgQh43h6VVU+6H7oN7hgvivV81K2XY8qJZ5vqPy/HdUoVIelii2kChYVzQanlswPWVFw==",
+ "version": "8.56.2",
+ "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-8.56.2.tgz",
+ "integrity": "sha512-uQDwm1wFHmbBbCZCqAlq6Do9LYwByNZHWzXppSnay9SuwJ+VRbjkbLABer54kcPnMSlG6Fdiy2yaFXm/z9Z5gw==",
"peer": true,
"dependencies": {
"@types/estree": "*",
@@ -9460,30 +8000,30 @@
"integrity": "sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw=="
},
"node_modules/@types/estree-jsx": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/@types/estree-jsx/-/estree-jsx-1.0.2.tgz",
- "integrity": "sha512-GNBWlGBMjiiiL5TSkvPtOteuXsiVitw5MYGY1UYlrAq0SKyczsls6sCD7TZ8fsjRsvCVxml7EbyjJezPb3DrSA==",
+ "version": "1.0.3",
+ "resolved": "https://registry.npmjs.org/@types/estree-jsx/-/estree-jsx-1.0.3.tgz",
+ "integrity": "sha512-pvQ+TKeRHeiUGRhvYwRrQ/ISnohKkSJR14fT2yqyZ4e9K5vqc7hrtY2Y1Dw0ZwAzQ6DQsxsaCUuSIIi8v0Cq6w==",
"dependencies": {
"@types/estree": "*"
}
},
"node_modules/@types/geojson": {
- "version": "7946.0.12",
- "resolved": "https://registry.npmjs.org/@types/geojson/-/geojson-7946.0.12.tgz",
- "integrity": "sha512-uK2z1ZHJyC0nQRbuovXFt4mzXDwf27vQeUWNhfKGwRcWW429GOhP8HxUHlM6TLH4bzmlv/HlEjpvJh3JfmGsAA=="
+ "version": "7946.0.13",
+ "resolved": "https://registry.npmjs.org/@types/geojson/-/geojson-7946.0.13.tgz",
+ "integrity": "sha512-bmrNrgKMOhM3WsafmbGmC+6dsF2Z308vLFsQ3a/bT8X8Sv5clVYpPars/UPq+sAaJP+5OoLAYgwbkS5QEJdLUQ=="
},
"node_modules/@types/graceful-fs": {
- "version": "4.1.8",
- "resolved": "https://registry.npmjs.org/@types/graceful-fs/-/graceful-fs-4.1.8.tgz",
- "integrity": "sha512-NhRH7YzWq8WiNKVavKPBmtLYZHxNY19Hh+az28O/phfp68CF45pMFud+ZzJ8ewnxnC5smIdF3dqFeiSUQ5I+pw==",
+ "version": "4.1.9",
+ "resolved": "https://registry.npmjs.org/@types/graceful-fs/-/graceful-fs-4.1.9.tgz",
+ "integrity": "sha512-olP3sd1qOEe5dXTSaFvQG+02VdRXcdytWLAZsAq1PecU8uqQAhkrnbli7DagjtXKW/Bl7YJbUsa8MPcuc8LHEQ==",
"dependencies": {
"@types/node": "*"
}
},
"node_modules/@types/hast": {
- "version": "2.3.7",
- "resolved": "https://registry.npmjs.org/@types/hast/-/hast-2.3.7.tgz",
- "integrity": "sha512-EVLigw5zInURhzfXUM65eixfadfsHKomGKUakToXo84t8gGIJuTcD2xooM2See7GyQ7DRtYjhCHnSUQez8JaLw==",
+ "version": "2.3.9",
+ "resolved": "https://registry.npmjs.org/@types/hast/-/hast-2.3.9.tgz",
+ "integrity": "sha512-pTHyNlaMD/oKJmS+ZZUyFUcsZeBZpC0lmGquw98CqRVNgAdJZJeD7GoeLiT6Xbx5rU9VCjSt0RwEvDgzh4obFw==",
"dependencies": {
"@types/unist": "^2"
}
@@ -9499,22 +8039,22 @@
}
},
"node_modules/@types/istanbul-lib-coverage": {
- "version": "2.0.5",
- "resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.5.tgz",
- "integrity": "sha512-zONci81DZYCZjiLe0r6equvZut0b+dBRPBN5kBDjsONnutYNtJMoWQ9uR2RkL1gLG9NMTzvf+29e5RFfPbeKhQ=="
+ "version": "2.0.6",
+ "resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.6.tgz",
+ "integrity": "sha512-2QF/t/auWm0lsy8XtKVPG19v3sSOQlJe/YHZgfjb/KBBHOGSV+J2q/S671rcq9uTBrLAXmZpqJiaQbMT+zNU1w=="
},
"node_modules/@types/istanbul-lib-report": {
- "version": "3.0.2",
- "resolved": "https://registry.npmjs.org/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.2.tgz",
- "integrity": "sha512-8toY6FgdltSdONav1XtUHl4LN1yTmLza+EuDazb/fEmRNCwjyqNVIQWs2IfC74IqjHkREs/nQ2FWq5kZU9IC0w==",
+ "version": "3.0.3",
+ "resolved": "https://registry.npmjs.org/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.3.tgz",
+ "integrity": "sha512-NQn7AHQnk/RSLOxrBbGyJM/aVQ+pjj5HCgasFxc0K/KhoATfQ/47AyUl15I2yBUpihjmas+a+VJBOqecrFH+uA==",
"dependencies": {
"@types/istanbul-lib-coverage": "*"
}
},
"node_modules/@types/istanbul-reports": {
- "version": "3.0.3",
- "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.3.tgz",
- "integrity": "sha512-1nESsePMBlf0RPRffLZi5ujYh7IH1BWL4y9pr+Bn3cJBdxz+RTP8bUFljLz9HvzhhOSWKdyBZ4DIivdL6rvgZg==",
+ "version": "3.0.4",
+ "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.4.tgz",
+ "integrity": "sha512-pk2B1NWalF9toCRu6gjBzR69syFjP4Od8WRAX+0mmf9lAjCRicLOWc+ZrxZHx/0XRjotgkF9t6iaMJ+aXcOdZQ==",
"dependencies": {
"@types/istanbul-lib-report": "*"
}
@@ -9544,21 +8084,15 @@
"node": ">= 10"
}
},
- "node_modules/@types/jest/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==",
- "dev": true
- },
"node_modules/@types/js-yaml": {
- "version": "4.0.8",
- "resolved": "https://registry.npmjs.org/@types/js-yaml/-/js-yaml-4.0.8.tgz",
- "integrity": "sha512-m6jnPk1VhlYRiLFm3f8X9Uep761f+CK8mHyS65LutH2OhmBF0BeMEjHgg05usH8PLZMWWc/BUR9RPmkvpWnyRA=="
+ "version": "4.0.9",
+ "resolved": "https://registry.npmjs.org/@types/js-yaml/-/js-yaml-4.0.9.tgz",
+ "integrity": "sha512-k4MGaQl5TGo/iipqb2UDG2UwjXziSWkh0uysQelTlJpX1qGlpUZYm8PnO4DxG1qBomtJUdYJ6qR6xdIah10JLg=="
},
"node_modules/@types/json-schema": {
- "version": "7.0.14",
- "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.14.tgz",
- "integrity": "sha512-U3PUjAudAdJBeC2pgN8uTIKgxrb4nlDF3SF0++EldXQvQBGkpFZMSnwQiIoDU77tv45VgNkl/L4ouD+rEomujw=="
+ "version": "7.0.15",
+ "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz",
+ "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA=="
},
"node_modules/@types/json5": {
"version": "0.0.29",
@@ -9566,66 +8100,66 @@
"integrity": "sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ=="
},
"node_modules/@types/katex": {
- "version": "0.16.5",
- "resolved": "https://registry.npmjs.org/@types/katex/-/katex-0.16.5.tgz",
- "integrity": "sha512-DD2Y3xMlTQvAnN6d8803xdgnOeYZ+HwMglb7/9YCf49J9RkJL53azf9qKa40MkEYhqVwxZ1GS2+VlShnz4Z1Bw=="
+ "version": "0.16.7",
+ "resolved": "https://registry.npmjs.org/@types/katex/-/katex-0.16.7.tgz",
+ "integrity": "sha512-HMwFiRujE5PjrgwHQ25+bsLJgowjGjm5Z8FVSf0N6PwgJrwxH0QxzHYDcKsTfV3wva0vzrpqMTJS2jXPr5BMEQ=="
},
"node_modules/@types/lodash": {
- "version": "4.14.200",
- "resolved": "https://registry.npmjs.org/@types/lodash/-/lodash-4.14.200.tgz",
- "integrity": "sha512-YI/M/4HRImtNf3pJgbF+W6FrXovqj+T+/HpENLTooK9PnkacBsDpeP3IpHab40CClUfhNmdM2WTNP2sa2dni5Q=="
+ "version": "4.14.202",
+ "resolved": "https://registry.npmjs.org/@types/lodash/-/lodash-4.14.202.tgz",
+ "integrity": "sha512-OvlIYQK9tNneDlS0VN54LLd5uiPCBOp7gS5Z0f1mjoJYBrtStzgmJBxONW3U6OZqdtNzZPmn9BS/7WI7BFFcFQ=="
},
"node_modules/@types/mdast": {
- "version": "3.0.14",
- "resolved": "https://registry.npmjs.org/@types/mdast/-/mdast-3.0.14.tgz",
- "integrity": "sha512-gVZ04PGgw1qLZKsnWnyFv4ORnaJ+DXLdHTVSFbU8yX6xZ34Bjg4Q32yPkmveUP1yItXReKfB0Aknlh/3zxTKAw==",
+ "version": "3.0.15",
+ "resolved": "https://registry.npmjs.org/@types/mdast/-/mdast-3.0.15.tgz",
+ "integrity": "sha512-LnwD+mUEfxWMa1QpDraczIn6k0Ee3SMicuYSSzS6ZYl2gKS09EClnJYGd8Du6rfc5r/GZEk5o1mRb8TaTj03sQ==",
"dependencies": {
"@types/unist": "^2"
}
},
"node_modules/@types/mdx": {
- "version": "2.0.9",
- "resolved": "https://registry.npmjs.org/@types/mdx/-/mdx-2.0.9.tgz",
- "integrity": "sha512-OKMdj17y8Cs+k1r0XFyp59ChSOwf8ODGtMQ4mnpfz5eFDk1aO41yN3pSKGuvVzmWAkFp37seubY1tzOVpwfWwg=="
+ "version": "2.0.10",
+ "resolved": "https://registry.npmjs.org/@types/mdx/-/mdx-2.0.10.tgz",
+ "integrity": "sha512-Rllzc5KHk0Al5/WANwgSPl1/CwjqCy+AZrGd78zuK+jO9aDM6ffblZ+zIjgPNAaEBmlO0RYDvLNh7wD0zKVgEg=="
},
"node_modules/@types/ms": {
- "version": "0.7.33",
- "resolved": "https://registry.npmjs.org/@types/ms/-/ms-0.7.33.tgz",
- "integrity": "sha512-AuHIyzR5Hea7ij0P9q7vx7xu4z0C28ucwjAZC0ja7JhINyCnOw8/DnvAPQQ9TfOlCtZAmCERKQX9+o1mgQhuOQ=="
+ "version": "0.7.34",
+ "resolved": "https://registry.npmjs.org/@types/ms/-/ms-0.7.34.tgz",
+ "integrity": "sha512-nG96G3Wp6acyAgJqGasjODb+acrI7KltPiRxzHPXnP3NgI28bpQDRv53olbqGXbfcgF5aiiHmO3xpwEpS5Ld9g=="
},
"node_modules/@types/node": {
- "version": "18.18.8",
- "resolved": "https://registry.npmjs.org/@types/node/-/node-18.18.8.tgz",
- "integrity": "sha512-OLGBaaK5V3VRBS1bAkMVP2/W9B+H8meUfl866OrMNQqt7wDgdpWPp5o6gmIc9pB+lIQHSq4ZL8ypeH1vPxcPaQ==",
+ "version": "18.19.8",
+ "resolved": "https://registry.npmjs.org/@types/node/-/node-18.19.8.tgz",
+ "integrity": "sha512-g1pZtPhsvGVTwmeVoexWZLTQaOvXwoSq//pTL0DHeNzUDrFnir4fgETdhjhIxjVnN+hKOuh98+E1eMLnUXstFg==",
"dependencies": {
"undici-types": "~5.26.4"
}
},
"node_modules/@types/normalize-package-data": {
- "version": "2.4.3",
- "resolved": "https://registry.npmjs.org/@types/normalize-package-data/-/normalize-package-data-2.4.3.tgz",
- "integrity": "sha512-ehPtgRgaULsFG8x0NeYJvmyH1hmlfsNLujHe9dQEia/7MAJYdzMSi19JtchUHjmBA6XC/75dK55mzZH+RyieSg=="
+ "version": "2.4.4",
+ "resolved": "https://registry.npmjs.org/@types/normalize-package-data/-/normalize-package-data-2.4.4.tgz",
+ "integrity": "sha512-37i+OaWTh9qeK4LSHPsyRC7NahnGotNuZvjLSgcPzblpHB3rrCJxAOgI5gCdKm7coonsaX1Of0ILiTcnZjbfxA=="
},
"node_modules/@types/nprogress": {
- "version": "0.2.2",
- "resolved": "https://registry.npmjs.org/@types/nprogress/-/nprogress-0.2.2.tgz",
- "integrity": "sha512-2wLrSJXLztGmr7wXwM0hA/wuIOY9DznVdd+ZFofHOiXcj9JnVt+2ZeLRJ7v5ZVlmheSkUOSg3Q3O4Ce7yji79A==",
+ "version": "0.2.3",
+ "resolved": "https://registry.npmjs.org/@types/nprogress/-/nprogress-0.2.3.tgz",
+ "integrity": "sha512-k7kRA033QNtC+gLc4VPlfnue58CM1iQLgn1IMAU8VPHGOj7oIHPp9UlhedEnD/Gl8evoCjwkZjlBORtZ3JByUA==",
"dev": true
},
"node_modules/@types/object.omit": {
- "version": "3.0.2",
- "resolved": "https://registry.npmjs.org/@types/object.omit/-/object.omit-3.0.2.tgz",
- "integrity": "sha512-BxWU36cMP+FKD3OLFluQaj2cBev2sx2LJaHELuphHwnleq+xnEhTmuYYYx4pOT/1U/ZoR6B+RdvxWh2FD6lGGA=="
+ "version": "3.0.3",
+ "resolved": "https://registry.npmjs.org/@types/object.omit/-/object.omit-3.0.3.tgz",
+ "integrity": "sha512-xrq4bQTBGYY2cw+gV4PzoG2Lv3L0pjZ1uXStRRDQoATOYW1lCsFQHhQ+OkPhIcQoqLjAq7gYif7D14Qaa6Zbew=="
},
"node_modules/@types/object.pick": {
- "version": "1.3.3",
- "resolved": "https://registry.npmjs.org/@types/object.pick/-/object.pick-1.3.3.tgz",
- "integrity": "sha512-qZqHmdGEALeSATMB1djT1S5szv6Wtpb7DKpHrt2XG4iyKlV7C2Xk8GmDXr1KXakOqUfX6ohw7ceruYt4NVmB1Q=="
+ "version": "1.3.4",
+ "resolved": "https://registry.npmjs.org/@types/object.pick/-/object.pick-1.3.4.tgz",
+ "integrity": "sha512-5PjwB0uP2XDp3nt5u5NJAG2DORHIRClPzWT/TTZhJ2Ekwe8M5bA9tvPdi9NO/n2uvu2/ictat8kgqvLfcIE1SA=="
},
"node_modules/@types/phoenix": {
- "version": "1.6.3",
- "resolved": "https://registry.npmjs.org/@types/phoenix/-/phoenix-1.6.3.tgz",
- "integrity": "sha512-D8TtchWVnU2ZdPVDY6tBJuz8MUDmCNVduilZTrf0Gn/u5I/uZEXOsaL4Gs4F0j43cysHsU/4h7eqAKc+SF2boQ=="
+ "version": "1.6.4",
+ "resolved": "https://registry.npmjs.org/@types/phoenix/-/phoenix-1.6.4.tgz",
+ "integrity": "sha512-B34A7uot1Cv0XtaHRYDATltAdKx0BvVKNgYNqE4WjtPUa4VQJM7kxeXcVKaH+KS+kCmZ+6w+QaUdcljiheiBJA=="
},
"node_modules/@types/prettier": {
"version": "2.7.3",
@@ -9633,14 +8167,14 @@
"integrity": "sha512-+68kP9yzs4LMp7VNh8gdzMSPZFL44MLGqiHWvttYJe+6qnuVr4Ek9wSBQoveqY/r+LwjCcU29kNVkidwim+kYA=="
},
"node_modules/@types/prop-types": {
- "version": "15.7.9",
- "resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.9.tgz",
- "integrity": "sha512-n1yyPsugYNSmHgxDFjicaI2+gCNjsBck8UX9kuofAKlc0h1bL+20oSF72KeNaW2DUlesbEVCFgyV2dPGTiY42g=="
+ "version": "15.7.11",
+ "resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.11.tgz",
+ "integrity": "sha512-ga8y9v9uyeiLdpKddhxYQkxNDrfvuPrlFb0N1qnZZByvcElJaXthF1UhvCh9TLWJBEHeNtdnbysW7Y6Uq8CVng=="
},
"node_modules/@types/react": {
- "version": "18.2.34",
- "resolved": "https://registry.npmjs.org/@types/react/-/react-18.2.34.tgz",
- "integrity": "sha512-U6eW/alrRk37FU/MS2RYMjx0Va2JGIVXELTODaTIYgvWGCV4Y4TfTUzG8DdmpDNIT0Xpj/R7GfyHOJJrDttcvg==",
+ "version": "18.2.48",
+ "resolved": "https://registry.npmjs.org/@types/react/-/react-18.2.48.tgz",
+ "integrity": "sha512-qboRCl6Ie70DQQG9hhNREz81jqC1cs9EVNcjQ1AU+jH6NFfSAhVVbrrY/+nSF+Bsk4AOwm9Qa61InvMCyV+H3w==",
"dependencies": {
"@types/prop-types": "*",
"@types/scheduler": "*",
@@ -9648,37 +8182,37 @@
}
},
"node_modules/@types/react-dom": {
- "version": "18.2.14",
- "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-18.2.14.tgz",
- "integrity": "sha512-V835xgdSVmyQmI1KLV2BEIUgqEuinxp9O4G6g3FqO/SqLac049E53aysv0oEFD2kHfejeKU+ZqL2bcFWj9gLAQ==",
+ "version": "18.2.18",
+ "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-18.2.18.tgz",
+ "integrity": "sha512-TJxDm6OfAX2KJWJdMEVTwWke5Sc/E/RlnPGvGfS0W7+6ocy2xhDVQVh/KvC2Uf7kACs+gDytdusDSdWfWkaNzw==",
"devOptional": true,
"dependencies": {
"@types/react": "*"
}
},
"node_modules/@types/react-window": {
- "version": "1.8.7",
- "resolved": "https://registry.npmjs.org/@types/react-window/-/react-window-1.8.7.tgz",
- "integrity": "sha512-FpPHEhmGVOBKomuR4LD2nvua1Ajcw6PfnfbDysuCwwPae3JNulcq3+uZIpQNbDN2AI1z+Y4tKj2xQ4ELiQ4QDw==",
+ "version": "1.8.8",
+ "resolved": "https://registry.npmjs.org/@types/react-window/-/react-window-1.8.8.tgz",
+ "integrity": "sha512-8Ls660bHR1AUA2kuRvVG9D/4XpRC6wjAaPT9dil7Ckc76eP9TKWZwwmgfq8Q1LANX3QNDnoU4Zp48A3w+zK69Q==",
"dev": true,
"dependencies": {
"@types/react": "*"
}
},
"node_modules/@types/scheduler": {
- "version": "0.16.5",
- "resolved": "https://registry.npmjs.org/@types/scheduler/-/scheduler-0.16.5.tgz",
- "integrity": "sha512-s/FPdYRmZR8SjLWGMCuax7r3qCWQw9QKHzXVukAuuIJkXkDRwp+Pu5LMIVFi0Fxbav35WURicYr8u1QsoybnQw=="
+ "version": "0.16.8",
+ "resolved": "https://registry.npmjs.org/@types/scheduler/-/scheduler-0.16.8.tgz",
+ "integrity": "sha512-WZLiwShhwLRmeV6zH+GkbOFT6Z6VklCItrDioxUnv+u4Ll+8vKeFySoFyK/0ctcRpOmwAicELfmys1sDc/Rw+A=="
},
"node_modules/@types/semver": {
- "version": "7.5.4",
- "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.5.4.tgz",
- "integrity": "sha512-MMzuxN3GdFwskAnb6fz0orFvhfqi752yjaXylr0Rp4oDg5H0Zn1IuyRhDVvYOwAXoJirx2xuS16I3WjxnAIHiQ=="
+ "version": "7.5.6",
+ "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.5.6.tgz",
+ "integrity": "sha512-dn1l8LaMea/IjDoHNd9J52uBbInB796CDffS6VdIxvqYCPSG0V0DzHp76GpaWnlhg88uYyPbXCDIowa86ybd5A=="
},
"node_modules/@types/stack-utils": {
- "version": "2.0.2",
- "resolved": "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-2.0.2.tgz",
- "integrity": "sha512-g7CK9nHdwjK2n0ymT2CW698FuWJRIx+RP6embAzZ2Qi8/ilIrA1Imt2LVSeHUzKvpoi7BhmmQcXz95eS0f2JXw=="
+ "version": "2.0.3",
+ "resolved": "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-2.0.3.tgz",
+ "integrity": "sha512-9aEbYZ3TbYMznPdcdr3SmIrLXwC/AKZXQeCf9Pgao5CKb8CyHuEX5jzWPTkvregvhRJHcpRO6BFoGW9ycaOkYw=="
},
"node_modules/@types/throttle-debounce": {
"version": "2.1.0",
@@ -9686,15 +8220,15 @@
"integrity": "sha512-5eQEtSCoESnh2FsiLTxE121IiE60hnMqcb435fShf4bpLRjEu1Eoekht23y6zXS9Ts3l+Szu3TARnTsA0GkOkQ=="
},
"node_modules/@types/trusted-types": {
- "version": "2.0.5",
- "resolved": "https://registry.npmjs.org/@types/trusted-types/-/trusted-types-2.0.5.tgz",
- "integrity": "sha512-I3pkr8j/6tmQtKV/ZzHtuaqYSQvyjGRKH4go60Rr0IDLlFxuRT5V32uvB1mecM5G1EVAUyF/4r4QZ1GHgz+mxA==",
+ "version": "2.0.7",
+ "resolved": "https://registry.npmjs.org/@types/trusted-types/-/trusted-types-2.0.7.tgz",
+ "integrity": "sha512-ScaPdn1dQczgbl0QFTeTOmVHFULt394XJgOQNoyVhZ6r2vLnMLJfBPd53SB52T/3G36VI1/g2MZaX0cwDuXsfw==",
"dev": true
},
"node_modules/@types/unist": {
- "version": "2.0.9",
- "resolved": "https://registry.npmjs.org/@types/unist/-/unist-2.0.9.tgz",
- "integrity": "sha512-zC0iXxAv1C1ERURduJueYzkzZ2zaGyc+P2c95hgkikHPr3z8EdUZOlgEQ5X0DRmwDZn+hekycQnoeiiRVrmilQ=="
+ "version": "2.0.10",
+ "resolved": "https://registry.npmjs.org/@types/unist/-/unist-2.0.10.tgz",
+ "integrity": "sha512-IfYcSBWE3hLpBg8+X2SEa8LVkJdJEkT2Ese2aaLs3ptGdVtABxndrMaxuFlQ1qdFf9Q5rDvDpxI3WwgvKFAsQA=="
},
"node_modules/@types/uuid": {
"version": "8.3.4",
@@ -9702,26 +8236,26 @@
"integrity": "sha512-c/I8ZRb51j+pYGAu5CrFMRxqZ2ke4y2grEBO5AUjgSkSk+qT2Ea+OdWElz/OiMf5MNpn2b17kuVBwZLQJXzihw==",
"dev": true
},
- "node_modules/@types/websocket": {
- "version": "1.0.8",
- "resolved": "https://registry.npmjs.org/@types/websocket/-/websocket-1.0.8.tgz",
- "integrity": "sha512-wvkOpWApbuxVfHhSQ1XrjVN4363vsfLJwEo4AboIZk0g1vJA5nmLp8GXUHuIdf4/Fe7+/V0Efe2HvWiLqHtlqw==",
+ "node_modules/@types/ws": {
+ "version": "8.5.10",
+ "resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.5.10.tgz",
+ "integrity": "sha512-vmQSUcfalpIq0R9q7uTo2lXs6eGIpt9wtnLdMv9LVpIjCA/+ufZRozlVoVelIYixx1ugCBKDhn89vnsEGOCx9A==",
"dependencies": {
"@types/node": "*"
}
},
"node_modules/@types/yargs": {
- "version": "15.0.17",
- "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.17.tgz",
- "integrity": "sha512-cj53I8GUcWJIgWVTSVe2L7NJAB5XWGdsoMosVvUgv1jEnMbAcsbaCzt1coUcyi8Sda5PgTWAooG8jNyDTD+CWA==",
+ "version": "15.0.19",
+ "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.19.tgz",
+ "integrity": "sha512-2XUaGVmyQjgyAZldf0D0c14vvo/yv0MhQBSTJcejMMaitsn3nxCB6TmH4G0ZQf+uxROOa9mpanoSm8h6SG/1ZA==",
"dependencies": {
"@types/yargs-parser": "*"
}
},
"node_modules/@types/yargs-parser": {
- "version": "21.0.2",
- "resolved": "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-21.0.2.tgz",
- "integrity": "sha512-5qcvofLPbfjmBfKaLfj/+f+Sbd6pN4zl7w7VSVI5uz7m9QZTuB2aZAa2uo1wHFBNN2x6g/SoTkXmd8mQnQF2Cw=="
+ "version": "21.0.3",
+ "resolved": "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-21.0.3.tgz",
+ "integrity": "sha512-I4q9QU9MQv4oEOz4tAHJtNz1cwuLxn2F3xcc2iV5WdqLPpUnj30aUuxt1mAxYTG+oe8CZMV/+6rU4S4gRDzqtQ=="
},
"node_modules/@typescript-eslint/eslint-plugin": {
"version": "5.62.0",
@@ -10004,21 +8538,20 @@
"integrity": "sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ=="
},
"node_modules/@vanilla-extract/babel-plugin-debug-ids": {
- "version": "1.0.3",
- "resolved": "https://registry.npmjs.org/@vanilla-extract/babel-plugin-debug-ids/-/babel-plugin-debug-ids-1.0.3.tgz",
- "integrity": "sha512-vm4jYu1xhSa6ofQ9AhIpR3DkAp4c+eoR1Rpm8/TQI4DmWbmGbOjYRcqV0aWsfaIlNhN4kFuxFMKBNN9oG6iRzA==",
+ "version": "1.0.4",
+ "resolved": "https://registry.npmjs.org/@vanilla-extract/babel-plugin-debug-ids/-/babel-plugin-debug-ids-1.0.4.tgz",
+ "integrity": "sha512-mevYcVMwsT6960xnXRw/Rr2K7SOEwzwVBApg/2SJ3eg2KGsHfj1rN0oQ12WdoTT3RzThq+0551bVQKPvQnjeaA==",
"dependencies": {
"@babel/core": "^7.20.7"
}
},
"node_modules/@vanilla-extract/css": {
- "version": "1.13.0",
- "resolved": "https://registry.npmjs.org/@vanilla-extract/css/-/css-1.13.0.tgz",
- "integrity": "sha512-JFFBXhnJrPlGqHBabagXqo5ghXw9mtV270ycIGyLDZG8NAK5eRwAYkMowAxuzK7wZSm67GnETWYB7b0AUmyttg==",
+ "version": "1.14.0",
+ "resolved": "https://registry.npmjs.org/@vanilla-extract/css/-/css-1.14.0.tgz",
+ "integrity": "sha512-rYfm7JciWZ8PFzBM/HDiE2GLnKI3xJ6/vdmVJ5BSgcCZ5CxRlM9Cjqclni9lGzF3eMOijnUhCd/KV8TOzyzbMA==",
"dependencies": {
"@emotion/hash": "^0.9.0",
"@vanilla-extract/private": "^1.0.3",
- "ahocorasick": "1.0.2",
"chalk": "^4.1.1",
"css-what": "^6.1.0",
"cssesc": "^3.0.0",
@@ -10026,18 +8559,19 @@
"deep-object-diff": "^1.1.9",
"deepmerge": "^4.2.2",
"media-query-parser": "^2.0.2",
+ "modern-ahocorasick": "^1.0.0",
"outdent": "^0.8.0"
}
},
"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==",
+ "version": "6.2.5",
+ "resolved": "https://registry.npmjs.org/@vanilla-extract/integration/-/integration-6.2.5.tgz",
+ "integrity": "sha512-CK8KyxteNQZtUgo8TCMIYb93SD6vk5bWPPOco853Om2BoxqRV1MgAQkjSUVPR3XxVFl6BGyYLN7D++3+9/82/g==",
"dependencies": {
"@babel/core": "^7.20.7",
"@babel/plugin-syntax-typescript": "^7.20.0",
- "@vanilla-extract/babel-plugin-debug-ids": "^1.0.2",
- "@vanilla-extract/css": "^1.10.0",
+ "@vanilla-extract/babel-plugin-debug-ids": "^1.0.4",
+ "@vanilla-extract/css": "^1.14.0",
"esbuild": "0.17.6",
"eval": "0.1.8",
"find-up": "^5.0.0",
@@ -10045,8 +8579,8 @@
"lodash": "^4.17.21",
"mlly": "^1.1.0",
"outdent": "^0.8.0",
- "vite": "^4.1.4",
- "vite-node": "^0.28.5"
+ "vite": "^5.0.10",
+ "vite-node": "^1.1.0"
}
},
"node_modules/@vanilla-extract/integration/node_modules/@esbuild/android-arm": {
@@ -10421,13 +8955,30 @@
"integrity": "sha512-17kVyLq3ePTKOkveHxXuIJZtGYs+cSoev7BlP+Lf4916qfDhk/HBjvlYDe8egrea7LNPHKwSZJK/bzZC+Q6AwQ=="
},
"node_modules/@vercel/analytics": {
- "version": "1.1.1",
- "resolved": "https://registry.npmjs.org/@vercel/analytics/-/analytics-1.1.1.tgz",
- "integrity": "sha512-+NqgNmSabg3IFfxYhrWCfB/H+RCUOCR5ExRudNG2+pcRehq628DJB5e1u1xqwpLtn4pAYii4D98w7kofORAGQA==",
+ "version": "1.1.2",
+ "resolved": "https://registry.npmjs.org/@vercel/analytics/-/analytics-1.1.2.tgz",
+ "integrity": "sha512-CodhkLCQ/EHzjX8k+Qg+OzTBY0UadykrcfolfSOJVZZY/ZJM5nbhztm9KdbYvMfqKlasAr1+OYy0ThZnDA/MYA==",
"dependencies": {
"server-only": "^0.0.1"
}
},
+ "node_modules/@vercel/remix": {
+ "version": "2.5.1",
+ "resolved": "https://registry.npmjs.org/@vercel/remix/-/remix-2.5.1.tgz",
+ "integrity": "sha512-b38Av3htXlF5L/Gy0vufWtSPLQOCKTYGLANWIrpLnB2m3Ro8Q56SgkBE1iMqVnHQ6A32fyAXg9y0BrVRRLhy6A==",
+ "dependencies": {
+ "@remix-run/node": "2.5.1",
+ "@remix-run/server-runtime": "2.5.1",
+ "isbot": "^3.6.8"
+ },
+ "engines": {
+ "node": ">=18.0.0"
+ },
+ "peerDependencies": {
+ "react": "*",
+ "react-dom": "*"
+ }
+ },
"node_modules/@visx/axis": {
"version": "3.3.0",
"resolved": "https://registry.npmjs.org/@visx/axis/-/axis-3.3.0.tgz",
@@ -10648,7 +9199,8 @@
"node_modules/abab": {
"version": "2.0.6",
"resolved": "https://registry.npmjs.org/abab/-/abab-2.0.6.tgz",
- "integrity": "sha512-j2afSsaIENvHZN2B8GOpF566vZ5WVk5opAiMTvWgaQT8DkbOqsTfvNAvHoRGU2zzP8cPoqys+xHTRDWW8L+/BA=="
+ "integrity": "sha512-j2afSsaIENvHZN2B8GOpF566vZ5WVk5opAiMTvWgaQT8DkbOqsTfvNAvHoRGU2zzP8cPoqys+xHTRDWW8L+/BA==",
+ "deprecated": "Use your platform's native atob() and btoa() methods instead"
},
"node_modules/abbrev": {
"version": "1.1.1",
@@ -10685,9 +9237,9 @@
}
},
"node_modules/acorn": {
- "version": "8.11.2",
- "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.11.2.tgz",
- "integrity": "sha512-nc0Axzp/0FILLEVsm4fNwLCwMttvhEI263QtVPQcbpfZZ3ts0hLsZGOpE6czNlid7CJ9MlyH8reXkpsf3YUY4w==",
+ "version": "8.11.3",
+ "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.11.3.tgz",
+ "integrity": "sha512-Y9rRfJG5jcKOE0CLisYbojUjIrIEE7AGMzA/Sm4BslANhbS+cDMpgBdcPT91oJ7OuJ9hYJBx59RjbhxVnrF8Xg==",
"bin": {
"acorn": "bin/acorn"
},
@@ -10727,6 +9279,7 @@
"version": "1.8.2",
"resolved": "https://registry.npmjs.org/acorn-node/-/acorn-node-1.8.2.tgz",
"integrity": "sha512-8mt+fslDufLYntIoPAaIMUe/lrbrehIiwmR3t2k9LljIzoigEPF27eLk2hy8zSGzmR/ogr7zbRKINMo1u0yh5A==",
+ "dev": true,
"dependencies": {
"acorn": "^7.0.0",
"acorn-walk": "^7.0.0",
@@ -10737,6 +9290,7 @@
"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"
},
@@ -10753,14 +9307,15 @@
}
},
"node_modules/agent-base": {
- "version": "6.0.2",
- "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz",
- "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==",
+ "version": "7.1.0",
+ "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.0.tgz",
+ "integrity": "sha512-o/zjMZRhJxny7OyEF+Op8X+efiELC7k7yOjMzgfzVqOzXqkBkWI79YoTdOtsuWd5BWhAGAuOY/Xa6xpiaWXiNg==",
+ "dev": true,
"dependencies": {
- "debug": "4"
+ "debug": "^4.3.4"
},
"engines": {
- "node": ">= 6.0.0"
+ "node": ">= 14"
}
},
"node_modules/aggregate-error": {
@@ -10775,11 +9330,6 @@
"node": ">=8"
}
},
- "node_modules/ahocorasick": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/ahocorasick/-/ahocorasick-1.0.2.tgz",
- "integrity": "sha512-hCOfMzbFx5IDutmWLAt6MZwOUjIfSM9G9FyVxytmE4Rs/5YDPWQrD/+IR1w+FweD9H2oOZEnv36TmkjhNURBVA=="
- },
"node_modules/ajv": {
"version": "6.12.6",
"resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz",
@@ -11117,10 +9667,9 @@
}
},
"node_modules/autoprefixer": {
- "version": "10.4.16",
- "resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-10.4.16.tgz",
- "integrity": "sha512-7vd3UC6xKp0HLfua5IjZlcXvGAGy7cBAXTg2lyQ/8WpNhd6SiZ8Be+xm3FyBSYJx5GKcpRCzBh7RH4/0dnY+uQ==",
- "dev": true,
+ "version": "10.4.14",
+ "resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-10.4.14.tgz",
+ "integrity": "sha512-FQzyfOsTlwVzjHxKEqRIAdJx9niO6VCBCoEwax/VLSoQF29ggECcPuBqUMZ+u8jCZOPSy8b8/8KnuFbp0SaFZQ==",
"funding": [
{
"type": "opencollective",
@@ -11129,16 +9678,12 @@
{
"type": "tidelift",
"url": "https://tidelift.com/funding/github/npm/autoprefixer"
- },
- {
- "type": "github",
- "url": "https://github.com/sponsors/ai"
}
],
"dependencies": {
- "browserslist": "^4.21.10",
- "caniuse-lite": "^1.0.30001538",
- "fraction.js": "^4.3.6",
+ "browserslist": "^4.21.5",
+ "caniuse-lite": "^1.0.30001464",
+ "fraction.js": "^4.2.0",
"normalize-range": "^0.1.2",
"picocolors": "^1.0.0",
"postcss-value-parser": "^4.2.0"
@@ -11405,46 +9950,6 @@
"readable-stream": "^3.4.0"
}
},
- "node_modules/bl/node_modules/readable-stream": {
- "version": "3.6.2",
- "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz",
- "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==",
- "dependencies": {
- "inherits": "^2.0.3",
- "string_decoder": "^1.1.1",
- "util-deprecate": "^1.0.1"
- },
- "engines": {
- "node": ">= 6"
- }
- },
- "node_modules/bl/node_modules/safe-buffer": {
- "version": "5.2.1",
- "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz",
- "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==",
- "funding": [
- {
- "type": "github",
- "url": "https://github.com/sponsors/feross"
- },
- {
- "type": "patreon",
- "url": "https://www.patreon.com/feross"
- },
- {
- "type": "consulting",
- "url": "https://feross.org/support"
- }
- ]
- },
- "node_modules/bl/node_modules/string_decoder": {
- "version": "1.3.0",
- "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz",
- "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==",
- "dependencies": {
- "safe-buffer": "~5.2.0"
- }
- },
"node_modules/body-parser": {
"version": "1.20.1",
"resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.1.tgz",
@@ -11522,18 +10027,18 @@
"resolved": "https://registry.npmjs.org/browser-process-hrtime/-/browser-process-hrtime-1.0.0.tgz",
"integrity": "sha512-9o5UecI3GhkpM6DrXr69PblIuWxPKk9Y0jHBRhdocZ2y7YECBFCsHm79Pr3OyR2AvjhDkabFJaDJMYRazHgsow=="
},
- "node_modules/browserify-zlib": {
- "version": "0.1.4",
- "resolved": "https://registry.npmjs.org/browserify-zlib/-/browserify-zlib-0.1.4.tgz",
- "integrity": "sha512-19OEpq7vWgsH6WkvkBJQDFvJS1uPcbFOQ4v9CU839dO+ZZXUZO6XpE6hNCqvlIIj+4fZvRiJ6DsAQ382GwiyTQ==",
+ "node_modules/browserify-zlib": {
+ "version": "0.2.0",
+ "resolved": "https://registry.npmjs.org/browserify-zlib/-/browserify-zlib-0.2.0.tgz",
+ "integrity": "sha512-Z942RysHXmJrhqk88FmKBVq/v5tqmSkDz7p54G/MGyjMnCFFnC79XWNbg+Vta8W6Wb2qtSZTSxIGkJrRpCFEiA==",
"dependencies": {
- "pako": "~0.2.0"
+ "pako": "~1.0.5"
}
},
"node_modules/browserslist": {
- "version": "4.22.1",
- "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.22.1.tgz",
- "integrity": "sha512-FEVc202+2iuClEhZhrWy6ZiAcRLvNMyYcxZ8raemul1DYVOVdFsbqckWLdsixQZCpJlwe77Z3UTalE7jsjnKfQ==",
+ "version": "4.22.2",
+ "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.22.2.tgz",
+ "integrity": "sha512-0UgcrvQmBDvZHFGdYUehrCNIazki7/lUP3kkoi/r3YB2amZbFM9J43ZRkJTXBUZK4gmx56+Sqk9+Vs9mwZx9+A==",
"funding": [
{
"type": "opencollective",
@@ -11549,9 +10054,9 @@
}
],
"dependencies": {
- "caniuse-lite": "^1.0.30001541",
- "electron-to-chromium": "^1.4.535",
- "node-releases": "^2.0.13",
+ "caniuse-lite": "^1.0.30001565",
+ "electron-to-chromium": "^1.4.601",
+ "node-releases": "^2.0.14",
"update-browserslist-db": "^1.0.13"
},
"bin": {
@@ -11608,18 +10113,6 @@
"resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz",
"integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ=="
},
- "node_modules/bufferutil": {
- "version": "4.0.8",
- "resolved": "https://registry.npmjs.org/bufferutil/-/bufferutil-4.0.8.tgz",
- "integrity": "sha512-4T53u4PdgsXqKaIctwF8ifXlRTTmEPJ8iEPWFdGZvcf7sbwYo6FKFEX9eNNAnzFZ7EzJAQ3CJeOtCRA4rDp7Pw==",
- "hasInstallScript": true,
- "dependencies": {
- "node-gyp-build": "^4.3.0"
- },
- "engines": {
- "node": ">=6.14.2"
- }
- },
"node_modules/builtins": {
"version": "5.0.1",
"resolved": "https://registry.npmjs.org/builtins/-/builtins-5.0.1.tgz",
@@ -11654,9 +10147,9 @@
}
},
"node_modules/bullmq": {
- "version": "4.12.8",
- "resolved": "https://registry.npmjs.org/bullmq/-/bullmq-4.12.8.tgz",
- "integrity": "sha512-aG9o2/y6P+SvsIlIfjTP4Cn2wOsD6r7IplWBovi1wCmTMDBhtKsPVCC2ZKezaagtTCGtV6IN5Bx5g6WrtMUz0Q==",
+ "version": "4.17.0",
+ "resolved": "https://registry.npmjs.org/bullmq/-/bullmq-4.17.0.tgz",
+ "integrity": "sha512-URnHgB01rlCP8RTpmW3kFnvv3vdd2aI1OcBMYQwnqODxGiJUlz9MibDVXE83mq7ee1eS1IvD9lMQqGszX6E5Pw==",
"dependencies": {
"cron-parser": "^4.6.0",
"glob": "^8.0.3",
@@ -11871,9 +10364,9 @@
}
},
"node_modules/caniuse-lite": {
- "version": "1.0.30001559",
- "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001559.tgz",
- "integrity": "sha512-cPiMKZgqgkg5LY3/ntGeLFUpi6tzddBNS58A4tnTgQw1zON7u2sZMU7SzOeVH4tj20++9ggL+V6FDOFMTaFFYA==",
+ "version": "1.0.30001579",
+ "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001579.tgz",
+ "integrity": "sha512-u5AUVkixruKHJjw/pj9wISlcMpgFWzSrczLZbrqBSxukQixmg0SJ5sZTpvaFvxU0HoQKd4yoyAogyrAz9pzJnA==",
"funding": [
{
"type": "opencollective",
@@ -12100,9 +10593,9 @@
"integrity": "sha512-sbpkOw6z413p+HDGcBENe498WM9woqWHiJxCq7nvmxe9WmrUmqfAcxpIwAiMtM5Q3AhYkzXcNQHqsWq0mND51g=="
},
"node_modules/classnames": {
- "version": "2.3.2",
- "resolved": "https://registry.npmjs.org/classnames/-/classnames-2.3.2.tgz",
- "integrity": "sha512-CSbhY4cFEJRe6/GQzIk5qXZ4Jeg5pcsP7b5peFSDpffpe1cqjASH/n9UTjBwOp6XpMSTwQ8Za2K5V02ueA7Tmw=="
+ "version": "2.5.1",
+ "resolved": "https://registry.npmjs.org/classnames/-/classnames-2.5.1.tgz",
+ "integrity": "sha512-saHYOzhIQs6wy2sVxTM6bUDsQO4F50V9RQ22qBpEdCW+I+/Wmke2HOl6lS6dTpdxVhb88/I6+Hs+438c3lfUow=="
},
"node_modules/clean-stack": {
"version": "2.2.0",
@@ -12128,9 +10621,9 @@
}
},
"node_modules/cli-spinners": {
- "version": "2.9.1",
- "resolved": "https://registry.npmjs.org/cli-spinners/-/cli-spinners-2.9.1.tgz",
- "integrity": "sha512-jHgecW0pxkonBJdrKsqxgRX9AcG+u/5k0Q7WPDfi8AogLAdwxEkyYYNWwZ5GvVFoFx2uiY1eNcSK00fh+1+FyQ==",
+ "version": "2.9.2",
+ "resolved": "https://registry.npmjs.org/cli-spinners/-/cli-spinners-2.9.2.tgz",
+ "integrity": "sha512-ywqV+5MmyL4E7ybXgKys4DugZbX0FC6LnwrhjuykIjnK9k8OQacQ7axGKnjDXWNhns0xot3bZI5h55H8yo9cJg==",
"engines": {
"node": ">=6"
},
@@ -12327,9 +10820,9 @@
}
},
"node_modules/clone": {
- "version": "1.0.4",
- "resolved": "https://registry.npmjs.org/clone/-/clone-1.0.4.tgz",
- "integrity": "sha512-JQHZ2QMW6l3aH/j6xCqQThY/9OH4D/9ls34cgkUBiEeocRTU04tHfKPBsUK1PqZCUQM7GiA0IIXJSuXHI64Kbg==",
+ "version": "2.1.2",
+ "resolved": "https://registry.npmjs.org/clone/-/clone-2.1.2.tgz",
+ "integrity": "sha512-3Pe/CF1Nn94hyhIYpjtiLhdCoEoz0DqQ+988E9gmeEdQZlojxnOb74wctFyuwWQHzqyf9X7C7MG8juUpqBJT8w==",
"engines": {
"node": ">=0.8"
}
@@ -12697,9 +11190,12 @@
}
},
"node_modules/component-emitter": {
- "version": "1.3.0",
- "resolved": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.3.0.tgz",
- "integrity": "sha512-Rd3se6QB+sO1TwqZjscQrurpEPIfO0/yYnSin6Q/rD3mOutHvUrCAhJub3r90uNb+SESBuE0QYoB90YdfatsRg=="
+ "version": "1.3.1",
+ "resolved": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.3.1.tgz",
+ "integrity": "sha512-T0+barUSQRTUQASh8bx02dl+DhF54GtIDY13Y3m9oWTklKbb3Wv974meRpeZ3lp1JpLVECWWNHC4vaG2XHXouQ==",
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
},
"node_modules/compressible": {
"version": "2.0.18",
@@ -12743,9 +11239,9 @@
"integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A=="
},
"node_modules/compute-scroll-into-view": {
- "version": "3.0.3",
- "resolved": "https://registry.npmjs.org/compute-scroll-into-view/-/compute-scroll-into-view-3.0.3.tgz",
- "integrity": "sha512-nadqwNxghAGTamwIqQSG433W6OADZx2vCo3UXHNrzTRHK/htu+7+L0zhjEoaeaQVNAi3YgqWDv8+tzf0hRfR+A=="
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/compute-scroll-into-view/-/compute-scroll-into-view-3.1.0.tgz",
+ "integrity": "sha512-rj8l8pD4bJ1nx+dAkMhV1xB5RuZEyVysfxJqB1pRchh1KVvwOv9b7CGB8ZfjTImVv2oF+sYMUkMZq6Na5Ftmbg=="
},
"node_modules/concat-map": {
"version": "0.0.1",
@@ -12796,10 +11292,9 @@
"integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg=="
},
"node_modules/cookie": {
- "version": "0.4.2",
- "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.4.2.tgz",
- "integrity": "sha512-aSWTXFzaKWkvHO1Ny/s+ePFpvKsPnjc551iI41v3ny/ow6tBG5Vd+FuqGNhh1LxOmVzOlGUriIlOaokOvhaStA==",
- "peer": true,
+ "version": "0.6.0",
+ "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.6.0.tgz",
+ "integrity": "sha512-U71cyTamuh1CRNCfpGY6to28lxvNwPG4Guz/EVjgf3Jmzv0vlDp1atT9eS5dDjMYHucpHbWns6Lwf3BKz6svdw==",
"engines": {
"node": ">= 0.6"
}
@@ -12850,9 +11345,9 @@
}
},
"node_modules/cronstrue": {
- "version": "2.41.0",
- "resolved": "https://registry.npmjs.org/cronstrue/-/cronstrue-2.41.0.tgz",
- "integrity": "sha512-3ZS3eMJaxMRBGmDauKCKbyIRgVcph6uSpkhSbbZvvJWkelHiSTzGJbBqmu8io7Hspd2F45bQKnC1kzoNvtku2g==",
+ "version": "2.47.0",
+ "resolved": "https://registry.npmjs.org/cronstrue/-/cronstrue-2.47.0.tgz",
+ "integrity": "sha512-fnFwJy7zslTEz6h7O7BkwgHNBvuuPmkhAYKqPDxK5mBQLz2nG08T9afbnjm+yrvcc/wxrd+otaVSnoXT9ulUOw==",
"bin": {
"cronstrue": "bin/cli.js"
}
@@ -12964,14 +11459,14 @@
"integrity": "sha512-b0tGHbfegbhPJpxpiBPU2sCkigAqtM9O121le6bbOlgyV+NyGyCmVfJ6QW9eRjz8CpNfWEOYBIMIGRYkLwsIYg=="
},
"node_modules/csstype": {
- "version": "3.1.2",
- "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.2.tgz",
- "integrity": "sha512-I7K1Uu0MBPzaFKg4nI5Q7Vs2t+3gWWW648spaF+Rg7pI9ds18Ugn+lvg4SHczUdKlHI5LWBXyqfS8+DufyBsgQ=="
+ "version": "3.1.3",
+ "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.3.tgz",
+ "integrity": "sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw=="
},
"node_modules/cytoscape": {
- "version": "3.27.0",
- "resolved": "https://registry.npmjs.org/cytoscape/-/cytoscape-3.27.0.tgz",
- "integrity": "sha512-pPZJilfX9BxESwujODz5pydeGi+FBrXq1rcaB1mfhFXXFJ9GjE6CNndAk+8jPzoXGD+16LtSS4xlYEIUiW4Abg==",
+ "version": "3.28.1",
+ "resolved": "https://registry.npmjs.org/cytoscape/-/cytoscape-3.28.1.tgz",
+ "integrity": "sha512-xyItz4O/4zp9/239wCcH8ZcFuuZooEeF8KHRmzjDfGdXsj3OG9MFSMA0pJE0uX3uCN/ygof6hHf4L7lst+JaDg==",
"dependencies": {
"heap": "^0.2.6",
"lodash": "^4.17.21"
@@ -13015,15 +11510,6 @@
"resolved": "https://registry.npmjs.org/layout-base/-/layout-base-2.0.1.tgz",
"integrity": "sha512-dp3s92+uNI1hWIpPGH3jK2kxE2lMjdXdr+DH8ynZHpd6PUlH6x6cbuXnoMmiNumznqaNO31xu9e79F0uuZ0JFg=="
},
- "node_modules/d": {
- "version": "1.0.1",
- "resolved": "https://registry.npmjs.org/d/-/d-1.0.1.tgz",
- "integrity": "sha512-m62ShEObQ39CfralilEQRjH6oAMtNCV1xJyEx5LpRYUVN+EviphDgUc/F3hnYbADmkiNs67Y+3ylmlG7Lnu+FA==",
- "dependencies": {
- "es5-ext": "^0.10.50",
- "type": "^1.0.1"
- }
- },
"node_modules/d3": {
"version": "7.8.5",
"resolved": "https://registry.npmjs.org/d3/-/d3-7.8.5.tgz",
@@ -13576,14 +12062,14 @@
}
},
"node_modules/deep-equal": {
- "version": "2.2.2",
- "resolved": "https://registry.npmjs.org/deep-equal/-/deep-equal-2.2.2.tgz",
- "integrity": "sha512-xjVyBf0w5vH0I42jdAZzOKVldmPgSulmiyPRywoyq7HXC9qdgo17kxJE+rdnif5Tz6+pIrpJI8dCpMNLIGkUiA==",
+ "version": "2.2.3",
+ "resolved": "https://registry.npmjs.org/deep-equal/-/deep-equal-2.2.3.tgz",
+ "integrity": "sha512-ZIwpnevOurS8bpT4192sqAowWM76JDKSHYzMLty3BZGSswgq6pBaH3DhCSW5xVAZICZyKdOBPjwww5wfgT/6PA==",
"dependencies": {
"array-buffer-byte-length": "^1.0.0",
- "call-bind": "^1.0.2",
+ "call-bind": "^1.0.5",
"es-get-iterator": "^1.1.3",
- "get-intrinsic": "^1.2.1",
+ "get-intrinsic": "^1.2.2",
"is-arguments": "^1.1.1",
"is-array-buffer": "^3.0.2",
"is-date-object": "^1.0.5",
@@ -13593,11 +12079,14 @@
"object-is": "^1.1.5",
"object-keys": "^1.1.1",
"object.assign": "^4.1.4",
- "regexp.prototype.flags": "^1.5.0",
+ "regexp.prototype.flags": "^1.5.1",
"side-channel": "^1.0.4",
"which-boxed-primitive": "^1.0.2",
"which-collection": "^1.0.1",
- "which-typed-array": "^1.1.9"
+ "which-typed-array": "^1.1.13"
+ },
+ "engines": {
+ "node": ">= 0.4"
},
"funding": {
"url": "https://github.com/sponsors/ljharb"
@@ -13632,6 +12121,14 @@
"url": "https://github.com/sponsors/sindresorhus"
}
},
+ "node_modules/defaults/node_modules/clone": {
+ "version": "1.0.4",
+ "resolved": "https://registry.npmjs.org/clone/-/clone-1.0.4.tgz",
+ "integrity": "sha512-JQHZ2QMW6l3aH/j6xCqQThY/9OH4D/9ls34cgkUBiEeocRTU04tHfKPBsUK1PqZCUQM7GiA0IIXJSuXHI64Kbg==",
+ "engines": {
+ "node": ">=0.8"
+ }
+ },
"node_modules/define-data-property": {
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.1.tgz",
@@ -13677,6 +12174,7 @@
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/defined/-/defined-1.0.1.tgz",
"integrity": "sha512-hsBd2qSVCRE+5PmNdHt1uzyrFu5d3RwmFDKzyNZMFq/EwDNJF7Ee5+D5oEKF0hU6LhtoUF1macFvOe4AskQC1Q==",
+ "dev": true,
"funding": {
"url": "https://github.com/sponsors/ljharb"
}
@@ -13747,6 +12245,7 @@
"version": "5.2.1",
"resolved": "https://registry.npmjs.org/detective/-/detective-5.2.1.tgz",
"integrity": "sha512-v9XE1zRnz1wRtgurGu0Bs8uHKFSTdteYZNbIPFVhUZ39L/S79ppMpdmVOZAnoz1jfEFodc48n6MX483Xo3t1yw==",
+ "dev": true,
"dependencies": {
"acorn-node": "^1.8.2",
"defined": "^1.0.0",
@@ -13841,6 +12340,7 @@
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/domexception/-/domexception-2.0.1.tgz",
"integrity": "sha512-yxJ2mFy/sibVQlu5qHjOkf9J3K6zgmCxgJ94u2EdvDOV09H+32LtRswEcUsmUWN72pVLOEnTSRaIVVzVQgS0dg==",
+ "deprecated": "Use your platform's native DOMException instead",
"dependencies": {
"webidl-conversions": "^5.0.0"
},
@@ -13921,14 +12421,14 @@
"integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow=="
},
"node_modules/electron-to-chromium": {
- "version": "1.4.576",
- "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.576.tgz",
- "integrity": "sha512-yXsZyXJfAqzWk1WKryr0Wl0MN2D47xodPvEEwlVePBnhU5E7raevLQR+E6b9JAD3GfL/7MbAL9ZtWQQPcLx7wA=="
+ "version": "1.4.640",
+ "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.640.tgz",
+ "integrity": "sha512-z/6oZ/Muqk4BaE7P69bXhUhpJbUM9ZJeka43ZwxsDshKtePns4mhBlh8bU5+yrnOnz3fhG82XLzGUXazOmsWnA=="
},
"node_modules/elkjs": {
- "version": "0.8.2",
- "resolved": "https://registry.npmjs.org/elkjs/-/elkjs-0.8.2.tgz",
- "integrity": "sha512-L6uRgvZTH+4OF5NE/MBbzQx/WYpru1xCBE9respNj6qznEewGUIfhzmm7horWWxbNO2M0WckQypGctR8lH79xQ=="
+ "version": "0.9.1",
+ "resolved": "https://registry.npmjs.org/elkjs/-/elkjs-0.9.1.tgz",
+ "integrity": "sha512-JWKDyqAdltuUcyxaECtYG6H4sqysXSLeoXuGUBfRNESMTkj+w+qdb0jya8Z/WI0jVd03WQtCGhS6FOFtlhD5FQ=="
},
"node_modules/emittery": {
"version": "0.7.2",
@@ -13975,9 +12475,9 @@
}
},
"node_modules/entities": {
- "version": "3.0.1",
- "resolved": "https://registry.npmjs.org/entities/-/entities-3.0.1.tgz",
- "integrity": "sha512-WiyBqoomrwMdFG1e0kqvASYfnlb0lp8M5o5Fw2OFq1hNZxxcNk8Ik0Xm7LxzBhuidnZB/UtBqVCgUz3kBOP51Q==",
+ "version": "4.5.0",
+ "resolved": "https://registry.npmjs.org/entities/-/entities-4.5.0.tgz",
+ "integrity": "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==",
"engines": {
"node": ">=0.12"
},
@@ -14091,9 +12591,9 @@
}
},
"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=="
+ "version": "1.4.1",
+ "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-1.4.1.tgz",
+ "integrity": "sha512-cXLGjP0c4T3flZJKQSuziYoq7MlT+rnvfZjfp7h+I7K9BNX54kP9nyWvdbwjQ4u1iWbOL4u96fgeZLToQlZC7w=="
},
"node_modules/es-set-tostringtag": {
"version": "2.0.2",
@@ -14132,39 +12632,6 @@
"url": "https://github.com/sponsors/ljharb"
}
},
- "node_modules/es5-ext": {
- "version": "0.10.62",
- "resolved": "https://registry.npmjs.org/es5-ext/-/es5-ext-0.10.62.tgz",
- "integrity": "sha512-BHLqn0klhEpnOKSrzn/Xsz2UIW8j+cGmo9JLzr8BiUapV8hPL9+FliFqjwr9ngW7jWdnxv6eO+/LqyhJVqgrjA==",
- "hasInstallScript": true,
- "dependencies": {
- "es6-iterator": "^2.0.3",
- "es6-symbol": "^3.1.3",
- "next-tick": "^1.1.0"
- },
- "engines": {
- "node": ">=0.10"
- }
- },
- "node_modules/es6-iterator": {
- "version": "2.0.3",
- "resolved": "https://registry.npmjs.org/es6-iterator/-/es6-iterator-2.0.3.tgz",
- "integrity": "sha512-zw4SRzoUkd+cl+ZoE15A9o1oQd920Bb0iOJMQkQhl3jNc03YqVjAhG7scf9C5KWRU/R13Orf588uCC6525o02g==",
- "dependencies": {
- "d": "1",
- "es5-ext": "^0.10.35",
- "es6-symbol": "^3.1.1"
- }
- },
- "node_modules/es6-symbol": {
- "version": "3.1.3",
- "resolved": "https://registry.npmjs.org/es6-symbol/-/es6-symbol-3.1.3.tgz",
- "integrity": "sha512-NJ6Yn3FuDinBaBRWl/q5X/s4koRHBrgKAu+yGI6JCBeiu3qrcbJhwT2GeR/EXVfylRk8dpQVJoLEFhK+Mu31NA==",
- "dependencies": {
- "d": "^1.0.1",
- "ext": "^1.1.2"
- }
- },
"node_modules/esbuild": {
"version": "0.17.19",
"resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.17.19.tgz",
@@ -14271,14 +12738,14 @@
}
},
"node_modules/eslint": {
- "version": "8.53.0",
- "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.53.0.tgz",
- "integrity": "sha512-N4VuiPjXDUa4xVeV/GC/RV3hQW9Nw+Y463lkWaKKXKYMvmRiRDAtfpuPFLN+E1/6ZhyR8J2ig+eVREnYgUsiag==",
+ "version": "8.56.0",
+ "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.56.0.tgz",
+ "integrity": "sha512-Go19xM6T9puCOWntie1/P997aXxFsOi37JIHRWI514Hc6ZnaHGKY9xFhrU65RT6CcBEzZoGG1e6Nq+DT04ZtZQ==",
"dependencies": {
"@eslint-community/eslint-utils": "^4.2.0",
"@eslint-community/regexpp": "^4.6.1",
- "@eslint/eslintrc": "^2.1.3",
- "@eslint/js": "8.53.0",
+ "@eslint/eslintrc": "^2.1.4",
+ "@eslint/js": "8.56.0",
"@humanwhocodes/config-array": "^0.11.13",
"@humanwhocodes/module-importer": "^1.0.1",
"@nodelib/fs.walk": "^1.2.8",
@@ -14424,9 +12891,9 @@
}
},
"node_modules/eslint-plugin-import": {
- "version": "2.29.0",
- "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.29.0.tgz",
- "integrity": "sha512-QPOO5NO6Odv5lpoTkddtutccQjysJuFxoPS7fAHO+9m9udNHvTCPSAMW9zGAYj8lAIdr40I8yPCdUYrncXtrwg==",
+ "version": "2.29.1",
+ "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.29.1.tgz",
+ "integrity": "sha512-BbPC0cuExzhiMo4Ff1BTVwHpjjv28C5R+btTOGaCRC7UEz801up0JadwkeSk5Ued6TG34uaczuVuH6qyy5YUxw==",
"dependencies": {
"array-includes": "^3.1.7",
"array.prototype.findlastindex": "^1.2.3",
@@ -14444,7 +12911,7 @@
"object.groupby": "^1.0.1",
"object.values": "^1.1.7",
"semver": "^6.3.1",
- "tsconfig-paths": "^3.14.2"
+ "tsconfig-paths": "^3.15.0"
},
"engines": {
"node": ">=4"
@@ -14502,9 +12969,9 @@
}
},
"node_modules/eslint-plugin-import/node_modules/tsconfig-paths": {
- "version": "3.14.2",
- "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.14.2.tgz",
- "integrity": "sha512-o/9iXgCYc5L/JxCHPe3Hvh8Q/2xm5Z+p18PESBU6Ff33695QnCHBEjcytY2q19ua7Mbl/DavtBOLq+oG0RCL+g==",
+ "version": "3.15.0",
+ "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.15.0.tgz",
+ "integrity": "sha512-2Ac2RgzDe/cn48GvOe3M+o82pEFewD3UPbyoUHHdKasHwJKjds4fLXWf/Ux5kATBKN20oaFGu+jbElp1pos0mg==",
"dependencies": {
"@types/json5": "^0.0.29",
"json5": "^1.0.2",
@@ -14953,13 +13420,13 @@
}
},
"node_modules/evt": {
- "version": "2.5.3",
- "resolved": "https://registry.npmjs.org/evt/-/evt-2.5.3.tgz",
- "integrity": "sha512-wZKx0JgXaTOVOXI2saNVxINU6VToOHDowMwb3NRcU6l+C59eW3w9dZgNxjokiM8rvMgc7/11yFG0cSDxn4qxgA==",
+ "version": "2.5.7",
+ "resolved": "https://registry.npmjs.org/evt/-/evt-2.5.7.tgz",
+ "integrity": "sha512-dr7Wd16ry5F8WNU1xXLKpFpO3HsoAGg8zC48e08vDdzMzGWCP9/QFGt1PQptEEDh8SwYP3EL8M+d/Gb0kgUp6g==",
"dependencies": {
"minimal-polyfills": "^2.2.3",
"run-exclusive": "^2.2.19",
- "tsafe": "^1.6.5"
+ "tsafe": "^1.6.6"
}
},
"node_modules/exec-sh": {
@@ -15164,19 +13631,6 @@
}
]
},
- "node_modules/ext": {
- "version": "1.7.0",
- "resolved": "https://registry.npmjs.org/ext/-/ext-1.7.0.tgz",
- "integrity": "sha512-6hxeJYaL110a9b5TEJSj0gojyHQAmA2ch5Os+ySCiA1QGdS697XWY1pzsrSjqA9LDEEgdB/KypIlR59RcLuHYw==",
- "dependencies": {
- "type": "^2.7.2"
- }
- },
- "node_modules/ext/node_modules/type": {
- "version": "2.7.2",
- "resolved": "https://registry.npmjs.org/type/-/type-2.7.2.tgz",
- "integrity": "sha512-dzlvlNlt6AXU7EBSfpAscydQ7gXB+pPGsPnfJnZpiNJBDj7IaJzQlBZYGdEi4R9HmPdBv2XmWJ6YUtoTa7lmCw=="
- },
"node_modules/extend": {
"version": "3.0.2",
"resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz",
@@ -15236,9 +13690,9 @@
"integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q=="
},
"node_modules/fast-glob": {
- "version": "3.3.1",
- "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.1.tgz",
- "integrity": "sha512-kNFPyjhh5cKjrUltxs+wFx+ZkbRaxxmZ+X0ZU31SOsxCEtP9VPgtq2teZw1DebupL5GmDaNQ6yKMMVcM41iqDg==",
+ "version": "3.3.2",
+ "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.2.tgz",
+ "integrity": "sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow==",
"dependencies": {
"@nodelib/fs.stat": "^2.0.2",
"@nodelib/fs.walk": "^1.2.3",
@@ -15272,9 +13726,9 @@
"integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw=="
},
"node_modules/fastq": {
- "version": "1.15.0",
- "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.15.0.tgz",
- "integrity": "sha512-wBrocU2LCXXa+lWBt8RoIRD89Fi8OdABODa/kEnyeyjS5aZO5/GNvI5sEINADqP/h8M29UHTHUb53sUu5Ihqdw==",
+ "version": "1.16.0",
+ "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.16.0.tgz",
+ "integrity": "sha512-ifCoaXsDrsdkWTtiNJX5uzHDsrck5TzfKKDcuFFTIrrc/BS076qgEIfoIy1VeZqViznfKiysPYTh/QeHtnIsYA==",
"dependencies": {
"reusify": "^1.0.4"
}
@@ -15390,16 +13844,16 @@
}
},
"node_modules/flat-cache": {
- "version": "3.1.1",
- "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.1.1.tgz",
- "integrity": "sha512-/qM2b3LUIaIgviBQovTLvijfyOQXPtSRnRK26ksj2J7rzPIecePUIpJsZ4T02Qg+xiAEKIs5K8dsHEd+VaKa/Q==",
+ "version": "3.2.0",
+ "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.2.0.tgz",
+ "integrity": "sha512-CYcENa+FtcUKLmhhqyctpclsq7QF38pKjZHsGNiSQF5r4FtoKDWabFDl3hzaEQMvT1LHEysw5twgLvpYYb4vbw==",
"dependencies": {
"flatted": "^3.2.9",
"keyv": "^4.5.3",
"rimraf": "^3.0.2"
},
"engines": {
- "node": ">=12.0.0"
+ "node": "^10.12.0 || >=12.0.0"
}
},
"node_modules/flat-cache/node_modules/glob": {
@@ -15441,9 +13895,9 @@
"integrity": "sha512-36yxDn5H7OFZQla0/jFJmbIKTdZAQHngCedGxiMmpNfEZM0sdEeT+WczLQrjK6D7o2aiyLYDnkw0R3JK0Qv1RQ=="
},
"node_modules/flexsearch": {
- "version": "0.7.31",
- "resolved": "https://registry.npmjs.org/flexsearch/-/flexsearch-0.7.31.tgz",
- "integrity": "sha512-XGozTsMPYkm+6b5QL3Z9wQcJjNYxp0CYn3U1gO7dwD6PAqU1SVWZxI9CCg3z+ml3YfqdPnrBehaBrnH2AGKbNA=="
+ "version": "0.7.43",
+ "resolved": "https://registry.npmjs.org/flexsearch/-/flexsearch-0.7.43.tgz",
+ "integrity": "sha512-c5o/+Um8aqCSOXGcZoqZOm+NqtVwNsvVpWv6lfmSclU954O3wvQKxxK8zj74fPaSJbXpSLTs4PRhh+wnoCXnKg=="
},
"node_modules/focus-visible": {
"version": "5.2.0",
@@ -15494,14 +13948,6 @@
"tslib": "^2.4.0"
}
},
- "node_modules/fontkit/node_modules/clone": {
- "version": "2.1.2",
- "resolved": "https://registry.npmjs.org/clone/-/clone-2.1.2.tgz",
- "integrity": "sha512-3Pe/CF1Nn94hyhIYpjtiLhdCoEoz0DqQ+988E9gmeEdQZlojxnOb74wctFyuwWQHzqyf9X7C7MG8juUpqBJT8w==",
- "engines": {
- "node": ">=0.8"
- }
- },
"node_modules/for-each": {
"version": "0.3.3",
"resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.3.tgz",
@@ -15609,9 +14055,9 @@
}
},
"node_modules/framer-motion": {
- "version": "10.16.4",
- "resolved": "https://registry.npmjs.org/framer-motion/-/framer-motion-10.16.4.tgz",
- "integrity": "sha512-p9V9nGomS3m6/CALXqv6nFGMuFOxbWsmaOrdmhyQimMIlLl3LC7h7l86wge/Js/8cRu5ktutS/zlzgR7eBOtFA==",
+ "version": "10.18.0",
+ "resolved": "https://registry.npmjs.org/framer-motion/-/framer-motion-10.18.0.tgz",
+ "integrity": "sha512-oGlDh1Q1XqYPksuTD/usb0I70hq95OUzmL9+6Zd+Hs4XV0oaISBa/UUMSjYiq6m8EUF32132mOJ8xVZS+I0S6w==",
"dependencies": {
"tslib": "^2.4.0"
},
@@ -15631,21 +14077,6 @@
}
}
},
- "node_modules/framer-motion/node_modules/@emotion/is-prop-valid": {
- "version": "0.8.8",
- "resolved": "https://registry.npmjs.org/@emotion/is-prop-valid/-/is-prop-valid-0.8.8.tgz",
- "integrity": "sha512-u5WtneEAr5IDG2Wv65yhunPSMLIpuKsbuOktRojfrEiEvRyC85LgPMZI63cr7NUqT8ZIGdSVg8ZKGxIug4lXcA==",
- "optional": true,
- "dependencies": {
- "@emotion/memoize": "0.7.4"
- }
- },
- "node_modules/framer-motion/node_modules/@emotion/memoize": {
- "version": "0.7.4",
- "resolved": "https://registry.npmjs.org/@emotion/memoize/-/memoize-0.7.4.tgz",
- "integrity": "sha512-Ja/Vfqe3HpuzRsG1oBtWTHk2PGZ7GR+2Vz5iYGelAw8dx32K0y7PjVuxK6z1nMpZOqAFsRUPCkK1YjJ56qJlgw==",
- "optional": true
- },
"node_modules/fresh": {
"version": "0.5.2",
"resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz",
@@ -15975,9 +14406,9 @@
}
},
"node_modules/globals": {
- "version": "13.23.0",
- "resolved": "https://registry.npmjs.org/globals/-/globals-13.23.0.tgz",
- "integrity": "sha512-XAmF0RjlrjY23MA51q3HltdlGxUpXPvg0GioKiD9X6HD28iMjo2dKC8Vqwm7lne4GNr78+RHTfliktR6ZH09wA==",
+ "version": "13.24.0",
+ "resolved": "https://registry.npmjs.org/globals/-/globals-13.24.0.tgz",
+ "integrity": "sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==",
"dependencies": {
"type-fest": "^0.20.2"
},
@@ -16098,6 +14529,19 @@
"gunzip-maybe": "bin.js"
}
},
+ "node_modules/gunzip-maybe/node_modules/browserify-zlib": {
+ "version": "0.1.4",
+ "resolved": "https://registry.npmjs.org/browserify-zlib/-/browserify-zlib-0.1.4.tgz",
+ "integrity": "sha512-19OEpq7vWgsH6WkvkBJQDFvJS1uPcbFOQ4v9CU839dO+ZZXUZO6XpE6hNCqvlIIj+4fZvRiJ6DsAQ382GwiyTQ==",
+ "dependencies": {
+ "pako": "~0.2.0"
+ }
+ },
+ "node_modules/gunzip-maybe/node_modules/pako": {
+ "version": "0.2.9",
+ "resolved": "https://registry.npmjs.org/pako/-/pako-0.2.9.tgz",
+ "integrity": "sha512-NUcwaKxUxWrZLpDG+z/xZaCgQITkA/Dv4V/T6bw7VON6l1Xz/VnrBqrYjZQ12TamKHzITTfOEIYUj48y2KXImA=="
+ },
"node_modules/has-bigints": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.0.2.tgz",
@@ -16277,9 +14721,9 @@
}
},
"node_modules/hast-util-from-dom/node_modules/@types/hast": {
- "version": "3.0.2",
- "resolved": "https://registry.npmjs.org/@types/hast/-/hast-3.0.2.tgz",
- "integrity": "sha512-B5hZHgHsXvfCoO3xgNJvBnX7N8p86TqQeGKXcokW4XXi+qY4vxxPSFYofytvVmpFxzPv7oxDQzjg5Un5m2/xiw==",
+ "version": "3.0.3",
+ "resolved": "https://registry.npmjs.org/@types/hast/-/hast-3.0.3.tgz",
+ "integrity": "sha512-2fYGlaDy/qyLlhidX42wAH0KBi2TCjKMH8CHmBXgRlJ3Y+OXTiqsPQ6IWarZKwF1JoUcAJdPogv1d4b0COTpmQ==",
"dependencies": {
"@types/unist": "*"
}
@@ -16317,36 +14761,25 @@
}
},
"node_modules/hast-util-from-html-isomorphic/node_modules/@types/hast": {
- "version": "3.0.2",
- "resolved": "https://registry.npmjs.org/@types/hast/-/hast-3.0.2.tgz",
- "integrity": "sha512-B5hZHgHsXvfCoO3xgNJvBnX7N8p86TqQeGKXcokW4XXi+qY4vxxPSFYofytvVmpFxzPv7oxDQzjg5Un5m2/xiw==",
+ "version": "3.0.3",
+ "resolved": "https://registry.npmjs.org/@types/hast/-/hast-3.0.3.tgz",
+ "integrity": "sha512-2fYGlaDy/qyLlhidX42wAH0KBi2TCjKMH8CHmBXgRlJ3Y+OXTiqsPQ6IWarZKwF1JoUcAJdPogv1d4b0COTpmQ==",
"dependencies": {
"@types/unist": "*"
}
},
"node_modules/hast-util-from-html/node_modules/@types/hast": {
- "version": "3.0.2",
- "resolved": "https://registry.npmjs.org/@types/hast/-/hast-3.0.2.tgz",
- "integrity": "sha512-B5hZHgHsXvfCoO3xgNJvBnX7N8p86TqQeGKXcokW4XXi+qY4vxxPSFYofytvVmpFxzPv7oxDQzjg5Un5m2/xiw==",
+ "version": "3.0.3",
+ "resolved": "https://registry.npmjs.org/@types/hast/-/hast-3.0.3.tgz",
+ "integrity": "sha512-2fYGlaDy/qyLlhidX42wAH0KBi2TCjKMH8CHmBXgRlJ3Y+OXTiqsPQ6IWarZKwF1JoUcAJdPogv1d4b0COTpmQ==",
"dependencies": {
"@types/unist": "*"
}
},
"node_modules/hast-util-from-html/node_modules/@types/unist": {
- "version": "3.0.1",
- "resolved": "https://registry.npmjs.org/@types/unist/-/unist-3.0.1.tgz",
- "integrity": "sha512-ue/hDUpPjC85m+PM9OQDMZr3LywT+CT6mPsQq8OJtCLiERkGRcQUFvu9XASF5XWqyZFXbf15lvb3JFJ4dRLWPg=="
- },
- "node_modules/hast-util-from-html/node_modules/entities": {
- "version": "4.5.0",
- "resolved": "https://registry.npmjs.org/entities/-/entities-4.5.0.tgz",
- "integrity": "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==",
- "engines": {
- "node": ">=0.12"
- },
- "funding": {
- "url": "https://github.com/fb55/entities?sponsor=1"
- }
+ "version": "3.0.2",
+ "resolved": "https://registry.npmjs.org/@types/unist/-/unist-3.0.2.tgz",
+ "integrity": "sha512-dqId9J8K/vGi5Zr7oo212BGii5m3q5Hxlkwy3WpYuKPklmBEvsbMYYyLxAQpSffdLl/gdW0XUpKWFvYmyoWCoQ=="
},
"node_modules/hast-util-from-html/node_modules/parse5": {
"version": "7.1.2",
@@ -16405,17 +14838,17 @@
}
},
"node_modules/hast-util-from-parse5/node_modules/@types/hast": {
- "version": "3.0.2",
- "resolved": "https://registry.npmjs.org/@types/hast/-/hast-3.0.2.tgz",
- "integrity": "sha512-B5hZHgHsXvfCoO3xgNJvBnX7N8p86TqQeGKXcokW4XXi+qY4vxxPSFYofytvVmpFxzPv7oxDQzjg5Un5m2/xiw==",
+ "version": "3.0.3",
+ "resolved": "https://registry.npmjs.org/@types/hast/-/hast-3.0.3.tgz",
+ "integrity": "sha512-2fYGlaDy/qyLlhidX42wAH0KBi2TCjKMH8CHmBXgRlJ3Y+OXTiqsPQ6IWarZKwF1JoUcAJdPogv1d4b0COTpmQ==",
"dependencies": {
"@types/unist": "*"
}
},
"node_modules/hast-util-from-parse5/node_modules/@types/unist": {
- "version": "3.0.1",
- "resolved": "https://registry.npmjs.org/@types/unist/-/unist-3.0.1.tgz",
- "integrity": "sha512-ue/hDUpPjC85m+PM9OQDMZr3LywT+CT6mPsQq8OJtCLiERkGRcQUFvu9XASF5XWqyZFXbf15lvb3JFJ4dRLWPg=="
+ "version": "3.0.2",
+ "resolved": "https://registry.npmjs.org/@types/unist/-/unist-3.0.2.tgz",
+ "integrity": "sha512-dqId9J8K/vGi5Zr7oo212BGii5m3q5Hxlkwy3WpYuKPklmBEvsbMYYyLxAQpSffdLl/gdW0XUpKWFvYmyoWCoQ=="
},
"node_modules/hast-util-from-parse5/node_modules/unist-util-stringify-position": {
"version": "4.0.0",
@@ -16456,9 +14889,9 @@
}
},
"node_modules/hast-util-is-element/node_modules/@types/hast": {
- "version": "3.0.2",
- "resolved": "https://registry.npmjs.org/@types/hast/-/hast-3.0.2.tgz",
- "integrity": "sha512-B5hZHgHsXvfCoO3xgNJvBnX7N8p86TqQeGKXcokW4XXi+qY4vxxPSFYofytvVmpFxzPv7oxDQzjg5Un5m2/xiw==",
+ "version": "3.0.3",
+ "resolved": "https://registry.npmjs.org/@types/hast/-/hast-3.0.3.tgz",
+ "integrity": "sha512-2fYGlaDy/qyLlhidX42wAH0KBi2TCjKMH8CHmBXgRlJ3Y+OXTiqsPQ6IWarZKwF1JoUcAJdPogv1d4b0COTpmQ==",
"dependencies": {
"@types/unist": "*"
}
@@ -16476,17 +14909,17 @@
}
},
"node_modules/hast-util-parse-selector/node_modules/@types/hast": {
- "version": "3.0.2",
- "resolved": "https://registry.npmjs.org/@types/hast/-/hast-3.0.2.tgz",
- "integrity": "sha512-B5hZHgHsXvfCoO3xgNJvBnX7N8p86TqQeGKXcokW4XXi+qY4vxxPSFYofytvVmpFxzPv7oxDQzjg5Un5m2/xiw==",
+ "version": "3.0.3",
+ "resolved": "https://registry.npmjs.org/@types/hast/-/hast-3.0.3.tgz",
+ "integrity": "sha512-2fYGlaDy/qyLlhidX42wAH0KBi2TCjKMH8CHmBXgRlJ3Y+OXTiqsPQ6IWarZKwF1JoUcAJdPogv1d4b0COTpmQ==",
"dependencies": {
"@types/unist": "*"
}
},
"node_modules/hast-util-raw": {
- "version": "9.0.1",
- "resolved": "https://registry.npmjs.org/hast-util-raw/-/hast-util-raw-9.0.1.tgz",
- "integrity": "sha512-5m1gmba658Q+lO5uqL5YNGQWeh1MYWZbZmWrM5lncdcuiXuo5E2HT/CIOp0rLF8ksfSwiCVJ3twlgVRyTGThGA==",
+ "version": "9.0.2",
+ "resolved": "https://registry.npmjs.org/hast-util-raw/-/hast-util-raw-9.0.2.tgz",
+ "integrity": "sha512-PldBy71wO9Uq1kyaMch9AHIghtQvIwxBUkv823pKmkTM3oV1JxtsTNYdevMxvUHqcnOAuO65JKU2+0NOxc2ksA==",
"dependencies": {
"@types/hast": "^3.0.0",
"@types/unist": "^3.0.0",
@@ -16508,28 +14941,17 @@
}
},
"node_modules/hast-util-raw/node_modules/@types/hast": {
- "version": "3.0.2",
- "resolved": "https://registry.npmjs.org/@types/hast/-/hast-3.0.2.tgz",
- "integrity": "sha512-B5hZHgHsXvfCoO3xgNJvBnX7N8p86TqQeGKXcokW4XXi+qY4vxxPSFYofytvVmpFxzPv7oxDQzjg5Un5m2/xiw==",
+ "version": "3.0.3",
+ "resolved": "https://registry.npmjs.org/@types/hast/-/hast-3.0.3.tgz",
+ "integrity": "sha512-2fYGlaDy/qyLlhidX42wAH0KBi2TCjKMH8CHmBXgRlJ3Y+OXTiqsPQ6IWarZKwF1JoUcAJdPogv1d4b0COTpmQ==",
"dependencies": {
"@types/unist": "*"
}
},
"node_modules/hast-util-raw/node_modules/@types/unist": {
- "version": "3.0.1",
- "resolved": "https://registry.npmjs.org/@types/unist/-/unist-3.0.1.tgz",
- "integrity": "sha512-ue/hDUpPjC85m+PM9OQDMZr3LywT+CT6mPsQq8OJtCLiERkGRcQUFvu9XASF5XWqyZFXbf15lvb3JFJ4dRLWPg=="
- },
- "node_modules/hast-util-raw/node_modules/entities": {
- "version": "4.5.0",
- "resolved": "https://registry.npmjs.org/entities/-/entities-4.5.0.tgz",
- "integrity": "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==",
- "engines": {
- "node": ">=0.12"
- },
- "funding": {
- "url": "https://github.com/fb55/entities?sponsor=1"
- }
+ "version": "3.0.2",
+ "resolved": "https://registry.npmjs.org/@types/unist/-/unist-3.0.2.tgz",
+ "integrity": "sha512-dqId9J8K/vGi5Zr7oo212BGii5m3q5Hxlkwy3WpYuKPklmBEvsbMYYyLxAQpSffdLl/gdW0XUpKWFvYmyoWCoQ=="
},
"node_modules/hast-util-raw/node_modules/parse5": {
"version": "7.1.2",
@@ -16651,9 +15073,9 @@
}
},
"node_modules/hast-util-to-parse5/node_modules/@types/hast": {
- "version": "3.0.2",
- "resolved": "https://registry.npmjs.org/@types/hast/-/hast-3.0.2.tgz",
- "integrity": "sha512-B5hZHgHsXvfCoO3xgNJvBnX7N8p86TqQeGKXcokW4XXi+qY4vxxPSFYofytvVmpFxzPv7oxDQzjg5Un5m2/xiw==",
+ "version": "3.0.3",
+ "resolved": "https://registry.npmjs.org/@types/hast/-/hast-3.0.3.tgz",
+ "integrity": "sha512-2fYGlaDy/qyLlhidX42wAH0KBi2TCjKMH8CHmBXgRlJ3Y+OXTiqsPQ6IWarZKwF1JoUcAJdPogv1d4b0COTpmQ==",
"dependencies": {
"@types/unist": "*"
}
@@ -16674,17 +15096,17 @@
}
},
"node_modules/hast-util-to-text/node_modules/@types/hast": {
- "version": "3.0.2",
- "resolved": "https://registry.npmjs.org/@types/hast/-/hast-3.0.2.tgz",
- "integrity": "sha512-B5hZHgHsXvfCoO3xgNJvBnX7N8p86TqQeGKXcokW4XXi+qY4vxxPSFYofytvVmpFxzPv7oxDQzjg5Un5m2/xiw==",
+ "version": "3.0.3",
+ "resolved": "https://registry.npmjs.org/@types/hast/-/hast-3.0.3.tgz",
+ "integrity": "sha512-2fYGlaDy/qyLlhidX42wAH0KBi2TCjKMH8CHmBXgRlJ3Y+OXTiqsPQ6IWarZKwF1JoUcAJdPogv1d4b0COTpmQ==",
"dependencies": {
"@types/unist": "*"
}
},
"node_modules/hast-util-to-text/node_modules/@types/unist": {
- "version": "3.0.1",
- "resolved": "https://registry.npmjs.org/@types/unist/-/unist-3.0.1.tgz",
- "integrity": "sha512-ue/hDUpPjC85m+PM9OQDMZr3LywT+CT6mPsQq8OJtCLiERkGRcQUFvu9XASF5XWqyZFXbf15lvb3JFJ4dRLWPg=="
+ "version": "3.0.2",
+ "resolved": "https://registry.npmjs.org/@types/unist/-/unist-3.0.2.tgz",
+ "integrity": "sha512-dqId9J8K/vGi5Zr7oo212BGii5m3q5Hxlkwy3WpYuKPklmBEvsbMYYyLxAQpSffdLl/gdW0XUpKWFvYmyoWCoQ=="
},
"node_modules/hast-util-whitespace": {
"version": "2.0.1",
@@ -16712,9 +15134,9 @@
}
},
"node_modules/hastscript/node_modules/@types/hast": {
- "version": "3.0.2",
- "resolved": "https://registry.npmjs.org/@types/hast/-/hast-3.0.2.tgz",
- "integrity": "sha512-B5hZHgHsXvfCoO3xgNJvBnX7N8p86TqQeGKXcokW4XXi+qY4vxxPSFYofytvVmpFxzPv7oxDQzjg5Un5m2/xiw==",
+ "version": "3.0.3",
+ "resolved": "https://registry.npmjs.org/@types/hast/-/hast-3.0.3.tgz",
+ "integrity": "sha512-2fYGlaDy/qyLlhidX42wAH0KBi2TCjKMH8CHmBXgRlJ3Y+OXTiqsPQ6IWarZKwF1JoUcAJdPogv1d4b0COTpmQ==",
"dependencies": {
"@types/unist": "*"
}
@@ -16795,16 +15217,28 @@
"node": ">= 6"
}
},
+ "node_modules/http-proxy-agent/node_modules/agent-base": {
+ "version": "6.0.2",
+ "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz",
+ "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==",
+ "dependencies": {
+ "debug": "4"
+ },
+ "engines": {
+ "node": ">= 6.0.0"
+ }
+ },
"node_modules/https-proxy-agent": {
- "version": "5.0.1",
- "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz",
- "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==",
+ "version": "7.0.2",
+ "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.2.tgz",
+ "integrity": "sha512-NmLNjm6ucYwtcUmL7JQC1ZQ57LmHP4lT15FQ8D61nak1rO6DH+fz5qNK2Ap5UN4ZapYICE3/0KodcLYSPsPbaA==",
+ "dev": true,
"dependencies": {
- "agent-base": "6",
+ "agent-base": "^7.0.2",
"debug": "4"
},
"engines": {
- "node": ">= 6"
+ "node": ">= 14"
}
},
"node_modules/human-signals": {
@@ -16832,9 +15266,9 @@
}
},
"node_modules/hyphen": {
- "version": "1.9.1",
- "resolved": "https://registry.npmjs.org/hyphen/-/hyphen-1.9.1.tgz",
- "integrity": "sha512-fIPVvM6BUW+878xne+wwIcBjMxeKpoADmxNTjKMocUQWiGOvwyEfZEG95IeL/t4Su6nbfbXeYDUnz62pxzLPmw=="
+ "version": "1.10.4",
+ "resolved": "https://registry.npmjs.org/hyphen/-/hyphen-1.10.4.tgz",
+ "integrity": "sha512-SejXzIpv9gOVdDWXd4suM1fdF1k2dxZGvuTdkOVLoazYfK7O4DykIQbdrvuyG+EaTNlXAGhMndtKrhykgbt0gg=="
},
"node_modules/iconv-lite": {
"version": "0.4.24",
@@ -16878,9 +15312,9 @@
]
},
"node_modules/ignore": {
- "version": "5.2.4",
- "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.4.tgz",
- "integrity": "sha512-MAb38BcSbH0eHNBxn7ql2NH/kX33OkB3lZ1BNdh7ENeRChHTYsTvWrMubiIAMNS2llXEEgZ1MUOBtXChP3kaFQ==",
+ "version": "5.3.0",
+ "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.0.tgz",
+ "integrity": "sha512-g7dmpshy+gD7mh88OC9NwSGTKoc3kyLAZQRU1mt53Aw/vnvfXnbC+F/7F7QoYVKbV+KNvJx8wArewKy1vXMtlg==",
"engines": {
"node": ">= 4"
}
@@ -17005,13 +15439,13 @@
"integrity": "sha512-7m1vEcPCxXYI8HqnL8CKI6siDyD+eIWSwgB3DZA+ZTogxk9I4CDnj4wilt9x/+/QbHI4YG5YZNmC6458/e9Ktg=="
},
"node_modules/intl-messageformat": {
- "version": "10.5.4",
- "resolved": "https://registry.npmjs.org/intl-messageformat/-/intl-messageformat-10.5.4.tgz",
- "integrity": "sha512-z+hrFdiJ/heRYlzegrdFYqU1m/KOMOVMqNilIArj+PbsuU8TNE7v4TWdQgSoxlxbT4AcZH3Op3/Fu15QTp+W1w==",
+ "version": "10.5.10",
+ "resolved": "https://registry.npmjs.org/intl-messageformat/-/intl-messageformat-10.5.10.tgz",
+ "integrity": "sha512-3yzwX6t/my9WRtNiqP05r+/UkpWxwstQiwaHAiuHmDRt7ykzWJ+nceOVjNLZYYWGiSltY+C+Likd8OIVkASepw==",
"dependencies": {
- "@formatjs/ecma402-abstract": "1.17.2",
+ "@formatjs/ecma402-abstract": "1.18.2",
"@formatjs/fast-memoize": "2.2.0",
- "@formatjs/icu-messageformat-parser": "2.7.0",
+ "@formatjs/icu-messageformat-parser": "2.7.5",
"tslib": "^2.4.0"
}
},
@@ -17687,9 +16121,9 @@
}
},
"node_modules/istanbul-lib-coverage": {
- "version": "3.2.0",
- "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.0.tgz",
- "integrity": "sha512-eOeJ5BHCmHYvQK7xt9GkdHuzuCGS1Y6g9Gvnx3Ym33fz/HpLRYxiS0wHNr+m/MBC8B647Xt608vCDEvhl9c6Mw==",
+ "version": "3.2.2",
+ "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.2.tgz",
+ "integrity": "sha512-O8dpsF+r0WV/8MNRKfnmrtCWhuKjxrq2w+jpzBL5UZKTi2LeVWnWOmWRxFlesJONmc+wLAGvKQZEOanko0LFTg==",
"engines": {
"node": ">=8"
}
@@ -18025,11 +16459,6 @@
"node": ">= 10"
}
},
- "node_modules/jest-config/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-diff": {
"version": "26.6.2",
"resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-26.6.2.tgz",
@@ -18058,11 +16487,6 @@
"node": ">= 10"
}
},
- "node_modules/jest-diff/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-docblock": {
"version": "26.0.0",
"resolved": "https://registry.npmjs.org/jest-docblock/-/jest-docblock-26.0.0.tgz",
@@ -18103,11 +16527,6 @@
"node": ">= 10"
}
},
- "node_modules/jest-each/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-environment-jsdom": {
"version": "26.6.2",
"resolved": "https://registry.npmjs.org/jest-environment-jsdom/-/jest-environment-jsdom-26.6.2.tgz",
@@ -18217,11 +16636,6 @@
"node": ">= 10"
}
},
- "node_modules/jest-jasmine2/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-leak-detector": {
"version": "26.6.2",
"resolved": "https://registry.npmjs.org/jest-leak-detector/-/jest-leak-detector-26.6.2.tgz",
@@ -18248,11 +16662,6 @@
"node": ">= 10"
}
},
- "node_modules/jest-leak-detector/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-matcher-utils": {
"version": "26.6.2",
"resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-26.6.2.tgz",
@@ -18281,11 +16690,6 @@
"node": ">= 10"
}
},
- "node_modules/jest-matcher-utils/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-message-util": {
"version": "26.6.2",
"resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-26.6.2.tgz",
@@ -18319,11 +16723,6 @@
"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",
@@ -18551,11 +16950,6 @@
"node": ">= 10"
}
},
- "node_modules/jest-snapshot/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-snapshot/node_modules/semver": {
"version": "7.5.4",
"resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz",
@@ -18627,11 +17021,6 @@
"node": ">= 10"
}
},
- "node_modules/jest-validate/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-watcher": {
"version": "26.6.2",
"resolved": "https://registry.npmjs.org/jest-watcher/-/jest-watcher-26.6.2.tgz",
@@ -18704,6 +17093,11 @@
"node": ">=10"
}
},
+ "node_modules/jpeg-exif": {
+ "version": "1.1.4",
+ "resolved": "https://registry.npmjs.org/jpeg-exif/-/jpeg-exif-1.1.4.tgz",
+ "integrity": "sha512-a+bKEcCjtuW5WTdgeXFzswSrdqi0jk4XlEtZlx5A94wCoBpFjfFTbo/Tra5SpNCl/YFZPvcV1dJc+TAYeg6ROQ=="
+ },
"node_modules/js-tokens": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz",
@@ -18765,14 +17159,37 @@
}
}
},
+ "node_modules/jsdom/node_modules/agent-base": {
+ "version": "6.0.2",
+ "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz",
+ "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==",
+ "dependencies": {
+ "debug": "4"
+ },
+ "engines": {
+ "node": ">= 6.0.0"
+ }
+ },
"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"
+ "asynckit": "^0.4.0",
+ "combined-stream": "^1.0.8",
+ "mime-types": "^2.1.12"
+ },
+ "engines": {
+ "node": ">= 6"
+ }
+ },
+ "node_modules/jsdom/node_modules/https-proxy-agent": {
+ "version": "5.0.1",
+ "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz",
+ "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==",
+ "dependencies": {
+ "agent-base": "6",
+ "debug": "4"
},
"engines": {
"node": ">= 6"
@@ -18810,6 +17227,26 @@
"node": ">=10"
}
},
+ "node_modules/jsdom/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"
+ },
+ "peerDependenciesMeta": {
+ "bufferutil": {
+ "optional": true
+ },
+ "utf-8-validate": {
+ "optional": true
+ }
+ }
+ },
"node_modules/jsesc": {
"version": "2.5.2",
"resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz",
@@ -18833,9 +17270,9 @@
"dev": true
},
"node_modules/json-parse-even-better-errors": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-3.0.0.tgz",
- "integrity": "sha512-iZbGHafX/59r39gPwVPRBGw0QQKnA7tte5pSMrhWOW7swGsVvVTjmfyAV9pNqk8YGT7tRCdxRu8uzcgZwoDooA==",
+ "version": "3.0.1",
+ "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-3.0.1.tgz",
+ "integrity": "sha512-aatBvbL26wVUCLmbWdCpeu9iF5wOyWpagiKkInA+kfws3sWdBrTnsvN2CKcyCYyUrc7rebNBlK6+kteg7ksecg==",
"engines": {
"node": "^14.17.0 || ^16.13.0 || >=18.0.0"
}
@@ -19020,11 +17457,11 @@
"integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg=="
},
"node_modules/linkify-it": {
- "version": "4.0.1",
- "resolved": "https://registry.npmjs.org/linkify-it/-/linkify-it-4.0.1.tgz",
- "integrity": "sha512-C7bfi1UZmoj8+PQx22XyeXCuBlokoyWQL5pWSP+EI6nzRylyThouddufc2c1NDIcP9k5agmN9fLpA7VNJfIiqw==",
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/linkify-it/-/linkify-it-5.0.0.tgz",
+ "integrity": "sha512-5aHCbzQRADcdP+ATqnDuhhJ/MRIqDkZX5pyjFHRRysS8vZ5AbqGEoFIb6pYHPZ+L/OC2Lc+xT8uHVVR5CAK/wQ==",
"dependencies": {
- "uc.micro": "^1.0.1"
+ "uc.micro": "^2.0.0"
}
},
"node_modules/lint-staged": {
@@ -19299,17 +17736,17 @@
}
},
"node_modules/lru-cache": {
- "version": "10.0.1",
- "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.0.1.tgz",
- "integrity": "sha512-IJ4uwUTi2qCccrioU6g9g/5rvvVl13bsdczUUcqbciD9iLr095yj8DQKdObriEvuNSx325N1rV1O0sJFszx75g==",
+ "version": "10.1.0",
+ "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.1.0.tgz",
+ "integrity": "sha512-/1clY/ui8CzjKFyjdvwPWJUYKiFVXG2I2cY0ssG7h4+hwk+XOIX7ZSG9Q7TW8TW3Kp3BUSqgFWBLgL4PJ+Blag==",
"engines": {
"node": "14 || >=16.14"
}
},
"node_modules/luxon": {
- "version": "3.4.3",
- "resolved": "https://registry.npmjs.org/luxon/-/luxon-3.4.3.tgz",
- "integrity": "sha512-tFWBiv3h7z+T/tDaoxA8rqTxy1CHV6gHS//QdaH4pulbq/JuBSGgQspQQqcgnwdAx6pNI7cmvz5Sv/addzHmUg==",
+ "version": "3.4.4",
+ "resolved": "https://registry.npmjs.org/luxon/-/luxon-3.4.4.tgz",
+ "integrity": "sha512-zobTr7akeGHnv7eBOXcRgMeCP6+uyYsczwmeRCauvpvaAltgNyTbLH/+VaEAPUeWBT+1GuNmz4wC/6jtQzbbVA==",
"engines": {
"node": ">=12"
}
@@ -19402,18 +17839,19 @@
}
},
"node_modules/markdown-it": {
- "version": "13.0.2",
- "resolved": "https://registry.npmjs.org/markdown-it/-/markdown-it-13.0.2.tgz",
- "integrity": "sha512-FtwnEuuK+2yVU7goGn/MJ0WBZMM9ZPgU9spqlFs7/A/pDIUNSOQZhUgOqYCficIuR2QaFnrt8LHqBWsbTAoI5w==",
+ "version": "14.0.0",
+ "resolved": "https://registry.npmjs.org/markdown-it/-/markdown-it-14.0.0.tgz",
+ "integrity": "sha512-seFjF0FIcPt4P9U39Bq1JYblX0KZCjDLFFQPHpL5AzHpqPEKtosxmdq/LTVZnjfH7tjt9BxStm+wXcDBNuYmzw==",
"dependencies": {
"argparse": "^2.0.1",
- "entities": "~3.0.1",
- "linkify-it": "^4.0.1",
- "mdurl": "^1.0.1",
- "uc.micro": "^1.0.5"
+ "entities": "^4.4.0",
+ "linkify-it": "^5.0.0",
+ "mdurl": "^2.0.0",
+ "punycode.js": "^2.3.1",
+ "uc.micro": "^2.0.0"
},
"bin": {
- "markdown-it": "bin/markdown-it.js"
+ "markdown-it": "bin/markdown-it.mjs"
}
},
"node_modules/markdown-table": {
@@ -19426,12 +17864,12 @@
}
},
"node_modules/match-sorter": {
- "version": "6.3.1",
- "resolved": "https://registry.npmjs.org/match-sorter/-/match-sorter-6.3.1.tgz",
- "integrity": "sha512-mxybbo3pPNuA+ZuCUhm5bwNkXrJTbsk5VWbR5wiwz/GC6LIiegBGn2w3O08UG/jdbYLinw51fSQ5xNU1U3MgBw==",
+ "version": "6.3.3",
+ "resolved": "https://registry.npmjs.org/match-sorter/-/match-sorter-6.3.3.tgz",
+ "integrity": "sha512-sgiXxrRijEe0SzHKGX4HouCpfHRPnqteH42UdMEW7BlWy990ZkzcvonJGv4Uu9WE7Y1f8Yocm91+4qFPCbmNww==",
"dependencies": {
- "@babel/runtime": "^7.12.5",
- "remove-accents": "0.4.2"
+ "@babel/runtime": "^7.23.8",
+ "remove-accents": "0.5.0"
}
},
"node_modules/math-expression-evaluator": {
@@ -19742,9 +18180,9 @@
}
},
"node_modules/mdast-util-to-hast": {
- "version": "13.0.2",
- "resolved": "https://registry.npmjs.org/mdast-util-to-hast/-/mdast-util-to-hast-13.0.2.tgz",
- "integrity": "sha512-U5I+500EOOw9e3ZrclN3Is3fRpw8c19SMyNZlZ2IS+7vLsNzb2Om11VpIVOR+/0137GhZsFEF6YiKD5+0Hr2Og==",
+ "version": "13.1.0",
+ "resolved": "https://registry.npmjs.org/mdast-util-to-hast/-/mdast-util-to-hast-13.1.0.tgz",
+ "integrity": "sha512-/e2l/6+OdGp/FB+ctrJ9Avz71AN/GRH3oi/3KAx/kMnoUsD6q0woXlDT8lLEeViVKE7oZxE7RXzvO3T8kF2/sA==",
"dependencies": {
"@types/hast": "^3.0.0",
"@types/mdast": "^4.0.0",
@@ -19753,7 +18191,8 @@
"micromark-util-sanitize-uri": "^2.0.0",
"trim-lines": "^3.0.0",
"unist-util-position": "^5.0.0",
- "unist-util-visit": "^5.0.0"
+ "unist-util-visit": "^5.0.0",
+ "vfile": "^6.0.0"
},
"funding": {
"type": "opencollective",
@@ -19761,25 +18200,25 @@
}
},
"node_modules/mdast-util-to-hast/node_modules/@types/hast": {
- "version": "3.0.2",
- "resolved": "https://registry.npmjs.org/@types/hast/-/hast-3.0.2.tgz",
- "integrity": "sha512-B5hZHgHsXvfCoO3xgNJvBnX7N8p86TqQeGKXcokW4XXi+qY4vxxPSFYofytvVmpFxzPv7oxDQzjg5Un5m2/xiw==",
+ "version": "3.0.3",
+ "resolved": "https://registry.npmjs.org/@types/hast/-/hast-3.0.3.tgz",
+ "integrity": "sha512-2fYGlaDy/qyLlhidX42wAH0KBi2TCjKMH8CHmBXgRlJ3Y+OXTiqsPQ6IWarZKwF1JoUcAJdPogv1d4b0COTpmQ==",
"dependencies": {
"@types/unist": "*"
}
},
"node_modules/mdast-util-to-hast/node_modules/@types/mdast": {
- "version": "4.0.2",
- "resolved": "https://registry.npmjs.org/@types/mdast/-/mdast-4.0.2.tgz",
- "integrity": "sha512-tYR83EignvhYO9iU3kDg8V28M0jqyh9zzp5GV+EO+AYnyUl3P5ltkTeJuTiFZQFz670FSb3EwT/6LQdX+UdKfw==",
+ "version": "4.0.3",
+ "resolved": "https://registry.npmjs.org/@types/mdast/-/mdast-4.0.3.tgz",
+ "integrity": "sha512-LsjtqsyF+d2/yFOYaN22dHZI1Cpwkrj+g06G8+qtUKlhovPW89YhqSnfKtMbkgmEtYpH2gydRNULd6y8mciAFg==",
"dependencies": {
"@types/unist": "*"
}
},
"node_modules/mdast-util-to-hast/node_modules/@types/unist": {
- "version": "3.0.1",
- "resolved": "https://registry.npmjs.org/@types/unist/-/unist-3.0.1.tgz",
- "integrity": "sha512-ue/hDUpPjC85m+PM9OQDMZr3LywT+CT6mPsQq8OJtCLiERkGRcQUFvu9XASF5XWqyZFXbf15lvb3JFJ4dRLWPg=="
+ "version": "3.0.2",
+ "resolved": "https://registry.npmjs.org/@types/unist/-/unist-3.0.2.tgz",
+ "integrity": "sha512-dqId9J8K/vGi5Zr7oo212BGii5m3q5Hxlkwy3WpYuKPklmBEvsbMYYyLxAQpSffdLl/gdW0XUpKWFvYmyoWCoQ=="
},
"node_modules/mdast-util-to-hast/node_modules/micromark-util-character": {
"version": "2.0.1",
@@ -19889,6 +18328,18 @@
"url": "https://opencollective.com/unified"
}
},
+ "node_modules/mdast-util-to-hast/node_modules/unist-util-stringify-position": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/unist-util-stringify-position/-/unist-util-stringify-position-4.0.0.tgz",
+ "integrity": "sha512-0ASV06AAoKCDkS2+xw5RXJywruurpbC4JZSm7nr7MOt1ojAzvyyaO+UxZf18j8FCF6kmzCZKcAgN/yu2gm2XgQ==",
+ "dependencies": {
+ "@types/unist": "^3.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/unified"
+ }
+ },
"node_modules/mdast-util-to-hast/node_modules/unist-util-visit": {
"version": "5.0.0",
"resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-5.0.0.tgz",
@@ -19903,6 +18354,20 @@
"url": "https://opencollective.com/unified"
}
},
+ "node_modules/mdast-util-to-hast/node_modules/vfile": {
+ "version": "6.0.1",
+ "resolved": "https://registry.npmjs.org/vfile/-/vfile-6.0.1.tgz",
+ "integrity": "sha512-1bYqc7pt6NIADBJ98UiG0Bn/CHIVOoZ/IyEkqIruLg0mE1BKzkOXY2D6CSqQIcKqgadppE5lrxgWXJmXd7zZJw==",
+ "dependencies": {
+ "@types/unist": "^3.0.0",
+ "unist-util-stringify-position": "^4.0.0",
+ "vfile-message": "^4.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/unified"
+ }
+ },
"node_modules/mdast-util-to-markdown": {
"version": "1.5.0",
"resolved": "https://registry.npmjs.org/mdast-util-to-markdown/-/mdast-util-to-markdown-1.5.0.tgz",
@@ -19935,9 +18400,9 @@
}
},
"node_modules/mdurl": {
- "version": "1.0.1",
- "resolved": "https://registry.npmjs.org/mdurl/-/mdurl-1.0.1.tgz",
- "integrity": "sha512-/sKlQJCBYVY9Ers9hqzKou4H6V5UWc/M59TH2dvkt+84itfnq7uFOMLpOiOS4ujvHP4etln18fmIxA5R5fll0g=="
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/mdurl/-/mdurl-2.0.0.tgz",
+ "integrity": "sha512-Lf+9+2r+Tdp5wXDXC4PcIBjTDtq4UKjCPMQhKIuzpJNW0b96kVqSwW0bT7FhRSfmAiFYgP+SCRvdrDozfh0U5w=="
},
"node_modules/media-engine": {
"version": "1.0.3",
@@ -19988,9 +18453,9 @@
}
},
"node_modules/mermaid": {
- "version": "10.6.0",
- "resolved": "https://registry.npmjs.org/mermaid/-/mermaid-10.6.0.tgz",
- "integrity": "sha512-Hcti+Q2NiWnb2ZCijSX89Bn2i7TCUwosBdIn/d+u63Sz7y40XU6EKMctT4UX4qZuZGfKGZpfOeim2/KTrdR7aQ==",
+ "version": "10.7.0",
+ "resolved": "https://registry.npmjs.org/mermaid/-/mermaid-10.7.0.tgz",
+ "integrity": "sha512-PsvGupPCkN1vemAAjScyw4pw34p4/0dZkSrqvAB26hUvJulOWGIwt35FZWmT9wPIi4r0QLa5X0PB4YLIGn0/YQ==",
"dependencies": {
"@braintree/sanitize-url": "^6.0.1",
"@types/d3-scale": "^4.0.3",
@@ -20003,7 +18468,7 @@
"dagre-d3-es": "7.0.10",
"dayjs": "^1.11.7",
"dompurify": "^3.0.5",
- "elkjs": "^0.8.2",
+ "elkjs": "^0.9.0",
"khroma": "^2.0.0",
"lodash-es": "^4.17.21",
"mdast-util-from-markdown": "^1.3.0",
@@ -20015,9 +18480,9 @@
}
},
"node_modules/mermaid/node_modules/@types/d3-scale": {
- "version": "4.0.6",
- "resolved": "https://registry.npmjs.org/@types/d3-scale/-/d3-scale-4.0.6.tgz",
- "integrity": "sha512-lo3oMLSiqsQUovv8j15X4BNEDOsnHuGjeVg7GRbAuB2PUa1prK5BNSOu6xixgNf3nqxPl4I1BqJWrPvFGlQoGQ==",
+ "version": "4.0.8",
+ "resolved": "https://registry.npmjs.org/@types/d3-scale/-/d3-scale-4.0.8.tgz",
+ "integrity": "sha512-gkK1VVTr5iNiYJ7vWDI+yUFFlszhNMtVeneJ6lUTKPjprsvLLI9/tgEGiXJOnlINJA8FyA88gfnQsHbybVZrYQ==",
"dependencies": {
"@types/d3-time": "*"
}
@@ -21009,16 +19474,21 @@
"integrity": "sha512-gKLcREMhtuZRwRAfqP3RFW+TK4JqApVBtOIftVgjuABpAtpxhPGaDcfvbhNvD0B8iD1oUr/txX35NjcaY6Ns/A=="
},
"node_modules/mlly": {
- "version": "1.4.2",
- "resolved": "https://registry.npmjs.org/mlly/-/mlly-1.4.2.tgz",
- "integrity": "sha512-i/Ykufi2t1EZ6NaPLdfnZk2AX8cs0d+mTzVKuPfqPKPatxLApaBoxJQ9x1/uckXtrS/U5oisPMDkNs0yQTaBRg==",
+ "version": "1.5.0",
+ "resolved": "https://registry.npmjs.org/mlly/-/mlly-1.5.0.tgz",
+ "integrity": "sha512-NPVQvAY1xr1QoVeG0cy8yUYC7FQcOx6evl/RjT1wL5FvzPnzOysoqB/jmx/DhssT2dYa8nxECLAaFI/+gVLhDQ==",
"dependencies": {
- "acorn": "^8.10.0",
- "pathe": "^1.1.1",
+ "acorn": "^8.11.3",
+ "pathe": "^1.1.2",
"pkg-types": "^1.0.3",
- "ufo": "^1.3.0"
+ "ufo": "^1.3.2"
}
},
+ "node_modules/modern-ahocorasick": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/modern-ahocorasick/-/modern-ahocorasick-1.0.1.tgz",
+ "integrity": "sha512-yoe+JbhTClckZ67b2itRtistFKf8yPYelHLc7e5xAwtNAXxM6wJTUx2C7QeVSJFDzKT7bCIFyBVybPMKvmB9AA=="
+ },
"node_modules/morgan": {
"version": "1.10.0",
"resolved": "https://registry.npmjs.org/morgan/-/morgan-1.10.0.tgz",
@@ -21119,9 +19589,9 @@
}
},
"node_modules/nanoid": {
- "version": "3.3.6",
- "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.6.tgz",
- "integrity": "sha512-BGcqMMJuToF7i1rt+2PWSNVnWIkGCU78jBG3RxO/bZlnZPK2Cmi2QaffxGO/2RvWi9sL+FAiRiXMgsyxQ1DIDA==",
+ "version": "3.3.7",
+ "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.7.tgz",
+ "integrity": "sha512-eSRppjcPIatRIMC1U6UngP8XFcz8MQWGQdt1MTBQ7NaAmvXDfvNxbvWV3x2y6CdEUciCSsDHDQZbhYaB8QEo2g==",
"funding": [
{
"type": "github",
@@ -21169,9 +19639,9 @@
}
},
"node_modules/nanostores": {
- "version": "0.9.4",
- "resolved": "https://registry.npmjs.org/nanostores/-/nanostores-0.9.4.tgz",
- "integrity": "sha512-BVFzKt6K5P8tYQLL7MItqcev7jpspA5pIjv+Ck3k6wBnUlwCJcpkGTIinj4APvx8SvdP9fXDGoMRCTY6DO/9QA==",
+ "version": "0.9.5",
+ "resolved": "https://registry.npmjs.org/nanostores/-/nanostores-0.9.5.tgz",
+ "integrity": "sha512-Z+p+g8E7yzaWwOe5gEUB2Ox0rCEeXWYIZWmYvw/ajNYX8DlXdMvMDj8DWfM/subqPAcsf8l8Td4iAwO1DeIIRQ==",
"funding": [
{
"type": "github",
@@ -21284,11 +19754,6 @@
"react-dom": "*"
}
},
- "node_modules/next-tick": {
- "version": "1.1.0",
- "resolved": "https://registry.npmjs.org/next-tick/-/next-tick-1.1.0.tgz",
- "integrity": "sha512-CXdUiJembsNjuToQvxayPZF9Vqht7hewsvy2sOWafLvi2awflj9mOC6bHIg50orX8IJvWKY9wYQ/zB2kogPslQ=="
- },
"node_modules/next/node_modules/@swc/helpers": {
"version": "0.5.2",
"resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.5.2.tgz",
@@ -21403,9 +19868,9 @@
}
},
"node_modules/nextra/node_modules/@types/unist": {
- "version": "3.0.1",
- "resolved": "https://registry.npmjs.org/@types/unist/-/unist-3.0.1.tgz",
- "integrity": "sha512-ue/hDUpPjC85m+PM9OQDMZr3LywT+CT6mPsQq8OJtCLiERkGRcQUFvu9XASF5XWqyZFXbf15lvb3JFJ4dRLWPg=="
+ "version": "3.0.2",
+ "resolved": "https://registry.npmjs.org/@types/unist/-/unist-3.0.2.tgz",
+ "integrity": "sha512-dqId9J8K/vGi5Zr7oo212BGii5m3q5Hxlkwy3WpYuKPklmBEvsbMYYyLxAQpSffdLl/gdW0XUpKWFvYmyoWCoQ=="
},
"node_modules/nextra/node_modules/unist-util-is": {
"version": "6.0.0",
@@ -21480,16 +19945,6 @@
"url": "https://opencollective.com/node-fetch"
}
},
- "node_modules/node-gyp-build": {
- "version": "4.6.1",
- "resolved": "https://registry.npmjs.org/node-gyp-build/-/node-gyp-build-4.6.1.tgz",
- "integrity": "sha512-24vnklJmyRS8ViBNI8KbtK/r/DmXQMRiOMXTNz2nrTnAYUwjmEEbnnpB/+kt+yWRv73bPsSPRFddrcIbAxSiMQ==",
- "bin": {
- "node-gyp-build": "bin.js",
- "node-gyp-build-optional": "optional.js",
- "node-gyp-build-test": "build-test.js"
- }
- },
"node_modules/node-gyp-build-optional-packages": {
"version": "5.0.7",
"resolved": "https://registry.npmjs.org/node-gyp-build-optional-packages/-/node-gyp-build-optional-packages-5.0.7.tgz",
@@ -21557,18 +20012,18 @@
}
},
"node_modules/node-releases": {
- "version": "2.0.13",
- "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.13.tgz",
- "integrity": "sha512-uYr7J37ae/ORWdZeQ1xxMJe3NtdmqMC/JZK+geofDrkLUApKRHPd18/TxtBOJ4A0/+uUIliorNrfYV6s1b02eQ=="
+ "version": "2.0.14",
+ "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.14.tgz",
+ "integrity": "sha512-y10wOWt8yZpqXmOgRo77WaHEmhYQYGNA6y421PKsKYWEK8aW+cqAphborZDhqfyKrbZEN92CN1X2KbafY2s7Yw=="
},
"node_modules/nodemon": {
- "version": "3.0.1",
- "resolved": "https://registry.npmjs.org/nodemon/-/nodemon-3.0.1.tgz",
- "integrity": "sha512-g9AZ7HmkhQkqXkRc20w+ZfQ73cHLbE8hnPbtaFbFtCumZsjyMhKk9LajQ07U5Ux28lvFjZ5X7HvWR1xzU8jHVw==",
+ "version": "3.0.3",
+ "resolved": "https://registry.npmjs.org/nodemon/-/nodemon-3.0.3.tgz",
+ "integrity": "sha512-7jH/NXbFPxVaMwmBCC2B9F/V6X1VkEdNgx3iu9jji8WxWcvhMWkmhNWhI5077zknOnZnBzba9hZP6bCPJLSReQ==",
"dev": true,
"dependencies": {
"chokidar": "^3.5.2",
- "debug": "^3.2.7",
+ "debug": "^4",
"ignore-by-default": "^1.0.1",
"minimatch": "^3.1.2",
"pstree.remy": "^1.1.8",
@@ -21589,15 +20044,6 @@
"url": "https://opencollective.com/nodemon"
}
},
- "node_modules/nodemon/node_modules/debug": {
- "version": "3.2.7",
- "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz",
- "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==",
- "dev": true,
- "dependencies": {
- "ms": "^2.1.1"
- }
- },
"node_modules/nodemon/node_modules/has-flag": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz",
@@ -22009,9 +20455,9 @@
}
},
"node_modules/npm-run-path": {
- "version": "5.1.0",
- "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-5.1.0.tgz",
- "integrity": "sha512-sJOdmRGrY2sjNTRMbSvluQqg+8X7ZK61yvzBEIDhz4f8z1TZFYABsqjjCBd/0PUNE9M6QDgHJXQkGUEm7Q+l9Q==",
+ "version": "5.2.0",
+ "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-5.2.0.tgz",
+ "integrity": "sha512-W4/tgAXFqFA0iL7fk0+uQ3g7wkL8xJmx3XdK0VGb4cHW//eZTtKGvFBBoRKVTpY7n6ze4NL9ly7rgXcHufqXKg==",
"dev": true,
"dependencies": {
"path-key": "^4.0.0"
@@ -22167,12 +20613,12 @@
}
},
"node_modules/object.assign": {
- "version": "4.1.4",
- "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.4.tgz",
- "integrity": "sha512-1mxKf0e58bvyjSCtKYY4sRe9itRk3PJpquJOjeIkz885CczcI4IvJJDLPS72oowuSh+pBxUFROpX+TU++hxhZQ==",
+ "version": "4.1.5",
+ "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.5.tgz",
+ "integrity": "sha512-byy+U7gp+FVwmyzKPYhW2h5l3crpmGsxl7X2s8y43IgxvG4g3QZ6CffDtsNQy1WsmZpQbO+ybo0AlW7TY6DcBQ==",
"dependencies": {
- "call-bind": "^1.0.2",
- "define-properties": "^1.1.4",
+ "call-bind": "^1.0.5",
+ "define-properties": "^1.2.1",
"has-symbols": "^1.0.3",
"object-keys": "^1.1.1"
},
@@ -22478,9 +20924,9 @@
}
},
"node_modules/pako": {
- "version": "0.2.9",
- "resolved": "https://registry.npmjs.org/pako/-/pako-0.2.9.tgz",
- "integrity": "sha512-NUcwaKxUxWrZLpDG+z/xZaCgQITkA/Dv4V/T6bw7VON6l1Xz/VnrBqrYjZQ12TamKHzITTfOEIYUj48y2KXImA=="
+ "version": "1.0.11",
+ "resolved": "https://registry.npmjs.org/pako/-/pako-1.0.11.tgz",
+ "integrity": "sha512-4hLB8Py4zZce5s4yd9XzopqwVv/yGNhV1Bl8NTmCq1763HeK2+EwVTv+leGeL13Dnh2wfbqowVPXCIO0z4taYw=="
},
"node_modules/parent-module": {
"version": "1.0.1",
@@ -22533,12 +20979,6 @@
"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==",
- "peer": true
- },
"node_modules/parse-numeric-range": {
"version": "1.3.0",
"resolved": "https://registry.npmjs.org/parse-numeric-range/-/parse-numeric-range-1.3.0.tgz",
@@ -22648,9 +21088,9 @@
}
},
"node_modules/pathe": {
- "version": "1.1.1",
- "resolved": "https://registry.npmjs.org/pathe/-/pathe-1.1.1.tgz",
- "integrity": "sha512-d+RQGp0MAYTIaDBIMmOfMwz3E+LOZnxx1HZd5R18mmCZY0QBlK0LDZfPc8FW8Ed2DlvsuE6PRjroDY+wg4+j/Q=="
+ "version": "1.1.2",
+ "resolved": "https://registry.npmjs.org/pathe/-/pathe-1.1.2.tgz",
+ "integrity": "sha512-whLdWMYL2TwI08hn8/ZqAbrVemu0LNaNNJZX73O6qaIdCTfXutsLhMkjdENX0qhsQ9uIimo4/aQOmXkoon2nDQ=="
},
"node_modules/peek-stream": {
"version": "1.1.3",
@@ -22837,16 +21277,17 @@
}
},
"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==",
+ "version": "15.1.0",
+ "resolved": "https://registry.npmjs.org/postcss-import/-/postcss-import-15.1.0.tgz",
+ "integrity": "sha512-hpr+J05B2FVYUAXHeK1YyI267J/dDDhMU6B6civm8hSY1jYJnBXxzKDKDswzJmtLHryrjhnDjqqp/49t8FALew==",
+ "dev": true,
"dependencies": {
"postcss-value-parser": "^4.0.0",
"read-cache": "^1.0.0",
"resolve": "^1.1.7"
},
"engines": {
- "node": ">=10.0.0"
+ "node": ">=14.0.0"
},
"peerDependencies": {
"postcss": "^8.0.0"
@@ -22936,9 +21377,9 @@
}
},
"node_modules/postcss-modules-local-by-default": {
- "version": "4.0.3",
- "resolved": "https://registry.npmjs.org/postcss-modules-local-by-default/-/postcss-modules-local-by-default-4.0.3.tgz",
- "integrity": "sha512-2/u2zraspoACtrbFRnTijMiQtb4GW4BvatjaG/bCjYQo8kLTdevCUlwuBHx2sCnSyrI3x3qj4ZK1j5LQBgzmwA==",
+ "version": "4.0.4",
+ "resolved": "https://registry.npmjs.org/postcss-modules-local-by-default/-/postcss-modules-local-by-default-4.0.4.tgz",
+ "integrity": "sha512-L4QzMnOdVwRm1Qb8m4x8jsZzKAaPAgrUF1r/hjDR2Xj7R+8Zsf97jAlSQzWtKx5YNiNGN8QxmPFIc/sh+RQl+Q==",
"dependencies": {
"icss-utils": "^5.0.0",
"postcss-selector-parser": "^6.0.2",
@@ -22952,9 +21393,9 @@
}
},
"node_modules/postcss-modules-scope": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/postcss-modules-scope/-/postcss-modules-scope-3.0.0.tgz",
- "integrity": "sha512-hncihwFA2yPath8oZ15PZqvWGkWf+XUfQgUGamS4LqoP1anQLOsOJw0vr7J7IwLpoY9fatA2qiGUGmuZL0Iqlg==",
+ "version": "3.1.1",
+ "resolved": "https://registry.npmjs.org/postcss-modules-scope/-/postcss-modules-scope-3.1.1.tgz",
+ "integrity": "sha512-uZgqzdTleelWjzJY+Fhti6F3C9iF1JR/dODLs/JDefozYcKTBCdD8BIl6nNPbTbcLnGrk56hzwZC2DaGNvYjzA==",
"dependencies": {
"postcss-selector-parser": "^6.0.4"
},
@@ -22980,11 +21421,12 @@
}
},
"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==",
+ "version": "6.0.1",
+ "resolved": "https://registry.npmjs.org/postcss-nested/-/postcss-nested-6.0.1.tgz",
+ "integrity": "sha512-mEp4xPMi5bSWiMbsgoPfcP74lsWLHkQbZc3sY+jWYd65CUwXrUaTp0fmNpa01ZcETKlIgUdFN/MpS2xZtqL9dQ==",
+ "dev": true,
"dependencies": {
- "postcss-selector-parser": "^6.0.10"
+ "postcss-selector-parser": "^6.0.11"
},
"engines": {
"node": ">=12.0"
@@ -22998,9 +21440,9 @@
}
},
"node_modules/postcss-selector-parser": {
- "version": "6.0.13",
- "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.0.13.tgz",
- "integrity": "sha512-EaV1Gl4mUEV4ddhDnv/xtj7sxwrwxdetHdWUGnT4VJQf+4d05v6lHYZr8N573k5Z0BViss7BDhfWtKS3+sfAqQ==",
+ "version": "6.0.15",
+ "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.0.15.tgz",
+ "integrity": "sha512-rEYkQOMUCEMhsKbK66tbEU9QVIxbhN18YiniAwA7XQYTVBqrBy+P2p5JcdqsHgKM2zWylp8d7J6eszocfds5Sw==",
"dependencies": {
"cssesc": "^3.0.0",
"util-deprecate": "^1.0.2"
@@ -23014,23 +21456,6 @@
"resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz",
"integrity": "sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ=="
},
- "node_modules/postcss/node_modules/nanoid": {
- "version": "3.3.7",
- "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.7.tgz",
- "integrity": "sha512-eSRppjcPIatRIMC1U6UngP8XFcz8MQWGQdt1MTBQ7NaAmvXDfvNxbvWV3x2y6CdEUciCSsDHDQZbhYaB8QEo2g==",
- "funding": [
- {
- "type": "github",
- "url": "https://github.com/sponsors/ai"
- }
- ],
- "bin": {
- "nanoid": "bin/nanoid.cjs"
- },
- "engines": {
- "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1"
- }
- },
"node_modules/prelude-ls": {
"version": "1.2.1",
"resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz",
@@ -23077,11 +21502,6 @@
"url": "https://github.com/chalk/ansi-styles?sponsor=1"
}
},
- "node_modules/pretty-format/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/pretty-ms": {
"version": "7.0.1",
"resolved": "https://registry.npmjs.org/pretty-ms/-/pretty-ms-7.0.1.tgz",
@@ -23148,6 +21568,11 @@
"react-is": "^16.13.1"
}
},
+ "node_modules/prop-types/node_modules/react-is": {
+ "version": "16.13.1",
+ "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz",
+ "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ=="
+ },
"node_modules/property-information": {
"version": "6.4.0",
"resolved": "https://registry.npmjs.org/property-information/-/property-information-6.4.0.tgz",
@@ -23216,9 +21641,9 @@
}
},
"node_modules/prosemirror-inputrules": {
- "version": "1.2.1",
- "resolved": "https://registry.npmjs.org/prosemirror-inputrules/-/prosemirror-inputrules-1.2.1.tgz",
- "integrity": "sha512-3LrWJX1+ULRh5SZvbIQlwZafOXqp1XuV21MGBu/i5xsztd+9VD15x6OtN6mdqSFI7/8Y77gYUbQ6vwwJ4mr6QQ==",
+ "version": "1.3.0",
+ "resolved": "https://registry.npmjs.org/prosemirror-inputrules/-/prosemirror-inputrules-1.3.0.tgz",
+ "integrity": "sha512-z1GRP2vhh5CihYMQYsJSa1cOwXb3SYxALXOIfAkX8nZserARtl9LiL+CEl+T+OFIsXc3mJIHKhbsmRzC0HDAXA==",
"dependencies": {
"prosemirror-state": "^1.0.0",
"prosemirror-transform": "^1.0.0"
@@ -23234,11 +21659,11 @@
}
},
"node_modules/prosemirror-markdown": {
- "version": "1.11.2",
- "resolved": "https://registry.npmjs.org/prosemirror-markdown/-/prosemirror-markdown-1.11.2.tgz",
- "integrity": "sha512-Eu5g4WPiCdqDTGhdSsG9N6ZjACQRYrsAkrF9KYfdMaCmjIApH75aVncsWYOJvEk2i1B3i8jZppv3J/tnuHGiUQ==",
+ "version": "1.12.0",
+ "resolved": "https://registry.npmjs.org/prosemirror-markdown/-/prosemirror-markdown-1.12.0.tgz",
+ "integrity": "sha512-6F5HS8Z0HDYiS2VQDZzfZP6A0s/I0gbkJy8NCzzDMtcsz3qrfqyroMMeoSjAmOhDITyon11NbXSzztfKi+frSQ==",
"dependencies": {
- "markdown-it": "^13.0.1",
+ "markdown-it": "^14.0.0",
"prosemirror-model": "^1.0.0"
}
},
@@ -23254,9 +21679,9 @@
}
},
"node_modules/prosemirror-model": {
- "version": "1.19.3",
- "resolved": "https://registry.npmjs.org/prosemirror-model/-/prosemirror-model-1.19.3.tgz",
- "integrity": "sha512-tgSnwN7BS7/UM0sSARcW+IQryx2vODKX4MI7xpqY2X+iaepJdKBPc7I4aACIsDV/LTaTjt12Z56MhDr9LsyuZQ==",
+ "version": "1.19.4",
+ "resolved": "https://registry.npmjs.org/prosemirror-model/-/prosemirror-model-1.19.4.tgz",
+ "integrity": "sha512-RPmVXxUfOhyFdayHawjuZCxiROsm9L4FCUA6pWI+l7n2yCBsWy9VpdE1hpDHUS8Vad661YLY9AzqfjLhAKQ4iQ==",
"dependencies": {
"orderedmap": "^2.0.0"
}
@@ -23290,9 +21715,9 @@
}
},
"node_modules/prosemirror-tables": {
- "version": "1.3.4",
- "resolved": "https://registry.npmjs.org/prosemirror-tables/-/prosemirror-tables-1.3.4.tgz",
- "integrity": "sha512-z6uLSQ1BLC3rgbGwZmpfb+xkdvD7W/UOsURDfognZFYaTtc0gsk7u/t71Yijp2eLflVpffMk6X0u0+u+MMDvIw==",
+ "version": "1.3.5",
+ "resolved": "https://registry.npmjs.org/prosemirror-tables/-/prosemirror-tables-1.3.5.tgz",
+ "integrity": "sha512-JSZ2cCNlApu/ObAhdPyotrjBe2cimniniTpz60YXzbL0kZ+47nEYk2LWbfKU2lKpBkUNquta2PjteoNi4YCluQ==",
"dependencies": {
"prosemirror-keymap": "^1.1.2",
"prosemirror-model": "^1.8.1",
@@ -23325,9 +21750,9 @@
}
},
"node_modules/prosemirror-view": {
- "version": "1.32.3",
- "resolved": "https://registry.npmjs.org/prosemirror-view/-/prosemirror-view-1.32.3.tgz",
- "integrity": "sha512-tP7AUTxisM0m3PDxs6vDWgTjgcbFo4fnwg2M/5NHlgMqUJgBNOqSUZETBZKmLD7AxGN3GZ5yqEzQv9r9VCZKrg==",
+ "version": "1.32.7",
+ "resolved": "https://registry.npmjs.org/prosemirror-view/-/prosemirror-view-1.32.7.tgz",
+ "integrity": "sha512-pvxiOoD4shW41X5bYDjRQk3DSG4fMqxh36yPMt7VYgU3dWRmqFzWJM/R6zeo1KtC8nyk717ZbQND3CC9VNeptw==",
"dependencies": {
"prosemirror-model": "^1.16.0",
"prosemirror-state": "^1.0.0",
@@ -23399,6 +21824,14 @@
"node": ">=6"
}
},
+ "node_modules/punycode.js": {
+ "version": "2.3.1",
+ "resolved": "https://registry.npmjs.org/punycode.js/-/punycode.js-2.3.1.tgz",
+ "integrity": "sha512-uxFIHU0YlHYhDQtV4R9J6a52SLx28BCjT+4ieh7IGbgwVJWO+km431c4yRlREUAsAmt/uMjQUyQHNEPf0M39CA==",
+ "engines": {
+ "node": ">=6"
+ }
+ },
"node_modules/qs": {
"version": "6.11.0",
"resolved": "https://registry.npmjs.org/qs/-/qs-6.11.0.tgz",
@@ -23592,6 +22025,14 @@
"react": "^18.2.0"
}
},
+ "node_modules/react-dom/node_modules/scheduler": {
+ "version": "0.23.0",
+ "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.23.0.tgz",
+ "integrity": "sha512-CtuThmgHNg7zIZWAXi3AsyIzA3n4xx7aNyjwC2VJldO2LMVDhFK+63xGqq6CsJH4rTAt6/M+N4GhZiDYPx9eUw==",
+ "dependencies": {
+ "loose-envify": "^1.1.0"
+ }
+ },
"node_modules/react-icons": {
"version": "4.12.0",
"resolved": "https://registry.npmjs.org/react-icons/-/react-icons-4.12.0.tgz",
@@ -23601,9 +22042,9 @@
}
},
"node_modules/react-is": {
- "version": "16.13.1",
- "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz",
- "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ=="
+ "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/react-refresh": {
"version": "0.14.0",
@@ -23613,6 +22054,30 @@
"node": ">=0.10.0"
}
},
+ "node_modules/react-remove-scroll": {
+ "version": "2.5.5",
+ "resolved": "https://registry.npmjs.org/react-remove-scroll/-/react-remove-scroll-2.5.5.tgz",
+ "integrity": "sha512-ImKhrzJJsyXJfBZ4bzu8Bwpka14c/fQt0k+cyFp/PBhTfyDnU5hjOtM4AG/0AMyy8oKzOTR0lDgJIM7pYXI0kw==",
+ "dependencies": {
+ "react-remove-scroll-bar": "^2.3.3",
+ "react-style-singleton": "^2.2.1",
+ "tslib": "^2.1.0",
+ "use-callback-ref": "^1.3.0",
+ "use-sidecar": "^1.1.2"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "peerDependencies": {
+ "@types/react": "^16.8.0 || ^17.0.0 || ^18.0.0",
+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ }
+ }
+ },
"node_modules/react-remove-scroll-bar": {
"version": "2.3.4",
"resolved": "https://registry.npmjs.org/react-remove-scroll-bar/-/react-remove-scroll-bar-2.3.4.tgz",
@@ -23635,12 +22100,11 @@
}
},
"node_modules/react-router": {
- "version": "6.18.0",
- "resolved": "https://registry.npmjs.org/react-router/-/react-router-6.18.0.tgz",
- "integrity": "sha512-vk2y7Dsy8wI02eRRaRmOs9g2o+aE72YCx5q9VasT1N9v+lrdB79tIqrjMfByHiY5+6aYkH2rUa5X839nwWGPDg==",
- "peer": true,
+ "version": "6.21.3",
+ "resolved": "https://registry.npmjs.org/react-router/-/react-router-6.21.3.tgz",
+ "integrity": "sha512-a0H638ZXULv1OdkmiK6s6itNhoy33ywxmUFT/xtSoVyf9VnC7n7+VT4LjVzdIHSaF5TIh9ylUgxMXksHTgGrKg==",
"dependencies": {
- "@remix-run/router": "1.11.0"
+ "@remix-run/router": "1.14.2"
},
"engines": {
"node": ">=14.0.0"
@@ -23650,13 +22114,12 @@
}
},
"node_modules/react-router-dom": {
- "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==",
- "peer": true,
+ "version": "6.21.3",
+ "resolved": "https://registry.npmjs.org/react-router-dom/-/react-router-dom-6.21.3.tgz",
+ "integrity": "sha512-kNzubk7n4YHSrErzjLK72j0B5i969GsuCGazRl3G6j1zqZBLjuSlYBdVdkDOgzGdPIffUOc9nmgiadTEVoq91g==",
"dependencies": {
- "@remix-run/router": "1.11.0",
- "react-router": "6.18.0"
+ "@remix-run/router": "1.14.2",
+ "react-router": "6.21.3"
},
"engines": {
"node": ">=14.0.0"
@@ -23722,16 +22185,16 @@
}
},
"node_modules/reactflow": {
- "version": "11.9.4",
- "resolved": "https://registry.npmjs.org/reactflow/-/reactflow-11.9.4.tgz",
- "integrity": "sha512-IHAKBkJngNvU9y1vZ5Nw9rvA3Z+zc9geTgQQIi9qq9Y9knGLlDDr9KfsjbFMew9AycAAgVg8TvBEakF4IT5lqg==",
+ "version": "11.10.2",
+ "resolved": "https://registry.npmjs.org/reactflow/-/reactflow-11.10.2.tgz",
+ "integrity": "sha512-tqQJfPEiIkXonT3piVYf+F9CvABI5e28t5I6rpaLTnO8YVCAOh1h0f+ziDKz0Bx9Y2B/mFgyz+H7LZeUp/+lhQ==",
"dependencies": {
- "@reactflow/background": "11.3.4",
- "@reactflow/controls": "11.2.4",
- "@reactflow/core": "11.9.4",
- "@reactflow/minimap": "11.7.4",
- "@reactflow/node-resizer": "2.2.4",
- "@reactflow/node-toolbar": "1.3.4"
+ "@reactflow/background": "11.3.7",
+ "@reactflow/controls": "11.2.7",
+ "@reactflow/core": "11.10.2",
+ "@reactflow/minimap": "11.7.7",
+ "@reactflow/node-resizer": "2.2.7",
+ "@reactflow/node-toolbar": "1.3.7"
},
"peerDependencies": {
"react": ">=17",
@@ -23893,6 +22356,19 @@
"node": ">=8"
}
},
+ "node_modules/readable-stream": {
+ "version": "3.6.2",
+ "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz",
+ "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==",
+ "dependencies": {
+ "inherits": "^2.0.3",
+ "string_decoder": "^1.1.1",
+ "util-deprecate": "^1.0.1"
+ },
+ "engines": {
+ "node": ">= 6"
+ }
+ },
"node_modules/readdirp": {
"version": "3.6.0",
"resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz",
@@ -23971,9 +22447,9 @@
}
},
"node_modules/regenerator-runtime": {
- "version": "0.14.0",
- "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.14.0.tgz",
- "integrity": "sha512-srw17NI0TUWHuGa5CFGGmhfNIeja30WMBfbslPNhf6JrqQlLN5gcrvig1oqPxiVaXb0oW0XRKtH6Nngs5lKCIA=="
+ "version": "0.14.1",
+ "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.14.1.tgz",
+ "integrity": "sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw=="
},
"node_modules/regex-not": {
"version": "1.0.2",
@@ -24045,17 +22521,17 @@
}
},
"node_modules/rehype-katex/node_modules/@types/hast": {
- "version": "3.0.2",
- "resolved": "https://registry.npmjs.org/@types/hast/-/hast-3.0.2.tgz",
- "integrity": "sha512-B5hZHgHsXvfCoO3xgNJvBnX7N8p86TqQeGKXcokW4XXi+qY4vxxPSFYofytvVmpFxzPv7oxDQzjg5Un5m2/xiw==",
+ "version": "3.0.3",
+ "resolved": "https://registry.npmjs.org/@types/hast/-/hast-3.0.3.tgz",
+ "integrity": "sha512-2fYGlaDy/qyLlhidX42wAH0KBi2TCjKMH8CHmBXgRlJ3Y+OXTiqsPQ6IWarZKwF1JoUcAJdPogv1d4b0COTpmQ==",
"dependencies": {
"@types/unist": "*"
}
},
"node_modules/rehype-katex/node_modules/@types/unist": {
- "version": "3.0.1",
- "resolved": "https://registry.npmjs.org/@types/unist/-/unist-3.0.1.tgz",
- "integrity": "sha512-ue/hDUpPjC85m+PM9OQDMZr3LywT+CT6mPsQq8OJtCLiERkGRcQUFvu9XASF5XWqyZFXbf15lvb3JFJ4dRLWPg=="
+ "version": "3.0.2",
+ "resolved": "https://registry.npmjs.org/@types/unist/-/unist-3.0.2.tgz",
+ "integrity": "sha512-dqId9J8K/vGi5Zr7oo212BGii5m3q5Hxlkwy3WpYuKPklmBEvsbMYYyLxAQpSffdLl/gdW0XUpKWFvYmyoWCoQ=="
},
"node_modules/rehype-katex/node_modules/unist-util-stringify-position": {
"version": "4.0.0",
@@ -24114,17 +22590,17 @@
}
},
"node_modules/rehype-raw/node_modules/@types/hast": {
- "version": "3.0.2",
- "resolved": "https://registry.npmjs.org/@types/hast/-/hast-3.0.2.tgz",
- "integrity": "sha512-B5hZHgHsXvfCoO3xgNJvBnX7N8p86TqQeGKXcokW4XXi+qY4vxxPSFYofytvVmpFxzPv7oxDQzjg5Un5m2/xiw==",
+ "version": "3.0.3",
+ "resolved": "https://registry.npmjs.org/@types/hast/-/hast-3.0.3.tgz",
+ "integrity": "sha512-2fYGlaDy/qyLlhidX42wAH0KBi2TCjKMH8CHmBXgRlJ3Y+OXTiqsPQ6IWarZKwF1JoUcAJdPogv1d4b0COTpmQ==",
"dependencies": {
"@types/unist": "*"
}
},
"node_modules/rehype-raw/node_modules/@types/unist": {
- "version": "3.0.1",
- "resolved": "https://registry.npmjs.org/@types/unist/-/unist-3.0.1.tgz",
- "integrity": "sha512-ue/hDUpPjC85m+PM9OQDMZr3LywT+CT6mPsQq8OJtCLiERkGRcQUFvu9XASF5XWqyZFXbf15lvb3JFJ4dRLWPg=="
+ "version": "3.0.2",
+ "resolved": "https://registry.npmjs.org/@types/unist/-/unist-3.0.2.tgz",
+ "integrity": "sha512-dqId9J8K/vGi5Zr7oo212BGii5m3q5Hxlkwy3WpYuKPklmBEvsbMYYyLxAQpSffdLl/gdW0XUpKWFvYmyoWCoQ=="
},
"node_modules/rehype-raw/node_modules/unist-util-stringify-position": {
"version": "4.0.0",
@@ -24320,9 +22796,9 @@
}
},
"node_modules/remeda": {
- "version": "1.29.0",
- "resolved": "https://registry.npmjs.org/remeda/-/remeda-1.29.0.tgz",
- "integrity": "sha512-M3LQ14KtMdQ1879lj/kKji3zBk158s7Rwg963mEkTfQFMxnKrIEAMxJfo/+0sp/+uGgN/KMVU2MBA4LNjqf8YQ=="
+ "version": "1.38.0",
+ "resolved": "https://registry.npmjs.org/remeda/-/remeda-1.38.0.tgz",
+ "integrity": "sha512-5as2nVwzgeLLXMk1v9SLi8CeT+LUzM0202AFo13WRCupQjLlfiyN1fhlY3LO0jSzP6AtA2M2PbjTY4sQKrrBfg=="
},
"node_modules/remix-flat-routes": {
"version": "0.5.12",
@@ -24378,10 +22854,27 @@
"react": "^17.0.2 || ^18.0.0"
}
},
+ "node_modules/remix-validated-form/node_modules/nanoid": {
+ "version": "3.3.6",
+ "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.6.tgz",
+ "integrity": "sha512-BGcqMMJuToF7i1rt+2PWSNVnWIkGCU78jBG3RxO/bZlnZPK2Cmi2QaffxGO/2RvWi9sL+FAiRiXMgsyxQ1DIDA==",
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/ai"
+ }
+ ],
+ "bin": {
+ "nanoid": "bin/nanoid.cjs"
+ },
+ "engines": {
+ "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1"
+ }
+ },
"node_modules/remove-accents": {
- "version": "0.4.2",
- "resolved": "https://registry.npmjs.org/remove-accents/-/remove-accents-0.4.2.tgz",
- "integrity": "sha512-7pXIJqJOq5tFgG1A2Zxti3Ht8jJF337m4sowbuHsW30ZnkQFnDzy9qBNhgzX8ZLW4+UBcXiiR7SwR6pokHsxiA=="
+ "version": "0.5.0",
+ "resolved": "https://registry.npmjs.org/remove-accents/-/remove-accents-0.5.0.tgz",
+ "integrity": "sha512-8g3/Otx1eJaVD12e31UbJj1YzdtVvzH85HV7t+9MJYk/u3XmkOUJ5Ys9wQrf9PCPK8+xn4ymzqYCiZl6QWKn+A=="
},
"node_modules/remove-trailing-separator": {
"version": "1.1.0",
@@ -24574,9 +23067,9 @@
}
},
"node_modules/rfdc": {
- "version": "1.3.0",
- "resolved": "https://registry.npmjs.org/rfdc/-/rfdc-1.3.0.tgz",
- "integrity": "sha512-V2hovdzFbOi77/WajaSMXk2OLm+xNIeQdMMuB7icj7bk6zi2F8GGAxigcnDFpJHbNyNcgyJDiP+8nOrY5cZGrA==",
+ "version": "1.3.1",
+ "resolved": "https://registry.npmjs.org/rfdc/-/rfdc-1.3.1.tgz",
+ "integrity": "sha512-r5a3l5HzYlIC68TpmYKlxWjmOP6wiPJ1vWv2HeLhNsRZMrCkxeqxiHlQ21oXmQ4F3SiryXBHhAD7JZqvOJjFmg==",
"dev": true
},
"node_modules/rimraf": {
@@ -24606,6 +23099,7 @@
"version": "3.29.4",
"resolved": "https://registry.npmjs.org/rollup/-/rollup-3.29.4.tgz",
"integrity": "sha512-oWzmBZwvYrU0iJHtDmhsm662rC15FRXmcjCk1xD771dFDx5jJ02ufAQQTn0etB2emNk4J9EZg/yWKpsn9BWGRw==",
+ "dev": true,
"bin": {
"rollup": "dist/bin/rollup"
},
@@ -24677,12 +23171,12 @@
}
},
"node_modules/safe-array-concat": {
- "version": "1.0.1",
- "resolved": "https://registry.npmjs.org/safe-array-concat/-/safe-array-concat-1.0.1.tgz",
- "integrity": "sha512-6XbUAseYE2KtOuGueyeobCySj9L4+66Tn6KQMOPQJrAJEowYKW/YR/MGJZl7FdydUdaFu4LYyDZjxf4/Nmo23Q==",
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/safe-array-concat/-/safe-array-concat-1.1.0.tgz",
+ "integrity": "sha512-ZdQ0Jeb9Ofti4hbt5lX3T2JcAamT9hfzYU1MNB+z/jaEbB6wfFfPIR/zEORmZqobkCCJhSjodobH6WHNmJ97dg==",
"dependencies": {
- "call-bind": "^1.0.2",
- "get-intrinsic": "^1.2.1",
+ "call-bind": "^1.0.5",
+ "get-intrinsic": "^1.2.2",
"has-symbols": "^1.0.3",
"isarray": "^2.0.5"
},
@@ -24707,14 +23201,17 @@
}
},
"node_modules/safe-regex-test": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/safe-regex-test/-/safe-regex-test-1.0.0.tgz",
- "integrity": "sha512-JBUUzyOgEwXQY1NuPtvcj/qcBDbDmEvWufhlnXZIm75DEHp+afM1r1ujJpJsV/gSM4t59tpDyPi1sd6ZaPFfsA==",
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/safe-regex-test/-/safe-regex-test-1.0.2.tgz",
+ "integrity": "sha512-83S9w6eFq12BBIJYvjMux6/dkirb8+4zJRA9cxNBVb7Wq5fJBW+Xze48WqR8pxua7bDuAaaAxtVVd4Idjp1dBQ==",
"dependencies": {
- "call-bind": "^1.0.2",
- "get-intrinsic": "^1.1.3",
+ "call-bind": "^1.0.5",
+ "get-intrinsic": "^1.2.2",
"is-regex": "^1.1.4"
},
+ "engines": {
+ "node": ">= 0.4"
+ },
"funding": {
"url": "https://github.com/sponsors/ljharb"
}
@@ -24996,11 +23493,12 @@
}
},
"node_modules/scheduler": {
- "version": "0.23.0",
- "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.23.0.tgz",
- "integrity": "sha512-CtuThmgHNg7zIZWAXi3AsyIzA3n4xx7aNyjwC2VJldO2LMVDhFK+63xGqq6CsJH4rTAt6/M+N4GhZiDYPx9eUw==",
+ "version": "0.17.0",
+ "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.17.0.tgz",
+ "integrity": "sha512-7rro8Io3tnCPuY4la/NuI5F2yfESpnfZyT6TtkXnSWVkcu0BCDJ+8gk5ozUaFaxpIyNuWAPXrH0yFcSi28fnDA==",
"dependencies": {
- "loose-envify": "^1.1.0"
+ "loose-envify": "^1.1.0",
+ "object-assign": "^4.1.1"
}
},
"node_modules/scroll-into-view-if-needed": {
@@ -25102,14 +23600,15 @@
"integrity": "sha512-RVnVQxTXuerk653XfuliOxBP81Sf0+qfQE73LIYKcyMYHG94AuH0kgrQpRDuTZnSmjpysHmzxJXKNfa6PjFhyQ=="
},
"node_modules/set-function-length": {
- "version": "1.1.1",
- "resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.1.1.tgz",
- "integrity": "sha512-VoaqjbBJKiWtg4yRcKBQ7g7wnGnLV3M8oLvVWwOk2PdYY6PEFegR1vezXR0tw6fZGF9csVakIRjrJiy2veSBFQ==",
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.0.tgz",
+ "integrity": "sha512-4DBHDoyHlM1IRPGYcoxexgh67y4ueR53FKV1yyxwFMY7aCqcN/38M1+SwZ/qJQ8iLv7+ck385ot4CcisOAPT9w==",
"dependencies": {
"define-data-property": "^1.1.1",
- "get-intrinsic": "^1.2.1",
+ "function-bind": "^1.1.2",
+ "get-intrinsic": "^1.2.2",
"gopd": "^1.0.1",
- "has-property-descriptors": "^1.0.0"
+ "has-property-descriptors": "^1.0.1"
},
"engines": {
"node": ">= 0.4"
@@ -25190,9 +23689,9 @@
"optional": true
},
"node_modules/shiki": {
- "version": "0.14.5",
- "resolved": "https://registry.npmjs.org/shiki/-/shiki-0.14.5.tgz",
- "integrity": "sha512-1gCAYOcmCFONmErGTrS1fjzJLA7MGZmKzrBNX7apqSwhyITJg2O102uFzXUeBxNnEkDA9vHIKLyeKq0V083vIw==",
+ "version": "0.14.7",
+ "resolved": "https://registry.npmjs.org/shiki/-/shiki-0.14.7.tgz",
+ "integrity": "sha512-dNPAPrxSc87ua2sKJ3H5dQ/6ZaY8RNnaAqK+t0eG7p0Soi2ydiqbGOTaZCqaYvA/uZYfS1LJnemt3Q+mSfcPCg==",
"dependencies": {
"ansi-sequence-parser": "^1.1.0",
"jsonc-parser": "^3.2.0",
@@ -25700,9 +24199,9 @@
}
},
"node_modules/stream-shift": {
- "version": "1.0.1",
- "resolved": "https://registry.npmjs.org/stream-shift/-/stream-shift-1.0.1.tgz",
- "integrity": "sha512-AiisoFqQ0vbGcZgQPY1cdP2I76glaVA/RauYR4G4thNFgkTqr90yXTo4LYX60Jl+sIlPNHHdGSwo01AvbKUSVQ=="
+ "version": "1.0.3",
+ "resolved": "https://registry.npmjs.org/stream-shift/-/stream-shift-1.0.3.tgz",
+ "integrity": "sha512-76ORR0DO1o1hlKwTbi/DM3EXWGf3ZJYO8cXX5RJwnul2DEg2oyoZyjLNoQM8WsvZiFKCRfC1O0J7iCvie3RZmQ=="
},
"node_modules/stream-slice": {
"version": "0.1.2",
@@ -25717,6 +24216,33 @@
"node": ">=10.0.0"
}
},
+ "node_modules/string_decoder": {
+ "version": "1.3.0",
+ "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz",
+ "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==",
+ "dependencies": {
+ "safe-buffer": "~5.2.0"
+ }
+ },
+ "node_modules/string_decoder/node_modules/safe-buffer": {
+ "version": "5.2.1",
+ "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz",
+ "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==",
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/feross"
+ },
+ {
+ "type": "patreon",
+ "url": "https://www.patreon.com/feross"
+ },
+ {
+ "type": "consulting",
+ "url": "https://feross.org/support"
+ }
+ ]
+ },
"node_modules/string-argv": {
"version": "0.3.2",
"resolved": "https://registry.npmjs.org/string-argv/-/string-argv-0.3.2.tgz",
@@ -26003,18 +24529,18 @@
}
},
"node_modules/stylis": {
- "version": "4.2.0",
- "resolved": "https://registry.npmjs.org/stylis/-/stylis-4.2.0.tgz",
- "integrity": "sha512-Orov6g6BB1sDfYgzWfTHDOxamtX1bE/zo104Dh9e6fqJ3PooipYyfJ0pUmrZO2wAvO8YbEyeFrkV91XTsGMSrw=="
+ "version": "4.3.1",
+ "resolved": "https://registry.npmjs.org/stylis/-/stylis-4.3.1.tgz",
+ "integrity": "sha512-EQepAV+wMsIaGVGX1RECzgrcqRRU/0sYOHkeLsZ3fzHaHXZy4DaOOX0vOlGQdlsjkh3mFHAIlVimpwAs4dslyQ=="
},
"node_modules/sucrase": {
- "version": "3.34.0",
- "resolved": "https://registry.npmjs.org/sucrase/-/sucrase-3.34.0.tgz",
- "integrity": "sha512-70/LQEZ07TEcxiU2dz51FKaE6hCTWC6vr7FOk3Gr0U60C3shtAN+H+BFr9XlYe5xqf3RA8nrc+VIwzCfnxuXJw==",
+ "version": "3.35.0",
+ "resolved": "https://registry.npmjs.org/sucrase/-/sucrase-3.35.0.tgz",
+ "integrity": "sha512-8EbVDiu9iN/nESwxeSxDKe0dunta1GOlHufmSSXxMD2z2/tMZpDMpvXQGsc+ajGo8y2uYUmixaSRUc/QPoQ0GA==",
"dependencies": {
"@jridgewell/gen-mapping": "^0.3.2",
"commander": "^4.0.0",
- "glob": "7.1.6",
+ "glob": "^10.3.10",
"lines-and-columns": "^1.1.6",
"mz": "^2.7.0",
"pirates": "^4.0.1",
@@ -26025,7 +24551,7 @@
"sucrase-node": "bin/sucrase-node"
},
"engines": {
- "node": ">=8"
+ "node": ">=16 || 14 >=14.17"
}
},
"node_modules/sucrase/node_modules/commander": {
@@ -26036,25 +24562,6 @@
"node": ">= 6"
}
},
- "node_modules/sucrase/node_modules/glob": {
- "version": "7.1.6",
- "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz",
- "integrity": "sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==",
- "dependencies": {
- "fs.realpath": "^1.0.0",
- "inflight": "^1.0.4",
- "inherits": "2",
- "minimatch": "^3.0.4",
- "once": "^1.3.0",
- "path-is-absolute": "^1.0.0"
- },
- "engines": {
- "node": "*"
- },
- "funding": {
- "url": "https://github.com/sponsors/isaacs"
- }
- },
"node_modules/supabase": {
"version": "1.123.4",
"resolved": "https://registry.npmjs.org/supabase/-/supabase-1.123.4.tgz",
@@ -26074,57 +24581,6 @@
"npm": ">=8"
}
},
- "node_modules/supabase/node_modules/agent-base": {
- "version": "7.1.0",
- "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.0.tgz",
- "integrity": "sha512-o/zjMZRhJxny7OyEF+Op8X+efiELC7k7yOjMzgfzVqOzXqkBkWI79YoTdOtsuWd5BWhAGAuOY/Xa6xpiaWXiNg==",
- "dev": true,
- "dependencies": {
- "debug": "^4.3.4"
- },
- "engines": {
- "node": ">= 14"
- }
- },
- "node_modules/supabase/node_modules/https-proxy-agent": {
- "version": "7.0.2",
- "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.2.tgz",
- "integrity": "sha512-NmLNjm6ucYwtcUmL7JQC1ZQ57LmHP4lT15FQ8D61nak1rO6DH+fz5qNK2Ap5UN4ZapYICE3/0KodcLYSPsPbaA==",
- "dev": true,
- "dependencies": {
- "agent-base": "^7.0.2",
- "debug": "4"
- },
- "engines": {
- "node": ">= 14"
- }
- },
- "node_modules/supabase/node_modules/minipass": {
- "version": "5.0.0",
- "resolved": "https://registry.npmjs.org/minipass/-/minipass-5.0.0.tgz",
- "integrity": "sha512-3FnjYuehv9k6ovOEbyOswadCDPX1piCfhV8ncmYtHOjuPwylVWsghTLo7rabjC3Rx5xD4HDx8Wm1xnMF7S5qFQ==",
- "dev": true,
- "engines": {
- "node": ">=8"
- }
- },
- "node_modules/supabase/node_modules/tar": {
- "version": "6.2.0",
- "resolved": "https://registry.npmjs.org/tar/-/tar-6.2.0.tgz",
- "integrity": "sha512-/Wo7DcT0u5HUV486xg675HtjNd3BXZ6xDbzsCUZPt5iw8bTQ63bP0Raut3mvro9u+CUyq7YQd8Cx55fsZXxqLQ==",
- "dev": true,
- "dependencies": {
- "chownr": "^2.0.0",
- "fs-minipass": "^2.0.0",
- "minipass": "^5.0.0",
- "minizlib": "^2.1.1",
- "mkdirp": "^1.0.3",
- "yallist": "^4.0.0"
- },
- "engines": {
- "node": ">=10"
- }
- },
"node_modules/supports-color": {
"version": "7.2.0",
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
@@ -26170,11 +24626,11 @@
"integrity": "sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw=="
},
"node_modules/tailwind-merge": {
- "version": "2.2.0",
- "resolved": "https://registry.npmjs.org/tailwind-merge/-/tailwind-merge-2.2.0.tgz",
- "integrity": "sha512-SqqhhaL0T06SW59+JVNfAqKdqLs0497esifRrZ7jOaefP3o64fdFNDMrAQWZFMxTLJPiHVjRLUywT8uFz1xNWQ==",
+ "version": "2.2.1",
+ "resolved": "https://registry.npmjs.org/tailwind-merge/-/tailwind-merge-2.2.1.tgz",
+ "integrity": "sha512-o+2GTLkthfa5YUt4JxPfzMIpQzZ3adD1vLVkvKE1Twl9UAhGsEbIZhHHZVRttyW177S8PDJI3bTQNaebyofK3Q==",
"dependencies": {
- "@babel/runtime": "^7.23.5"
+ "@babel/runtime": "^7.23.7"
},
"funding": {
"type": "github",
@@ -26198,19 +24654,20 @@
"integrity": "sha512-X324n9OtpTmOMqEgDUEA/RgLrNfBF/jwJdctaPZDzB3mppxJk7TLIDmOreEDm1Bq4R9LSPu4Epf8VSdovNU+iA=="
},
"node_modules/tailwindcss": {
- "version": "3.2.7",
- "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-3.2.7.tgz",
- "integrity": "sha512-B6DLqJzc21x7wntlH/GsZwEXTBttVSl1FtCzC8WP4oBc/NKef7kaax5jeihkkCEWc831/5NDJ9gRNDK6NEioQQ==",
+ "version": "3.3.1",
+ "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-3.3.1.tgz",
+ "integrity": "sha512-Vkiouc41d4CEq0ujXl6oiGFQ7bA3WEhUZdTgXAhtKxSy49OmKs8rEfQmupsfF0IGW8fv2iQkp1EVUuapCFrZ9g==",
+ "peer": 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",
+ "jiti": "^1.17.2",
"lilconfig": "^2.0.6",
"micromatch": "^4.0.5",
"normalize-path": "^3.0.0",
@@ -26224,7 +24681,8 @@
"postcss-selector-parser": "^6.0.11",
"postcss-value-parser": "^4.2.0",
"quick-lru": "^5.1.1",
- "resolve": "^1.22.1"
+ "resolve": "^1.22.1",
+ "sucrase": "^3.29.0"
},
"bin": {
"tailwind": "lib/cli.js",
@@ -26245,6 +24703,42 @@
"tailwindcss": ">=3.0.0 || insiders"
}
},
+ "node_modules/tailwindcss/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==",
+ "peer": 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/tailwindcss/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==",
+ "peer": 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/tapable": {
"version": "2.2.1",
"resolved": "https://registry.npmjs.org/tapable/-/tapable-2.2.1.tgz",
@@ -26254,9 +24748,9 @@
}
},
"node_modules/tar": {
- "version": "6.1.15",
- "resolved": "https://registry.npmjs.org/tar/-/tar-6.1.15.tgz",
- "integrity": "sha512-/zKt9UyngnxIT/EAGYuxaMYgOIJiP81ab9ZfkILq4oNLPFX50qyYmu7jRj9qeXoxmJHjGlbH0+cm2uy1WCs10A==",
+ "version": "6.2.0",
+ "resolved": "https://registry.npmjs.org/tar/-/tar-6.2.0.tgz",
+ "integrity": "sha512-/Wo7DcT0u5HUV486xg675HtjNd3BXZ6xDbzsCUZPt5iw8bTQ63bP0Raut3mvro9u+CUyq7YQd8Cx55fsZXxqLQ==",
"dependencies": {
"chownr": "^2.0.0",
"fs-minipass": "^2.0.0",
@@ -26309,46 +24803,6 @@
"node": ">=6"
}
},
- "node_modules/tar-stream/node_modules/readable-stream": {
- "version": "3.6.2",
- "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz",
- "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==",
- "dependencies": {
- "inherits": "^2.0.3",
- "string_decoder": "^1.1.1",
- "util-deprecate": "^1.0.1"
- },
- "engines": {
- "node": ">= 6"
- }
- },
- "node_modules/tar-stream/node_modules/safe-buffer": {
- "version": "5.2.1",
- "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz",
- "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==",
- "funding": [
- {
- "type": "github",
- "url": "https://github.com/sponsors/feross"
- },
- {
- "type": "patreon",
- "url": "https://www.patreon.com/feross"
- },
- {
- "type": "consulting",
- "url": "https://feross.org/support"
- }
- ]
- },
- "node_modules/tar-stream/node_modules/string_decoder": {
- "version": "1.3.0",
- "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz",
- "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==",
- "dependencies": {
- "safe-buffer": "~5.2.0"
- }
- },
"node_modules/tar/node_modules/minipass": {
"version": "5.0.0",
"resolved": "https://registry.npmjs.org/minipass/-/minipass-5.0.0.tgz",
@@ -26756,9 +25210,9 @@
"integrity": "sha512-Y/arvbn+rrz3JCKl9C4kVNfTfSm2/mEp5FSz5EsZSANGPSlQrpRI5M4PKF+mJnE52jOO90PnPSc3Ur3bTQw0gA=="
},
"node_modules/tsafe": {
- "version": "1.6.5",
- "resolved": "https://registry.npmjs.org/tsafe/-/tsafe-1.6.5.tgz",
- "integrity": "sha512-895zss8xqqHKTc28sHGIfZKnt3C5jrstB1DyPr/h3/flK0zojsZUMQL1/W4ytdDW6KI4Oth62nb9rrxmA3s3Iw=="
+ "version": "1.6.6",
+ "resolved": "https://registry.npmjs.org/tsafe/-/tsafe-1.6.6.tgz",
+ "integrity": "sha512-gzkapsdbMNwBnTIjgO758GujLCj031IgHK/PKr2mrmkCSJMhSOR5FeOuSxKLMUoYc0vAA4RGEYYbjt/v6afD3g=="
},
"node_modules/tsconfig-paths": {
"version": "4.2.0",
@@ -27347,26 +25801,26 @@
}
},
"node_modules/turbo": {
- "version": "1.10.16",
- "resolved": "https://registry.npmjs.org/turbo/-/turbo-1.10.16.tgz",
- "integrity": "sha512-2CEaK4FIuSZiP83iFa9GqMTQhroW2QryckVqUydmg4tx78baftTOS0O+oDAhvo9r9Nit4xUEtC1RAHoqs6ZEtg==",
+ "version": "1.11.3",
+ "resolved": "https://registry.npmjs.org/turbo/-/turbo-1.11.3.tgz",
+ "integrity": "sha512-RCJOUFcFMQNIGKSjC9YmA5yVP1qtDiBA0Lv9VIgrXraI5Da1liVvl3VJPsoDNIR9eFMyA/aagx1iyj6UWem5hA==",
"dev": true,
"bin": {
"turbo": "bin/turbo"
},
"optionalDependencies": {
- "turbo-darwin-64": "1.10.16",
- "turbo-darwin-arm64": "1.10.16",
- "turbo-linux-64": "1.10.16",
- "turbo-linux-arm64": "1.10.16",
- "turbo-windows-64": "1.10.16",
- "turbo-windows-arm64": "1.10.16"
+ "turbo-darwin-64": "1.11.3",
+ "turbo-darwin-arm64": "1.11.3",
+ "turbo-linux-64": "1.11.3",
+ "turbo-linux-arm64": "1.11.3",
+ "turbo-windows-64": "1.11.3",
+ "turbo-windows-arm64": "1.11.3"
}
},
"node_modules/turbo-darwin-64": {
- "version": "1.10.16",
- "resolved": "https://registry.npmjs.org/turbo-darwin-64/-/turbo-darwin-64-1.10.16.tgz",
- "integrity": "sha512-+Jk91FNcp9e9NCLYlvDDlp2HwEDp14F9N42IoW3dmHI5ZkGSXzalbhVcrx3DOox3QfiNUHxzWg4d7CnVNCuuMg==",
+ "version": "1.11.3",
+ "resolved": "https://registry.npmjs.org/turbo-darwin-64/-/turbo-darwin-64-1.11.3.tgz",
+ "integrity": "sha512-IsOOg2bVbIt3o/X8Ew9fbQp5t1hTHN3fGNQYrPQwMR2W1kIAC6RfbVD4A9OeibPGyEPUpwOH79hZ9ydFH5kifw==",
"cpu": [
"x64"
],
@@ -27377,9 +25831,9 @@
]
},
"node_modules/turbo-darwin-arm64": {
- "version": "1.10.16",
- "resolved": "https://registry.npmjs.org/turbo-darwin-arm64/-/turbo-darwin-arm64-1.10.16.tgz",
- "integrity": "sha512-jqGpFZipIivkRp/i+jnL8npX0VssE6IAVNKtu573LXtssZdV/S+fRGYA16tI46xJGxSAivrZ/IcgZrV6Jk80bw==",
+ "version": "1.11.3",
+ "resolved": "https://registry.npmjs.org/turbo-darwin-arm64/-/turbo-darwin-arm64-1.11.3.tgz",
+ "integrity": "sha512-FsJL7k0SaPbJzI/KCnrf/fi3PgCDCjTliMc/kEFkuWVA6Httc3Q4lxyLIIinz69q6JTx8wzh6yznUMzJRI3+dg==",
"cpu": [
"arm64"
],
@@ -27390,9 +25844,9 @@
]
},
"node_modules/turbo-linux-64": {
- "version": "1.10.16",
- "resolved": "https://registry.npmjs.org/turbo-linux-64/-/turbo-linux-64-1.10.16.tgz",
- "integrity": "sha512-PpqEZHwLoizQ6sTUvmImcRmACyRk9EWLXGlqceogPZsJ1jTRK3sfcF9fC2W56zkSIzuLEP07k5kl+ZxJd8JMcg==",
+ "version": "1.11.3",
+ "resolved": "https://registry.npmjs.org/turbo-linux-64/-/turbo-linux-64-1.11.3.tgz",
+ "integrity": "sha512-SvW7pvTVRGsqtSkII5w+wriZXvxqkluw5FO/MNAdFw0qmoov+PZ237+37/NgArqE3zVn1GX9P6nUx9VO+xcQAg==",
"cpu": [
"x64"
],
@@ -27403,9 +25857,9 @@
]
},
"node_modules/turbo-linux-arm64": {
- "version": "1.10.16",
- "resolved": "https://registry.npmjs.org/turbo-linux-arm64/-/turbo-linux-arm64-1.10.16.tgz",
- "integrity": "sha512-TMjFYz8to1QE0fKVXCIvG/4giyfnmqcQIwjdNfJvKjBxn22PpbjeuFuQ5kNXshUTRaTJihFbuuCcb5OYFNx4uw==",
+ "version": "1.11.3",
+ "resolved": "https://registry.npmjs.org/turbo-linux-arm64/-/turbo-linux-arm64-1.11.3.tgz",
+ "integrity": "sha512-YhUfBi1deB3m+3M55X458J6B7RsIS7UtM3P1z13cUIhF+pOt65BgnaSnkHLwETidmhRh8Dl3GelaQGrB3RdCDw==",
"cpu": [
"arm64"
],
@@ -27416,9 +25870,9 @@
]
},
"node_modules/turbo-windows-64": {
- "version": "1.10.16",
- "resolved": "https://registry.npmjs.org/turbo-windows-64/-/turbo-windows-64-1.10.16.tgz",
- "integrity": "sha512-+jsf68krs0N66FfC4/zZvioUap/Tq3sPFumnMV+EBo8jFdqs4yehd6+MxIwYTjSQLIcpH8KoNMB0gQYhJRLZzw==",
+ "version": "1.11.3",
+ "resolved": "https://registry.npmjs.org/turbo-windows-64/-/turbo-windows-64-1.11.3.tgz",
+ "integrity": "sha512-s+vEnuM2TiZuAUUUpmBHDr6vnNbJgj+5JYfnYmVklYs16kXh+EppafYQOAkcRIMAh7GjV3pLq5/uGqc7seZeHA==",
"cpu": [
"x64"
],
@@ -27429,9 +25883,9 @@
]
},
"node_modules/turbo-windows-arm64": {
- "version": "1.10.16",
- "resolved": "https://registry.npmjs.org/turbo-windows-arm64/-/turbo-windows-arm64-1.10.16.tgz",
- "integrity": "sha512-sKm3hcMM1bl0B3PLG4ifidicOGfoJmOEacM5JtgBkYM48ncMHjkHfFY7HrJHZHUnXM4l05RQTpLFoOl/uIo2HQ==",
+ "version": "1.11.3",
+ "resolved": "https://registry.npmjs.org/turbo-windows-arm64/-/turbo-windows-arm64-1.11.3.tgz",
+ "integrity": "sha512-ZR5z5Zpc7cASwfdRAV5yNScCZBsgGSbcwiA/u3farCacbPiXsfoWUkz28iyrx21/TRW0bi6dbsB2v17swa8bjw==",
"cpu": [
"arm64"
],
@@ -27441,11 +25895,6 @@
"win32"
]
},
- "node_modules/type": {
- "version": "1.2.0",
- "resolved": "https://registry.npmjs.org/type/-/type-1.2.0.tgz",
- "integrity": "sha512-+5nt5AAniqsCnu2cEQQdpzCAh33kVx8n0VoFidKpB1dVVLAN/F+bgVOqOJqOnEnrhp222clB5p3vUlD+1QAnfg=="
- },
"node_modules/type-check": {
"version": "0.4.0",
"resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz",
@@ -27558,9 +26007,9 @@
}
},
"node_modules/typescript": {
- "version": "5.2.2",
- "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.2.2.tgz",
- "integrity": "sha512-mI4WrpHsbCIcwT9cF4FZvr80QUeKvsUsUvKDoR+X/7XHQH98xYD8YHZg7ANtz2GtZt/CBq2QJ0thkGJMHfqc1w==",
+ "version": "5.3.3",
+ "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.3.3.tgz",
+ "integrity": "sha512-pXWcraxM0uxAS+tN0AG/BF2TyqmHO014Z070UsJ+pFvYuRSq8KH8DmWpnbXe0pEPDHXZV3FcAbJkijJ5oNEnWw==",
"bin": {
"tsc": "bin/tsc",
"tsserver": "bin/tsserver"
@@ -27570,14 +26019,14 @@
}
},
"node_modules/uc.micro": {
- "version": "1.0.6",
- "resolved": "https://registry.npmjs.org/uc.micro/-/uc.micro-1.0.6.tgz",
- "integrity": "sha512-8Y75pvTYkLJW2hWQHXxoqRgV7qb9B+9vFEtidML+7koHUFapnVJAZ6cKs+Qjz5Aw3aZWHMC6u0wJE3At+nSGwA=="
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/uc.micro/-/uc.micro-2.0.0.tgz",
+ "integrity": "sha512-DffL94LsNOccVn4hyfRe5rdKa273swqeA5DJpMOeFmEn1wCDc7nAbbB0gXlgBCL7TNzeTv6G7XVWzan7iJtfig=="
},
"node_modules/ufo": {
- "version": "1.3.1",
- "resolved": "https://registry.npmjs.org/ufo/-/ufo-1.3.1.tgz",
- "integrity": "sha512-uY/99gMLIOlJPwATcMVYfqDSxUR9//AUcgZMzwfSTJPDKzA1S8mX4VLqa+fiAtveraQUBCz4FFcwVZBGbwBXIw=="
+ "version": "1.3.2",
+ "resolved": "https://registry.npmjs.org/ufo/-/ufo-1.3.2.tgz",
+ "integrity": "sha512-o+ORpgGwaYQXgqGDwd+hkS4PuZ3QnmqMMxRuajK/a38L6fTpcE5GPIfrf+L/KemFzfUpeUQc1rRS1iDBozvnFA=="
},
"node_modules/ulid": {
"version": "2.3.0",
@@ -27618,18 +26067,6 @@
"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==",
- "peer": true,
- "dependencies": {
- "@fastify/busboy": "^2.0.0"
- },
- "engines": {
- "node": ">=14.0"
- }
- },
"node_modules/undici-types": {
"version": "5.26.5",
"resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz",
@@ -27653,6 +26090,11 @@
"tiny-inflate": "^1.0.0"
}
},
+ "node_modules/unicode-trie/node_modules/pako": {
+ "version": "0.2.9",
+ "resolved": "https://registry.npmjs.org/pako/-/pako-0.2.9.tgz",
+ "integrity": "sha512-NUcwaKxUxWrZLpDG+z/xZaCgQITkA/Dv4V/T6bw7VON6l1Xz/VnrBqrYjZQ12TamKHzITTfOEIYUj48y2KXImA=="
+ },
"node_modules/unified": {
"version": "10.1.2",
"resolved": "https://registry.npmjs.org/unified/-/unified-10.1.2.tgz",
@@ -27740,9 +26182,9 @@
}
},
"node_modules/unist-util-find-after/node_modules/@types/unist": {
- "version": "3.0.1",
- "resolved": "https://registry.npmjs.org/@types/unist/-/unist-3.0.1.tgz",
- "integrity": "sha512-ue/hDUpPjC85m+PM9OQDMZr3LywT+CT6mPsQq8OJtCLiERkGRcQUFvu9XASF5XWqyZFXbf15lvb3JFJ4dRLWPg=="
+ "version": "3.0.2",
+ "resolved": "https://registry.npmjs.org/@types/unist/-/unist-3.0.2.tgz",
+ "integrity": "sha512-dqId9J8K/vGi5Zr7oo212BGii5m3q5Hxlkwy3WpYuKPklmBEvsbMYYyLxAQpSffdLl/gdW0XUpKWFvYmyoWCoQ=="
},
"node_modules/unist-util-find-after/node_modules/unist-util-is": {
"version": "6.0.0",
@@ -27829,9 +26271,9 @@
}
},
"node_modules/unist-util-remove-position/node_modules/@types/unist": {
- "version": "3.0.1",
- "resolved": "https://registry.npmjs.org/@types/unist/-/unist-3.0.1.tgz",
- "integrity": "sha512-ue/hDUpPjC85m+PM9OQDMZr3LywT+CT6mPsQq8OJtCLiERkGRcQUFvu9XASF5XWqyZFXbf15lvb3JFJ4dRLWPg=="
+ "version": "3.0.2",
+ "resolved": "https://registry.npmjs.org/@types/unist/-/unist-3.0.2.tgz",
+ "integrity": "sha512-dqId9J8K/vGi5Zr7oo212BGii5m3q5Hxlkwy3WpYuKPklmBEvsbMYYyLxAQpSffdLl/gdW0XUpKWFvYmyoWCoQ=="
},
"node_modules/unist-util-remove-position/node_modules/unist-util-is": {
"version": "6.0.0",
@@ -27860,9 +26302,9 @@
}
},
"node_modules/unist-util-remove/node_modules/@types/unist": {
- "version": "3.0.1",
- "resolved": "https://registry.npmjs.org/@types/unist/-/unist-3.0.1.tgz",
- "integrity": "sha512-ue/hDUpPjC85m+PM9OQDMZr3LywT+CT6mPsQq8OJtCLiERkGRcQUFvu9XASF5XWqyZFXbf15lvb3JFJ4dRLWPg=="
+ "version": "3.0.2",
+ "resolved": "https://registry.npmjs.org/@types/unist/-/unist-3.0.2.tgz",
+ "integrity": "sha512-dqId9J8K/vGi5Zr7oo212BGii5m3q5Hxlkwy3WpYuKPklmBEvsbMYYyLxAQpSffdLl/gdW0XUpKWFvYmyoWCoQ=="
},
"node_modules/unist-util-remove/node_modules/unist-util-is": {
"version": "6.0.0",
@@ -27916,9 +26358,9 @@
}
},
"node_modules/unist-util-visit-parents/node_modules/@types/unist": {
- "version": "3.0.1",
- "resolved": "https://registry.npmjs.org/@types/unist/-/unist-3.0.1.tgz",
- "integrity": "sha512-ue/hDUpPjC85m+PM9OQDMZr3LywT+CT6mPsQq8OJtCLiERkGRcQUFvu9XASF5XWqyZFXbf15lvb3JFJ4dRLWPg=="
+ "version": "3.0.2",
+ "resolved": "https://registry.npmjs.org/@types/unist/-/unist-3.0.2.tgz",
+ "integrity": "sha512-dqId9J8K/vGi5Zr7oo212BGii5m3q5Hxlkwy3WpYuKPklmBEvsbMYYyLxAQpSffdLl/gdW0XUpKWFvYmyoWCoQ=="
},
"node_modules/unist-util-visit-parents/node_modules/unist-util-is": {
"version": "6.0.0",
@@ -28071,9 +26513,9 @@
}
},
"node_modules/use-callback-ref": {
- "version": "1.3.0",
- "resolved": "https://registry.npmjs.org/use-callback-ref/-/use-callback-ref-1.3.0.tgz",
- "integrity": "sha512-3FT9PRuRdbB9HfXhEq35u4oZkvpJ5kuYbpqhCfmiZyReuRgpnhDlbr2ZEnnuS0RrJAPn6l23xjFg9kpDM+Ms7w==",
+ "version": "1.3.1",
+ "resolved": "https://registry.npmjs.org/use-callback-ref/-/use-callback-ref-1.3.1.tgz",
+ "integrity": "sha512-Lg4Vx1XZQauB42Hw3kK7JM6yjVjgFmFC5/Ab797s79aARomD2nEErc4mCgM8EZrARLmmbWpi5DGCadmK50DcAQ==",
"dependencies": {
"tslib": "^2.0.0"
},
@@ -28114,21 +26556,9 @@
"node_modules/use-sync-external-store": {
"version": "1.2.0",
"resolved": "https://registry.npmjs.org/use-sync-external-store/-/use-sync-external-store-1.2.0.tgz",
- "integrity": "sha512-eEgnFxGQ1Ife9bzYs6VLi8/4X6CObHMw9Qr9tPY43iKwsPw8xE8+EFsf/2cFZ5S3esXgpWgtSCtLNS41F+sKPA==",
- "peerDependencies": {
- "react": "^16.8.0 || ^17.0.0 || ^18.0.0"
- }
- },
- "node_modules/utf-8-validate": {
- "version": "5.0.10",
- "resolved": "https://registry.npmjs.org/utf-8-validate/-/utf-8-validate-5.0.10.tgz",
- "integrity": "sha512-Z6czzLq4u8fPOyx7TU6X3dvUZVvoJmxSQ+IcrlmagKhilxlhZgxPK6C5Jqbkw1IDUmFTM+cz9QDnnLTwDz/2gQ==",
- "hasInstallScript": true,
- "dependencies": {
- "node-gyp-build": "^4.3.0"
- },
- "engines": {
- "node": ">=6.14.2"
+ "integrity": "sha512-eEgnFxGQ1Ife9bzYs6VLi8/4X6CObHMw9Qr9tPY43iKwsPw8xE8+EFsf/2cFZ5S3esXgpWgtSCtLNS41F+sKPA==",
+ "peerDependencies": {
+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0"
}
},
"node_modules/util": {
@@ -28272,9 +26702,9 @@
}
},
"node_modules/vfile-location/node_modules/@types/unist": {
- "version": "3.0.1",
- "resolved": "https://registry.npmjs.org/@types/unist/-/unist-3.0.1.tgz",
- "integrity": "sha512-ue/hDUpPjC85m+PM9OQDMZr3LywT+CT6mPsQq8OJtCLiERkGRcQUFvu9XASF5XWqyZFXbf15lvb3JFJ4dRLWPg=="
+ "version": "3.0.2",
+ "resolved": "https://registry.npmjs.org/@types/unist/-/unist-3.0.2.tgz",
+ "integrity": "sha512-dqId9J8K/vGi5Zr7oo212BGii5m3q5Hxlkwy3WpYuKPklmBEvsbMYYyLxAQpSffdLl/gdW0XUpKWFvYmyoWCoQ=="
},
"node_modules/vfile-location/node_modules/unist-util-stringify-position": {
"version": "4.0.0",
@@ -28330,9 +26760,9 @@
}
},
"node_modules/vfile-message/node_modules/@types/unist": {
- "version": "3.0.1",
- "resolved": "https://registry.npmjs.org/@types/unist/-/unist-3.0.1.tgz",
- "integrity": "sha512-ue/hDUpPjC85m+PM9OQDMZr3LywT+CT6mPsQq8OJtCLiERkGRcQUFvu9XASF5XWqyZFXbf15lvb3JFJ4dRLWPg=="
+ "version": "3.0.2",
+ "resolved": "https://registry.npmjs.org/@types/unist/-/unist-3.0.2.tgz",
+ "integrity": "sha512-dqId9J8K/vGi5Zr7oo212BGii5m3q5Hxlkwy3WpYuKPklmBEvsbMYYyLxAQpSffdLl/gdW0XUpKWFvYmyoWCoQ=="
},
"node_modules/vfile-message/node_modules/unist-util-stringify-position": {
"version": "4.0.0",
@@ -28360,28 +26790,28 @@
}
},
"node_modules/vite": {
- "version": "4.5.2",
- "resolved": "https://registry.npmjs.org/vite/-/vite-4.5.2.tgz",
- "integrity": "sha512-tBCZBNSBbHQkaGyhGCDUGqeo2ph8Fstyp6FMSvTtsXeZSPpSMGlviAOav2hxVTqFcx8Hj/twtWKsMJXNY0xI8w==",
+ "version": "5.0.12",
+ "resolved": "https://registry.npmjs.org/vite/-/vite-5.0.12.tgz",
+ "integrity": "sha512-4hsnEkG3q0N4Tzf1+t6NdN9dg/L3BM+q8SWgbSPnJvrgH2kgdyzfVJwbR1ic69/4uMJJ/3dqDZZE5/WwqW8U1w==",
"dependencies": {
- "esbuild": "^0.18.10",
- "postcss": "^8.4.27",
- "rollup": "^3.27.1"
+ "esbuild": "^0.19.3",
+ "postcss": "^8.4.32",
+ "rollup": "^4.2.0"
},
"bin": {
"vite": "bin/vite.js"
},
"engines": {
- "node": "^14.18.0 || >=16.0.0"
+ "node": "^18.0.0 || >=20.0.0"
},
"funding": {
"url": "https://github.com/vitejs/vite?sponsor=1"
},
"optionalDependencies": {
- "fsevents": "~2.3.2"
+ "fsevents": "~2.3.3"
},
"peerDependencies": {
- "@types/node": ">= 14",
+ "@types/node": "^18.0.0 || >=20.0.0",
"less": "*",
"lightningcss": "^1.21.0",
"sass": "*",
@@ -28426,69 +26856,31 @@
"node": ">= 6"
}
},
- "node_modules/vite-compatible-readable-stream/node_modules/safe-buffer": {
- "version": "5.2.1",
- "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz",
- "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==",
- "funding": [
- {
- "type": "github",
- "url": "https://github.com/sponsors/feross"
- },
- {
- "type": "patreon",
- "url": "https://www.patreon.com/feross"
- },
- {
- "type": "consulting",
- "url": "https://feross.org/support"
- }
- ]
- },
- "node_modules/vite-compatible-readable-stream/node_modules/string_decoder": {
- "version": "1.3.0",
- "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz",
- "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==",
- "dependencies": {
- "safe-buffer": "~5.2.0"
- }
- },
"node_modules/vite-node": {
- "version": "0.28.5",
- "resolved": "https://registry.npmjs.org/vite-node/-/vite-node-0.28.5.tgz",
- "integrity": "sha512-LmXb9saMGlrMZbXTvOveJKwMTBTNUH66c8rJnQ0ZPNX+myPEol64+szRzXtV5ORb0Hb/91yq+/D3oERoyAt6LA==",
+ "version": "1.2.1",
+ "resolved": "https://registry.npmjs.org/vite-node/-/vite-node-1.2.1.tgz",
+ "integrity": "sha512-fNzHmQUSOY+y30naohBvSW7pPn/xn3Ib/uqm+5wAJQJiqQsU0NBR78XdRJb04l4bOFKjpTWld0XAfkKlrDbySg==",
"dependencies": {
"cac": "^6.7.14",
"debug": "^4.3.4",
- "mlly": "^1.1.0",
- "pathe": "^1.1.0",
+ "pathe": "^1.1.1",
"picocolors": "^1.0.0",
- "source-map": "^0.6.1",
- "source-map-support": "^0.5.21",
- "vite": "^3.0.0 || ^4.0.0"
+ "vite": "^5.0.0"
},
"bin": {
"vite-node": "vite-node.mjs"
},
"engines": {
- "node": ">=v14.16.0"
+ "node": "^18.0.0 || >=20.0.0"
},
"funding": {
- "url": "https://github.com/sponsors/antfu"
- }
- },
- "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"
+ "url": "https://opencollective.com/vitest"
}
},
"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==",
+ "version": "0.19.11",
+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.19.11.tgz",
+ "integrity": "sha512-5OVapq0ClabvKvQ58Bws8+wkLCV+Rxg7tUVbo9xu034Nm536QTII4YzhaFriQ7rMrorfnFKUsArD2lqKbFY4vw==",
"cpu": [
"arm"
],
@@ -28501,9 +26893,9 @@
}
},
"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==",
+ "version": "0.19.11",
+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.19.11.tgz",
+ "integrity": "sha512-aiu7K/5JnLj//KOnOfEZ0D90obUkRzDMyqd/wNAUQ34m4YUPVhRZpnqKV9uqDGxT7cToSDnIHsGooyIczu9T+Q==",
"cpu": [
"arm64"
],
@@ -28516,9 +26908,9 @@
}
},
"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==",
+ "version": "0.19.11",
+ "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.19.11.tgz",
+ "integrity": "sha512-eccxjlfGw43WYoY9QgB82SgGgDbibcqyDTlk3l3C0jOVHKxrjdc9CTwDUQd0vkvYg5um0OH+GpxYvp39r+IPOg==",
"cpu": [
"x64"
],
@@ -28531,9 +26923,9 @@
}
},
"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==",
+ "version": "0.19.11",
+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.19.11.tgz",
+ "integrity": "sha512-ETp87DRWuSt9KdDVkqSoKoLFHYTrkyz2+65fj9nfXsaV3bMhTCjtQfw3y+um88vGRKRiF7erPrh/ZuIdLUIVxQ==",
"cpu": [
"arm64"
],
@@ -28546,9 +26938,9 @@
}
},
"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==",
+ "version": "0.19.11",
+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.19.11.tgz",
+ "integrity": "sha512-fkFUiS6IUK9WYUO/+22omwetaSNl5/A8giXvQlcinLIjVkxwTLSktbF5f/kJMftM2MJp9+fXqZ5ezS7+SALp4g==",
"cpu": [
"x64"
],
@@ -28561,9 +26953,9 @@
}
},
"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==",
+ "version": "0.19.11",
+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.19.11.tgz",
+ "integrity": "sha512-lhoSp5K6bxKRNdXUtHoNc5HhbXVCS8V0iZmDvyWvYq9S5WSfTIHU2UGjcGt7UeS6iEYp9eeymIl5mJBn0yiuxA==",
"cpu": [
"arm64"
],
@@ -28576,9 +26968,9 @@
}
},
"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==",
+ "version": "0.19.11",
+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.19.11.tgz",
+ "integrity": "sha512-JkUqn44AffGXitVI6/AbQdoYAq0TEullFdqcMY/PCUZ36xJ9ZJRtQabzMA+Vi7r78+25ZIBosLTOKnUXBSi1Kw==",
"cpu": [
"x64"
],
@@ -28591,9 +26983,9 @@
}
},
"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==",
+ "version": "0.19.11",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.19.11.tgz",
+ "integrity": "sha512-3CRkr9+vCV2XJbjwgzjPtO8T0SZUmRZla+UL1jw+XqHZPkPgZiyWvbDvl9rqAN8Zl7qJF0O/9ycMtjU67HN9/Q==",
"cpu": [
"arm"
],
@@ -28606,9 +26998,9 @@
}
},
"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==",
+ "version": "0.19.11",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.19.11.tgz",
+ "integrity": "sha512-LneLg3ypEeveBSMuoa0kwMpCGmpu8XQUh+mL8XXwoYZ6Be2qBnVtcDI5azSvh7vioMDhoJFZzp9GWp9IWpYoUg==",
"cpu": [
"arm64"
],
@@ -28621,9 +27013,9 @@
}
},
"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==",
+ "version": "0.19.11",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.19.11.tgz",
+ "integrity": "sha512-caHy++CsD8Bgq2V5CodbJjFPEiDPq8JJmBdeyZ8GWVQMjRD0sU548nNdwPNvKjVpamYYVL40AORekgfIubwHoA==",
"cpu": [
"ia32"
],
@@ -28636,9 +27028,9 @@
}
},
"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==",
+ "version": "0.19.11",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.19.11.tgz",
+ "integrity": "sha512-ppZSSLVpPrwHccvC6nQVZaSHlFsvCQyjnvirnVjbKSHuE5N24Yl8F3UwYUUR1UEPaFObGD2tSvVKbvR+uT1Nrg==",
"cpu": [
"loong64"
],
@@ -28651,9 +27043,9 @@
}
},
"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==",
+ "version": "0.19.11",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.19.11.tgz",
+ "integrity": "sha512-B5x9j0OgjG+v1dF2DkH34lr+7Gmv0kzX6/V0afF41FkPMMqaQ77pH7CrhWeR22aEeHKaeZVtZ6yFwlxOKPVFyg==",
"cpu": [
"mips64el"
],
@@ -28666,9 +27058,9 @@
}
},
"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==",
+ "version": "0.19.11",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.19.11.tgz",
+ "integrity": "sha512-MHrZYLeCG8vXblMetWyttkdVRjQlQUb/oMgBNurVEnhj4YWOr4G5lmBfZjHYQHHN0g6yDmCAQRR8MUHldvvRDA==",
"cpu": [
"ppc64"
],
@@ -28681,9 +27073,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==",
+ "version": "0.19.11",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.19.11.tgz",
+ "integrity": "sha512-f3DY++t94uVg141dozDu4CCUkYW+09rWtaWfnb3bqe4w5NqmZd6nPVBm+qbz7WaHZCoqXqHz5p6CM6qv3qnSSQ==",
"cpu": [
"riscv64"
],
@@ -28696,9 +27088,9 @@
}
},
"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==",
+ "version": "0.19.11",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.19.11.tgz",
+ "integrity": "sha512-A5xdUoyWJHMMlcSMcPGVLzYzpcY8QP1RtYzX5/bS4dvjBGVxdhuiYyFwp7z74ocV7WDc0n1harxmpq2ePOjI0Q==",
"cpu": [
"s390x"
],
@@ -28711,9 +27103,9 @@
}
},
"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==",
+ "version": "0.19.11",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.19.11.tgz",
+ "integrity": "sha512-grbyMlVCvJSfxFQUndw5mCtWs5LO1gUlwP4CDi4iJBbVpZcqLVT29FxgGuBJGSzyOxotFG4LoO5X+M1350zmPA==",
"cpu": [
"x64"
],
@@ -28726,9 +27118,9 @@
}
},
"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==",
+ "version": "0.19.11",
+ "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.19.11.tgz",
+ "integrity": "sha512-13jvrQZJc3P230OhU8xgwUnDeuC/9egsjTkXN49b3GcS5BKvJqZn86aGM8W9pd14Kd+u7HuFBMVtrNGhh6fHEQ==",
"cpu": [
"x64"
],
@@ -28741,9 +27133,9 @@
}
},
"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==",
+ "version": "0.19.11",
+ "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.19.11.tgz",
+ "integrity": "sha512-ysyOGZuTp6SNKPE11INDUeFVVQFrhcNDVUgSQVDzqsqX38DjhPEPATpid04LCoUr2WXhQTEZ8ct/EgJCUDpyNw==",
"cpu": [
"x64"
],
@@ -28756,9 +27148,9 @@
}
},
"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==",
+ "version": "0.19.11",
+ "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.19.11.tgz",
+ "integrity": "sha512-Hf+Sad9nVwvtxy4DXCZQqLpgmRTQqyFyhT3bZ4F2XlJCjxGmRFF0Shwn9rzhOYRB61w9VMXUkxlBy56dk9JJiQ==",
"cpu": [
"x64"
],
@@ -28771,9 +27163,9 @@
}
},
"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==",
+ "version": "0.19.11",
+ "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.19.11.tgz",
+ "integrity": "sha512-0P58Sbi0LctOMOQbpEOvOL44Ne0sqbS0XWHMvvrg6NE5jQ1xguCSSw9jQeUk2lfrXYsKDdOe6K+oZiwKPilYPQ==",
"cpu": [
"arm64"
],
@@ -28786,9 +27178,9 @@
}
},
"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==",
+ "version": "0.19.11",
+ "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.19.11.tgz",
+ "integrity": "sha512-6YOrWS+sDJDmshdBIQU+Uoyh7pQKrdykdefC1avn76ss5c+RN6gut3LZA4E2cH5xUEp5/cA0+YxRaVtRAb0xBg==",
"cpu": [
"ia32"
],
@@ -28801,9 +27193,9 @@
}
},
"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==",
+ "version": "0.19.11",
+ "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.19.11.tgz",
+ "integrity": "sha512-vfkhltrjCAb603XaFhqhAF4LGDi2M4OrCRrFusyQ+iTLQ/o60QQXxc9cZC/FFpihBI9N1Grn6SMKVJ4KP7Fuiw==",
"cpu": [
"x64"
],
@@ -28816,9 +27208,9 @@
}
},
"node_modules/vite/node_modules/esbuild": {
- "version": "0.18.20",
- "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.18.20.tgz",
- "integrity": "sha512-ceqxoedUrcayh7Y7ZX6NdbbDzGROiyVBgC4PriJThBKSVPWnnFHZAkfI1lJT8QFkOwH4qOS2SJkS4wvpGl8BpA==",
+ "version": "0.19.11",
+ "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.19.11.tgz",
+ "integrity": "sha512-HJ96Hev2hX/6i5cDVwcqiJBBtuo9+FeIJOtZ9W1kA5M6AMJRHUZlpYZ1/SbEwtO0ioNAW8rUooVpC/WehY2SfA==",
"hasInstallScript": true,
"bin": {
"esbuild": "bin/esbuild"
@@ -28827,28 +27219,60 @@
"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/aix-ppc64": "0.19.11",
+ "@esbuild/android-arm": "0.19.11",
+ "@esbuild/android-arm64": "0.19.11",
+ "@esbuild/android-x64": "0.19.11",
+ "@esbuild/darwin-arm64": "0.19.11",
+ "@esbuild/darwin-x64": "0.19.11",
+ "@esbuild/freebsd-arm64": "0.19.11",
+ "@esbuild/freebsd-x64": "0.19.11",
+ "@esbuild/linux-arm": "0.19.11",
+ "@esbuild/linux-arm64": "0.19.11",
+ "@esbuild/linux-ia32": "0.19.11",
+ "@esbuild/linux-loong64": "0.19.11",
+ "@esbuild/linux-mips64el": "0.19.11",
+ "@esbuild/linux-ppc64": "0.19.11",
+ "@esbuild/linux-riscv64": "0.19.11",
+ "@esbuild/linux-s390x": "0.19.11",
+ "@esbuild/linux-x64": "0.19.11",
+ "@esbuild/netbsd-x64": "0.19.11",
+ "@esbuild/openbsd-x64": "0.19.11",
+ "@esbuild/sunos-x64": "0.19.11",
+ "@esbuild/win32-arm64": "0.19.11",
+ "@esbuild/win32-ia32": "0.19.11",
+ "@esbuild/win32-x64": "0.19.11"
+ }
+ },
+ "node_modules/vite/node_modules/rollup": {
+ "version": "4.9.6",
+ "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.9.6.tgz",
+ "integrity": "sha512-05lzkCS2uASX0CiLFybYfVkwNbKZG5NFQ6Go0VWyogFTXXbR039UVsegViTntkk4OglHBdF54ccApXRRuXRbsg==",
+ "dependencies": {
+ "@types/estree": "1.0.5"
+ },
+ "bin": {
+ "rollup": "dist/bin/rollup"
+ },
+ "engines": {
+ "node": ">=18.0.0",
+ "npm": ">=8.0.0"
+ },
+ "optionalDependencies": {
+ "@rollup/rollup-android-arm-eabi": "4.9.6",
+ "@rollup/rollup-android-arm64": "4.9.6",
+ "@rollup/rollup-darwin-arm64": "4.9.6",
+ "@rollup/rollup-darwin-x64": "4.9.6",
+ "@rollup/rollup-linux-arm-gnueabihf": "4.9.6",
+ "@rollup/rollup-linux-arm64-gnu": "4.9.6",
+ "@rollup/rollup-linux-arm64-musl": "4.9.6",
+ "@rollup/rollup-linux-riscv64-gnu": "4.9.6",
+ "@rollup/rollup-linux-x64-gnu": "4.9.6",
+ "@rollup/rollup-linux-x64-musl": "4.9.6",
+ "@rollup/rollup-win32-arm64-msvc": "4.9.6",
+ "@rollup/rollup-win32-ia32-msvc": "4.9.6",
+ "@rollup/rollup-win32-x64-msvc": "4.9.6",
+ "fsevents": "~2.3.2"
}
},
"node_modules/vscode-oniguruma": {
@@ -28935,52 +27359,23 @@
}
},
"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==",
+ "version": "3.3.2",
+ "resolved": "https://registry.npmjs.org/web-streams-polyfill/-/web-streams-polyfill-3.3.2.tgz",
+ "integrity": "sha512-3pRGuxRF5gpuZc0W+EpwQRmCD7gRqcDOMt688KmdlDAgAyaB1XlN0zq2njfDNm44XVdIouE7pZ6GzbdyH47uIQ==",
"engines": {
"node": ">= 8"
}
},
"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=="
+ "version": "1.3.0",
+ "resolved": "https://registry.npmjs.org/web-worker/-/web-worker-1.3.0.tgz",
+ "integrity": "sha512-BSR9wyRsy/KOValMgd5kMyr3JzpdeoR9KVId8u5GVlTTAtNChlsE4yTxeY7zMdNSyOmoKBv8NH2qeRY9Tg+IaA=="
},
"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/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"
- },
- "engines": {
- "node": ">=4.0.0"
- }
- },
- "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/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",
@@ -29220,15 +27615,15 @@
}
},
"node_modules/ws": {
- "version": "7.5.9",
- "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.9.tgz",
- "integrity": "sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q==",
+ "version": "8.16.0",
+ "resolved": "https://registry.npmjs.org/ws/-/ws-8.16.0.tgz",
+ "integrity": "sha512-HS0c//TP7Ina87TfiPUz1rQzMhHrl/SG2guqRcTOIUYD2q8uhUdNHZYJUaQ8aTGPzCh+c6oawMKW35nFl1dxyQ==",
"engines": {
- "node": ">=8.3.0"
+ "node": ">=10.0.0"
},
"peerDependencies": {
"bufferutil": "^4.0.1",
- "utf-8-validate": "^5.0.2"
+ "utf-8-validate": ">=5.0.2"
},
"peerDependenciesMeta": {
"bufferutil": {
@@ -29266,14 +27661,6 @@
"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",
@@ -29283,6 +27670,7 @@
"version": "2.3.1",
"resolved": "https://registry.npmjs.org/yaml/-/yaml-2.3.1.tgz",
"integrity": "sha512-2eHWfjaoXgTBC2jNM1LRef62VQa0umtvRiDSk6HSzW7RvS5YtkabJrwYLLEKWBc8a5U2PTSCs+dJjUTJdlHsWQ==",
+ "dev": true,
"engines": {
"node": ">= 14"
}
@@ -29405,6 +27793,11 @@
"url": "https://github.com/sponsors/sindresorhus"
}
},
+ "node_modules/yoga-layout": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/yoga-layout/-/yoga-layout-2.0.1.tgz",
+ "integrity": "sha512-tT/oChyDXelLo2A+UVnlW9GU7CsvFMaEnd9kVFsaiCQonFAXd3xrHhkLYu+suwwosrAEQ746xBU+HvYtm1Zs2Q=="
+ },
"node_modules/zod": {
"version": "3.22.4",
"resolved": "https://registry.npmjs.org/zod/-/zod-3.22.4.tgz",
@@ -29430,9 +27823,9 @@
}
},
"node_modules/zustand": {
- "version": "4.4.6",
- "resolved": "https://registry.npmjs.org/zustand/-/zustand-4.4.6.tgz",
- "integrity": "sha512-Rb16eW55gqL4W2XZpJh0fnrATxYEG3Apl2gfHTyDSE965x/zxslTikpNch0JgNjJA9zK6gEFW8Fl6d1rTZaqgg==",
+ "version": "4.5.0",
+ "resolved": "https://registry.npmjs.org/zustand/-/zustand-4.5.0.tgz",
+ "integrity": "sha512-zlVFqS5TQ21nwijjhJlx4f9iGrXSL0o/+Dpy4txAP22miJ8Ti6c1Ol1RLNN98BMib83lmDH/2KmLwaNXpjrO1A==",
"dependencies": {
"use-sync-external-store": "1.2.0"
},
@@ -29441,7 +27834,7 @@
},
"peerDependencies": {
"@types/react": ">=16.8",
- "immer": ">=9.0",
+ "immer": ">=9.0.6",
"react": ">=16.8"
},
"peerDependenciesMeta": {
@@ -29572,6 +27965,32 @@
"npm": ">=8"
}
},
+ "packages/database/node_modules/tar": {
+ "version": "6.1.15",
+ "resolved": "https://registry.npmjs.org/tar/-/tar-6.1.15.tgz",
+ "integrity": "sha512-/zKt9UyngnxIT/EAGYuxaMYgOIJiP81ab9ZfkILq4oNLPFX50qyYmu7jRj9qeXoxmJHjGlbH0+cm2uy1WCs10A==",
+ "dev": true,
+ "dependencies": {
+ "chownr": "^2.0.0",
+ "fs-minipass": "^2.0.0",
+ "minipass": "^5.0.0",
+ "minizlib": "^2.1.1",
+ "mkdirp": "^1.0.3",
+ "yallist": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "packages/database/node_modules/tar/node_modules/minipass": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/minipass/-/minipass-5.0.0.tgz",
+ "integrity": "sha512-3FnjYuehv9k6ovOEbyOswadCDPX1piCfhV8ncmYtHOjuPwylVWsghTLo7rabjC3Rx5xD4HDx8Wm1xnMF7S5qFQ==",
+ "dev": true,
+ "engines": {
+ "node": ">=8"
+ }
+ },
"packages/documents": {
"name": "@carbon/documents",
"version": "0.0.0",
@@ -29806,38 +28225,6 @@
"react-icons": "^4.12.0"
}
},
- "packages/react/node_modules/autoprefixer": {
- "version": "10.4.14",
- "resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-10.4.14.tgz",
- "integrity": "sha512-FQzyfOsTlwVzjHxKEqRIAdJx9niO6VCBCoEwax/VLSoQF29ggECcPuBqUMZ+u8jCZOPSy8b8/8KnuFbp0SaFZQ==",
- "funding": [
- {
- "type": "opencollective",
- "url": "https://opencollective.com/postcss/"
- },
- {
- "type": "tidelift",
- "url": "https://tidelift.com/funding/github/npm/autoprefixer"
- }
- ],
- "dependencies": {
- "browserslist": "^4.21.5",
- "caniuse-lite": "^1.0.30001464",
- "fraction.js": "^4.2.0",
- "normalize-range": "^0.1.2",
- "picocolors": "^1.0.0",
- "postcss-value-parser": "^4.2.0"
- },
- "bin": {
- "autoprefixer": "bin/autoprefixer"
- },
- "engines": {
- "node": "^10 || ^12 || >=14"
- },
- "peerDependencies": {
- "postcss": "^8.1.0"
- }
- },
"packages/redis": {
"name": "@carbon/redis",
"version": "1.0.0",
@@ -29921,81 +28308,6 @@
"tailwindcss-animate": "^1.0.7"
}
},
- "packages/tailwind/node_modules/autoprefixer": {
- "version": "10.4.14",
- "resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-10.4.14.tgz",
- "integrity": "sha512-FQzyfOsTlwVzjHxKEqRIAdJx9niO6VCBCoEwax/VLSoQF29ggECcPuBqUMZ+u8jCZOPSy8b8/8KnuFbp0SaFZQ==",
- "funding": [
- {
- "type": "opencollective",
- "url": "https://opencollective.com/postcss/"
- },
- {
- "type": "tidelift",
- "url": "https://tidelift.com/funding/github/npm/autoprefixer"
- }
- ],
- "peer": true,
- "dependencies": {
- "browserslist": "^4.21.5",
- "caniuse-lite": "^1.0.30001464",
- "fraction.js": "^4.2.0",
- "normalize-range": "^0.1.2",
- "picocolors": "^1.0.0",
- "postcss-value-parser": "^4.2.0"
- },
- "bin": {
- "autoprefixer": "bin/autoprefixer"
- },
- "engines": {
- "node": "^10 || ^12 || >=14"
- },
- "peerDependencies": {
- "postcss": "^8.1.0"
- }
- },
- "packages/tailwind/node_modules/tailwindcss": {
- "version": "3.3.1",
- "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-3.3.1.tgz",
- "integrity": "sha512-Vkiouc41d4CEq0ujXl6oiGFQ7bA3WEhUZdTgXAhtKxSy49OmKs8rEfQmupsfF0IGW8fv2iQkp1EVUuapCFrZ9g==",
- "peer": true,
- "dependencies": {
- "arg": "^5.0.2",
- "chokidar": "^3.5.3",
- "color-name": "^1.1.4",
- "didyoumean": "^1.2.2",
- "dlv": "^1.1.3",
- "fast-glob": "^3.2.12",
- "glob-parent": "^6.0.2",
- "is-glob": "^4.0.3",
- "jiti": "^1.17.2",
- "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",
- "sucrase": "^3.29.0"
- },
- "bin": {
- "tailwind": "lib/cli.js",
- "tailwindcss": "lib/cli.js"
- },
- "engines": {
- "node": ">=12.13.0"
- },
- "peerDependencies": {
- "postcss": "^8.0.9"
- }
- },
"packages/tsconfig": {
"name": "@carbon/tsconfig",
"version": "0.0.0",
@@ -30019,40 +28331,6 @@
"typescript": "^5.2.2"
}
},
- "shared": {
- "extraneous": true,
- "license": "Apache-2.0",
- "dependencies": {
- "@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.6.5",
- "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"
- }
- },
"www": {
"version": "0.0.1",
"dependencies": {
@@ -30087,6 +28365,83 @@
"engines": {
"node": ">=6"
}
+ },
+ "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.json
index 1014199e10..47407d1844 100755
--- a/package.json
+++ b/package.json
@@ -10,8 +10,7 @@
"scripts": {
"build": "turbo run build",
"build:packages": "turbo run build --filter=./packages/*",
- "clean": "turbo run clean && rimraf node_modules",
- "predb:build": "tsx scripts/generate-schema-md.ts",
+ "clean": "turbo run clean && rimraf ./node_modules && rimraf ./package-lock.json",
"db:build": "run-s db:kill db:start setup",
"postdb:build": "tsx scripts/generate-db-types.ts",
"db:restart": "run-s db:stop db:start",
diff --git a/packages/database/SCHEMA.md b/packages/database/SCHEMA.md
deleted file mode 100644
index c009aadd2d..0000000000
--- a/packages/database/SCHEMA.md
+++ /dev/null
@@ -1,7473 +0,0 @@
-# Carbon Database Schema by `scripts/generate-schema-md.ts` using the migrations in `packages/database/supabase/migrations`.
-
-
-
-## `xid`
-
-```sql
--- xid is a globally unique id generator functions.
--- they are 20 characters long and ordered
--- https://github.com/modfin/pg-xid
-
-CREATE DOMAIN public.xid AS CHAR(20) CHECK (VALUE ~ '^[a-v0-9]{20}$');
-
-CREATE SEQUENCE IF NOT EXISTS public.xid_serial MINVALUE 0 MAXVALUE 16777215 CYCLE; -- ((255<<16) + (255<<8) + 255))
-
-SELECT setval('xid_serial', (random() * 16777215)::INT); -- ((255<<16) + (255<<8) + 255))
-
-CREATE OR REPLACE FUNCTION public._xid_machine_id()
- RETURNS INT
- LANGUAGE plpgsql
- IMMUTABLE
-AS
-$$
-DECLARE
-BEGIN
- RETURN (SELECT system_identifier & 16777215 FROM pg_control_system());
-END
-$$;
-
-CREATE OR REPLACE FUNCTION public.xid_encode(_id int[])
- RETURNS public.xid
- LANGUAGE plpgsql
-AS
-$$
-DECLARE
- _encoding CHAR(1)[] = '{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v}';
-BEGIN
- RETURN _encoding[1 + (_id[1] >> 3)]
- || _encoding[1 + ((_id[2] >> 6) & 31 | (_id[1] << 2) & 31)]
- || _encoding[1 + ((_id[2] >> 1) & 31)]
- || _encoding[1 + ((_id[3] >> 4) & 31 | (_id[2] << 4) & 31)]
- || _encoding[1 + (_id[4] >> 7 | (_id[3] << 1) & 31)]
- || _encoding[1 + ((_id[4] >> 2) & 31)]
- || _encoding[1 + (_id[5] >> 5 | (_id[4] << 3) & 31)]
- || _encoding[1 + (_id[5] & 31)]
- || _encoding[1 + (_id[6] >> 3)]
- || _encoding[1 + ((_id[7] >> 6) & 31 | (_id[6] << 2) & 31)]
- || _encoding[1 + ((_id[7] >> 1) & 31)]
- || _encoding[1 + ((_id[8] >> 4) & 31 | (_id[7] << 4) & 31)]
- || _encoding[1 + (_id[9] >> 7 | (_id[8] << 1) & 31)]
- || _encoding[1 + ((_id[9] >> 2) & 31)]
- || _encoding[1 + ((_id[10] >> 5) | (_id[9] << 3) & 31)]
- || _encoding[1 + (_id[10] & 31)]
- || _encoding[1 + (_id[11] >> 3)]
- || _encoding[1 + ((_id[12] >> 6) & 31 | (_id[11] << 2) & 31)]
- || _encoding[1 + ((_id[12] >> 1) & 31)]
- || _encoding[1 + ((_id[12] << 4) & 31)];
-END;
-$$;
-
-CREATE OR REPLACE FUNCTION public.xid_decode(_xid public.xid)
- RETURNS int[]
- LANGUAGE plpgsql
-AS
-$$
-DECLARE
- _dec int[] = '{255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255}';
- _b bytea;
-BEGIN
- _b := _xid::BYTEA;
- return ARRAY [
- ((_dec[get_byte(_b, 0)] << 3) | (_dec[get_byte(_b, 1)] >> 2)) & 255,
- ((_dec[get_byte(_b, 1)] << 6) | (_dec[get_byte(_b, 2)] << 1) | (_dec[get_byte(_b, 3)] >> 4)) & 255,
- ((_dec[get_byte(_b, 3)] << 4) | (_dec[get_byte(_b, 4)] >> 1)) & 255,
- ((_dec[get_byte(_b, 4)] << 7) | (_dec[get_byte(_b, 5)] << 2) | (_dec[get_byte(_b, 6)] >> 3)) & 255,
- ((_dec[get_byte(_b, 6)] << 5) | (_dec[get_byte(_b, 7)])) & 255,
- ((_dec[get_byte(_b, 8)] << 3) | (_dec[get_byte(_b, 9)] >> 2)) & 255,
- ((_dec[get_byte(_b, 9)] << 6) | (_dec[get_byte(_b, 10)] << 1) | (_dec[get_byte(_b, 11)] >> 4)) & 255,
- ((_dec[get_byte(_b, 11)] << 4) | (_dec[get_byte(_b, 12)] >> 1)) & 255,
- ((_dec[get_byte(_b, 12)] << 7) | (_dec[get_byte(_b, 13)] << 2) | (_dec[get_byte(_b, 14)] >> 3)) & 255,
- ((_dec[get_byte(_b, 14)] << 5) | (_dec[get_byte(_b, 15)])) & 255,
- ((_dec[get_byte(_b, 16)] << 3) | (_dec[get_byte(_b, 17)] >> 2)) & 255,
- ((_dec[get_byte(_b, 17)] << 6) | (_dec[get_byte(_b, 18)] << 1) | (_dec[get_byte(_b, 19)] >> 4)) & 255
- ];
-END;
-$$;
-
-CREATE OR REPLACE FUNCTION xid(_at TIMESTAMPTZ DEFAULT CURRENT_TIMESTAMP)
- RETURNS public.xid
- LANGUAGE plpgsql
-AS
-$$
-DECLARE
- _t INT;
- _m INT;
- _p INT;
- _c INT;
-BEGIN
- _t := floor(EXTRACT(epoch FROM _at));
- _m := _xid_machine_id();
- _p := pg_backend_pid();
- _c := nextval('xid_serial')::INT;
-
- return public.xid_encode(ARRAY [
- (_t >> 24) & 255, (_t >> 16) & 255, (_t >> 8) & 255 , _t & 255,
- (_m >> 16) & 255, (_m >> 8) & 255 , _m & 255,
- (_p >> 8) & 255, _p & 255,
- (_c >> 16) & 255, (_c >> 8) & 255 , _c & 255
- ]);
-END;
-$$;
-
-CREATE OR REPLACE FUNCTION public.xid_time(_xid public.xid)
- RETURNS TIMESTAMPTZ
- LANGUAGE plpgsql
-AS
-$$
-DECLARE
- _id int[];
-BEGIN
- _id := public.xid_decode(_xid);
- return to_timestamp((_id[1] << 24)::BIGINT + (_id[2] << 16) + (_id[3] << 8) + (_id[4]));
-END;
-$$;
-
-CREATE OR REPLACE FUNCTION public.xid_machine(_xid public.xid)
- RETURNS INT[]
- LANGUAGE plpgsql
-AS
-$$
-DECLARE
- _id int[];
-BEGIN
- _id := public.xid_decode(_xid);
- return ARRAY [_id[5], _id[6], _id[7]];
-END;
-$$;
-
-CREATE OR REPLACE FUNCTION public.xid_pid(_xid public.xid)
- RETURNS INT
- LANGUAGE plpgsql
-AS
-$$
-DECLARE
- _id int[];
-BEGIN
- _id := public.xid_decode(_xid);
- return (_id[8] << 8) + (_id[9]);
-END;
-$$;
-
-CREATE OR REPLACE FUNCTION public.xid_counter(_xid public.xid)
- RETURNS INT
- LANGUAGE plpgsql
-AS
-$$
-DECLARE
- _id int[];
-BEGIN
- _id := public.xid_decode(_xid);
- return (_id[10] << 16) + (_id[11] << 8) + (_id[12]);
-END;
-$$;
-```
-
-
-
-## `realtime`
-
-```sql
-BEGIN;
- -- remove the supabase_realtime publication
- DROP publication IF EXISTS supabase_realtime;
-
- -- re-create the supabase_realtime publication with no tables
- CREATE publication supabase_realtime;
-COMMIT;
-
-```
-
-
-
-## `claims`
-
-```sql
-CREATE OR REPLACE FUNCTION is_claims_admin() RETURNS "bool"
- LANGUAGE "plpgsql"
- AS $$
- BEGIN
- IF session_user = 'authenticator' THEN
- --------------------------------------------
- -- To disallow any authenticated app users
- -- from editing claims, delete the following
- -- block of code and replace it with:
- -- RETURN FALSE;
- --------------------------------------------
- IF extract(epoch from now()) > coalesce((current_setting('request.jwt.claims', true)::jsonb)->>'exp', '0')::numeric THEN
- return false; -- jwt expired
- END IF;
- IF coalesce((current_setting('request.jwt.claims', true)::jsonb)->'app_metadata'->'users_update', 'false')::bool THEN
- return true; -- user has user_update set to true
- ELSE
- return false; -- user does NOT have user_update set to true
- END IF;
- --------------------------------------------
- -- End of block
- --------------------------------------------
- ELSE -- not a user session, probably being called from a trigger or something
- return true;
- END IF;
- END;
-$$;
-
-CREATE OR REPLACE FUNCTION get_my_claims() RETURNS "jsonb"
- LANGUAGE "sql" STABLE
- AS $$
- select
- coalesce(nullif(current_setting('request.jwt.claims', true), '')::jsonb -> 'app_metadata', '{}'::jsonb)::jsonb
-$$;
-CREATE OR REPLACE FUNCTION get_my_claim(claim TEXT) RETURNS "jsonb"
- LANGUAGE "sql" STABLE
- AS $$
- select
- coalesce(nullif(current_setting('request.jwt.claims', true), '')::jsonb -> 'app_metadata' -> claim, null)
-$$;
-
-CREATE OR REPLACE FUNCTION get_claims(uid uuid) RETURNS "jsonb"
- LANGUAGE "plpgsql" SECURITY DEFINER SET search_path = public
- AS $$
- DECLARE retval jsonb;
- BEGIN
- select raw_app_meta_data from auth.users into retval where id = uid::uuid;
- return retval;
-
- END;
-$$;
-
-CREATE OR REPLACE FUNCTION get_claim(uid uuid, claim text) RETURNS "jsonb"
- LANGUAGE "plpgsql" SECURITY DEFINER SET search_path = public
- AS $$
- DECLARE retval jsonb;
- BEGIN
- select coalesce(raw_app_meta_data->claim, null) from auth.users into retval where id = uid::uuid;
- return retval;
-
- END;
-$$;
-
-CREATE OR REPLACE FUNCTION set_claim(uid uuid, claim text, value jsonb) RETURNS "text"
- LANGUAGE "plpgsql" SECURITY DEFINER SET search_path = public
- AS $$
- BEGIN
- IF NOT is_claims_admin() THEN
- RETURN 'error: access denied';
- ELSE
- update auth.users set raw_app_meta_data =
- raw_app_meta_data ||
- json_build_object(claim, value)::jsonb where id = uid;
- return 'OK';
- END IF;
- END;
-$$;
-
-CREATE OR REPLACE FUNCTION delete_claim(uid uuid, claim text) RETURNS "text"
- LANGUAGE "plpgsql" SECURITY DEFINER SET search_path = public
- AS $$
- BEGIN
- IF NOT is_claims_admin() THEN
- RETURN 'error: access denied';
- ELSE
- update auth.users set raw_app_meta_data =
- raw_app_meta_data - claim where id = uid;
- return 'OK';
- END IF;
- END;
-$$;
-NOTIFY pgrst, 'reload schema';
-```
-
-
-
-## `users`
-
-```sql
-CREATE TABLE "user" (
- "id" TEXT NOT NULL,
- "email" TEXT NOT NULL,
- "firstName" TEXT NOT NULL,
- "lastName" TEXT NOT NULL,
- "fullName" TEXT GENERATED ALWAYS AS ("firstName" || ' ' || "lastName") STORED,
- "about" TEXT NOT NULL DEFAULT '',
- "avatarUrl" TEXT,
- "active" BOOLEAN DEFAULT TRUE,
- "emailVerified" TIMESTAMP WITH TIME ZONE,
- "createdAt" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW(),
- "updatedAt" TIMESTAMP WITH TIME ZONE,
-
- CONSTRAINT "user_pkey" PRIMARY KEY ("id")
-);
-
-CREATE UNIQUE INDEX "index_user_email_key" ON "user"("email");
-CREATE INDEX "index_user_fullName" ON "user"("fullName");
-
-ALTER TABLE "user" ENABLE ROW LEVEL SECURITY;
-
-CREATE POLICY "Claims admin can view/modify users" ON "user" FOR ALL USING (is_claims_admin());
-CREATE POLICY "Users can modify themselves" ON "user" FOR UPDATE WITH CHECK (auth.uid() = id::uuid);
-CREATE POLICY "Anyone that's authenticated can view users" ON "user" FOR SELECT USING (auth.role() = 'authenticated');
-
-```
-
-
-
-## `employee-types`
-
-```sql
-CREATE EXTENSION IF NOT EXISTS "uuid-ossp";
-
--- CreateTable
-CREATE TABLE "employeeType" (
- "id" TEXT NOT NULL DEFAULT uuid_generate_v4(),
- "name" TEXT NOT NULL,
- "color" TEXT NOT NULL DEFAULT '#000000',
- "protected" BOOLEAN NOT NULL DEFAULT false,
- "createdAt" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW(),
- "updatedAt" TIMESTAMP WITH TIME ZONE,
-
- CONSTRAINT "employeeType_pkey" PRIMARY KEY ("id"),
- CONSTRAINT "employeeType_colorCheck" CHECK ("color" is null or "color" ~* '^#[a-f0-9]{6}$')
-);
-
-ALTER TABLE "employeeType" ENABLE ROW LEVEL SECURITY;
-
-CREATE POLICY "Only claims admin can view/modify permissions for employee types" ON "employeeType" FOR ALL USING (is_claims_admin());
-
-
-```
-
-
-
-## `permissions`
-
-```sql
-CREATE TABLE "feature" (
- "id" TEXT NOT NULL DEFAULT uuid_generate_v4(),
- "name" TEXT NOT NULL,
- "createdAt" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW(),
- "updatedAt" TIMESTAMP WITH TIME ZONE,
-
- CONSTRAINT "feature_pkey" PRIMARY KEY ("id")
-);
-
-ALTER TABLE "feature" ENABLE ROW LEVEL SECURITY;
-
-CREATE POLICY "Only claims admin can view/modify modules" ON "feature" FOR ALL USING (is_claims_admin());
-
-CREATE TABLE "employeeTypePermission" (
- "employeeTypeId" TEXT NOT NULL,
- "featureId" TEXT NOT NULL,
- "create" BOOLEAN NOT NULL DEFAULT false,
- "delete" BOOLEAN NOT NULL DEFAULT false,
- "update" BOOLEAN NOT NULL DEFAULT false,
- "view" BOOLEAN NOT NULL DEFAULT false,
- "createdAt" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW(),
- "updatedAt" TIMESTAMP WITH TIME ZONE,
-
- CONSTRAINT "employeeTypePermission_pkey" PRIMARY KEY ("employeeTypeId", "featureId"),
- CONSTRAINT "employeeTypePermission_employeeTypeId_fkey" FOREIGN KEY ("employeeTypeId") REFERENCES "employeeType"("id") ON DELETE CASCADE ON UPDATE CASCADE,
- CONSTRAINT "employeeTypePermission_featureId_fkey" FOREIGN KEY ("featureId") REFERENCES "feature"("id") ON DELETE CASCADE ON UPDATE CASCADE
-);
-
-ALTER TABLE "employeeTypePermission" ENABLE ROW LEVEL SECURITY;
-
-CREATE POLICY "Only claims admin can view/modify permissions for employee types" ON "employeeTypePermission" FOR ALL USING (is_claims_admin());
-
-
-
-```
-
-
-
-## `employee`
-
-```sql
-CREATE TABLE "employee" (
- "id" TEXT NOT NULL,
- "employeeTypeId" TEXT NOT NULL,
-
- CONSTRAINT "employee_pkey" PRIMARY KEY ("id"),
- CONSTRAINT "employee_employeeTypeId_fkey" FOREIGN KEY ("employeeTypeId") REFERENCES "employeeType"("id") ON DELETE RESTRICT ON UPDATE CASCADE,
- CONSTRAINT "employee_id_fkey" FOREIGN KEY ("id") REFERENCES "user"("id") ON DELETE RESTRICT ON UPDATE CASCADE
-);
-
-ALTER TABLE "employee" ENABLE ROW LEVEL SECURITY;
-
-CREATE POLICY "Only claims admin can view/modify employees" ON "employee" FOR ALL USING (is_claims_admin());
-CREATE POLICY "Anyone that's authenticated can view employees" ON "employee" FOR SELECT USING (auth.role() = 'authenticated');
-
-
-```
-
-
-
-## `buckets`
-
-```sql
-INSERT INTO storage.buckets (id, name, public)
-VALUES
- ('public', 'public', true),
- ('avatars', 'avatars', true),
- ('private', 'private', false);
-
-CREATE POLICY "Anyone can read public buckets"
-ON storage.objects FOR SELECT USING (
- bucket_id = 'public'
- AND (auth.role() = 'authenticated')
-);
-
-CREATE POLICY "Employees with settings_create can insert into the public bucket"
-ON storage.objects FOR INSERT WITH CHECK (
- bucket_id = 'public'
- AND (auth.role() = 'authenticated')
- AND coalesce(get_my_claim('settings_create')::boolean,false)
-);
-
-CREATE POLICY "Employees with settings_update can update the public bucket"
-ON storage.objects FOR UPDATE USING (
- bucket_id = 'public'
- AND (auth.role() = 'authenticated')
- AND coalesce(get_my_claim('settings_update')::boolean,false)
-);
-
-CREATE POLICY "Employees with settings_delete can delete from public bucket"
-ON storage.objects FOR DELETE USING (
- bucket_id = 'public'
- AND (auth.role() = 'authenticated')
- AND coalesce(get_my_claim('settings_delete')::boolean,false)
-);
-
-CREATE POLICY "Anyone can view avatars"
-ON storage.objects FOR SELECT USING (
- bucket_id = 'avatars'
- AND (auth.role() = 'authenticated')
-);
-
-CREATE POLICY "Users can delete their own avatars"
-ON storage.objects FOR DELETE USING (
- bucket_id = 'avatars'
- AND (auth.role() = 'authenticated')
- AND storage.filename(name) LIKE concat(auth.uid()::text, '%')
-);
-
-CREATE POLICY "Users can update their own avatars"
-ON storage.objects FOR UPDATE USING (
- bucket_id = 'avatars'
- AND (auth.role() = 'authenticated')
- AND storage.filename(name) LIKE concat(auth.uid()::text, '%')
-);
-
-CREATE POLICY "Users can insert their own avatars"
-ON storage.objects FOR INSERT WITH CHECK (
- bucket_id = 'avatars'
- AND (auth.role() = 'authenticated')
- AND storage.filename(name) LIKE concat(auth.uid()::text, '%')
-);
-```
-
-
-
-## `attributes`
-
-```sql
-
-CREATE TABLE "userAttributeCategory" (
- "id" TEXT NOT NULL DEFAULT xid(),
- "name" TEXT NOT NULL,
- "public" BOOLEAN DEFAULT FALSE,
- "protected" BOOLEAN DEFAULT FALSE,
- "active" BOOLEAN DEFAULT TRUE,
- "createdAt" TIMESTAMP WITH TIME ZONE DEFAULT NOW() NOT NULL,
- "createdBy" TEXT NOT NULL,
- "updatedAt" TIMESTAMP WITH TIME ZONE,
- "updatedBy" TEXT,
-
- CONSTRAINT "userAttributeCategory_pkey" PRIMARY KEY ("id"),
- CONSTRAINT "userAttributeCategory_createdBy_fkey" FOREIGN KEY ("createdBy") REFERENCES "user"("id") ON UPDATE CASCADE,
- CONSTRAINT "userAttributeCategory_updatedBy_fkey" FOREIGN KEY ("updatedBy") REFERENCES "user"("id") ON UPDATE CASCADE
-);
-
--- ALTER TABLE "userAttributeCategory" ENABLE ROW LEVEL SECURITY;
-
-CREATE TABLE "attributeDataType" (
- "id" SERIAL PRIMARY KEY,
- "label" TEXT NOT NULL,
- "isBoolean" BOOLEAN NOT NULL DEFAULT FALSE,
- "isDate" BOOLEAN NOT NULL DEFAULT FALSE,
- "isList" BOOLEAN NOT NULL DEFAULT FALSE,
- "isNumeric" BOOLEAN NOT NULL DEFAULT FALSE,
- "isText" BOOLEAN NOT NULL DEFAULT FALSE,
- "isUser" BOOLEAN NOT NULL DEFAULT FALSE,
-
- CONSTRAINT "userAttributeDataType_singleDataType"
- CHECK (
- (
- "isBoolean" = true AND
- "isDate" = false AND
- "isList" = false AND
- "isNumeric" = false AND
- "isText" = false AND
- "isUser" = false
- )
- OR (
- "isBoolean" = false AND
- "isDate" = true AND
- "isList" = false AND
- "isNumeric" = false AND
- "isText" = false AND
- "isUser" = false
- )
- OR (
- "isBoolean" = false AND
- "isDate" = false AND
- "isList" = true AND
- "isNumeric" = false AND
- "isText" = false AND
- "isUser" = false
- )
- OR (
- "isBoolean" = false AND
- "isDate" = false AND
- "isList" = false AND
- "isNumeric" = true AND
- "isText" = false AND
- "isUser" = false
- )
- OR (
- "isBoolean" = false AND
- "isDate" = false AND
- "isList" = false AND
- "isNumeric" = false AND
- "isText" = true AND
- "isUser" = false
- )
- OR (
- "isBoolean" = false AND
- "isDate" = false AND
- "isList" = false AND
- "isNumeric" = false AND
- "isText" = false AND
- "isUser" = true
- )
- )
-);
-
--- ALTER TABLE "attributeDataType" ENABLE ROW LEVEL SECURITY;
-
-CREATE TABLE "userAttribute" (
- "id" TEXT NOT NULL DEFAULT xid(),
- "name" TEXT NOT NULL,
- "sortOrder" INTEGER NOT NULL DEFAULT 1,
- "userAttributeCategoryId" TEXT NOT NULL,
- "attributeDataTypeId" INTEGER NOT NULL,
- "listOptions" TEXT ARRAY,
- "canSelfManage" BOOLEAN DEFAULT FALSE,
- "active" BOOLEAN DEFAULT TRUE,
- "createdAt" TIMESTAMP WITH TIME ZONE DEFAULT NOW() NOT NULL,
- "createdBy" TEXT NOT NULL,
- "updatedAt" TIMESTAMP WITH TIME ZONE,
- "updatedBy" TEXT,
-
- CONSTRAINT "userAttribute_pkey" PRIMARY KEY ("id"),
- CONSTRAINT "userAttribute_userAttributeCategoryId_fkey" FOREIGN KEY ("userAttributeCategoryId") REFERENCES "userAttributeCategory"("id") ON DELETE CASCADE ON UPDATE CASCADE,
- CONSTRAINT "userAttribute_attributeDataTypeId_fkey" FOREIGN KEY ("attributeDataTypeId") REFERENCES "attributeDataType"("id") ON DELETE CASCADE ON UPDATE CASCADE,
- CONSTRAINT "userAttribute_createdBy_fkey" FOREIGN KEY ("createdBy") REFERENCES "user"("id") ON UPDATE CASCADE,
- CONSTRAINT "userAttribute_updatedBy_fkey" FOREIGN KEY ("updatedBy") REFERENCES "user"("id") ON UPDATE CASCADE
-
-);
-
--- ALTER TABLE "userAttribute" ENABLE ROW LEVEL SECURITY;
-
-CREATE TABLE "userAttributeValue" (
- "id" TEXT NOT NULL DEFAULT xid(),
- "userAttributeId" TEXT NOT NULL,
- "userId" TEXT NOT NULL,
- "valueBoolean" BOOLEAN,
- "valueDate" DATE,
- "valueNumeric" NUMERIC,
- "valueText" TEXT,
- "valueUser" TEXT,
- "createdAt" TIMESTAMP WITH TIME ZONE DEFAULT now() NOT NULL,
- "createdBy" TEXT NOT NULL,
- "updatedAt" TIMESTAMP WITH TIME ZONE,
- "updatedBy" TEXT,
-
- CONSTRAINT "userAttributeValue_singleValue"
- CHECK (
- (
- "valueBoolean" IS NOT NULL AND
- "valueDate" IS NULL AND
- "valueNumeric" IS NULL AND
- "valueText" IS NULL AND
- "valueUser" IS NULL
- )
- OR (
- "valueBoolean" IS NULL AND
- "valueDate" IS NULL AND
- "valueNumeric" IS NULL AND
- "valueText" IS NOT NULL AND
- "valueUser" IS NULL
- )
- OR (
- "valueBoolean" IS NULL AND
- "valueDate" IS NOT NULL AND
- "valueNumeric" IS NULL AND
- "valueText" IS NULL AND
- "valueUser" IS NULL
- )
- OR (
- "valueBoolean" IS NULL AND
- "valueDate" IS NULL AND
- "valueNumeric" IS NOT NULL AND
- "valueText" IS NULL AND
- "valueUser" IS NULL
- )
- OR (
- "valueBoolean" IS NULL AND
- "valueDate" IS NULL AND
- "valueNumeric" IS NULL AND
- "valueText" IS NULL AND
- "valueUser" IS NOT NULL
- )
- ),
-
- CONSTRAINT "userAttributeValue_userAttributeId_fkey" FOREIGN KEY ("userAttributeId") REFERENCES "userAttribute"("id") ON DELETE CASCADE,
- CONSTRAINT "userAttributeValue_valueUser_fkey" FOREIGN KEY ("valueUser") REFERENCES "user"("id") ON DELETE CASCADE,
- CONSTRAINT "userAttributeValue_userId_fkey" FOREIGN KEY ("userId") REFERENCES "user"("id") ON DELETE CASCADE,
- CONSTRAINT "userAttributeValue_createdBy_fkey" FOREIGN KEY ("createdBy") REFERENCES "user"("id"),
- CONSTRAINT "userAttributeValue_updatedBy_fkey" FOREIGN KEY ("updatedBy") REFERENCES "user"("id"),
- CONSTRAINT uq_userAttributeId_userId
- UNIQUE ( "userAttributeId", "userId")
-);
-
-ALTER TABLE "userAttributeValue" ENABLE ROW LEVEL SECURITY;
-CREATE POLICY "Claims admin can view/modify user attribute values" ON "userAttributeValue" FOR ALL USING (is_claims_admin());
-CREATE POLICY "Users can insert attributes for themselves" ON "userAttributeValue" FOR UPDATE WITH CHECK (auth.uid() = "userId"::uuid);
-CREATE POLICY "Users can modify attributes for themselves" ON "userAttributeValue" FOR UPDATE WITH CHECK (auth.uid() = "userId"::uuid);
-CREATE POLICY "Users can view their own attribtues" ON "userAttributeValue" FOR SELECT USING (auth.uid() = "userId"::uuid);
-CREATE POLICY "Users can view other users attributes if the category is public" ON "userAttributeValue" FOR SELECT
- USING (
- auth.role() = 'authenticated' AND
- "userAttributeValue"."userAttributeId" IN (
- SELECT "id" FROM "userAttribute" WHERE "userAttributeCategoryId" IN (
- SELECT "id" FROM "userAttributeCategory" WHERE "public" = true
- )
- )
- );
-
--- CREATE TABLE employee_personal_data (
--- "id" TEXT NOT NULL DEFAULT xid(),
--- bank_account_number TEXT,
--- bank_routing_number TEXT,
--- drivers_license_number TEXT,
--- social_security TEXT,
--- user_id TEXT NOT NULL,
--- key_id uuid NOT NULL DEFAULT '7da3ce7e-98f0-4c4f-9b63-b3f783eab919'::uuid,
--- nonce BYTEA DEFAULT pgsodium.crypto_aead_det_noncegen(),
-
--- CONSTRAINT "employee_personal_data_user_id_fkey" FOREIGN KEY ("user_id") REFERENCES "user"("id") ON DELETE CASCADE
--- );
-
--- SECURITY LABEL FOR pgsodium
--- ON COLUMN employee_personal_data.bank_account
--- IS 'ENCRYPT WITH KEY COLUMN key_id ASSOCIATED (user_id) NONCE nonce';
-
--- SECURITY LABEL FOR pgsodium
--- ON COLUMN employee_personal_data.bank_routing
--- IS 'ENCRYPT WITH KEY COLUMN key_id ASSOCIATED (user_id) NONCE nonce';
-
--- SECURITY LABEL FOR pgsodium
--- ON COLUMN employee_personal_data.drivers_license
--- IS 'ENCRYPT WITH KEY COLUMN key_id ASSOCIATED (user_id) NONCE nonce';
-
--- SECURITY LABEL FOR pgsodium
--- ON COLUMN employee_personal_data.social_security
--- IS 'ENCRYPT WITH KEY COLUMN key_id ASSOCIATED (user_id) NONCE nonce';
-
--- ALTER TABLE "employee_personal_data" ENABLE ROW LEVEL SECURITY;
-```
-
-
-
-## `suppliers-and-customers`
-
-```sql
-CREATE TABLE "country" (
- "id" SERIAL PRIMARY KEY,
- "name" TEXT NOT NULL,
- "code" TEXT NOT NULL
-);
-
-CREATE TABLE "contact" (
- "id" TEXT NOT NULL DEFAULT xid(),
- "firstName" TEXT NOT NULL,
- "lastName" TEXT NOT NULL,
- "fullName" TEXT GENERATED ALWAYS AS ("firstName" || ' ' || "lastName") STORED,
- "email" TEXT NOT NULL,
- "title" TEXT,
- "mobilePhone" TEXT,
- "homePhone" TEXT,
- "workPhone" TEXT,
- "fax" TEXT,
- "addressLine1" TEXT,
- "addressLine2" TEXT,
- "city" TEXT,
- "state" TEXT,
- "postalCode" TEXT,
- "countryCode" INTEGER,
- "birthday" DATE,
- "notes" TEXT,
-
- CONSTRAINT "contact_pkey" PRIMARY KEY ("id"),
- CONSTRAINT "contact_countryCode_fkey" FOREIGN KEY ("countryCode") REFERENCES "country"("id") ON DELETE SET NULL ON UPDATE CASCADE
-);
-
-
-CREATE TABLE "address" (
- "id" TEXT NOT NULL DEFAULT xid(),
- "addressLine1" TEXT,
- "addressLine2" TEXT,
- "city" TEXT,
- "state" TEXT,
- "postalCode" TEXT,
- "countryCode" INTEGER,
- "phone" TEXT,
- "fax" TEXT,
-
- CONSTRAINT "address_pkey" PRIMARY KEY ("id"),
- CONSTRAINT "address_countryCode_fkey" FOREIGN KEY ("countryCode") REFERENCES "country"("id") ON DELETE SET NULL ON UPDATE CASCADE
-);
-
-CREATE TABLE "supplierStatus" (
- "id" TEXT NOT NULL DEFAULT xid(),
- "name" TEXT NOT NULL,
- "createdAt" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW(),
- "updatedAt" TIMESTAMP WITH TIME ZONE,
-
- CONSTRAINT "supplierStatus_pkey" PRIMARY KEY ("id"),
- CONSTRAINT "supplierStatus_name_unique" UNIQUE ("name")
-);
-
-CREATE TABLE "supplierType" (
- "id" TEXT NOT NULL DEFAULT uuid_generate_v4(),
- "name" TEXT NOT NULL,
- "color" TEXT DEFAULT '#000000',
- "protected" BOOLEAN NOT NULL DEFAULT false,
- "createdAt" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW(),
- "createdBy" TEXT NOT NULL,
- "updatedBy" TEXT,
- "updatedAt" TIMESTAMP WITH TIME ZONE,
-
- CONSTRAINT "supplierType_pkey" PRIMARY KEY ("id"),
- CONSTRAINT "supplierType_name_unique" UNIQUE ("name"),
- CONSTRAINT "supplierType_colorCheck" CHECK ("color" is null or "color" ~* '^#[a-f0-9]{6}$'),
- CONSTRAINT "supplierType_createdBy_fkey" FOREIGN KEY ("createdBy") REFERENCES "user"("id") ON UPDATE CASCADE ON DELETE RESTRICT,
- CONSTRAINT "supplierType_updatedBy_fkey" FOREIGN KEY ("updatedBy") REFERENCES "user"("id") ON UPDATE CASCADE ON DELETE SET NULL
-);
-
-CREATE TABLE "supplier" (
- "id" TEXT NOT NULL DEFAULT uuid_generate_v4(),
- "name" TEXT NOT NULL,
- "supplierTypeId" TEXT,
- "supplierStatusId" TEXT,
- "taxId" TEXT,
- "accountManagerId" TEXT,
- "logo" TEXT,
- "createdAt" TIMESTAMP WITH TIME ZONE DEFAULT NOW() NOT NULL,
- "createdBy" TEXT,
- "updatedAt" TIMESTAMP WITH TIME ZONE,
- "updatedBy" TEXT,
-
- CONSTRAINT "supplier_pkey" PRIMARY KEY ("id"),
- CONSTRAINT "supplier_supplierTypeId_fkey" FOREIGN KEY ("supplierTypeId") REFERENCES "supplierType"("id") ON UPDATE CASCADE ON DELETE SET NULL,
- CONSTRAINT "supplier_supplierStatusId_fkey" FOREIGN KEY ("supplierStatusId") REFERENCES "supplierStatus"("id") ON UPDATE CASCADE ON DELETE SET NULL,
- CONSTRAINT "supplier_accountManagerId_fkey" FOREIGN KEY ("accountManagerId") REFERENCES "user"("id") ON UPDATE CASCADE ON DELETE SET NULL,
- CONSTRAINT "supplier_createdBy_fkey" FOREIGN KEY ("createdBy") REFERENCES "user"("id") ON UPDATE CASCADE,
- CONSTRAINT "supplier_updatedBy_fkey" FOREIGN KEY ("updatedBy") REFERENCES "user"("id") ON UPDATE CASCADE,
- CONSTRAINT "supplier_name_unique" UNIQUE ("name")
-);
-
-ALTER publication supabase_realtime ADD TABLE "supplier";
-
-CREATE TABLE "supplierLocation" (
- "id" TEXT NOT NULL DEFAULT xid(),
- "supplierId" TEXT NOT NULL,
- "addressId" TEXT NOT NULL,
-
- CONSTRAINT "supplierLocation_pkey" PRIMARY KEY ("id"),
- CONSTRAINT "supplierLocation_supplierId_fkey" FOREIGN KEY ("supplierId") REFERENCES "supplier"("id") ON UPDATE CASCADE ON DELETE CASCADE,
- CONSTRAINT "supplierLocation_addressId_fkey" FOREIGN KEY ("addressId") REFERENCES "address"("id") ON UPDATE CASCADE ON DELETE CASCADE
-);
-
-CREATE TABLE "supplierContact" (
- "id" TEXT NOT NULL DEFAULT xid(),
- "supplierId" TEXT NOT NULL,
- "contactId" TEXT NOT NULL,
- "supplierLocationId" TEXT,
- "userId" TEXT,
-
- CONSTRAINT "supplierContact_pkey" PRIMARY KEY ("id"),
- CONSTRAINT "supplierContact_supplierId_fkey" FOREIGN KEY ("supplierId") REFERENCES "supplier"("id") ON UPDATE CASCADE ON DELETE CASCADE,
- CONSTRAINT "supplierContact_contactId_fkey" FOREIGN KEY ("contactId") REFERENCES "contact"("id") ON UPDATE CASCADE ON DELETE CASCADE,
- CONSTRAINT "supplierContact_supplierLocationId_fkey" FOREIGN KEY ("supplierLocationId") REFERENCES "supplierLocation"("id") ON UPDATE CASCADE ON DELETE SET NULL,
- CONSTRAINT "supplierContact_userId_fkey" FOREIGN KEY ("userId") REFERENCES "user"("id") ON UPDATE CASCADE ON DELETE SET NULL
-);
-
-CREATE INDEX "supplierContact_supplierId_index" ON "supplierContact"("supplierId");
-
-CREATE TABLE "supplierAccount" (
- "id" TEXT NOT NULL,
- "supplierId" TEXT NOT NULL,
-
- CONSTRAINT "supplierAccount_pkey" PRIMARY KEY ("id"),
- CONSTRAINT "supplierAccount_supplierId_fkey" FOREIGN KEY ("supplierId") REFERENCES "supplier"("id") ON DELETE CASCADE ON UPDATE CASCADE,
- CONSTRAINT "supplierAccount_id_fkey" FOREIGN KEY ("id") REFERENCES "user"("id") ON DELETE CASCADE ON UPDATE CASCADE
-);
-
-CREATE INDEX "supplierAccount_supplierId_index" ON "supplierAccount"("supplierId");
-
-CREATE TABLE "customerStatus" (
- "id" TEXT NOT NULL DEFAULT xid(),
- "name" TEXT NOT NULL,
- "createdAt" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW(),
- "updatedAt" TIMESTAMP WITH TIME ZONE,
-
- CONSTRAINT "customerStatus_pkey" PRIMARY KEY ("id"),
- CONSTRAINT "customerStatus_name_unique" UNIQUE ("name")
-);
-
-CREATE TABLE "customerType" (
- "id" TEXT NOT NULL DEFAULT uuid_generate_v4(),
- "name" TEXT NOT NULL,
- "color" TEXT DEFAULT '#000000',
- "protected" BOOLEAN NOT NULL DEFAULT false,
- "createdAt" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW(),
- "createdBy" TEXT NOT NULL,
- "updatedBy" TEXT,
- "updatedAt" TIMESTAMP WITH TIME ZONE,
-
- CONSTRAINT "customerType_pkey" PRIMARY KEY ("id"),
- CONSTRAINT "customerType_name_unique" UNIQUE ("name"),
- CONSTRAINT "customerType_colorCheck" CHECK ("color" is null or "color" ~* '^#[a-f0-9]{6}$'),
- CONSTRAINT "customerType_createdBy_fkey" FOREIGN KEY ("createdBy") REFERENCES "user"("id") ON UPDATE CASCADE ON DELETE RESTRICT,
- CONSTRAINT "customerType_updatedBy_fkey" FOREIGN KEY ("updatedBy") REFERENCES "user"("id") ON UPDATE CASCADE ON DELETE SET NULL
-);
-
-CREATE TABLE "customer" (
- "id" TEXT NOT NULL DEFAULT uuid_generate_v4(),
- "name" TEXT NOT NULL,
- "customerTypeId" TEXT,
- "customerStatusId" TEXT,
- "taxId" TEXT,
- "accountManagerId" TEXT,
- "logo" TEXT,
- "createdAt" TIMESTAMP WITH TIME ZONE DEFAULT NOW() NOT NULL,
- "createdBy" TEXT,
- "updatedAt" TIMESTAMP WITH TIME ZONE,
- "updatedBy" TEXT,
-
- CONSTRAINT "customer_pkey" PRIMARY KEY ("id"),
- CONSTRAINT "customer_customerTypeId_fkey" FOREIGN KEY ("customerTypeId") REFERENCES "customerType"("id") ON UPDATE CASCADE ON DELETE SET NULL,
- CONSTRAINT "customer_customerStatusId_fkey" FOREIGN KEY ("customerStatusId") REFERENCES "customerStatus"("id") ON UPDATE CASCADE ON DELETE SET NULL,
- CONSTRAINT "customer_accountManagerId_fkey" FOREIGN KEY ("accountManagerId") REFERENCES "user"("id") ON UPDATE CASCADE ON DELETE SET NULL,
- CONSTRAINT "customer_createdBy_fkey" FOREIGN KEY ("createdBy") REFERENCES "user"("id") ON UPDATE CASCADE ON DELETE SET NULL,
- CONSTRAINT "customer_updatedBy_fkey" FOREIGN KEY ("updatedBy") REFERENCES "user"("id") ON UPDATE CASCADE ON DELETE SET NULL,
- CONSTRAINT "customer_name_unique" UNIQUE ("name")
-);
-
-ALTER publication supabase_realtime ADD TABLE "customer";
-
-CREATE TABLE "customerLocation" (
- "id" TEXT NOT NULL DEFAULT xid(),
- "customerId" TEXT NOT NULL,
- "addressId" TEXT NOT NULL,
-
- CONSTRAINT "customerLocation_pkey" PRIMARY KEY ("id"),
- CONSTRAINT "customerLocation_customerId_fkey" FOREIGN KEY ("customerId") REFERENCES "customer"("id") ON UPDATE CASCADE ON DELETE CASCADE,
- CONSTRAINT "customerLocation_addressId_fkey" FOREIGN KEY ("addressId") REFERENCES "address"("id") ON UPDATE CASCADE ON DELETE CASCADE
-);
-
-CREATE TABLE "customerContact" (
- "id" TEXT NOT NULL DEFAULT xid(),
- "customerId" TEXT NOT NULL,
- "contactId" TEXT NOT NULL,
- "customerLocationId" TEXT,
- "userId" TEXT,
-
- CONSTRAINT "customerContact_pkey" PRIMARY KEY ("id"),
- CONSTRAINT "customerContact_customerId_fkey" FOREIGN KEY ("customerId") REFERENCES "customer"("id") ON UPDATE CASCADE ON DELETE CASCADE,
- CONSTRAINT "customerContact_contactId_fkey" FOREIGN KEY ("contactId") REFERENCES "contact"("id") ON UPDATE CASCADE ON DELETE CASCADE,
- CONSTRAINT "customerContact_customerLocationId_fkey" FOREIGN KEY ("customerLocationId") REFERENCES "customerLocation"("id") ON UPDATE CASCADE ON DELETE SET NULL,
- CONSTRAINT "customerContact_userId_fkey" FOREIGN KEY ("userId") REFERENCES "user"("id") ON UPDATE CASCADE ON DELETE SET NULL
-);
-
-CREATE INDEX "customerContact_customerId_index" ON "customerContact"("customerId");
-
-CREATE TABLE "customerAccount" (
- "id" TEXT NOT NULL,
- "customerId" TEXT NOT NULL,
-
- CONSTRAINT "customerAccount_pkey" PRIMARY KEY ("id"),
- CONSTRAINT "customerAccount_customerId_fkey" FOREIGN KEY ("customerId") REFERENCES "customer"("id") ON DELETE CASCADE ON UPDATE CASCADE,
- CONSTRAINT "customerAccount_id_fkey" FOREIGN KEY ("id") REFERENCES "user"("id") ON DELETE CASCADE ON UPDATE CASCADE
-);
-
-CREATE INDEX "customerAccount_customerId_index" ON "customerAccount"("customerId");
-
-
-
-```
-
-
-
-## `groups`
-
-```sql
-CREATE TABLE "group" (
- "id" TEXT NOT NULL DEFAULT uuid_generate_v4(),
- "name" TEXT NOT NULL,
- "isIdentityGroup" BOOLEAN NOT NULL DEFAULT false,
- "isEmployeeTypeGroup" BOOLEAN NOT NULL DEFAULT false,
- "isCustomerOrgGroup" BOOLEAN NOT NULL DEFAULT false,
- "isCustomerTypeGroup" BOOLEAN NOT NULL DEFAULT false,
- "isSupplierTypeGroup" BOOLEAN NOT NULL DEFAULT false,
- "isSupplierOrgGroup" BOOLEAN NOT NULL DEFAULT false,
- "createdAt" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW(),
- "updatedAt" TIMESTAMP WITH TIME ZONE,
-
- CONSTRAINT "group_pkey" PRIMARY KEY ("id")
-);
-
-CREATE TABLE "membership" (
- "id" SERIAL NOT NULL,
- "groupId" TEXT NOT NULL,
- "memberGroupId" TEXT,
- "memberUserId" TEXT,
-
- CONSTRAINT "membership_pkey" PRIMARY KEY ("id"),
- CONSTRAINT "membership_groupId_fkey" FOREIGN KEY ("groupId") REFERENCES "group"("id") ON DELETE CASCADE ON UPDATE CASCADE,
- CONSTRAINT "membership_memberGroupId_fkey" FOREIGN KEY ("memberGroupId") REFERENCES "group"("id") ON DELETE CASCADE ON UPDATE CASCADE,
- CONSTRAINT "membership_memberUserId_fkey" FOREIGN KEY ("memberUserId") REFERENCES "user"("id") ON DELETE CASCADE ON UPDATE CASCADE,
-
- CONSTRAINT uq_membership
- UNIQUE ( "groupId", "memberGroupId", "memberUserId" ),
-
- CONSTRAINT membership_hasPersonOrGroup
- CHECK (
- ("memberGroupId" IS NULL AND "memberUserId" IS NOT NULL)
- OR
- ("memberGroupId" IS NOT NULL AND "memberUserId" IS NULL)
- )
-);
-
-CREATE INDEX index_membership_groupId ON "membership" ("groupId");
-CREATE INDEX index_membership_memberGroupId ON "membership" ("memberGroupId");
-CREATE INDEX index_membership_memberUserId ON "membership" ("memberUserId");
-
-CREATE FUNCTION public.create_employee_type_group()
-RETURNS TRIGGER AS $$
-BEGIN
- INSERT INTO public."group" ("id", "name", "isEmployeeTypeGroup")
- VALUES (new.id, new.name, TRUE);
-
- INSERT INTO public."membership"("groupId", "memberGroupId")
- VALUES ('00000000-0000-0000-0000-000000000000', new.id);
- RETURN new;
-END;
-$$ LANGUAGE plpgsql SECURITY DEFINER;
-
-CREATE FUNCTION public.update_employee_type_group()
-RETURNS TRIGGER AS $$
-BEGIN
- UPDATE public."group" SET "name" = new.name
- WHERE "id" = new.id AND "isEmployeeTypeGroup" = TRUE;
- RETURN new;
-END;
-$$ LANGUAGE plpgsql SECURITY DEFINER;
-
-CREATE FUNCTION public.create_user_identity_group()
-RETURNS TRIGGER AS $$
-BEGIN
- INSERT INTO public."group" ("id", "name", "isIdentityGroup")
- VALUES (new.id, new."fullName", TRUE);
-
- INSERT INTO public."membership"("groupId", "memberUserId")
- VALUES (new.id, new.id);
- RETURN new;
-END;
-$$ LANGUAGE plpgsql SECURITY DEFINER;
-
-CREATE FUNCTION public.update_user_identity_group()
-RETURNS TRIGGER AS $$
-BEGIN
- update public."group" set "name" = new."fullName"
- where "id" = new.id and "isIdentityGroup" = TRUE;
-
- RETURN new;
-END;
-$$ LANGUAGE plpgsql SECURITY DEFINER;
-
-
-CREATE FUNCTION public.add_employee_to_employee_type_group()
-RETURNS TRIGGER AS $$
-BEGIN
- INSERT INTO public."membership" ("groupId", "memberUserId")
- VALUES (new."employeeTypeId", new.id);
-
- RETURN new;
-END;
-$$ LANGUAGE plpgsql SECURITY DEFINER;
-
-CREATE FUNCTION public.update_employee_to_employee_type_group()
-RETURNS TRIGGER AS $$
-BEGIN
- UPDATE public."membership" SET "groupId" = new."employeeTypeId"
- WHERE "groupId" = old."employeeTypeId" AND "memberUserId" = new.id;
-
- RETURN new;
-END;
-$$ LANGUAGE plpgsql SECURITY DEFINER;
-
-CREATE TRIGGER create_employee_type_group
- AFTER INSERT on public."employeeType"
- FOR EACH ROW EXECUTE PROCEDURE public.create_employee_type_group();
-
-CREATE TRIGGER create_user_identity_group
- AFTER INSERT on public.user
- FOR EACH ROW EXECUTE PROCEDURE public.create_user_identity_group();
-
-CREATE TRIGGER add_employee_to_employee_type_group
- AFTER INSERT on public.employee
- FOR EACH ROW EXECUTE PROCEDURE public.add_employee_to_employee_type_group();
-
-CREATE TRIGGER update_user_identity_group
- AFTER UPDATE on public.user
- FOR EACH ROW EXECUTE PROCEDURE public.update_user_identity_group();
-
-CREATE TRIGGER update_employee_to_employee_type_group
- AFTER UPDATE on public.employee
- FOR EACH ROW EXECUTE PROCEDURE public.update_employee_to_employee_type_group();
-
-CREATE TRIGGER update_employee_type_group
- AFTER UPDATE on public."employeeType"
- FOR EACH ROW EXECUTE PROCEDURE public.update_employee_type_group();
-
-CREATE OR REPLACE VIEW "groupMembers" AS
- SELECT
- gm.id,
- g.name,
- g."isIdentityGroup",
- g."isEmployeeTypeGroup",
- g."isCustomerOrgGroup",
- g."isCustomerTypeGroup",
- g."isSupplierOrgGroup",
- g."isSupplierTypeGroup",
- gm."groupId",
- gm."memberGroupId",
- gm."memberUserId",
- to_jsonb(u) as user
- FROM
- "membership" gm
- INNER JOIN "group" g ON g.id = gm."groupId"
- LEFT OUTER JOIN (
- SELECT * FROM "user" WHERE active = TRUE
- ) u ON u.id = gm."memberUserId";
-
-
-CREATE RECURSIVE VIEW groups_recursive
-(
- "groupId",
- "name",
- "parentId",
- "isIdentityGroup",
- "isEmployeeTypeGroup",
- "isCustomerOrgGroup",
- "isCustomerTypeGroup",
- "isSupplierOrgGroup",
- "isSupplierTypeGroup",
- "user"
-) AS
- SELECT
- "groupId",
- "name",
- NULL AS "parentId",
- "isIdentityGroup",
- "isEmployeeTypeGroup",
- "isCustomerOrgGroup",
- "isCustomerTypeGroup",
- "isSupplierOrgGroup",
- "isSupplierTypeGroup",
- "user"
- FROM "groupMembers"
- UNION ALL
- SELECT
- g2."groupId",
- g2.name,
- g1."groupId" AS "parentId",
- g1."isIdentityGroup",
- g2."isEmployeeTypeGroup",
- g2."isCustomerOrgGroup",
- g2."isCustomerTypeGroup",
- g2."isSupplierOrgGroup",
- g2."isSupplierTypeGroup",
- g2."user"
- FROM "groupMembers" g1
- INNER JOIN "groupMembers" g2 ON g1."memberGroupId" = g2."groupId";
-
-CREATE OR REPLACE VIEW "groups" AS
- SELECT
- "groupId" as "id",
- "isEmployeeTypeGroup",
- "isCustomerOrgGroup",
- "isCustomerTypeGroup",
- "isSupplierOrgGroup",
- "isSupplierTypeGroup",
- "name",
- "parentId",
- coalesce(jsonb_agg("user") filter (where "user" is not null), '[]') as users
- FROM groups_recursive
- WHERE "isIdentityGroup" = false
- GROUP BY
- "groupId",
- "name",
- "parentId",
- "isEmployeeTypeGroup",
- "isCustomerOrgGroup",
- "isCustomerTypeGroup",
- "isSupplierOrgGroup",
- "isSupplierTypeGroup"
- ORDER BY "isEmployeeTypeGroup" DESC, "isCustomerTypeGroup" DESC, "isSupplierTypeGroup" DESC, "name" ASC;
-
-
-CREATE OR REPLACE FUNCTION groups_query(
- _name TEXT DEFAULT '',
- _uid TEXT DEFAULT NULL
-)
-RETURNS TABLE (
- "id" TEXT,
- "name" TEXT,
- "parentId" TEXT,
- "isEmployeeTypeGroup" BOOLEAN,
- "isCustomerOrgGroup" BOOLEAN,
- "isCustomerTypeGroup" BOOLEAN,
- "isSupplierOrgGroup" BOOLEAN,
- "isSupplierTypeGroup" BOOLEAN,
- "users" JSONB
-) LANGUAGE "plpgsql" SECURITY INVOKER SET search_path = public
-AS $$
- BEGIN
- RETURN QUERY
- WITH group_ids AS (
- SELECT g."id"
- FROM "group" g
- WHERE g."isIdentityGroup" = false
- AND g."name" ILIKE '%' || _name || '%'
- )
- SELECT
- g."id",
- g."name",
- g."parentId",
- g."isEmployeeTypeGroup",
- g."isCustomerOrgGroup",
- g."isCustomerTypeGroup",
- g."isSupplierOrgGroup",
- g."isSupplierTypeGroup",
- g."users"
- FROM groups g
- WHERE g."id" IN (SELECT * FROM group_ids)
- OR g."parentId" IN (SELECT * FROM group_ids);
- END;
-$$;
-
-CREATE OR REPLACE FUNCTION groups_for_user(uid text) RETURNS TEXT[]
- LANGUAGE "plpgsql" SECURITY DEFINER SET search_path = public
- AS $$
- DECLARE retval TEXT[];
- BEGIN
- WITH RECURSIVE "groupsForUser" AS (
- SELECT "groupId", "memberGroupId", "memberUserId" FROM "membership"
- WHERE "memberUserId" = uid::text
- UNION
- SELECT g1."groupId", g1."memberGroupId", g1."memberUserId" FROM "membership" g1
- INNER JOIN "groupsForUser" g2 ON g2."groupId" = g1."memberGroupId"
- ) SELECT array_agg("groupId") INTO retval AS groups FROM "groupsForUser";
- RETURN retval;
- END;
-$$;
-
-CREATE OR REPLACE FUNCTION users_for_groups(groups text[]) RETURNS "jsonb"
- LANGUAGE "plpgsql" SECURITY DEFINER SET search_path = public
- AS $$
- DECLARE retval jsonb;
- BEGIN
- WITH RECURSIVE "usersForGroups" AS (
- SELECT "groupId", "memberGroupId", "memberUserId" FROM "membership"
- WHERE "groupId" = ANY(groups)
- UNION
- SELECT g1."groupId", g1."memberGroupId", g1."memberUserId" FROM "membership" g1
- INNER JOIN "usersForGroups" g2 ON g2."memberGroupId" = g1."groupId"
- ) SELECT coalesce(jsonb_agg("memberUserId"), '[]') AS groups INTO retval FROM "usersForGroups" WHERE "memberUserId" IS NOT NULL;
- RETURN retval;
- END;
-$$;
-
-CREATE FUNCTION public.create_customer_type_group()
-RETURNS TRIGGER AS $$
-BEGIN
- INSERT INTO public."group" ("id", "name", "isCustomerTypeGroup")
- VALUES (new.id, new.name, TRUE);
-
- INSERT INTO public."membership"("groupId", "memberGroupId")
- VALUES ('11111111-1111-1111-1111-111111111111', new.id);
- RETURN new;
-END;
-$$ LANGUAGE plpgsql SECURITY DEFINER;
-
-CREATE FUNCTION public.create_supplier_type_group()
-RETURNS TRIGGER AS $$
-BEGIN
- INSERT INTO public."group" ("id", "name", "isSupplierTypeGroup")
- VALUES (new.id, new.name, TRUE);
-
- INSERT INTO public."membership"("groupId", "memberGroupId")
- VALUES ('22222222-2222-2222-2222-222222222222', new.id);
-
- RETURN new;
-END;
-$$ LANGUAGE plpgsql SECURITY DEFINER;
-
-CREATE FUNCTION public.create_customer_org_group()
-RETURNS TRIGGER AS $$
-BEGIN
- INSERT INTO public."group" ("id", "name", "isCustomerOrgGroup")
- VALUES (new.id, new.name, TRUE);
-
- IF new."customerTypeId" IS NOT NULL THEN
- INSERT INTO public."membership"("groupId", "memberGroupId")
- VALUES (new."customerTypeId", new.id);
- END IF;
-
- RETURN new;
-END;
-$$ LANGUAGE plpgsql SECURITY DEFINER;
-
-CREATE FUNCTION public.create_supplier_org_group()
-RETURNS TRIGGER AS $$
-BEGIN
- INSERT INTO public."group" ("id", "name", "isSupplierOrgGroup")
- VALUES (new.id, new.name, TRUE);
-
- IF new."supplierTypeId" IS NOT NULL THEN
- INSERT INTO public."membership"("groupId", "memberGroupId")
- VALUES (new."supplierTypeId", new.id);
- END IF;
-
- RETURN new;
-END;
-$$ LANGUAGE plpgsql SECURITY DEFINER;
-
-CREATE FUNCTION public.add_customer_account_to_customer_group()
-RETURNS TRIGGER AS $$
-BEGIN
- INSERT INTO public."membership" ("groupId", "memberUserId")
- VALUES (new."customerId", new.id);
- RETURN new;
-END;
-$$ LANGUAGE plpgsql SECURITY DEFINER;
-
-CREATE FUNCTION public.add_supplier_account_to_supplier_group()
-RETURNS TRIGGER AS $$
-BEGIN
- INSERT INTO public."membership" ("groupId", "memberUserId")
- VALUES (new."supplierId", new.id);
- RETURN new;
-END;
-$$ LANGUAGE plpgsql SECURITY DEFINER;
-
-CREATE FUNCTION public.update_customer_type_group()
-RETURNS TRIGGER AS $$
-BEGIN
- UPDATE public."group" SET "name" = new.name
- WHERE "id" = new.id AND "isCustomerTypeGroup" = TRUE;
- RETURN new;
-END;
-$$ LANGUAGE plpgsql SECURITY DEFINER;
-
-CREATE FUNCTION public.update_supplier_type_group()
-RETURNS TRIGGER AS $$
-BEGIN
- UPDATE public."group" SET "name" = new.name
- WHERE "id" = new.id AND "isSupplierTypeGroup" = TRUE;
- RETURN new;
-END;
-$$ LANGUAGE plpgsql SECURITY DEFINER;
-
-CREATE FUNCTION public.update_customer_to_customer_type_group()
-RETURNS TRIGGER AS $$
-BEGIN
- IF old."customerTypeId" IS NOT NULL THEN
- IF new."customerTypeId" IS NOT NULL THEN
- UPDATE public."membership" SET "groupId" = new."customerTypeId"
- WHERE "groupId" = old."customerTypeId" AND "memberGroupId" = new.id;
- ELSE
- DELETE FROM public."membership" WHERE "groupId" = old."customerTypeId" AND "memberGroupId" = new.id;
- END IF;
- ELSE
- IF new."customerTypeId" IS NOT NULL THEN
- INSERT INTO public."membership" ("groupId", "memberGroupId")
- VALUES (new."customerTypeId", new.id);
- END IF;
- END IF;
-
- UPDATE public."group" SET "name" = new.name
- WHERE "id" = new.id AND "isCustomerOrgGroup" = TRUE;
- RETURN new;
-
- RETURN new;
-END;
-$$ LANGUAGE plpgsql SECURITY DEFINER;
-
-CREATE FUNCTION public.update_supplier_to_supplier_type_group()
-RETURNS TRIGGER AS $$
-BEGIN
- IF old."supplierTypeId" IS NOT NULL THEN
- IF new."supplierTypeId" IS NOT NULL THEN
- UPDATE public."membership" SET "groupId" = new."supplierTypeId"
- WHERE "groupId" = old."supplierTypeId" AND "memberGroupId" = new.id;
- ELSE
- DELETE FROM public."membership" WHERE "groupId" = old."supplierTypeId" AND "memberGroupId" = new.id;
- END IF;
- ELSE
- IF new."supplierTypeId" IS NOT NULL THEN
- INSERT INTO public."membership" ("groupId", "memberGroupId")
- VALUES (new."supplierTypeId", new.id);
- END IF;
- END IF;
-
- UPDATE public."group" SET "name" = new.name
- WHERE "id" = new.id AND "isSupplierOrgGroup" = TRUE;
-
- RETURN new;
-END;
-$$ LANGUAGE plpgsql SECURITY DEFINER;
-
-CREATE TRIGGER create_customer_type_group
- AFTER INSERT on public."customerType"
- FOR EACH ROW EXECUTE PROCEDURE public.create_customer_type_group();
-
-CREATE TRIGGER create_supplier_type_group
- AFTER INSERT on public."supplierType"
- FOR EACH ROW EXECUTE PROCEDURE public.create_supplier_type_group();
-
-CREATE TRIGGER create_customer_org_group
- AFTER INSERT on public.customer
- FOR EACH ROW EXECUTE PROCEDURE public.create_customer_org_group();
-
-CREATE TRIGGER create_supplier_org_group
- AFTER INSERT on public.supplier
- FOR EACH ROW EXECUTE PROCEDURE public.create_supplier_org_group();
-
-CREATE TRIGGER create_customer_account_group
- AFTER INSERT on public."customerAccount"
- FOR EACH ROW EXECUTE PROCEDURE public.add_customer_account_to_customer_group();
-
-CREATE TRIGGER create_supplier_account_group
- AFTER INSERT on public."supplierAccount"
- FOR EACH ROW EXECUTE PROCEDURE public.add_supplier_account_to_supplier_group();
-
-CREATE TRIGGER create_customer_group
- AFTER UPDATE on public.customer
- FOR EACH ROW EXECUTE PROCEDURE public.update_customer_to_customer_type_group();
-
-CREATE TRIGGER create_supplier_group
- AFTER UPDATE on public.supplier
- FOR EACH ROW EXECUTE PROCEDURE public.update_supplier_to_supplier_type_group();
-
-CREATE TRIGGER update_customer_type_group
- AFTER UPDATE on public."customerType"
- FOR EACH ROW EXECUTE PROCEDURE public.update_customer_type_group();
-
-CREATE TRIGGER update_supplier_type_group
- AFTER UPDATE on public."supplierType"
- FOR EACH ROW EXECUTE PROCEDURE public.update_supplier_type_group();
-
-NOTIFY pgrst, 'reload schema';
-
-
-```
-
-
-
-## `search`
-
-```sql
-
-CREATE TYPE "searchEntity" AS enum ('Resource', 'Person', 'Customer', 'Supplier', 'Job', 'Part', 'Purchase Order', 'Sales Order', 'Document');
-
-CREATE TABLE search (
- id BIGINT PRIMARY KEY GENERATED BY DEFAULT AS IDENTITY,
- name TEXT NOT NULL,
- description TEXT DEFAULT '',
- entity "searchEntity",
- uuid TEXT,
- link TEXT NOT NULL
-);
-
-ALTER TABLE
- public.search
-ADD COLUMN
- fts tsvector GENERATED always as (to_tsvector('english', name || ' ' || description)) STORED;
-
-CREATE INDEX index_search_uuid ON public.search (uuid);
-CREATE INDEX index_search_fts ON public.search USING GIN (fts);
-
-CREATE FUNCTION public.create_employee_search_result()
-RETURNS TRIGGER AS $$
-DECLARE
- employee TEXT;
-BEGIN
- employee := (SELECT u."fullName" FROM public.user u WHERE u.id = new.id);
- INSERT INTO public.search(name, entity, uuid, link)
- VALUES (employee, 'Person', new.id, '/x/person/' || new.id);
- RETURN new;
-END;
-$$ LANGUAGE plpgsql SECURITY DEFINER;
-
-CREATE TRIGGER create_employee_search_result
- AFTER INSERT on public.user
- FOR EACH ROW EXECUTE PROCEDURE public.create_employee_search_result();
-
-CREATE FUNCTION public.update_employee_search_result()
-RETURNS TRIGGER AS $$
-BEGIN
- IF (new.active = false) THEN
- DELETE FROM public.search
- WHERE entity = 'Person' AND uuid = new.id;
- RETURN new;
- END IF;
- IF (old."fullName" <> new."fullName") THEN
- UPDATE public.search SET name = new."fullName"
- WHERE entity = 'Person' AND uuid = new.id;
- END IF;
- RETURN new;
-END;
-$$ LANGUAGE plpgsql SECURITY DEFINER;
-
-CREATE TRIGGER update_employee_search_result
- AFTER UPDATE on public.user
- FOR EACH ROW EXECUTE PROCEDURE public.update_employee_search_result();
-
-CREATE FUNCTION public.create_customer_search_result()
-RETURNS TRIGGER AS $$
-BEGIN
- INSERT INTO public.search(name, entity, uuid, link)
- VALUES (new.name, 'Customer', new.id, '/x/customer/' || new.id);
- RETURN new;
-END;
-$$ LANGUAGE plpgsql SECURITY DEFINER;
-
-CREATE TRIGGER create_customer_search_result
- AFTER INSERT on public.customer
- FOR EACH ROW EXECUTE PROCEDURE public.create_customer_search_result();
-
-CREATE FUNCTION public.update_customer_search_result()
-RETURNS TRIGGER AS $$
-BEGIN
- IF (old.name <> new.name) THEN
- UPDATE public.search SET name = new.name
- WHERE entity = 'Customer' AND uuid = new.id;
- END IF;
- RETURN new;
-END;
-$$ LANGUAGE plpgsql SECURITY DEFINER;
-
-CREATE TRIGGER update_customer_search_result
- AFTER UPDATE on public.customer
- FOR EACH ROW EXECUTE PROCEDURE public.update_customer_search_result();
-
-CREATE FUNCTION public.create_supplier_search_result()
-RETURNS TRIGGER AS $$
-BEGIN
- INSERT INTO public.search(name, entity, uuid, link)
- VALUES (new.name, 'Supplier', new.id, '/x/supplier/' || new.id);
- RETURN new;
-END;
-$$ LANGUAGE plpgsql SECURITY DEFINER;
-
-CREATE TRIGGER create_supplier_search_result
- AFTER INSERT on public.supplier
- FOR EACH ROW EXECUTE PROCEDURE public.create_supplier_search_result();
-
-CREATE FUNCTION public.update_supplier_search_result()
-RETURNS TRIGGER AS $$
-BEGIN
- IF (old.name <> new.name) THEN
- UPDATE public.search SET name = new.name
- WHERE entity = 'Supplier' AND uuid = new.id;
- END IF;
- RETURN new;
-END;
-$$ LANGUAGE plpgsql SECURITY DEFINER;
-
-CREATE TRIGGER update_supplier_search_result
- AFTER UPDATE on public.supplier
- FOR EACH ROW EXECUTE PROCEDURE public.update_supplier_search_result();
-
-ALTER TABLE "search" ENABLE ROW LEVEL SECURITY;
-
-CREATE POLICY "Employees with sales_view can search for customers and sales orders" ON "search"
- FOR SELECT
- USING (coalesce(get_my_claim('sales_view')::boolean, false) = true AND entity IN ('Customer', 'Sales Order') AND (get_my_claim('role'::text)) = '"employee"'::jsonb);
-
--- TODO: customers should be able to search for their own sales orders
--- CREATE POLICY "Customers with sales_view can search for their own sales orders" ON "search"
--- FOR SELECT
--- USING (
--- coalesce(get_my_claim('sales_view')::boolean, false) = true
--- AND entity = 'Sales Order'
--- AND (get_my_claim('role'::text)) = '"customer"'::jsonb
--- AND uuid IN (
--- SELECT id FROM "salesOrder" WHERE "customerId" IN (
--- SELECT "customerId" FROM "salesOrder" WHERE "customerId" IN (
--- SELECT "customerId" FROM "customerAccount" WHERE id::uuid = auth.uid()
--- )
--- )
--- )
--- )
-
-CREATE POLICY "Employees with purchasing_view can search for suppliers and purchase orders" ON "search"
- FOR SELECT
- USING (coalesce(get_my_claim('purchasing_view')::boolean, false) = true AND entity IN ('Supplier', 'Purchase Order') AND (get_my_claim('role'::text)) = '"employee"'::jsonb);
-
-
-CREATE POLICY "Employees with resources_view can search for resources" ON "search"
- FOR SELECT
- USING (coalesce(get_my_claim('resources_view')::boolean, false) = true AND entity = 'Resource');
-
-CREATE POLICY "Employees with resources_view can search for people" ON "search"
- FOR SELECT
- USING (coalesce(get_my_claim('resources_view')::boolean, false) = true AND entity = 'Person');
-
--- TODO: documents should be filtered based on visibility
-CREATE POLICY "Employees with document_view can search for documents" ON "search"
- FOR SELECT
- USING (coalesce(get_my_claim('document_view')::boolean, false) = true AND entity = 'Document' AND (get_my_claim('role'::text)) = '"employee"'::jsonb);
-
-CREATE POLICY "Employees with parts can search for parts" ON "search"
- FOR SELECT
- USING (coalesce(get_my_claim('parts_view')::boolean, false) = true AND entity = 'Part' AND (get_my_claim('role'::text)) = '"employee"'::jsonb);
-
--- TODO: suppliers should be able to search for parts that they supply
-
-CREATE POLICY "Employees with jobs_view can search for jobs" ON "search"
- FOR SELECT
- USING (coalesce(get_my_claim('jobs_view')::boolean, false) = true AND entity = 'Job' AND (get_my_claim('role'::text)) = '"employee"'::jsonb);
-
--- TODO: customers should be able to search for their jobs
-```
-
-
-
-## `abac`
-
-```sql
--- contact
-
-ALTER TABLE "contact" ENABLE ROW LEVEL SECURITY;
-
-CREATE POLICY "Employees with purchasing_view can view contacts that are suppliers" ON "contact"
- FOR SELECT
- USING (
- coalesce(get_my_claim('purchasing_view')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- AND id IN (
- SELECT "contactId" FROM "supplierContact"
- )
- );
-
-CREATE POLICY "Employees with sales_view can view contacts that are customer" ON "contact"
- FOR SELECT
- USING (
- coalesce(get_my_claim('sales_view')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- AND id IN (
- SELECT "contactId" FROM "customerContact"
- )
- );
-
-CREATE POLICY "Suppliers with purchasing_view can view contacts from their organization" ON "contact"
- FOR SELECT
- USING (
- coalesce(get_my_claim('purchasing_view')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"supplier"'::jsonb
- AND (
- id IN (
- SELECT "contactId" FROM "supplierContact" WHERE "supplierId" IN (
- SELECT "supplierId" FROM "supplierAccount" WHERE id::uuid = auth.uid()
- )
- )
- )
- );
-
-CREATE POLICY "Customers with sales_view can view contacts from their organization" ON "contact"
- FOR SELECT
- USING (
- coalesce(get_my_claim('sales_view')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"customer"'::jsonb
- AND (
- id IN (
- SELECT "contactId" FROM "customerContact" WHERE "customerId" IN (
- SELECT "customerId" FROM "customerAccount" WHERE id::uuid = auth.uid()
- )
- )
- )
- );
-
-CREATE POLICY "Many employees can create contacts" ON "contact"
- FOR INSERT
- WITH CHECK (
- (
- coalesce(get_my_claim('purchasing_create')::boolean,false) OR
- coalesce(get_my_claim('sales_create')::boolean,false) OR
- coalesce(get_my_claim('users_create')::boolean,false)
- ) AND (get_my_claim('role'::text)) = '"employee"'::jsonb
-);
-
-CREATE POLICY "Suppliers with purchasing_update can create contacts from their organization" ON "contact"
- FOR INSERT
- WITH CHECK (
- coalesce(get_my_claim('purchasing_update')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"supplier"'::jsonb
- AND (
- id IN (
- SELECT "contactId" FROM "supplierContact" WHERE "supplierId" IN (
- SELECT "supplierId" FROM "supplierAccount" WHERE id::uuid = auth.uid()
- )
- )
- )
- );
-
-CREATE POLICY "Customers with sales_update can create contacts from their organization" ON "contact"
- FOR INSERT
- WITH CHECK (
- coalesce(get_my_claim('sales_update')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"customer"'::jsonb
- AND (
- id IN (
- SELECT "contactId" FROM "customerContact" WHERE "customerId" IN (
- SELECT "customerId" FROM "customerAccount" WHERE id::uuid = auth.uid()
- )
- )
- )
- );
-
-CREATE POLICY "Employees with purchasing_update can update supplier contacts" ON "contact"
- FOR UPDATE
- USING (
- coalesce(get_my_claim('purchasing_update')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- AND id IN (
- SELECT "contactId" FROM "supplierContact"
- )
- );
-
-CREATE POLICY "Suppliers with purchasing_update can update contacts from their organization" ON "contact"
- FOR UPDATE
- USING (
- coalesce(get_my_claim('purchasing_update')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"supplier"'::jsonb
- AND (
- id IN (
- SELECT "contactId" FROM "supplierContact" WHERE "supplierId" IN (
- SELECT "supplierId" FROM "supplierAccount" WHERE id::uuid = auth.uid()
- )
- )
- )
- );
-
-CREATE POLICY "Employees with sales_update can update customer contacts" ON "contact"
- FOR UPDATE
- USING (
- coalesce(get_my_claim('purchasing_update')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- AND id IN (
- SELECT "contactId" FROM "customerContact"
- )
- );
-
-CREATE POLICY "Customers with sales_update can update contacts from their organization" ON "contact"
- FOR UPDATE
- USING (
- coalesce(get_my_claim('sales_update')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"customer"'::jsonb
- AND (
- id IN (
- SELECT "contactId" FROM "customerContact" WHERE "customerId" IN (
- SELECT "customerId" FROM "customerAccount" WHERE id::uuid = auth.uid()
- )
- )
- )
- );
-
-CREATE POLICY "Employees with purchasing_delete can delete supplier contacts" ON "contact"
- FOR DELETE
- USING (
- coalesce(get_my_claim('purchasing_delete')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- AND id IN (
- SELECT "contactId" FROM "supplierContact"
- )
- );
-
-CREATE POLICY "Suppliers with purchasing_delete can delete contacts from their organization" ON "contact"
- FOR DELETE
- USING (
- coalesce(get_my_claim('purchasing_delete')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"supplier"'::jsonb
- AND (
- id IN (
- SELECT "contactId" FROM "supplierContact" WHERE "supplierId" IN (
- SELECT "supplierId" FROM "supplierAccount" WHERE id::uuid = auth.uid()
- )
- )
- )
- );
-
-CREATE POLICY "Employees with sales_delete can delete customer contacts" ON "contact"
- FOR DELETE
- USING (
- coalesce(get_my_claim('sales_delete')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- AND id IN (
- SELECT "contactId" FROM "customerContact"
- )
- );
-
-CREATE POLICY "Customers with sales_delete can delete contacts from their organization" ON "contact"
- FOR DELETE
- USING (
- coalesce(get_my_claim('sales_delete')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"customer"'::jsonb
- AND (
- id IN (
- SELECT "contactId" FROM "customerContact" WHERE "customerId" IN (
- SELECT "customerId" FROM "customerAccount" WHERE id::uuid = auth.uid()
- )
- )
- )
- );
-
--- customerType
-
-ALTER TABLE "customerType" ENABLE ROW LEVEL SECURITY;
-
-CREATE POLICY "Employees with sales_view can view customer types" ON "customerType"
- 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_create can create customer types" ON "customerType"
- FOR INSERT
- WITH CHECK (coalesce(get_my_claim('sales_create')::boolean,false) AND (get_my_claim('role'::text)) = '"employee"'::jsonb);
-
-CREATE POLICY "Employees with sales_update can update customer types" ON "customerType"
- FOR UPDATE
- USING (coalesce(get_my_claim('sales_update')::boolean,false) AND (get_my_claim('role'::text)) = '"employee"'::jsonb);
-
-CREATE POLICY "Employees with sales_delete can delete customer types" ON "customerType"
- FOR DELETE
- USING (coalesce(get_my_claim('sales_delete')::boolean, false) = true AND (get_my_claim('role'::text)) = '"employee"'::jsonb);
-
--- customer
-
-ALTER TABLE "customer" ENABLE ROW LEVEL SECURITY;
-
-CREATE POLICY "Employees with sales_view can view customer" ON "customer"
- FOR SELECT
- USING (coalesce(get_my_claim('sales_view')::boolean, false) = true AND (get_my_claim('role'::text)) = '"employee"'::jsonb);
-
-CREATE POLICY "Customers with sales_view can their own organization" ON "customer"
- FOR SELECT
- USING (
- coalesce(get_my_claim('sales_view')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"customer"'::jsonb
- AND id IN (
- SELECT "customerId" FROM "customerAccount" WHERE id::uuid = auth.uid()
- )
- );
-
-CREATE POLICY "Employees with sales_create can create customers" ON "customer"
- FOR INSERT
- WITH CHECK (coalesce(get_my_claim('sales_create')::boolean,false) AND (get_my_claim('role'::text)) = '"employee"'::jsonb);
-
-CREATE POLICY "Employees with sales_update can update customers" ON "customer"
- FOR UPDATE
- USING (coalesce(get_my_claim('sales_update')::boolean,false) AND (get_my_claim('role'::text)) = '"employee"'::jsonb);
-
-CREATE POLICY "Customers with sales_update can their own organization" ON "customer"
- FOR UPDATE
- USING (
- coalesce(get_my_claim('sales_update')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"customer"'::jsonb
- AND id IN (
- SELECT "customerId" FROM "customerAccount" WHERE id::uuid = auth.uid()
- )
- );
-
-CREATE POLICY "Employees with sales_delete can delete customers" ON "customer"
- FOR DELETE
- USING (coalesce(get_my_claim('sales_delete')::boolean, false) = true AND (get_my_claim('role'::text)) = '"employee"'::jsonb);
-
--- customerContact
-
-ALTER TABLE "customerContact" ENABLE ROW LEVEL SECURITY;
-
-CREATE POLICY "Employees with sales_view can view customer contact" ON "customerContact"
- FOR SELECT
- USING (coalesce(get_my_claim('sales_view')::boolean, false) = true AND (get_my_claim('role'::text)) = '"employee"'::jsonb);
-
-CREATE POLICY "Customers with sales_view can their own customer contacts" ON "customerContact"
- FOR SELECT
- USING (
- coalesce(get_my_claim('sales_view')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"customer"'::jsonb
- AND "customerId" IN (
- SELECT "customerId" FROM "customerAccount" WHERE id::uuid = auth.uid()
- )
- );
-
-CREATE POLICY "Employees with sales_create can create customer contacts" ON "customerContact"
- FOR INSERT
- WITH CHECK (coalesce(get_my_claim('sales_create')::boolean,false) AND (get_my_claim('role'::text)) = '"employee"'::jsonb);
-
-CREATE POLICY "Customers with sales_create can create customer contacts" ON "customerContact"
- FOR INSERT
- WITH CHECK (coalesce(get_my_claim('sales_create')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"customer"'::jsonb
- AND "customerId" IN (
- SELECT "customerId" FROM "customerAccount" WHERE id::uuid = auth.uid()
- )
- );
-
-CREATE POLICY "Employees with sales_update can update customer contacts" ON "customerContact"
- FOR UPDATE
- USING (coalesce(get_my_claim('sales_update')::boolean,false) AND (get_my_claim('role'::text)) = '"employee"'::jsonb);
-
-CREATE POLICY "Customers with sales_update can update their customer contacts" ON "customerContact"
- FOR UPDATE
- USING (coalesce(get_my_claim('sales_update')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"customer"'::jsonb
- AND "customerId" IN (
- SELECT "customerId" FROM "customerAccount" WHERE id::uuid = auth.uid()
- )
- );
-
-CREATE POLICY "Employees with sales_delete can delete customer contacts" ON "customerContact"
- FOR DELETE
- USING (coalesce(get_my_claim('sales_delete')::boolean, false) = true AND (get_my_claim('role'::text)) = '"employee"'::jsonb);
-
--- supplierType
-
-ALTER TABLE "supplierType" ENABLE ROW LEVEL SECURITY;
-
-CREATE POLICY "Employees with purchasing_view can view supplier types" ON "supplierType"
- 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_create can create supplier types" ON "supplierType"
- FOR INSERT
- WITH CHECK (coalesce(get_my_claim('purchasing_create')::boolean,false) AND (get_my_claim('role'::text)) = '"employee"'::jsonb);
-
-CREATE POLICY "Employees with purchasing_update can update supplier types" ON "supplierType"
- FOR UPDATE
- USING (coalesce(get_my_claim('purchasing_update')::boolean,false) AND (get_my_claim('role'::text)) = '"employee"'::jsonb);
-
-CREATE POLICY "Employees with purchasing_delete can delete supplier types" ON "supplierType"
- FOR DELETE
- USING (coalesce(get_my_claim('purchasing_delete')::boolean, false) = true AND (get_my_claim('role'::text)) = '"employee"'::jsonb);
-
--- supplier
-
-ALTER TABLE "supplier" ENABLE ROW LEVEL SECURITY;
-
-CREATE POLICY "Employees with purchasing_view can view supplier" ON "supplier"
- FOR SELECT
- USING (coalesce(get_my_claim('purchasing_view')::boolean, false) = true AND (get_my_claim('role'::text)) = '"employee"'::jsonb);
-
-CREATE POLICY "Suppliers with purchasing_view can their own organization" ON "supplier"
- FOR SELECT
- USING (
- coalesce(get_my_claim('purchasing_view')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"supplier"'::jsonb
- AND id IN (
- SELECT "supplierId" FROM "supplierAccount" WHERE id::uuid = auth.uid()
- )
- );
-
-CREATE POLICY "Employees with purchasing_create can create suppliers" ON "supplier"
- FOR INSERT
- WITH CHECK (coalesce(get_my_claim('purchasing_create')::boolean,false) AND (get_my_claim('role'::text)) = '"employee"'::jsonb);
-
-CREATE POLICY "Employees with purchasing_update can update suppliers" ON "supplier"
- FOR UPDATE
- USING (coalesce(get_my_claim('purchasing_update')::boolean,false) AND (get_my_claim('role'::text)) = '"employee"'::jsonb);
-
-CREATE POLICY "Suppliers with purchasing_update can their own organization" ON "supplier"
- FOR UPDATE
- USING (
- coalesce(get_my_claim('purchasing_update')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"supplier"'::jsonb
- AND id IN (
- SELECT "supplierId" FROM "supplierAccount" WHERE id::uuid = auth.uid()
- )
- );
-
-CREATE POLICY "Employees with purchasing_delete can delete suppliers" ON "supplier"
- FOR DELETE
- USING (coalesce(get_my_claim('purchasing_delete')::boolean, false) = true AND (get_my_claim('role'::text)) = '"employee"'::jsonb);
-
--- supplierContact
-
-ALTER TABLE "supplierContact" ENABLE ROW LEVEL SECURITY;
-
-CREATE POLICY "Employees with purchasing_view can view supplier contact" ON "supplierContact"
- FOR SELECT
- USING (coalesce(get_my_claim('purchasing_view')::boolean, false) = true AND (get_my_claim('role'::text)) = '"employee"'::jsonb);
-
-CREATE POLICY "Suppliers with purchasing_view can their own supplier contacts" ON "supplierContact"
- FOR SELECT
- USING (
- coalesce(get_my_claim('purchasing_view')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"supplier"'::jsonb
- AND "supplierId" IN (
- SELECT "supplierId" FROM "supplierAccount" WHERE id::uuid = auth.uid()
- )
- );
-
-CREATE POLICY "Employees with purchasing_create can create supplier contacts" ON "supplierContact"
- FOR INSERT
- WITH CHECK (coalesce(get_my_claim('purchasing_create')::boolean,false) AND (get_my_claim('role'::text)) = '"employee"'::jsonb);
-
-CREATE POLICY "Suppliers with purchasing_create can create supplier contacts" ON "supplierContact"
- FOR INSERT
- WITH CHECK (coalesce(get_my_claim('purchasing_create')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"supplier"'::jsonb
- AND "supplierId" IN (
- SELECT "supplierId" FROM "supplierAccount" WHERE id::uuid = auth.uid()
- )
- );
-
-CREATE POLICY "Employees with purchasing_update can update supplier contacts" ON "supplierContact"
- FOR UPDATE
- USING (coalesce(get_my_claim('purchasing_update')::boolean,false) AND (get_my_claim('role'::text)) = '"employee"'::jsonb);
-
-CREATE POLICY "Suppliers with purchasing_update can update their supplier contacts" ON "supplierContact"
- FOR UPDATE
- USING (coalesce(get_my_claim('purchasing_update')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"supplier"'::jsonb
- AND "supplierId" IN (
- SELECT "supplierId" FROM "supplierAccount" WHERE id::uuid = auth.uid()
- )
- );
-
-CREATE POLICY "Employees with purchasing_delete can delete supplier contacts" ON "supplierContact"
- FOR DELETE
- USING (coalesce(get_my_claim('purchasing_delete')::boolean, false) = true AND (get_my_claim('role'::text)) = '"employee"'::jsonb);
-
-
-```
-
-
-
-## `notes`
-
-```sql
-CREATE TABLE "note" (
- "id" TEXT NOT NULL DEFAULT xid(),
- "documentId" TEXT NOT NULL,
- "note" TEXT NOT NULL,
- "noteRichText" JSONB NOT NULL DEFAULT '{}'::jsonb,
- "active" BOOLEAN NOT NULL DEFAULT true,
- "createdAt" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT now(),
- "createdBy" TEXT NOT NULL,
- "updatedAt" TIMESTAMP WITH TIME ZONE,
-
- CONSTRAINT "notes_pkey" PRIMARY KEY ("id"),
- CONSTRAINT "notes_createdBy_fkey" FOREIGN KEY ("createdBy") REFERENCES "user"("id") ON DELETE CASCADE ON UPDATE CASCADE
-);
-
-CREATE INDEX "notes_documentId_index" ON "note"("documentId");
-
-ALTER TABLE "note" ENABLE ROW LEVEL SECURITY;
-
-CREATE POLICY "Employees can view notes" ON "note"
- FOR SELECT
- USING (
- (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-
-CREATE POLICY "Employees can insert notes" ON "note"
- FOR INSERT
- WITH CHECK (
- (get_my_claim('role'::text)) = '"employee"'::jsonb
-);
-
-CREATE POLICY "Employees can update their own notes" ON "note"
- FOR UPDATE
- USING (
- (get_my_claim('role'::text)) = '"employee"'::jsonb
- AND "createdBy"::uuid = auth.uid()
- );
-
-CREATE POLICY "Employees can delete their own notes" ON "note"
- FOR DELETE
- USING (
- (get_my_claim('role'::text)) = '"employee"'::jsonb
- AND "createdBy"::uuid = auth.uid()
- );
-
-```
-
-
-
-## `abilities`
-
-```sql
-CREATE TABLE "ability" (
- "id" TEXT NOT NULL DEFAULT xid(),
- "name" TEXT NOT NULL,
- "curve" JSONB NOT NULL DEFAULT '{"data":[{"id":0,"week":0,"value":50},{"id":1,"week":1,"value":80},{"id":2,"week":2,"value":90},{"id":3,"week":3,"value":100}]}'::jsonb,
- "shadowWeeks" NUMERIC NOT NULL DEFAULT 0,
- "active" BOOLEAN NOT NULL DEFAULT true,
- "createdAt" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT now(),
- "createdBy" TEXT NOT NULL,
- "updatedAt" TIMESTAMP WITH TIME ZONE,
- "updatedBy" TEXT,
-
- CONSTRAINT "abilities_pkey" PRIMARY KEY ("id"),
- CONSTRAINT "abilities_createdBy_fkey" FOREIGN KEY ("createdBy") REFERENCES "user"("id") ON DELETE CASCADE ON UPDATE CASCADE,
- CONSTRAINT "abilities_updatedBy_fkey" FOREIGN KEY ("updatedBy") REFERENCES "user"("id") ON DELETE CASCADE ON UPDATE CASCADE
-);
-
-ALTER TABLE "ability" ENABLE ROW LEVEL SECURITY;
-
-CREATE POLICY "Employees with resources_view can view abilities" ON "ability"
- FOR SELECT
- USING (
- coalesce(get_my_claim('resources_view')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-
-CREATE POLICY "Employees with resources_create can insert abilities" ON "ability"
- FOR INSERT
- WITH CHECK (
- coalesce(get_my_claim('resources_create')::boolean,false)
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
-);
-
-CREATE POLICY "Employees with resources_update can update abilities" ON "ability"
- FOR UPDATE
- USING (
- coalesce(get_my_claim('resources_update')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-
-CREATE POLICY "Employees with resources_delete can delete abilities" ON "ability"
- FOR DELETE
- USING (
- coalesce(get_my_claim('resources_delete')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-
-CREATE TABLE "employeeAbility" (
- "id" TEXT NOT NULL DEFAULT xid(),
- "employeeId" TEXT NOT NULL,
- "abilityId" TEXT NOT NULL,
- "active" BOOLEAN NOT NULL DEFAULT true,
- "lastTrainingDate" DATE,
- "trainingDays" NUMERIC NOT NULL DEFAULT 0,
- "trainingCompleted" BOOLEAN DEFAULT false,
-
- CONSTRAINT "employeeAbilities_pkey" PRIMARY KEY ("id"),
- CONSTRAINT "employeeAbilities_employeeId_fkey" FOREIGN KEY ("employeeId") REFERENCES "user"("id") ON DELETE CASCADE ON UPDATE CASCADE,
- CONSTRAINT "employeeAbilities_abilityId_fkey" FOREIGN KEY ("abilityId") REFERENCES "ability"("id") ON DELETE CASCADE ON UPDATE CASCADE,
-
- CONSTRAINT uq_employeeAbility_employeeId_abilityId UNIQUE ( "employeeId", "abilityId")
-);
-
-ALTER TABLE "employeeAbility" ENABLE ROW LEVEL SECURITY;
-
-CREATE POLICY "Employees with resources_view can view employeeAbilities" ON "employeeAbility"
- FOR SELECT
- USING (
- coalesce(get_my_claim('resources_view')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-
-CREATE POLICY "Employees with resources_create can insert employeeAbilities" ON "employeeAbility"
- FOR INSERT
- WITH CHECK (
- coalesce(get_my_claim('resources_create')::boolean,false)
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
-);
-
-CREATE POLICY "Employees with resources_update can update employeeAbilities" ON "employeeAbility"
- FOR UPDATE
- USING (
- coalesce(get_my_claim('resources_update')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-
-CREATE POLICY "Employees with resources_delete can delete employeeAbilities" ON "employeeAbility"
- FOR DELETE
- USING (
- coalesce(get_my_claim('resources_delete')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-
-```
-
-
-
-## `shifts`
-
-```sql
-CREATE TABLE "location" (
- "id" TEXT NOT NULL DEFAULT xid(),
- "name" TEXT NOT NULL,
- "addressLine1" TEXT NOT NULL,
- "addressLine2" TEXT,
- "city" TEXT NOT NULL,
- "state" TEXT NOT NULL,
- "postalCode" TEXT NOT NULL,
- "countryCode" TEXT,
- "timezone" TEXT NOT NULL,
- "latitude" NUMERIC,
- "longitude" NUMERIC,
- "createdBy" TEXT NOT NULL,
- "createdAt" TIMESTAMP NOT NULL DEFAULT now(),
- "updatedBy" TEXT,
- "updatedAt" TIMESTAMP,
-
- CONSTRAINT "location_pkey" PRIMARY KEY ("id")
-);
-
-ALTER TABLE "location" ENABLE ROW LEVEL SECURITY;
-
-CREATE POLICY "Employees can view locations" ON "location"
- FOR SELECT
- USING (
- auth.role() = 'authenticated'
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-
-CREATE POLICY "Employees with resources_create can insert locations" ON "location"
- FOR INSERT
- WITH CHECK (
- coalesce(get_my_claim('resources_create')::boolean,false)
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
-);
-
-CREATE POLICY "Employees with resources_update can update locations" ON "location"
- FOR UPDATE
- USING (
- coalesce(get_my_claim('resources_update')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-
-CREATE POLICY "Employees with resources_delete can delete locations" ON "location"
- FOR DELETE
- USING (
- coalesce(get_my_claim('resources_delete')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-
-
-CREATE TABLE "shift" (
- "id" TEXT NOT NULL DEFAULT xid(),
- "name" TEXT NOT NULL,
- "startTime" TIME NOT NULL,
- "endTime" TIME NOT NULL,
- "locationId" TEXT NOT NULL,
- "sunday" BOOLEAN NOT NULL DEFAULT false,
- "monday" BOOLEAN NOT NULL DEFAULT false,
- "tuesday" BOOLEAN NOT NULL DEFAULT false,
- "wednesday" BOOLEAN NOT NULL DEFAULT false,
- "thursday" BOOLEAN NOT NULL DEFAULT false,
- "friday" BOOLEAN NOT NULL DEFAULT false,
- "saturday" BOOLEAN NOT NULL DEFAULT false,
- "active" BOOLEAN NOT NULL DEFAULT true,
-
- CONSTRAINT "shifts_pkey" PRIMARY KEY ("id"),
- CONSTRAINT "shifts_locationId_fkey" FOREIGN KEY ("locationId") REFERENCES "location"("id") ON DELETE CASCADE ON UPDATE CASCADE
-);
-
-ALTER TABLE "shift" ENABLE ROW LEVEL SECURITY;
-
-CREATE POLICY "Employees can view shifts" ON "shift"
- FOR SELECT
- USING (
- auth.role() = 'authenticated'
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-
-CREATE POLICY "Employees with resources_create can insert shifts" ON "shift"
- FOR INSERT
- WITH CHECK (
- coalesce(get_my_claim('resources_create')::boolean,false)
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
-);
-
-CREATE POLICY "Employees with resources_update can update shifts" ON "shift"
- FOR UPDATE
- USING (
- coalesce(get_my_claim('resources_update')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-
-CREATE POLICY "Employees with resources_delete can delete shifts" ON "shift"
- FOR DELETE
- USING (
- coalesce(get_my_claim('resources_delete')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-
-
-CREATE TABLE "employeeShift" (
- "id" TEXT NOT NULL DEFAULT xid(),
- "employeeId" TEXT NOT NULL,
- "shiftId" TEXT NOT NULL,
-
- CONSTRAINT "employeeShift_pkey" PRIMARY KEY ("id"),
- CONSTRAINT "employeeShift_employeeId_fkey" FOREIGN KEY ("employeeId") REFERENCES "user"("id") ON DELETE CASCADE ON UPDATE CASCADE,
- CONSTRAINT "employeeShift_shiftId_fkey" FOREIGN KEY ("shiftId") REFERENCES "shift"("id") ON DELETE CASCADE ON UPDATE CASCADE,
-
- CONSTRAINT uq_employeeShift_employeeId_shiftId UNIQUE ( "employeeId", "shiftId")
-);
-
-ALTER TABLE "employeeShift" ENABLE ROW LEVEL SECURITY;
-
-CREATE POLICY "Employees can view employee shifts" ON "employeeShift"
- FOR SELECT
- USING (
- auth.role() = 'authenticated'
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-
-CREATE POLICY "Employees with resources_create can insert employee shifts" ON "employeeShift"
- FOR INSERT
- WITH CHECK (
- coalesce(get_my_claim('resources_create')::boolean,false)
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
-);
-
-CREATE POLICY "Employees with resources_update can update employee shifts" ON "employeeShift"
- FOR UPDATE
- USING (
- coalesce(get_my_claim('resources_update')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-
-CREATE POLICY "Employees with resources_delete can delete employee shifts" ON "employeeShift"
- FOR DELETE
- USING (
- coalesce(get_my_claim('resources_delete')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-
-
-CREATE TABLE "employeeJob" (
- "id" TEXT NOT NULL,
- "locationId" TEXT,
- "shiftId" TEXT,
- "managerId" TEXT,
- "title" TEXT,
- "startDate" DATE,
-
- CONSTRAINT "employeeJob_pkey" PRIMARY KEY ("id"),
- CONSTRAINT "employeeJob_id_fkey" FOREIGN KEY ("id") REFERENCES "user"("id") ON DELETE CASCADE ON UPDATE CASCADE,
- CONSTRAINT "employeeJob_locationId_fkey" FOREIGN KEY ("locationId") REFERENCES "location"("id") ON DELETE CASCADE ON UPDATE CASCADE,
- CONSTRAINT "employeeJob_shiftId_fkey" FOREIGN KEY ("shiftId") REFERENCES "shift"("id") ON DELETE CASCADE ON UPDATE CASCADE,
- CONSTRAINT "employeeJob_managerId_fkey" FOREIGN KEY ("managerId") REFERENCES "user"("id") ON DELETE CASCADE ON UPDATE CASCADE
-);
-
-CREATE POLICY "Employees can view employee jobs" ON "employeeJob"
- FOR SELECT
- USING (
- auth.role() = 'authenticated'
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-
-CREATE POLICY "Employees with resources_create can insert employee jobs" ON "employeeJob"
- FOR INSERT
- WITH CHECK (
- coalesce(get_my_claim('resources_create')::boolean,false)
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
-);
-
-CREATE POLICY "Employees with resources_update can update employee jobs" ON "employeeJob"
- FOR UPDATE
- USING (
- coalesce(get_my_claim('resources_update')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-
-CREATE POLICY "Employees with resources_delete can delete employee jobs" ON "employeeJob"
- FOR DELETE
- USING (
- coalesce(get_my_claim('resources_delete')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-```
-
-
-
-## `equipment`
-
-```sql
-
-CREATE TYPE factor AS ENUM (
- 'Hours/Piece',
- 'Hours/100 Pieces',
- 'Hours/1000 Pieces',
- 'Minutes/Piece',
- 'Minutes/100 Pieces',
- 'Minutes/1000 Pieces',
- 'Pieces/Hour',
- 'Pieces/Minute',
- 'Seconds/Piece',
- 'Total Hours',
- 'Total Minutes'
-);
-
-CREATE TABLE "department" (
- "id" TEXT NOT NULL DEFAULT xid(),
- "name" TEXT NOT NULL UNIQUE,
- "color" TEXT NOT NULL DEFAULT '#000000',
- "parentDepartmentId" TEXT,
- "createdBy" TEXT NOT NULL,
- "createdAt" TIMESTAMP NOT NULL DEFAULT now(),
- "updatedBy" TEXT,
- "updatedAt" TIMESTAMP,
-
- CONSTRAINT "department_pkey" PRIMARY KEY ("id"),
- CONSTRAINT "department_colorCheck" CHECK ("color" is null or "color" ~* '^#[a-f0-9]{6}$'),
- CONSTRAINT "department_parentDepartmentId_fkey" FOREIGN KEY ("parentDepartmentId") REFERENCES "department"("id") ON DELETE CASCADE ON UPDATE CASCADE
-);
-
-ALTER TABLE "department" ENABLE ROW LEVEL SECURITY;
-
-CREATE POLICY "Employees can view departments" ON "department"
- FOR SELECT
- USING (
- auth.role() = 'authenticated'
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-
-CREATE POLICY "Employees with resources_create can insert departments" ON "department"
- FOR INSERT
- WITH CHECK (
- coalesce(get_my_claim('resources_create')::boolean,false)
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
-);
-
-CREATE POLICY "Employees with resources_update can update departments" ON "department"
- FOR UPDATE
- USING (
- coalesce(get_my_claim('resources_update')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-
-CREATE POLICY "Employees with resources_delete can delete departments" ON "department"
- FOR DELETE
- USING (
- coalesce(get_my_claim('resources_delete')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-
-CREATE TABLE "workCellType" (
- "id" TEXT NOT NULL DEFAULT xid(),
- "name" TEXT NOT NULL UNIQUE,
- "color" TEXT NOT NULL DEFAULT '#000000',
- "description" TEXT,
- "requiredAbility" TEXT,
- "active" BOOLEAN NOT NULL DEFAULT true,
- "createdBy" TEXT NOT NULL,
- "createdAt" TIMESTAMP NOT NULL DEFAULT now(),
- "updatedBy" TEXT,
- "updatedAt" TIMESTAMP,
-
- CONSTRAINT "workCellType_pkey" PRIMARY KEY ("id"),
- CONSTRAINT "workCellType_colorCheck" CHECK ("color" is null or "color" ~* '^#[a-f0-9]{6}$'),
- CONSTRAINT "workCellType_requiredAbility_fkey" FOREIGN KEY ("requiredAbility") REFERENCES "ability"("id") ON DELETE CASCADE ON UPDATE CASCADE,
- CONSTRAINT "workCellType_createdBy_fkey" FOREIGN KEY ("createdBy") REFERENCES "user"("id") ON DELETE CASCADE ON UPDATE CASCADE,
- CONSTRAINT "workCellType_updatedBy_fkey" FOREIGN KEY ("updatedBy") REFERENCES "user"("id") ON DELETE CASCADE ON UPDATE CASCADE
-);
-
-ALTER TABLE "workCellType" ENABLE ROW LEVEL SECURITY;
-
-CREATE POLICY "Employees can view work cell types" ON "workCellType"
- FOR SELECT
- USING (
- auth.role() = 'authenticated'
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-
-CREATE POLICY "Employees with resources_create can insert work cell types" ON "workCellType"
- FOR INSERT
- WITH CHECK (
- coalesce(get_my_claim('resources_create')::boolean,false)
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
-);
-
-CREATE POLICY "Employees with resources_update can update work cell types" ON "workCellType"
- FOR UPDATE
- USING (
- coalesce(get_my_claim('resources_update')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-
-CREATE POLICY "Employees with resources_delete can delete work cell types" ON "workCellType"
- FOR DELETE
- USING (
- coalesce(get_my_claim('resources_delete')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-
-CREATE TABLE "workCell" (
- "id" TEXT NOT NULL DEFAULT xid(),
- "name" TEXT NOT NULL,
- "description" TEXT,
- "defaultStandardFactor" factor NOT NULL DEFAULT 'Hours/Piece',
- "departmentId" TEXT NOT NULL,
- "locationId" TEXT,
- "workCellTypeId" TEXT NOT NULL,
- "active" BOOLEAN NOT NULL DEFAULT true,
- "activeDate" DATE,
- "createdBy" TEXT NOT NULL,
- "createdAt" TIMESTAMP NOT NULL DEFAULT now(),
- "updatedBy" TEXT,
- "updatedAt" TIMESTAMP,
-
- CONSTRAINT "workCell_pkey" PRIMARY KEY ("id"),
- CONSTRAINT "workCell_workCellTypeId_fkey" FOREIGN KEY ("workCellTypeId") REFERENCES "workCellType"("id") ON DELETE CASCADE ON UPDATE CASCADE,
- CONSTRAINT "workCell_locationId_fkey" FOREIGN KEY ("locationId") REFERENCES "location"("id") ON DELETE CASCADE ON UPDATE CASCADE,
- CONSTRAINT "workCell_departmentId_fkey" FOREIGN KEY ("departmentId") REFERENCES "department"("id") ON DELETE CASCADE ON UPDATE CASCADE,
- CONSTRAINT "uq_workCell_name_departmentId" UNIQUE ("name", "departmentId")
-);
-
-ALTER TABLE "workCell" ENABLE ROW LEVEL SECURITY;
-
-CREATE POLICY "Employees can view work cells" ON "workCell"
- FOR SELECT
- USING (
- auth.role() = 'authenticated'
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-
-CREATE POLICY "Employees with resources_create can insert work cells" ON "workCell"
- FOR INSERT
- WITH CHECK (
- coalesce(get_my_claim('resources_create')::boolean,false)
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
-);
-
-CREATE POLICY "Employees with resources_update can update work cells" ON "workCell"
- FOR UPDATE
- USING (
- coalesce(get_my_claim('resources_update')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-
-CREATE POLICY "Employees with resources_delete can delete work cells" ON "workCell"
- FOR DELETE
- USING (
- coalesce(get_my_claim('resources_delete')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-
-ALTER TABLE "employeeJob"
- ADD COLUMN "departmentId" TEXT REFERENCES "department"("id") ON DELETE CASCADE ON UPDATE CASCADE,
- ADD COLUMN "workCellId" TEXT REFERENCES "workCell"("id") ON DELETE CASCADE ON UPDATE CASCADE;
-
-CREATE TABLE "crew" (
- "id" TEXT NOT NULL DEFAULT xid(),
- "name" TEXT NOT NULL UNIQUE,
- "description" TEXT,
- "crewLeaderId" TEXT,
- "groupId" TEXT NOT NULL,
- "workCellId" TEXT,
-
- CONSTRAINT "crew_pkey" PRIMARY KEY ("id"),
- CONSTRAINT "crew_crewLeaderId_fkey" FOREIGN KEY ("crewLeaderId") REFERENCES "user"("id") ON DELETE CASCADE ON UPDATE CASCADE,
- CONSTRAINT "crew_groupId_fkey" FOREIGN KEY ("groupId") REFERENCES "group"("id") ON DELETE CASCADE ON UPDATE CASCADE,
- CONSTRAINT "crew_workCellId_fkey" FOREIGN KEY ("workCellId") REFERENCES "workCell"("id") ON DELETE CASCADE ON UPDATE CASCADE
-);
-
-ALTER TABLE "crew" ENABLE ROW LEVEL SECURITY;
-
-CREATE POLICY "Employees can view crews" ON "crew"
- FOR SELECT
- USING (
- auth.role() = 'authenticated'
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-
-CREATE POLICY "Employees with resources_create can insert crews" ON "crew"
- FOR INSERT
- WITH CHECK (
- coalesce(get_my_claim('resources_create')::boolean,false)
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
-);
-
-CREATE POLICY "Employees with resources_update can update crews" ON "crew"
- FOR UPDATE
- USING (
- coalesce(get_my_claim('resources_update')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-
-CREATE POLICY "Employees with resources_delete can delete crews" ON "crew"
- FOR DELETE
- USING (
- coalesce(get_my_claim('resources_delete')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-
-CREATE TABLE "crewAbility" (
- "id" TEXT NOT NULL DEFAULT xid(),
- "crewId" TEXT NOT NULL,
- "abilityId" TEXT NOT NULL,
- "active" BOOLEAN NOT NULL DEFAULT true,
-
- CONSTRAINT "crewAbility_pkey" PRIMARY KEY ("id"),
- CONSTRAINT "crewAbility_crewId_fkey" FOREIGN KEY ("crewId") REFERENCES "crew"("id") ON DELETE CASCADE ON UPDATE CASCADE,
- CONSTRAINT "crewAbility_abilityId_fkey" FOREIGN KEY ("abilityId") REFERENCES "ability"("id") ON DELETE CASCADE ON UPDATE CASCADE
-);
-
-ALTER TABLE "crewAbility" ENABLE ROW LEVEL SECURITY;
-
-CREATE POLICY "Employees with resources_view can view crew abilities" ON "crewAbility"
- FOR SELECT
- USING (
- auth.role() = 'authenticated'
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- AND (get_my_claim('resources_view')::boolean) = true
- );
-
-CREATE POLICY "Employees with resources_create can insert crew abilities" ON "crewAbility"
- FOR INSERT
- WITH CHECK (
- coalesce(get_my_claim('resources_create')::boolean,false)
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
-);
-
-CREATE POLICY "Employees with resources_update can update crew abilities" ON "crewAbility"
- FOR UPDATE
- USING (
- coalesce(get_my_claim('resources_update')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-
-CREATE POLICY "Employees with resources_delete can delete crew abilities" ON "crewAbility"
- FOR DELETE
- USING (
- coalesce(get_my_claim('resources_delete')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-
-CREATE TABLE "equipmentType" (
- "id" TEXT NOT NULL DEFAULT xid(),
- "name" TEXT NOT NULL UNIQUE,
- "color" TEXT NOT NULL DEFAULT '#000000',
- "description" TEXT,
- "requiredAbility" TEXT,
- "active" BOOLEAN NOT NULL DEFAULT true,
- "createdBy" TEXT NOT NULL,
- "createdAt" TIMESTAMP NOT NULL DEFAULT now(),
- "updatedBy" TEXT,
- "updatedAt" TIMESTAMP,
-
- CONSTRAINT "equipmentType_pkey" PRIMARY KEY ("id"),
- CONSTRAINT "equipmentType_colorCheck" CHECK ("color" is null or "color" ~* '^#[a-f0-9]{6}$'),
- CONSTRAINT "equipmentType_requiredAbility_fkey" FOREIGN KEY ("requiredAbility") REFERENCES "ability"("id") ON DELETE CASCADE ON UPDATE CASCADE,
- CONSTRAINT "equipmentType_createdBy_fkey" FOREIGN KEY ("createdBy") REFERENCES "user"("id") ON DELETE CASCADE ON UPDATE CASCADE,
- CONSTRAINT "equipmentType_updatedBy_fkey" FOREIGN KEY ("updatedBy") REFERENCES "user"("id") ON DELETE CASCADE ON UPDATE CASCADE
-);
-
-ALTER TABLE "equipmentType" ENABLE ROW LEVEL SECURITY;
-
-CREATE POLICY "Employees can view equipment types" ON "equipmentType"
- FOR SELECT
- USING (
- auth.role() = 'authenticated'
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-
-CREATE POLICY "Employees with resources_create can insert equipment types" ON "equipmentType"
- FOR INSERT
- WITH CHECK (
- coalesce(get_my_claim('resources_create')::boolean,false)
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
-);
-
-CREATE POLICY "Employees with resources_update can update equipment types" ON "equipmentType"
- FOR UPDATE
- USING (
- coalesce(get_my_claim('resources_update')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-
-CREATE POLICY "Employees with resources_delete can delete equipment types" ON "equipmentType"
- FOR DELETE
- USING (
- coalesce(get_my_claim('resources_delete')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-
-CREATE TABLE "equipment" (
- "id" TEXT NOT NULL DEFAULT xid(),
- "name" TEXT NOT NULL UNIQUE,
- "description" TEXT,
- "equipmentTypeId" TEXT NOT NULL,
- "operatorsRequired" NUMERIC NOT NULL DEFAULT 1,
- "setupHours" NUMERIC NOT NULL DEFAULT 0,
- "locationId" TEXT NOT NULL,
- "workCellId" TEXT,
- "active" BOOLEAN NOT NULL DEFAULT true,
- "activeDate" DATE DEFAULT CURRENT_DATE,
- "createdBy" TEXT NOT NULL,
- "createdAt" TIMESTAMP NOT NULL DEFAULT now(),
- "updatedBy" TEXT,
- "updatedAt" TIMESTAMP,
-
- CONSTRAINT "equipment_pkey" PRIMARY KEY ("id"),
- CONSTRAINT "equipment_equipmentTypeId_fkey" FOREIGN KEY ("equipmentTypeId") REFERENCES "equipmentType"("id") ON DELETE CASCADE ON UPDATE CASCADE,
- CONSTRAINT "equipment_locationId_fkey" FOREIGN KEY ("locationId") REFERENCES "location"("id") ON DELETE CASCADE ON UPDATE CASCADE,
- CONSTRAINT "equipment_workCellId_fkey" FOREIGN KEY ("workCellId") REFERENCES "workCell"("id") ON DELETE CASCADE ON UPDATE CASCADE,
- CONSTRAINT "equipment_createdBy_fkey" FOREIGN KEY ("createdBy") REFERENCES "user"("id") ON DELETE CASCADE ON UPDATE CASCADE,
- CONSTRAINT "equipment_updatedBy_fkey" FOREIGN KEY ("updatedBy") REFERENCES "user"("id") ON DELETE CASCADE ON UPDATE CASCADE
-);
-
-ALTER TABLE "equipment" ENABLE ROW LEVEL SECURITY;
-
-CREATE POLICY "Employees can view equipment" ON "equipment"
- FOR SELECT
- USING (
- auth.role() = 'authenticated'
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-
-CREATE POLICY "Employees with resources_create can insert equipment" ON "equipment"
- FOR INSERT
- WITH CHECK (
- coalesce(get_my_claim('resources_create')::boolean,false)
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
-);
-
-CREATE POLICY "Employees with resources_update can update equipment" ON "equipment"
- FOR UPDATE
- USING (
- coalesce(get_my_claim('resources_update')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-
-CREATE POLICY "Employees with resources_delete can delete equipment" ON "equipment"
- FOR DELETE
- USING (
- coalesce(get_my_claim('resources_delete')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-
-CREATE FUNCTION public.create_equipment_search_result()
-RETURNS TRIGGER AS $$
-DECLARE
- equipment_type TEXT;
-BEGIN
- equipment_type := (SELECT et."name" FROM public."equipmentType" et WHERE et.id = new."equipmentTypeId");
- INSERT INTO public.search(name, description, entity, uuid, link)
- VALUES (new.name, COALESCE(new.description, '') || ' ' || equipment_type, 'Resource', new.id, '/x/resources/equipment/list/' || new."equipmentTypeId" || '/' || new.id);
- RETURN new;
-END;
-$$ LANGUAGE plpgsql SECURITY DEFINER;
-
-CREATE TRIGGER create_equipment_search_result
- AFTER INSERT on public.equipment
- FOR EACH ROW EXECUTE PROCEDURE public.create_equipment_search_result();
-
-CREATE FUNCTION public.update_equipment_search_result()
-RETURNS TRIGGER AS $$
-DECLARE
- equipment_type TEXT;
-BEGIN
- IF (old.name <> new.name OR old.description <> new.description OR old."equipmentTypeId" <> new."equipmentTypeId") THEN
- equipment_type := (SELECT et."name" FROM public."equipmentType" et WHERE et.id = new."equipmentTypeId");
- UPDATE public.search SET name = new.name, description = COALESCE(new.description, '') || ' ' || equipment_type
- WHERE entity = 'Resource' AND uuid = new.id;
- END IF;
- RETURN new;
-END;
-$$ LANGUAGE plpgsql SECURITY DEFINER;
-
-CREATE TRIGGER update_equipment_search_result
- AFTER UPDATE on public.equipment
- FOR EACH ROW EXECUTE PROCEDURE public.update_equipment_search_result();
-
-
-
-```
-
-
-
-## `holidays`
-
-```sql
-CREATE TABLE "holiday" (
- "id" TEXT NOT NULL DEFAULT xid(),
- "name" TEXT NOT NULL,
- "date" DATE NOT NULL,
- "year" INTEGER GENERATED ALWAYS AS (EXTRACT(YEAR FROM "date")) STORED,
- "createdBy" TEXT NOT NULL,
- "createdAt" TIMESTAMP NOT NULL DEFAULT now(),
- "updatedBy" TEXT,
- "updatedAt" TIMESTAMP,
-
- CONSTRAINT "holiday_pkey" PRIMARY KEY ("id"),
- CONSTRAINT "uq_holiday_date" UNIQUE ("date"),
- CONSTRAINT "holiday_createdBy_fkey" FOREIGN KEY ("createdBy") REFERENCES "user"("id") ON DELETE CASCADE ON UPDATE CASCADE,
- CONSTRAINT "holiday_updatedBy_fkey" FOREIGN KEY ("updatedBy") REFERENCES "user"("id") ON DELETE CASCADE ON UPDATE CASCADE
-);
-
-CREATE OR REPLACE VIEW "holidayYears" AS SELECT DISTINCT "year" FROM "holiday";
-
-ALTER TABLE "holiday" ENABLE ROW LEVEL SECURITY;
-
-CREATE POLICY "Employees can view holidays" ON "holiday"
- FOR SELECT
- USING (
- auth.role() = 'authenticated'
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-
-CREATE POLICY "Employees with resources_create can insert holidays" ON "holiday"
- FOR INSERT
- WITH CHECK (
- coalesce(get_my_claim('resources_create')::boolean,false)
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
-);
-
-CREATE POLICY "Employees with resources_update can update holidays" ON "holiday"
- FOR UPDATE
- USING (
- coalesce(get_my_claim('resources_update')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-
-CREATE POLICY "Employees with resources_delete can delete holidays" ON "holiday"
- FOR DELETE
- USING (
- coalesce(get_my_claim('resources_delete')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-```
-
-
-
-## `partners`
-
-```sql
-CREATE TABLE "partner" (
- "id" TEXT NOT NULL,
- "hoursPerWeek" INTEGER NOT NULL DEFAULT 0,
- "abilityId" TEXT,
- "active" BOOLEAN NOT NULL DEFAULT true,
- "createdBy" TEXT NOT NULL,
- "createdAt" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW(),
- "updatedBy" TEXT,
- "updatedAt" TIMESTAMP WITH TIME ZONE,
-
- CONSTRAINT "partner_pkey" PRIMARY KEY ("id", "abilityId"),
- CONSTRAINT "partner_id_fkey" FOREIGN KEY ("id") REFERENCES "supplierLocation"("id"),
- CONSTRAINT "partner_abilityId_fkey" FOREIGN KEY ("abilityId") REFERENCES "ability"("id"),
- CONSTRAINT "partner_createdBy_fkey" FOREIGN KEY ("createdBy") REFERENCES "user"("id"),
- CONSTRAINT "partner_updatedBy_fkey" FOREIGN KEY ("updatedBy") REFERENCES "user"("id")
-);
-
-CREATE INDEX "partner_id_idx" ON "partner" ("id");
-CREATE INDEX "partner_abilityId_idx" ON "partner" ("abilityId");
-
-CREATE OR REPLACE VIEW "partners" AS
- SELECT
- p.id AS "supplierLocationId",
- p."active",
- p."hoursPerWeek",
- p."abilityId",
- a2.name AS "abilityName",
- s.id AS "supplierId",
- s.name AS "supplierName",
- a.city,
- a.state
- FROM "partner" p
- INNER JOIN "supplierLocation" sl
- ON sl.id = p.id
- INNER JOIN "supplier" s
- ON s.id = sl."supplierId"
- INNER JOIN "address" a
- ON a.id = sl."addressId"
- INNER JOIN "ability" a2
- ON a2.id = p."abilityId"
- WHERE p."active" = true;
-```
-
-
-
-## `contractors`
-
-```sql
-CREATE TABLE "contractor" (
- "id" TEXT NOT NULL,
- "hoursPerWeek" INTEGER NOT NULL DEFAULT 0,
- "active" BOOLEAN NOT NULL DEFAULT true,
- "createdBy" TEXT NOT NULL,
- "createdAt" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW(),
- "updatedBy" TEXT,
- "updatedAt" TIMESTAMP WITH TIME ZONE,
-
- CONSTRAINT "contractor_pkey" PRIMARY KEY ("id"),
- CONSTRAINT "contractor_id_fkey" FOREIGN KEY ("id") REFERENCES "supplierContact"("id"),
- CONSTRAINT "contractor_createdBy_fkey" FOREIGN KEY ("createdBy") REFERENCES "user"("id"),
- CONSTRAINT "contractor_updatedBy_fkey" FOREIGN KEY ("updatedBy") REFERENCES "user"("id")
-);
-
-ALTER TABLE "contractor" ENABLE ROW LEVEL SECURITY;
-
-CREATE POLICY "Employees with resources_view can view contractors" ON "contractor"
- FOR SELECT
- USING (
- coalesce(get_my_claim('resources_view')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-
-CREATE POLICY "Employees with resources_create can insert contractors" ON "contractor"
- FOR INSERT
- WITH CHECK (
- coalesce(get_my_claim('resources_create')::boolean,false)
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
-);
-
-CREATE POLICY "Employees with resources_update can update contractors" ON "contractor"
- FOR UPDATE
- USING (
- coalesce(get_my_claim('resources_update')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-
-CREATE POLICY "Employees with resources_delete can delete contractors" ON "contractor"
- FOR DELETE
- USING (
- coalesce(get_my_claim('resources_delete')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-
-
-CREATE TABLE "contractorAbility" (
- "contractorId" TEXT NOT NULL,
- "abilityId" TEXT NOT NULL,
- "createdBy" TEXT NOT NULL,
- "createdAt" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW(),
-
- CONSTRAINT "contractorAbility_pkey" PRIMARY KEY ("contractorId", "abilityId"),
- CONSTRAINT "contractorAbility_contractorId_fkey" FOREIGN KEY ("contractorId") REFERENCES "contractor"("id") ON DELETE CASCADE,
- CONSTRAINT "contractorAbility_abilityId_fkey" FOREIGN KEY ("abilityId") REFERENCES "ability"("id") ON DELETE CASCADE,
- CONSTRAINT "contractorAbility_createdBy_fkey" FOREIGN KEY ("createdBy") REFERENCES "user"("id")
-);
-
-ALTER TABLE "contractorAbility" ENABLE ROW LEVEL SECURITY;
-
-CREATE POLICY "Employees with resources_view can view contractorAbilities" ON "contractorAbility"
- FOR SELECT
- USING (
- coalesce(get_my_claim('resources_view')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-
-CREATE POLICY "Employees with resources_create can insert contractorAbilities" ON "contractorAbility"
- FOR INSERT
- WITH CHECK (
- coalesce(get_my_claim('resources_create')::boolean,false)
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
-);
-
-CREATE POLICY "Employees with resources_update can update contractorAbilities" ON "contractorAbility"
- FOR UPDATE
- USING (
- coalesce(get_my_claim('resources_update')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-
-CREATE POLICY "Employees with resources_delete can delete contractorAbilities" ON "contractorAbility"
- FOR DELETE
- USING (
- coalesce(get_my_claim('resources_delete')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-
-
-CREATE OR REPLACE VIEW "contractors" AS
- SELECT
- p.id AS "supplierContactId",
- p."active",
- p."hoursPerWeek",
- s.id AS "supplierId",
- s.name AS "supplierName",
- c."firstName",
- c."lastName",
- c."email",
- array_agg(pa."abilityId") AS "abilityIds"
- FROM "contractor" p
- INNER JOIN "supplierContact" sc
- ON sc.id = p.id
- INNER JOIN "supplier" s
- ON s.id = sc."supplierId"
- INNER JOIN "contact" c
- ON c.id = sc."contactId"
- LEFT JOIN "contractorAbility" pa
- ON pa."contractorId" = p.id
- WHERE p."active" = true
- GROUP BY p.id, p.active, p."hoursPerWeek", s.id, c.id, s.name, c."firstName", c."lastName", c."email"
-;
-```
-
-
-
-## `accounts`
-
-```sql
-CREATE TABLE "currency" (
- "id" TEXT NOT NULL DEFAULT xid(),
- "name" TEXT NOT NULL,
- "code" TEXT NOT NULL,
- "symbol" TEXT,
- "exchangeRate" NUMERIC(10,4) NOT NULL DEFAULT 1.0000,
- "isBaseCurrency" BOOLEAN NOT NULL DEFAULT false,
- "active" BOOLEAN NOT NULL DEFAULT true,
- "createdBy" TEXT NOT NULL,
- "createdAt" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW(),
- "updatedBy" TEXT,
- "updatedAt" TIMESTAMP WITH TIME ZONE,
-
- CONSTRAINT "currency_pkey" PRIMARY KEY ("id"),
- CONSTRAINT "currency_code_key" UNIQUE ("code"),
- CONSTRAINT "currency_exchangeRate_check" CHECK ("exchangeRate" > 0),
- CONSTRAINT "currency_createdBy_fkey" FOREIGN KEY ("createdBy") REFERENCES "user"("id"),
- CONSTRAINT "currency_updatedBy_fkey" FOREIGN KEY ("updatedBy") REFERENCES "user"("id")
-);
-
-CREATE INDEX "currency_code_index" ON "currency" ("code");
-
-ALTER TABLE "currency" ENABLE ROW LEVEL SECURITY;
-
-CREATE POLICY "Authenticated users can view currencies" ON "currency"
- FOR SELECT
- USING (
- auth.role() = 'authenticated'
- );
-
-CREATE POLICY "Employees with accounting_create can insert currencies" ON "currency"
- FOR INSERT
- WITH CHECK (
- coalesce(get_my_claim('accounting_create')::boolean,false)
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
-);
-
-CREATE POLICY "Employees with accounting_update can update currencies" ON "currency"
- FOR UPDATE
- USING (
- coalesce(get_my_claim('accounting_update')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-
-CREATE POLICY "Employees with accounting_delete can delete currencies" ON "currency"
- FOR DELETE
- USING (
- coalesce(get_my_claim('accounting_delete')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-
-CREATE TYPE "glAccountCategory" AS ENUM (
- 'Bank',
- 'Accounts Receivable',
- 'Inventory',
- 'Other Current Asset',
- 'Fixed Asset',
- 'Accumulated Depreciation',
- 'Other Asset',
- 'Accounts Payable',
- 'Other Current Liability',
- 'Long Term Liability',
- 'Equity - No Close',
- 'Equity - Close',
- 'Retained Earnings',
- 'Income',
- 'Cost of Goods Sold',
- 'Expense',
- 'Other Income',
- 'Other Expense'
-);
-
-CREATE TYPE "glAccountClass" AS ENUM (
- 'Asset',
- 'Liability',
- 'Equity',
- 'Revenue',
- 'Expense'
-);
-
-CREATE TYPE "glIncomeBalance" AS ENUM (
- 'Balance Sheet',
- 'Income Statement'
-);
-
-CREATE TYPE "glAccountType" AS ENUM (
- 'Posting',
- 'Heading',
- -- 'Total',
- 'Begin Total',
- 'End Total'
-);
-
-CREATE TABLE "accountCategory" (
- "id" TEXT NOT NULL DEFAULT xid(),
- "category" TEXT NOT NULL,
- "class" "glAccountClass" NOT NULL,
- "incomeBalance" "glIncomeBalance" NOT NULL,
- "createdBy" TEXT NOT NULL,
- "createdAt" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW(),
- "updatedBy" TEXT,
- "updatedAt" TIMESTAMP WITH TIME ZONE,
-
- CONSTRAINT "accountCategory_pkey" PRIMARY KEY ("id"),
- CONSTRAINT "accountCategory_unique_category" UNIQUE ("category"),
- CONSTRAINT "accountCategory_createdBy_fkey" FOREIGN KEY ("createdBy") REFERENCES "user"("id"),
- CONSTRAINT "accountCategory_updatedBy_fkey" FOREIGN KEY ("updatedBy") REFERENCES "user"("id")
-);
-
-ALTER TABLE "accountCategory" ENABLE ROW LEVEL SECURITY;
-
-CREATE POLICY "Employees with accounting_view can view account categories" ON "accountCategory"
- FOR SELECT
- USING (
- coalesce(get_my_claim('accounting_view')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-
-
-CREATE POLICY "Employees with accounting_create can insert account categories" ON "accountCategory"
- FOR INSERT
- WITH CHECK (
- coalesce(get_my_claim('accounting_create')::boolean,false)
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
-);
-
-CREATE POLICY "Employees with accounting_update can update account categories" ON "accountCategory"
- FOR UPDATE
- USING (
- coalesce(get_my_claim('accounting_update')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-
-CREATE POLICY "Employees with accounting_delete can delete account categories" ON "accountCategory"
- FOR DELETE
- USING (
- coalesce(get_my_claim('accounting_delete')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-
-CREATE TYPE "glConsolidatedRate" AS ENUM (
- 'Average',
- 'Current',
- 'Historical'
-);
-
-CREATE TABLE "accountSubcategory" (
- "id" TEXT NOT NULL DEFAULT xid(),
- "name" TEXT NOT NULL,
- "accountCategoryId" TEXT NOT NULL,
- "active" BOOLEAN NOT NULL DEFAULT true,
- "createdBy" TEXT NOT NULL,
- "createdAt" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW(),
- "updatedBy" TEXT,
- "updatedAt" TIMESTAMP WITH TIME ZONE,
-
- CONSTRAINT "accountSubcategory_pkey" PRIMARY KEY ("id"),
- CONSTRAINT "accountSubcategory_name_key" UNIQUE ("name"),
- CONSTRAINT "accountSubcategory_accountCategoryId_fkey" FOREIGN KEY ("accountCategoryId") REFERENCES "accountCategory"("id"),
- CONSTRAINT "accountSubcategory_createdBy_fkey" FOREIGN KEY ("createdBy") REFERENCES "user"("id"),
- CONSTRAINT "accountSubcategory_updatedBy_fkey" FOREIGN KEY ("updatedBy") REFERENCES "user"("id")
-);
-
-CREATE INDEX "accountSubcategory_accountCategoryId_idx" ON "accountSubcategory" ("accountCategoryId");
-
-ALTER TABLE "accountSubcategory" ENABLE ROW LEVEL SECURITY;
-
-CREATE POLICY "Employees with accounting_view can view account subcategories" ON "accountSubcategory"
- FOR SELECT
- USING (
- coalesce(get_my_claim('accounting_view')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-
-
-CREATE POLICY "Employees with accounting_create can insert account subcategories" ON "accountSubcategory"
- FOR INSERT
- WITH CHECK (
- coalesce(get_my_claim('accounting_create')::boolean,false)
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
-);
-
-CREATE POLICY "Employees with accounting_update can update account subcategories" ON "accountSubcategory"
- FOR UPDATE
- USING (
- coalesce(get_my_claim('accounting_update')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-
-CREATE POLICY "Employees with accounting_delete can delete account subcategories" ON "accountSubcategory"
- FOR DELETE
- USING (
- coalesce(get_my_claim('accounting_delete')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-
-CREATE TABLE "account" (
- "id" TEXT NOT NULL DEFAULT xid(),
- "number" TEXT NOT NULL,
- "name" TEXT NOT NULL,
- "type" "glAccountType" NOT NULL,
- "class" "glAccountClass",
- "accountCategoryId" TEXT,
- "accountSubcategoryId" TEXT,
- "incomeBalance" "glIncomeBalance" NOT NULL,
- "consolidatedRate" "glConsolidatedRate",
- "directPosting" BOOLEAN NOT NULL DEFAULT false,
- "active" BOOLEAN NOT NULL DEFAULT true,
- "createdBy" TEXT NOT NULL,
- "createdAt" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW(),
- "updatedBy" TEXT,
- "updatedAt" TIMESTAMP WITH TIME ZONE,
-
- CONSTRAINT "account_pkey" PRIMARY KEY ("id"),
- CONSTRAINT "account_number_key" UNIQUE ("number"),
- CONSTRAINT "account_name_key" UNIQUE ("name"),
- CONSTRAINT "account_accountCategoryId_fkey" FOREIGN KEY ("accountCategoryId") REFERENCES "accountCategory"("id"),
- CONSTRAINT "account_createdBy_fkey" FOREIGN KEY ("createdBy") REFERENCES "user"("id"),
- CONSTRAINT "account_updatedBy_fkey" FOREIGN KEY ("updatedBy") REFERENCES "user"("id")
-);
-
-CREATE INDEX "account_number_idx" ON "account" ("number");
-CREATE INDEX "account_type_idx" ON "account" ("type");
-CREATE INDEX "account_incomeBalance_idx" ON "account" ("incomeBalance");
-CREATE INDEX "account_accountCategoryId_idx" ON "account" ("accountCategoryId");
-CREATE INDEX "account_accountSubcategoryId_idx" ON "account" ("accountSubcategoryId");
-
-
-ALTER TABLE "account" ENABLE ROW LEVEL SECURITY;
-
-CREATE POLICY "Certain employees can view accounts" ON "account"
- FOR SELECT
- USING (
- (
- coalesce(get_my_claim('accounting_view')::boolean, false) = true OR
- coalesce(get_my_claim('parts_view')::boolean, false) = true OR
- coalesce(get_my_claim('resources_view')::boolean, false) = true OR
- coalesce(get_my_claim('sales_view')::boolean, false) = true OR
- coalesce(get_my_claim('purchasing_view')::boolean, false) = true
- )
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-
-
-CREATE POLICY "Employees with accounting_create can insert accounts" ON "account"
- FOR INSERT
- WITH CHECK (
- coalesce(get_my_claim('accounting_create')::boolean,false)
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
-);
-
-CREATE POLICY "Employees with accounting_update can update accounts" ON "account"
- FOR UPDATE
- USING (
- coalesce(get_my_claim('accounting_update')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-
-CREATE POLICY "Employees with accounting_delete can delete accounts" ON "account"
- FOR DELETE
- USING (
- coalesce(get_my_claim('accounting_delete')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-
-CREATE OR REPLACE VIEW "accountCategories" AS
- SELECT
- "id",
- "category",
- "class",
- "incomeBalance",
- "createdBy",
- "createdAt",
- "updatedBy",
- "updatedAt",
- (SELECT count(*) FROM "accountSubcategory" WHERE "accountSubcategory"."accountCategoryId" = "accountCategory"."id" AND "accountSubcategory"."active" = true) AS "subCategoriesCount"
- FROM "accountCategory"
-;
-
-CREATE OR REPLACE VIEW "accounts" AS
- SELECT
- "id",
- "number",
- "name",
- "type",
- "accountCategoryId",
- (SELECT "category" FROM "accountCategory" WHERE "accountCategory"."id" = "account"."accountCategoryId") AS "accountCategory",
- "accountSubcategoryId",
- (SELECT "name" FROM "accountSubcategory" WHERE "accountSubcategory"."id" = "account"."accountSubcategoryId") AS "accountSubCategory",
- "class",
- "incomeBalance",
- "consolidatedRate",
- "directPosting",
- "active",
- "createdBy",
- "createdAt",
- "updatedBy",
- "updatedAt"
- FROM "account"
-;
-```
-
-
-
-## `parts`
-
-```sql
-CREATE TABLE "partGroup" (
- "id" TEXT NOT NULL DEFAULT xid(),
- "name" TEXT NOT NULL,
- "description" TEXT,
- "active" BOOLEAN NOT NULL DEFAULT true,
- "createdBy" TEXT NOT NULL,
- "createdAt" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW(),
- "updatedBy" TEXT,
- "updatedAt" TIMESTAMP WITH TIME ZONE,
-
- CONSTRAINT "partGroup_pkey" PRIMARY KEY ("id"),
- CONSTRAINT "partGroup_name_key" UNIQUE ("name"),
- CONSTRAINT "partGroup_createdBy_fkey" FOREIGN KEY ("createdBy") REFERENCES "user"("id"),
- CONSTRAINT "partGroup_updatedBy_fkey" FOREIGN KEY ("updatedBy") REFERENCES "user"("id")
-);
-
-ALTER TABLE "partGroup" ENABLE ROW LEVEL SECURITY;
-
-CREATE POLICY "Employees with parts can view part groups" ON "partGroup"
- FOR SELECT
- USING (
- coalesce(get_my_claim('parts_view')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-
-
-CREATE POLICY "Employees with parts_create can insert part groups" ON "partGroup"
- FOR INSERT
- WITH CHECK (
- coalesce(get_my_claim('parts_create')::boolean,false)
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
-);
-
-CREATE POLICY "Employees with parts_update can update part groups" ON "partGroup"
- FOR UPDATE
- USING (
- coalesce(get_my_claim('parts_update')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-
-CREATE POLICY "Employees with parts_delete can delete part groups" ON "partGroup"
- FOR DELETE
- USING (
- coalesce(get_my_claim('parts_delete')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-
-CREATE TYPE "partType" AS ENUM (
- 'Inventory',
- 'Non-Inventory'
-);
-
-CREATE TYPE "partReplenishmentSystem" AS ENUM (
- 'Buy',
- 'Make',
- 'Buy and Make'
-);
-
-CREATE TYPE "partManufacturingPolicy" AS ENUM (
- 'Make to Order',
- 'Make to Stock'
-);
-
-
-CREATE TYPE "partCostingMethod" AS ENUM (
- 'Standard',
- 'Average',
- 'LIFO',
- 'FIFO'
-);
-
-CREATE TYPE "partReorderingPolicy" AS ENUM (
- 'Manual Reorder',
- 'Demand-Based Reorder',
- 'Fixed Reorder Quantity',
- 'Maximum Quantity'
-);
-
-CREATE TABLE "unitOfMeasure" (
- "id" TEXT NOT NULL DEFAULT xid(),
- "code" TEXT NOT NULL,
- "name" TEXT NOT NULL,
- "active" BOOLEAN NOT NULL DEFAULT true,
- "createdBy" TEXT NOT NULL,
- "createdAt" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW(),
- "updatedBy" TEXT,
- "updatedAt" TIMESTAMP WITH TIME ZONE,
-
- CONSTRAINT "unitOfMeasure_pkey" PRIMARY KEY ("id"),
- CONSTRAINT "unitOfMeasure_code_key" UNIQUE ("code"),
- CONSTRAINT "unitOfMeasure_code_check" CHECK (char_length("code") <= 3),
- CONSTRAINT "unitOfMeasure_createdBy_fkey" FOREIGN KEY ("createdBy") REFERENCES "user"("id"),
- CONSTRAINT "unitOfMeasure_updatedBy_fkey" FOREIGN KEY ("updatedBy") REFERENCES "user"("id")
-);
-
-CREATE INDEX "unitOfMeasure_code_index" ON "unitOfMeasure"("code");
-
-ALTER TABLE "unitOfMeasure" ENABLE ROW LEVEL SECURITY;
-
-CREATE POLICY "Authenticated users can view units of measure" ON "unitOfMeasure"
- FOR SELECT
- USING (
- auth.role() = 'authenticated'
- );
-
-
-CREATE POLICY "Employees with parts_create can insert units of measure" ON "unitOfMeasure"
- FOR INSERT
- WITH CHECK (
- coalesce(get_my_claim('parts_create')::boolean,false)
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
-);
-
-CREATE POLICY "Employees with parts_update can update units of measure" ON "unitOfMeasure"
- FOR UPDATE
- USING (
- coalesce(get_my_claim('parts_update')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-
-CREATE POLICY "Employees with parts_delete can delete units of measure" ON "unitOfMeasure"
- FOR DELETE
- USING (
- coalesce(get_my_claim('parts_delete')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-
-
-CREATE TABLE "part" (
- "id" TEXT NOT NULL,
- "name" TEXT NOT NULL,
- "description" TEXT,
- "blocked" BOOLEAN NOT NULL DEFAULT false,
- "replenishmentSystem" "partReplenishmentSystem" NOT NULL,
- "partGroupId" TEXT,
- "partType" "partType" NOT NULL,
- "manufacturerPartNumber" TEXT,
- "unitOfMeasureCode" TEXT NOT NULL,
- "active" BOOLEAN NOT NULL DEFAULT true,
- "approved" BOOLEAN NOT NULL DEFAULT false,
- "approvedBy" TEXT,
- "fromDate" DATE,
- "toDate" DATE,
- "createdBy" TEXT NOT NULL,
- "createdAt" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW(),
- "updatedBy" TEXT,
- "updatedAt" TIMESTAMP WITH TIME ZONE,
-
- CONSTRAINT "part_pkey" PRIMARY KEY ("id"),
- CONSTRAINT "part_unitOfMeasureCode_fkey" FOREIGN KEY ("unitOfMeasureCode") REFERENCES "unitOfMeasure"("code") ON DELETE SET NULL ON UPDATE CASCADE,
- CONSTRAINT "part_partGroupId_fkey" FOREIGN KEY ("partGroupId") REFERENCES "partGroup"("id"),
- CONSTRAINT "part_approvedBy_fkey" FOREIGN KEY ("approvedBy") REFERENCES "user"("id"),
- CONSTRAINT "part_createdBy_fkey" FOREIGN KEY ("createdBy") REFERENCES "user"("id"),
- CONSTRAINT "part_updatedBy_fkey" FOREIGN KEY ("updatedBy") REFERENCES "user"("id")
-);
-
-CREATE INDEX "part_name_index" ON "part"("name");
-CREATE INDEX "part_description_index" ON "part"("description");
-CREATE INDEX "part_partType_index" ON "part"("partType");
-CREATE INDEX "part_partGroupId_index" ON "part"("partGroupId");
-CREATE INDEX "part_replenishmentSystem_index" ON "part"("replenishmentSystem");
-CREATE INDEX "part_active_blocked_index" ON "part"("active", "blocked");
-
-ALTER publication supabase_realtime ADD TABLE "part";
-ALTER TABLE "part" ENABLE ROW LEVEL SECURITY;
-
-CREATE POLICY "Employees can view parts" ON "part"
- FOR SELECT
- USING (
- (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-
-CREATE POLICY "Employees with parts_create can insert parts" ON "part"
- FOR INSERT
- WITH CHECK (
- coalesce(get_my_claim('parts_create')::boolean,false)
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-
-CREATE POLICY "Employees with parts_update can update parts" ON "part"
- FOR UPDATE
- USING (
- coalesce(get_my_claim('parts_update')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-
-CREATE POLICY "Employees with parts_delete can delete parts" ON "part"
- FOR DELETE
- USING (
- coalesce(get_my_claim('parts_delete')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-
-CREATE FUNCTION public.create_part_search_result()
-RETURNS TRIGGER AS $$
-BEGIN
- INSERT INTO public.search(name, description, entity, uuid, link)
- VALUES (new.id, new.id || ' ' || new.name || ' ' || COALESCE(new.description, ''), 'Part', new.id, '/x/part/' || new.id);
- RETURN new;
-END;
-$$ LANGUAGE plpgsql SECURITY DEFINER;
-
-CREATE TRIGGER create_part_search_result
- AFTER INSERT on public.part
- FOR EACH ROW EXECUTE PROCEDURE public.create_part_search_result();
-
-CREATE FUNCTION public.create_part_related_records()
-RETURNS TRIGGER AS $$
-BEGIN
- INSERT INTO public."partCost"("partId", "costingMethod", "createdBy")
- VALUES (new.id, 'Standard', new."createdBy");
-
- INSERT INTO public."partReplenishment"("partId", "createdBy")
- VALUES (new.id, new."createdBy");
-
- INSERT INTO public."partUnitSalePrice"("partId", "currencyCode", "createdBy")
- -- TODO: get default currency
- VALUES (new.id, 'USD', new."createdBy");
-
- RETURN new;
-END;
-$$ LANGUAGE plpgsql SECURITY DEFINER;
-
-CREATE TRIGGER create_part_related_records
- AFTER INSERT on public.part
- FOR EACH ROW EXECUTE PROCEDURE public.create_part_related_records();
-
-CREATE FUNCTION public.update_part_search_result()
-RETURNS TRIGGER AS $$
-BEGIN
- IF (old.name <> new.name OR old.description <> new.description) THEN
- UPDATE public.search SET name = new.name, description = new.id || ' ' || new.name || ' ' || COALESCE(new.description, '')
- WHERE entity = 'Part' AND uuid = new.id;
- END IF;
- RETURN new;
-END;
-$$ LANGUAGE plpgsql SECURITY DEFINER;
-
-CREATE TRIGGER update_part_search_result
- AFTER UPDATE on public.part
- FOR EACH ROW EXECUTE PROCEDURE public.update_part_search_result();
-
-
-CREATE TABLE "partCost" (
- "partId" TEXT NOT NULL,
- "costingMethod" "partCostingMethod" NOT NULL,
- "standardCost" NUMERIC(15,5) NOT NULL DEFAULT 0,
- "unitCost" NUMERIC(15,5) NOT NULL DEFAULT 0,
- "costIsAdjusted" BOOLEAN NOT NULL DEFAULT false,
- "createdBy" TEXT NOT NULL,
- "createdAt" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW(),
- "updatedBy" TEXT,
- "updatedAt" TIMESTAMP WITH TIME ZONE,
-
- CONSTRAINT "partCost_partId_fkey" FOREIGN KEY ("partId") REFERENCES "part"("id") ON DELETE CASCADE ON UPDATE CASCADE,
- CONSTRAINT "partGroup_createdBy_fkey" FOREIGN KEY ("createdBy") REFERENCES "user"("id"),
- CONSTRAINT "partGroup_updatedBy_fkey" FOREIGN KEY ("updatedBy") REFERENCES "user"("id")
-);
-
-CREATE INDEX "partCost_partId_index" ON "partCost" ("partId");
-
-ALTER TABLE "partCost" ENABLE ROW LEVEL SECURITY;
-
-CREATE POLICY "Employees with part_view can view part costs" ON "partCost"
- FOR SELECT
- USING (
- coalesce(get_my_claim('parts_view')::boolean,false)
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-
-CREATE POLICY "Employees with parts_update can update part costs" ON "partCost"
- FOR UPDATE
- USING (
- coalesce(get_my_claim('parts_update')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-
-CREATE TABLE "partUnitSalePrice" (
- "partId" TEXT NOT NULL,
- "unitSalePrice" NUMERIC(15,5) NOT NULL DEFAULT 0,
- "currencyCode" TEXT NOT NULL,
- "salesUnitOfMeasureCode" TEXT,
- "salesBlocked" BOOLEAN NOT NULL DEFAULT false,
- "priceIncludesTax" BOOLEAN NOT NULL DEFAULT false,
- "allowInvoiceDiscount" BOOLEAN NOT NULL DEFAULT true,
- "createdBy" TEXT NOT NULL,
- "createdAt" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW(),
- "updatedBy" TEXT,
- "updatedAt" TIMESTAMP WITH TIME ZONE,
-
- CONSTRAINT "partUnitSalePrice_partId_fkey" FOREIGN KEY ("partId") REFERENCES "part"("id") ON DELETE CASCADE ON UPDATE CASCADE,
- CONSTRAINT "partUnitSalePrice_currencyCode_fkey" FOREIGN KEY ("currencyCode") REFERENCES "currency"("code") ON DELETE SET NULL ON UPDATE CASCADE,
- CONSTRAINT "partUnitSalePrice_salesUnitOfMeasureId_fkey" FOREIGN KEY ("salesUnitOfMeasureCode") REFERENCES "unitOfMeasure"("code") ON DELETE SET NULL,
- CONSTRAINT "partUnitSalePrice_createdBy_fkey" FOREIGN KEY ("createdBy") REFERENCES "user"("id"),
- CONSTRAINT "partUnitSalePrice_updatedBy_fkey" FOREIGN KEY ("updatedBy") REFERENCES "user"("id")
-);
-
-CREATE INDEX "partUnitSalePrice_partId_index" ON "partUnitSalePrice"("partId");
-
-ALTER TABLE "partUnitSalePrice" ENABLE ROW LEVEL SECURITY;
-
-CREATE POLICY "Employees with part_view can view part sale prices" ON "partUnitSalePrice"
- FOR SELECT
- USING (
- coalesce(get_my_claim('parts_view')::boolean,false)
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-
-CREATE POLICY "Employees with parts_update can update part sale prices" ON "partUnitSalePrice"
- FOR UPDATE
- USING (
- coalesce(get_my_claim('parts_update')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-
-CREATE TABLE "partSupplier" (
- "id" TEXT NOT NULL DEFAULT xid(),
- "partId" TEXT NOT NULL,
- "supplierId" TEXT NOT NULL,
- "supplierPartId" TEXT,
- "supplierUnitOfMeasureCode" TEXT,
- "minimumOrderQuantity" INTEGER DEFAULT 1,
- "conversionFactor" NUMERIC(15,5) NOT NULL DEFAULT 1,
- "active" BOOLEAN NOT NULL DEFAULT true,
- "createdBy" TEXT NOT NULL,
- "createdAt" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW(),
- "updatedBy" TEXT,
- "updatedAt" TIMESTAMP WITH TIME ZONE,
-
- CONSTRAINT "partSupplier_id_pkey" PRIMARY KEY ("id"),
- CONSTRAINT "partSupplier_partId_fkey" FOREIGN KEY ("partId") REFERENCES "part"("id") ON DELETE CASCADE ON UPDATE CASCADE,
- CONSTRAINT "partSupplier_supplierId_fkey" FOREIGN KEY ("supplierId") REFERENCES "supplier"("id") ON DELETE CASCADE,
- CONSTRAINT "partSupplier_part_supplier_unique" UNIQUE ("partId", "supplierId"),
- CONSTRAINT "partSupplier_createdBy_fkey" FOREIGN KEY ("createdBy") REFERENCES "user"("id"),
- CONSTRAINT "partSupplier_updatedBy_fkey" FOREIGN KEY ("updatedBy") REFERENCES "user"("id")
-);
-
-CREATE INDEX "partSupplier_partId_index" ON "partSupplier"("partId");
-
-ALTER TABLE "partSupplier" ENABLE ROW LEVEL SECURITY;
-
-CREATE POLICY "Employees with part/purchasing_view can view part suppliers" ON "partSupplier"
- FOR SELECT
- USING (
- (
- coalesce(get_my_claim('parts_view')::boolean,false) OR
- coalesce(get_my_claim('purchasing_view')::boolean,false)
- )
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-
-CREATE POLICY "Employees with parts_update can update part suppliers" ON "partSupplier"
- FOR UPDATE
- USING (
- coalesce(get_my_claim('parts_update')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-
-CREATE POLICY "Employees with parts_create can create part suppliers" ON "partSupplier"
- FOR INSERT
- WITH CHECK (
- coalesce(get_my_claim('parts_create')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-
-CREATE POLICY "Employees with parts_delete can delete part suppliers" ON "partSupplier"
- FOR DELETE
- USING (
- coalesce(get_my_claim('parts_delete')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-
-CREATE POLICY "Suppliers with parts_view can view their own part suppliers" ON "partSupplier"
- FOR SELECT
- USING (
- coalesce(get_my_claim('parts_view')::boolean,false)
- AND (get_my_claim('role'::text)) = '"supplier"'::jsonb
- AND "supplierId" IN (
- SELECT "supplierId" FROM "supplierAccount" WHERE id::uuid = auth.uid()
- )
- );
-
-CREATE POLICY "Suppliers with parts_update can update their own part suppliers" ON "partSupplier"
- FOR UPDATE
- USING (
- coalesce(get_my_claim('parts_update')::boolean,false)
- AND (get_my_claim('role'::text)) = '"supplier"'::jsonb
- AND "supplierId" IN (
- SELECT "supplierId" FROM "supplierAccount" WHERE id::uuid = auth.uid()
- )
- );
-
-
-CREATE TABLE "partReplenishment" (
- "partId" TEXT NOT NULL,
- "preferredSupplierId" TEXT,
- "purchasingLeadTime" INTEGER NOT NULL DEFAULT 0,
- "purchasingUnitOfMeasureCode" TEXT,
- "conversionFactor" NUMERIC(15,5) NOT NULL DEFAULT 1,
- "purchasingBlocked" BOOLEAN NOT NULL DEFAULT false,
- "manufacturingPolicy" "partManufacturingPolicy" NOT NULL DEFAULT 'Make to Stock',
- "manufacturingLeadTime" INTEGER NOT NULL DEFAULT 0,
- "manufacturingBlocked" BOOLEAN NOT NULL DEFAULT false,
- "requiresConfiguration" BOOLEAN NOT NULL DEFAULT false,
- "scrapPercentage" NUMERIC(15,5) NOT NULL DEFAULT 0,
- "lotSize" INTEGER,
- "createdBy" TEXT NOT NULL,
- "createdAt" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW(),
- "updatedBy" TEXT,
- "updatedAt" TIMESTAMP WITH TIME ZONE,
-
- CONSTRAINT "partReplenishment_partId_fkey" FOREIGN KEY ("partId") REFERENCES "part"("id") ON DELETE CASCADE ON UPDATE CASCADE,
- CONSTRAINT "partReplenishment_preferredSupplierId_fkey" FOREIGN KEY ("preferredSupplierId") REFERENCES "supplier"("id") ON DELETE SET NULL,
- CONSTRAINT "partReplenishment_purchaseUnitOfMeasureCode_fkey" FOREIGN KEY ("purchasingUnitOfMeasureCode") REFERENCES "unitOfMeasure"("code") ON DELETE SET NULL ON UPDATE CASCADE,
- CONSTRAINT "partReplenishment_createdBy_fkey" FOREIGN KEY ("createdBy") REFERENCES "user"("id"),
- CONSTRAINT "partReplenishment_updatedBy_fkey" FOREIGN KEY ("updatedBy") REFERENCES "user"("id")
-);
-
-CREATE INDEX "partReplenishment_partId_index" ON "partReplenishment" ("partId");
-CREATE INDEX "partReplenishment_preferredSupplierId_index" ON "partReplenishment" ("preferredSupplierId");
-
-ALTER TABLE "partReplenishment" ENABLE ROW LEVEL SECURITY;
-
-CREATE POLICY "Employees with part_view can view part costs" ON "partReplenishment"
- FOR SELECT
- USING (
- coalesce(get_my_claim('parts_view')::boolean,false)
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-
-CREATE POLICY "Employees with parts_update can update part costs" ON "partReplenishment"
- FOR UPDATE
- USING (
- coalesce(get_my_claim('parts_update')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-
-
-CREATE POLICY "Suppliers with parts can view parts they created or supply" ON "part"
- FOR SELECT
- USING (
- coalesce(get_my_claim('parts_view')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"supplier"'::jsonb
- AND (
- "createdBy" = auth.uid()::text
- OR (
- id IN (
- SELECT "partId" FROM "partSupplier" WHERE "supplierId" IN (
- SELECT "supplierId" FROM "supplierAccount" WHERE id::uuid = auth.uid()
- )
- )
- )
- )
- );
-
-CREATE POLICY "Supliers with parts_create can insert parts" ON "part"
- FOR INSERT
- WITH CHECK (
- coalesce(get_my_claim('parts_create')::boolean,false)
- AND (get_my_claim('role'::text)) = '"supplier"'::jsonb
- );
-
-CREATE POLICY "Suppliers with parts_update can update parts that they created or supply" ON "part"
- FOR UPDATE
- USING (
- coalesce(get_my_claim('parts_update')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- AND (
- "createdBy" = auth.uid()::text
- OR (
- id IN (
- SELECT "partId" FROM "partSupplier" WHERE "supplierId" IN (
- SELECT "supplierId" FROM "supplierAccount" WHERE id::uuid = auth.uid()
- )
- )
- )
- )
- );
-
-CREATE POLICY "Suppliers with parts_delete can delete parts that they created or supply" ON "part"
- FOR DELETE
- USING (
- coalesce(get_my_claim('parts_delete')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- AND (
- "createdBy" = auth.uid()::text
- OR (
- id IN (
- SELECT "partId" FROM "partSupplier" WHERE "supplierId" IN (
- SELECT "supplierId" FROM "supplierAccount" WHERE id::uuid = auth.uid()
- )
- )
- )
- )
- );
-
-CREATE POLICY "Suppliers with parts can view part costs they supply" ON "partCost"
- FOR SELECT
- USING (
- coalesce(get_my_claim('parts_view')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"supplier"'::jsonb
- AND (
- "partId" IN (
- SELECT "partId" FROM "partSupplier" WHERE "supplierId" IN (
- SELECT "supplierId" FROM "supplierAccount" WHERE id::uuid = auth.uid()
- )
- )
- )
- );
-
-CREATE POLICY "Suppliers with parts_update can update parts costs that they supply" ON "partCost"
- FOR UPDATE
- USING (
- coalesce(get_my_claim('parts_update')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- AND (
- "partId" IN (
- SELECT "partId" FROM "partSupplier" WHERE "supplierId" IN (
- SELECT "supplierId" FROM "supplierAccount" WHERE id::uuid = auth.uid()
- )
- )
- )
- );
-
-CREATE POLICY "Suppliers with parts can view part replenishments they supply" ON "partReplenishment"
- FOR SELECT
- USING (
- coalesce(get_my_claim('parts_view')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"supplier"'::jsonb
- AND (
- "partId" IN (
- SELECT "partId" FROM "partSupplier" WHERE "supplierId" IN (
- SELECT "supplierId" FROM "supplierAccount" WHERE id::uuid = auth.uid()
- )
- )
- )
- );
-
-CREATE POLICY "Suppliers with parts_update can update parts replenishments that they supply" ON "partReplenishment"
- FOR UPDATE
- USING (
- coalesce(get_my_claim('parts_update')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- AND (
- "partId" IN (
- SELECT "partId" FROM "partSupplier" WHERE "supplierId" IN (
- SELECT "supplierId" FROM "supplierAccount" WHERE id::uuid = auth.uid()
- )
- )
- )
- );
-
-CREATE TABLE "warehouse" (
- "id" TEXT NOT NULL DEFAULT xid(),
- "name" TEXT NOT NULL,
- "locationId" TEXT NOT NULL,
- "requiresPick" BOOLEAN NOT NULL DEFAULT false,
- "requiresPutAway" BOOLEAN NOT NULL DEFAULT false,
- "requiresBin" BOOLEAN NOT NULL DEFAULT false,
- "requiresReceive" BOOLEAN NOT NULL DEFAULT false,
- "requiresShipment" BOOLEAN NOT NULL DEFAULT false,
- "active" BOOLEAN NOT NULL DEFAULT true,
- "createdBy" TEXT NOT NULL,
- "createdAt" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW(),
- "updatedBy" TEXT,
- "updatedAt" TIMESTAMP WITH TIME ZONE,
-
- CONSTRAINT "warehouse_pkey" PRIMARY KEY ("id"),
- CONSTRAINT "warehouse_name_key" UNIQUE ("name"),
- CONSTRAINT "warehouse_locationId_fkey" FOREIGN KEY ("locationId") REFERENCES "location"("id"),
- CONSTRAINT "warehouse_createdBy_fkey" FOREIGN KEY ("createdBy") REFERENCES "user"("id"),
- CONSTRAINT "warehouse_updatedBy_fkey" FOREIGN KEY ("updatedBy") REFERENCES "user"("id")
-);
-
-CREATE TABLE "shelf" (
- "id" TEXT NOT NULL,
- "locationId" TEXT NOT NULL,
- "warehouseId" TEXT,
- "active" BOOLEAN NOT NULL DEFAULT true,
- "createdBy" TEXT NOT NULL,
- "createdAt" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW(),
- "updatedBy" TEXT,
- "updatedAt" TIMESTAMP WITH TIME ZONE,
-
- CONSTRAINT "shelf_pkey" PRIMARY KEY ("id", "locationId"),
- CONSTRAINT "shelf_locationId_fkey" FOREIGN KEY ("locationId") REFERENCES "location"("id") ON DELETE CASCADE,
- CONSTRAINT "shelf_warehouseId_fkey" FOREIGN KEY ("warehouseId") REFERENCES "warehouse"("id") ON DELETE CASCADE,
- CONSTRAINT "shelf_createdBy_fkey" FOREIGN KEY ("createdBy") REFERENCES "user"("id"),
- CONSTRAINT "shelf_updatedBy_fkey" FOREIGN KEY ("updatedBy") REFERENCES "user"("id")
-);
-
-CREATE INDEX "shelf_id_locationId_index" ON "shelf" ("id", "locationId");
-CREATE INDEX "shelf_warehouseId_index" ON "shelf" ("warehouseId");
-
-ALTER TABLE "shelf" ENABLE ROW LEVEL SECURITY;
-
-CREATE POLICY "Authenticated users can view shelves" ON "shelf"
- FOR SELECT
- USING (
- auth.role() = 'authenticated'
- );
-
-
-CREATE POLICY "Employees with parts_create can insert shelves" ON "shelf"
- FOR INSERT
- WITH CHECK (
- coalesce(get_my_claim('parts_create')::boolean,false)
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
-);
-
-CREATE POLICY "Employees with parts_update can update shelves" ON "shelf"
- FOR UPDATE
- USING (
- coalesce(get_my_claim('parts_update')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-
-CREATE POLICY "Employees with parts_delete can delete shelves" ON "shelf"
- FOR DELETE
- USING (
- coalesce(get_my_claim('parts_delete')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-
-
-CREATE TABLE "partPlanning" (
- "partId" TEXT NOT NULL,
- "locationId" TEXT NOT NULL,
- "reorderingPolicy" "partReorderingPolicy" NOT NULL DEFAULT 'Demand-Based Reorder',
- "critical" BOOLEAN NOT NULL DEFAULT false,
- "safetyStockQuantity" INTEGER NOT NULL DEFAULT 0,
- "safetyStockLeadTime" INTEGER NOT NULL DEFAULT 0,
- "demandAccumulationPeriod" INTEGER NOT NULL DEFAULT 0,
- "demandReschedulingPeriod" INTEGER NOT NULL DEFAULT 0,
- "demandAccumulationIncludesInventory" BOOLEAN NOT NULL DEFAULT false,
- "reorderPoint" INTEGER NOT NULL DEFAULT 0,
- "reorderQuantity" INTEGER NOT NULL DEFAULT 0,
- "reorderMaximumInventory" INTEGER NOT NULL DEFAULT 0,
- "minimumOrderQuantity" INTEGER NOT NULL DEFAULT 0,
- "maximumOrderQuantity" INTEGER NOT NULL DEFAULT 0,
- "orderMultiple" INTEGER NOT NULL DEFAULT 1,
- "createdBy" TEXT NOT NULL,
- "createdAt" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW(),
- "updatedBy" TEXT,
- "updatedAt" TIMESTAMP WITH TIME ZONE,
-
-
- CONSTRAINT "partPlanning_partId_locationId_key" UNIQUE ("partId", "locationId"),
- CONSTRAINT "partPlanning_partId_fkey" FOREIGN KEY ("partId") REFERENCES "part"("id") ON DELETE CASCADE ON UPDATE CASCADE,
- CONSTRAINT "partPlanning_locationId_fkey" FOREIGN KEY ("locationId") REFERENCES "location"("id") ON DELETE CASCADE ON UPDATE CASCADE,
- CONSTRAINT "partPlanning_createdBy_fkey" FOREIGN KEY ("createdBy") REFERENCES "user"("id"),
- CONSTRAINT "partPlanning_updatedBy_fkey" FOREIGN KEY ("updatedBy") REFERENCES "user"("id")
-);
-
-CREATE INDEX "partPlanning_partId_locationId_index" ON "partPlanning" ("partId", "locationId");
-ALTER TABLE "partPlanning" ENABLE ROW LEVEL SECURITY;
-
-CREATE POLICY "Employees with parts can view part planning" ON "partPlanning"
- FOR SELECT
- USING (
- coalesce(get_my_claim('parts_view')::boolean,false)
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-
--- these are records are created lazily when a user attempts to view them
-CREATE POLICY "Employees with parts can insert part planning" ON "partPlanning"
- FOR INSERT
- WITH CHECK (
- coalesce(get_my_claim('parts_view')::boolean,false)
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-
-CREATE POLICY "Employees with parts_update can update part planning" ON "partPlanning"
- FOR UPDATE
- USING (
- coalesce(get_my_claim('parts_update')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-
-
-CREATE TABLE "partInventory" (
- "partId" TEXT NOT NULL,
- "locationId" TEXT NOT NULL,
- "defaultShelfId" TEXT,
- "createdBy" TEXT NOT NULL,
- "createdAt" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW(),
- "updatedBy" TEXT,
- "updatedAt" TIMESTAMP WITH TIME ZONE,
-
- CONSTRAINT "partInventory_partId_locationId_key" UNIQUE ("partId", "locationId"),
- CONSTRAINT "partInventory_partId_fkey" FOREIGN KEY ("partId") REFERENCES "part"("id") ON DELETE CASCADE ON UPDATE CASCADE,
- CONSTRAINT "partInventory_locationId_fkey" FOREIGN KEY ("locationId") REFERENCES "location"("id") ON DELETE CASCADE ON UPDATE CASCADE,
- CONSTRAINT "partInventory_shelfId_fkey" FOREIGN KEY ("defaultShelfId", "locationId") REFERENCES "shelf"("id", "locationId") ON DELETE SET NULL,
- CONSTRAINT "partInventory_createdBy_fkey" FOREIGN KEY ("createdBy") REFERENCES "user"("id"),
- CONSTRAINT "partInventory_updatedBy_fkey" FOREIGN KEY ("updatedBy") REFERENCES "user"("id")
-);
-
-CREATE INDEX "partInventory_partId_locationId_index" ON "partInventory" ("partId", "locationId");
-CREATE INDEX "partInventory_shelfId_index" ON "partInventory" ("defaultShelfId");
-
-ALTER TABLE "partInventory" ENABLE ROW LEVEL SECURITY;
-
-CREATE POLICY "Employees with part_view can view part planning" ON "partInventory"
- FOR SELECT
- USING (
- coalesce(get_my_claim('parts_view')::boolean,false)
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-
--- these are records are created lazily when a user attempts to view them
-CREATE POLICY "Employees with part_view can insert part planning" ON "partInventory"
- FOR INSERT
- WITH CHECK (
- coalesce(get_my_claim('parts_view')::boolean,false)
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-
-CREATE POLICY "Employees with parts_update can update part planning" ON "partInventory"
- FOR UPDATE
- USING (
- coalesce(get_my_claim('parts_update')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-
-
-
-
-
-```
-
-
-
-## `services`
-
-```sql
-CREATE TYPE "serviceType" AS ENUM (
- 'Internal',
- 'External'
-);
-
-CREATE TABLE "service" (
- "id" TEXT NOT NULL,
- "name" TEXT NOT NULL,
- "description" TEXT,
- "blocked" BOOLEAN NOT NULL DEFAULT false,
- "partGroupId" TEXT,
- "serviceType" "serviceType" NOT NULL,
- "active" BOOLEAN NOT NULL DEFAULT true,
- "approved" BOOLEAN NOT NULL DEFAULT false,
- "approvedBy" TEXT,
- "fromDate" DATE,
- "toDate" DATE,
- "createdBy" TEXT NOT NULL,
- "createdAt" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW(),
- "updatedBy" TEXT,
- "updatedAt" TIMESTAMP WITH TIME ZONE,
-
- CONSTRAINT "service_pkey" PRIMARY KEY ("id"),
- CONSTRAINT "service_partGroupId_fkey" FOREIGN KEY ("partGroupId") REFERENCES "partGroup"("id"),
- CONSTRAINT "service_approvedBy_fkey" FOREIGN KEY ("approvedBy") REFERENCES "user"("id"),
- CONSTRAINT "service_createdBy_fkey" FOREIGN KEY ("createdBy") REFERENCES "user"("id"),
- CONSTRAINT "service_updatedBy_fkey" FOREIGN KEY ("updatedBy") REFERENCES "user"("id")
-);
-
-CREATE POLICY "Employees can view services" ON "service"
- FOR SELECT
- USING (
- (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-
-CREATE POLICY "Employees with parts_create can insert services" ON "service"
- FOR INSERT
- WITH CHECK (
- coalesce(get_my_claim('parts_create')::boolean,false)
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-
-CREATE POLICY "Employees with parts_update can update services" ON "service"
- FOR UPDATE
- USING (
- coalesce(get_my_claim('parts_update')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-
-CREATE POLICY "Employees with parts_delete can delete services" ON "service"
- FOR DELETE
- USING (
- coalesce(get_my_claim('parts_delete')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-
-
-CREATE TABLE "serviceSupplier" (
- "id" TEXT NOT NULL DEFAULT xid(),
- "serviceId" TEXT NOT NULL,
- "supplierId" TEXT NOT NULL,
- "supplierServiceId" TEXT,
- "active" BOOLEAN NOT NULL DEFAULT true,
- "createdBy" TEXT NOT NULL,
- "createdAt" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW(),
- "updatedBy" TEXT,
- "updatedAt" TIMESTAMP WITH TIME ZONE,
-
- CONSTRAINT "serviceSupplier_id_pkey" PRIMARY KEY ("id"),
- CONSTRAINT "serviceSupplier_serviceId_fkey" FOREIGN KEY ("serviceId") REFERENCES "service"("id") ON DELETE CASCADE ON UPDATE CASCADE,
- CONSTRAINT "serviceSupplier_supplierId_fkey" FOREIGN KEY ("supplierId") REFERENCES "supplier"("id") ON DELETE CASCADE,
- CONSTRAINT "serviceSupplier_service_supplier_unique" UNIQUE ("serviceId", "supplierId"),
- CONSTRAINT "serviceSupplier_createdBy_fkey" FOREIGN KEY ("createdBy") REFERENCES "user"("id"),
- CONSTRAINT "serviceSupplier_updatedBy_fkey" FOREIGN KEY ("updatedBy") REFERENCES "user"("id")
-);
-
-CREATE INDEX "serviceSupplier_serviceId_index" ON "serviceSupplier"("serviceId");
-
-ALTER TABLE "serviceSupplier" ENABLE ROW LEVEL SECURITY;
-
-CREATE POLICY "Employees with part/purchasing_view can view service suppliers" ON "serviceSupplier"
- FOR SELECT
- USING (
- (
- coalesce(get_my_claim('parts_view')::boolean,false) OR
- coalesce(get_my_claim('purchasing_view')::boolean,false)
- )
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-
-CREATE POLICY "Employees with parts_update can update service suppliers" ON "serviceSupplier"
- FOR UPDATE
- USING (
- coalesce(get_my_claim('parts_update')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-
-CREATE POLICY "Employees with parts_create can create service suppliers" ON "serviceSupplier"
- FOR INSERT
- WITH CHECK (
- coalesce(get_my_claim('parts_create')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-
-CREATE POLICY "Employees with parts_delete can delete service suppliers" ON "serviceSupplier"
- FOR DELETE
- USING (
- coalesce(get_my_claim('parts_delete')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-
-CREATE POLICY "Suppliers with parts_view can view their own part suppliers" ON "serviceSupplier"
- FOR SELECT
- USING (
- coalesce(get_my_claim('parts_view')::boolean,false)
- AND (get_my_claim('role'::text)) = '"supplier"'::jsonb
- AND "supplierId" IN (
- SELECT "supplierId" FROM "supplierAccount" WHERE id::uuid = auth.uid()
- )
- );
-
-CREATE POLICY "Suppliers with parts_update can update their own part suppliers" ON "serviceSupplier"
- FOR UPDATE
- USING (
- coalesce(get_my_claim('parts_update')::boolean,false)
- AND (get_my_claim('role'::text)) = '"supplier"'::jsonb
- AND "supplierId" IN (
- SELECT "supplierId" FROM "supplierAccount" WHERE id::uuid = auth.uid()
- )
- );
-
-CREATE OR REPLACE VIEW "services" WITH(SECURITY_INVOKER=true) AS
- SELECT
- s.id,
- s.name,
- s.description,
- s."serviceType",
- pg.id AS "partGroupId",
- pg.name AS "partGroup",
- s.active,
- s.blocked,
- array_agg(ss."supplierId") AS "supplierIds"
- FROM "service" s
- LEFT JOIN "partGroup" pg ON pg.id = s."partGroupId"
- LEFT JOIN "serviceSupplier" ss ON ss."serviceId" = s.id
- GROUP BY s.id,
- s.name,
- s.description,
- s."serviceType",
- pg.id,
- pg.name,
- s.active;
-```
-
-
-
-## `documents`
-
-```sql
-CREATE TABLE "document" (
- "id" TEXT NOT NULL DEFAULT uuid_generate_v4(),
- "path" TEXT NOT NULL,
- "name" TEXT NOT NULL,
- "description" TEXT DEFAULT '',
- "size" INTEGER NOT NULL,
- "type" TEXT GENERATED ALWAYS AS (split_part("name", '.', -1)) STORED,
- "readGroups" TEXT[],
- "writeGroups" TEXT[],
- "active" BOOLEAN NOT NULL DEFAULT TRUE,
- "createdBy" TEXT NOT NULL,
- "createdAt" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW(),
- "updatedBy" TEXT,
- "updatedAt" TIMESTAMP WITH TIME ZONE,
-
- CONSTRAINT "document_pkey" PRIMARY KEY ("id"),
-
- CONSTRAINT "document_createdBy_fkey" FOREIGN KEY ("createdBy") REFERENCES "user"("id") ON DELETE CASCADE,
- CONSTRAINT "document_updatedBy_fkey" FOREIGN KEY ("updatedBy") REFERENCES "user"("id") ON DELETE CASCADE
-);
-
-CREATE INDEX "document_visibility_idx" ON "document" USING GIN ("readGroups", "writeGroups");
-
-ALTER TABLE "document" ENABLE ROW LEVEL SECURITY;
-
-CREATE POLICY "Users with documents can view documents where they are in the readGroups" ON "document"
- FOR SELECT USING (
- coalesce(get_my_claim('documents_view')::boolean, false) = true
- AND (groups_for_user(auth.uid()::text) && "readGroups") = true
- );
-
-CREATE POLICY "Users with documents_create can create documents where they are in the writeGroups" ON "document"
- FOR INSERT WITH CHECK (
- coalesce(get_my_claim('documents_create')::boolean, false) = true
- AND (groups_for_user(auth.uid()::text) && "writeGroups") = true
- );
-
-CREATE POLICY "Users with documents_update can update documents where they are in the writeGroups" ON "document"
- FOR UPDATE USING (
- coalesce(get_my_claim('documents_update')::boolean, false) = true
- AND (groups_for_user(auth.uid()::text) && "writeGroups") = true
- );
-
-CREATE POLICY "Users with documents_delete can delete documents where they are in the writeGroups" ON "document"
- FOR DELETE USING (
- coalesce(get_my_claim('documents_delete')::boolean, false) = true
- AND (groups_for_user(auth.uid()::text) && "writeGroups") = true
- );
-
-CREATE POLICY "Private buckets view requires ownership or document.readGroups" ON storage.objects
-FOR SELECT USING (
- bucket_id = 'private'
- AND (auth.role() = 'authenticated')
- AND coalesce(get_my_claim('documents_view')::boolean, false) = true
- AND (
- (storage.foldername(name))[1] = auth.uid()::text
- OR "name" IN (
- SELECT "path" FROM public.document WHERE (groups_for_user(auth.uid()::text) && "readGroups") = true
- )
- )
-);
-
-CREATE POLICY "Private buckets insert requires ownership or document.writeGroups" ON storage.objects
-FOR INSERT WITH CHECK (
- bucket_id = 'private'
- AND (auth.role() = 'authenticated')
- AND coalesce(get_my_claim('documents_create')::boolean, false) = true
- AND (
- (storage.foldername(name))[1] = auth.uid()::text
- OR "name" IN (
- SELECT "path" FROM public.document WHERE (groups_for_user(auth.uid()::text) && "writeGroups") = true
- )
- )
-);
-
-CREATE POLICY "Private buckets update requires ownership or document.writeGroups" ON storage.objects
-FOR UPDATE USING (
- bucket_id = 'private'
- AND (auth.role() = 'authenticated')
- AND coalesce(get_my_claim('documents_update')::boolean, false) = true
- AND (
- (storage.foldername(name))[1] = auth.uid()::text
- OR "name" IN (
- SELECT "path" FROM public.document WHERE (groups_for_user(auth.uid()::text) && "writeGroups") = true
- )
- )
-);
-
-CREATE POLICY "Private buckets delete requires ownership or document.writeGroups" ON storage.objects
-FOR DELETE USING (
- bucket_id = 'private'
- AND (auth.role() = 'authenticated')
- AND coalesce(get_my_claim('documents_delete')::boolean, false) = true
- AND (
- (storage.foldername(name))[1] = auth.uid()::text
- OR "name" IN (
- SELECT "path" FROM public.document WHERE (groups_for_user(auth.uid()::text) && "writeGroups") = true
- )
- )
-);
-
-CREATE TYPE "documentTransactionType" AS ENUM (
- 'Download',
- 'Edit',
- 'Favorite',
- 'Label',
- 'Unfavorite',
- 'Upload'
-);
-
-CREATE TABLE "documentTransaction" (
- "id" TEXT NOT NULL DEFAULT xid(),
- "documentId" TEXT NOT NULL,
- "type" "documentTransactionType" NOT NULL,
- "userId" TEXT NOT NULL,
- "createdAt" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW(),
-
- CONSTRAINT "documentTransaction_pkey" PRIMARY KEY ("id"),
- CONSTRAINT "documentTransaction_documentId_fkey" FOREIGN KEY ("documentId") REFERENCES "document"("id") ON DELETE CASCADE,
- CONSTRAINT "documentTransaction_userId_fkey" FOREIGN KEY ("userId") REFERENCES "user"("id") ON DELETE CASCADE
-);
-
-CREATE INDEX "documentTransaction_documentId_idx" ON "documentTransaction" ("documentId");
-CREATE INDEX "documentTransaction_userId_idx" ON "documentTransaction" ("userId");
-
-CREATE TABLE "documentFavorite" (
- "documentId" TEXT NOT NULL,
- "userId" TEXT NOT NULL,
-
- CONSTRAINT "documentFavorites_pkey" PRIMARY KEY ("documentId", "userId"),
- CONSTRAINT "documentFavorites_documentId_fkey" FOREIGN KEY ("documentId") REFERENCES "document"("id") ON DELETE CASCADE,
- CONSTRAINT "documentFavorites_userId_fkey" FOREIGN KEY ("userId") REFERENCES "user"("id") ON DELETE CASCADE
-);
-
-CREATE INDEX "documentFavorites_userId_idx" ON "documentFavorite" ("userId");
-CREATE INDEX "documentFavorites_documentId_idx" ON "documentFavorite" ("documentId");
-
-ALTER TABLE "documentFavorite" ENABLE ROW LEVEL SECURITY;
-
-CREATE POLICY "Users can view their own document favorites" ON "documentFavorite"
- FOR SELECT USING (
- auth.uid()::text = "userId"
- );
-
-CREATE POLICY "Users can create their own document favorites" ON "documentFavorite"
- FOR INSERT WITH CHECK (
- auth.uid()::text = "userId"
- );
-
-CREATE POLICY "Users can delete their own document favorites" ON "documentFavorite"
- FOR DELETE USING (
- auth.uid()::text = "userId"
- );
-
-CREATE TABLE "documentLabel" (
- "documentId" TEXT NOT NULL,
- "userId" TEXT NOT NULL,
- "label" TEXT NOT NULL,
-
- CONSTRAINT "documentLabels_pkey" PRIMARY KEY ("documentId", "userId", "label"),
- CONSTRAINT "documentLabels_documentId_fkey" FOREIGN KEY ("documentId") REFERENCES "document"("id") ON DELETE CASCADE,
- CONSTRAINT "documentLabels_userId_fkey" FOREIGN KEY ("userId") REFERENCES "user"("id") ON DELETE CASCADE
-);
-
-CREATE INDEX "documentLabels_userId_idx" ON "documentLabel" ("userId");
-CREATE INDEX "documentLabels_documentId_idx" ON "documentLabel" ("documentId");
-CREATE INDEX "documentLabels_label_idx" ON "documentLabel" ("label");
-
-ALTER TABLE "documentLabel" ENABLE ROW LEVEL SECURITY;
-
-CREATE POLICY "Users can view their own labels" ON "documentLabel"
- FOR SELECT USING (
- auth.uid()::text = "userId"
- );
-
-CREATE POLICY "Users can create their own labels" ON "documentLabel"
- FOR INSERT WITH CHECK (
- auth.uid()::text = "userId"
- );
-
-CREATE POLICY "Users can delete their own labels" ON "documentLabel"
- FOR DELETE USING (
- auth.uid()::text = "userId"
- );
-
-CREATE FUNCTION public.upload_document_transaction()
-RETURNS TRIGGER AS $$
-BEGIN
- INSERT INTO public."documentTransaction" ("documentId", "type", "userId")
- VALUES (new.id, 'Upload', new."createdBy");
-
- RETURN new;
-END;
-$$ LANGUAGE plpgsql SECURITY DEFINER;
-
-CREATE TRIGGER upload_document_transaction
- AFTER INSERT on public."document"
- FOR EACH ROW EXECUTE PROCEDURE public.upload_document_transaction();
-
-CREATE FUNCTION public.edit_document_transaction()
-RETURNS TRIGGER AS $$
-BEGIN
- INSERT INTO public."documentTransaction" ("documentId", "type", "userId")
- VALUES (new.id, 'Edit', new."createdBy");
-
- RETURN new;
-END;
-$$ LANGUAGE plpgsql SECURITY DEFINER;
-
-CREATE TRIGGER edit_document_transaction
- AFTER UPDATE on public."document"
- FOR EACH ROW EXECUTE PROCEDURE public.edit_document_transaction();
-
-CREATE OR REPLACE VIEW "documentLabels" AS
- SELECT DISTINCT
- "label",
- "userId"
- FROM "documentLabel";
-
-CREATE OR REPLACE VIEW "documents" AS
- SELECT
- d.id,
- d.path,
- d.name,
- d.description,
- d.size,
- d.type,
- d.active,
- d."readGroups",
- d."writeGroups",
- d."createdBy",
- u."avatarUrl" AS "createdByAvatar",
- u."fullName" AS "createdByFullName",
- d."createdAt",
- d."updatedBy",
- u2."avatarUrl" AS "updatedByAvatar",
- u2."fullName" AS "updatedByFullName",
- d."updatedAt",
- ARRAY(SELECT dl.label FROM "documentLabel" dl WHERE dl."documentId" = d.id AND dl."userId" = auth.uid()::text) AS labels,
- EXISTS(SELECT 1 FROM "documentFavorite" df WHERE df."documentId" = d.id AND df."userId" = auth.uid()::text) AS favorite,
- (SELECT MAX("createdAt") FROM "documentTransaction" dt WHERE dt."documentId" = d.id) AS "lastActivityAt"
- FROM "document" d
- LEFT JOIN "user" u ON u.id = d."createdBy"
- LEFT JOIN "user" u2 ON u2.id = d."updatedBy";
-
-```
-
-
-
-## `purchasing`
-
-```sql
-CREATE TYPE "paymentTermCalculationMethod" AS ENUM (
- 'Net',
- 'End of Month',
- 'Day of Month'
-);
-
-CREATE TABLE "paymentTerm" (
- "id" TEXT NOT NULL DEFAULT xid(),
- "name" TEXT NOT NULL,
- "daysDue" INTEGER NOT NULL DEFAULT 0,
- "daysDiscount" INTEGER NOT NULL DEFAULT 0,
- "discountPercentage" NUMERIC(10,5) NOT NULL DEFAULT 0,
- "calculationMethod" "paymentTermCalculationMethod" NOT NULL DEFAULT 'Net',
- "active" BOOLEAN NOT NULL DEFAULT TRUE,
- "createdAt" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW(),
- "createdBy" TEXT NOT NULL,
- "updatedAt" TIMESTAMP WITH TIME ZONE,
- "updatedBy" TEXT,
-
- CONSTRAINT "paymentTerm_pkey" PRIMARY KEY ("id"),
- CONSTRAINT "paymentTerm_name_key" UNIQUE ("name", "active"),
- CONSTRAINT "paymentTerm_createdBy_fkey" FOREIGN KEY ("createdBy") REFERENCES "user" ("id") ON DELETE RESTRICT,
- CONSTRAINT "paymentTerm_updatedBy_fkey" FOREIGN KEY ("updatedBy") REFERENCES "user" ("id") ON DELETE RESTRICT
-);
-
-ALTER TABLE "paymentTerm" ENABLE ROW LEVEL SECURITY;
-
-CREATE POLICY "Certain employees can view payment terms" ON "paymentTerm"
- FOR SELECT
- USING (
- (
- coalesce(get_my_claim('accounting_view')::boolean, false) = true OR
- coalesce(get_my_claim('parts_view')::boolean, false) = true OR
- coalesce(get_my_claim('resources_view')::boolean, false) = true OR
- coalesce(get_my_claim('sales_view')::boolean, false) = true OR
- coalesce(get_my_claim('purchasing_view')::boolean, false) = true
- )
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-
-
-CREATE POLICY "Employees with accounting_create can insert payment terms" ON "paymentTerm"
- FOR INSERT
- WITH CHECK (
- coalesce(get_my_claim('accounting_create')::boolean,false)
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
-);
-
-CREATE POLICY "Employees with accounting_update can update payment terms" ON "paymentTerm"
- FOR UPDATE
- USING (
- coalesce(get_my_claim('accounting_update')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-
-CREATE POLICY "Employees with accounting_delete can delete payment terms" ON "paymentTerm"
- FOR DELETE
- USING (
- coalesce(get_my_claim('accounting_delete')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-
-
-CREATE TYPE "shippingCarrier" AS ENUM (
- 'UPS',
- 'FedEx',
- 'USPS',
- 'DHL',
- 'Other'
-);
-
-CREATE TABLE "shippingMethod" (
- "id" TEXT NOT NULL DEFAULT xid(),
- "name" TEXT NOT NULL,
- "carrier" "shippingCarrier" NOT NULL DEFAULT 'Other',
- "carrierAccountId" TEXT,
- "trackingUrl" TEXT,
- "active" BOOLEAN NOT NULL DEFAULT TRUE,
- "createdAt" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW(),
- "createdBy" TEXT NOT NULL,
- "updatedAt" TIMESTAMP WITH TIME ZONE,
- "updatedBy" TEXT,
-
- CONSTRAINT "shippingMethod_pkey" PRIMARY KEY ("id"),
- CONSTRAINT "shippingMethod_name_key" UNIQUE ("name"),
- CONSTRAINT "shippingMethod_carrierAccountId_fkey" FOREIGN KEY ("carrierAccountId") REFERENCES "account" ("number") ON DELETE CASCADE ON UPDATE CASCADE,
- CONSTRAINT "shippingMethod_createdBy_fkey" FOREIGN KEY ("createdBy") REFERENCES "user" ("id") ON DELETE RESTRICT,
- CONSTRAINT "shippingMethod_updatedBy_fkey" FOREIGN KEY ("updatedBy") REFERENCES "user" ("id") ON DELETE RESTRICT
-);
-
-CREATE INDEX "shippingMethod_name_idx" ON "shippingMethod" ("name");
-
-
-CREATE POLICY "Certain employees can view shipping methods" ON "shippingMethod"
- FOR SELECT
- USING (
- (
- coalesce(get_my_claim('accounting_view')::boolean, false) = true OR
- coalesce(get_my_claim('inventory_view')::boolean, false) = true OR
- coalesce(get_my_claim('parts_view')::boolean, false) = true OR
- coalesce(get_my_claim('purchasing_view')::boolean, false) = true OR
- coalesce(get_my_claim('sales_view')::boolean, false) = true
- )
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-
-
-CREATE POLICY "Employees with inventory_create can insert shipping methods" ON "shippingMethod"
- FOR INSERT
- WITH CHECK (
- coalesce(get_my_claim('inventory_create')::boolean,false)
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
-);
-
-CREATE POLICY "Employees with inventory_update can update shipping methods" ON "shippingMethod"
- FOR UPDATE
- USING (
- coalesce(get_my_claim('inventory_update')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-
-CREATE POLICY "Employees with inventory_delete can delete shipping methods" ON "shippingMethod"
- FOR DELETE
- USING (
- coalesce(get_my_claim('inventory_delete')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-
-CREATE TABLE "shippingTerm" (
- "id" TEXT NOT NULL DEFAULT xid(),
- "name" TEXT NOT NULL,
- "active" BOOLEAN NOT NULL DEFAULT TRUE,
- "createdAt" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW(),
- "createdBy" TEXT NOT NULL,
- "updatedAt" TIMESTAMP WITH TIME ZONE,
- "updatedBy" TEXT,
-
- CONSTRAINT "shippingTerm_pkey" PRIMARY KEY ("id"),
- CONSTRAINT "shippingTerm_name_key" UNIQUE ("name"),
- CONSTRAINT "shippingTerm_createdBy_fkey" FOREIGN KEY ("createdBy") REFERENCES "user" ("id") ON DELETE RESTRICT,
- CONSTRAINT "shippingTerm_updatedBy_fkey" FOREIGN KEY ("updatedBy") REFERENCES "user" ("id") ON DELETE RESTRICT
-);
-
-
-CREATE TYPE "purchaseOrderType" AS ENUM (
- 'Purchase',
- 'Return'
-);
-
-CREATE TYPE "purchaseOrderStatus" AS ENUM (
- 'Draft',
- 'To Review',
- 'Rejected',
- 'To Receive',
- 'To Receive and Invoice',
- 'To Invoice',
- 'Completed',
- 'Closed'
-);
-
-CREATE TABLE "purchaseOrder" (
- "id" TEXT NOT NULL DEFAULT xid(),
- "purchaseOrderId" TEXT NOT NULL,
- "type" "purchaseOrderType" NOT NULL,
- "status" "purchaseOrderStatus" NOT NULL DEFAULT 'Draft',
- "orderDate" DATE NOT NULL DEFAULT CURRENT_DATE,
- "notes" TEXT,
- "supplierId" TEXT NOT NULL,
- "supplierLocationId" TEXT,
- "supplierContactId" TEXT,
- "supplierReference" TEXT,
- "closedAt" DATE,
- "closedBy" TEXT,
- "createdAt" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW(),
- "createdBy" TEXT NOT NULL,
- "updatedAt" TIMESTAMP WITH TIME ZONE,
- "updatedBy" TEXT,
-
- CONSTRAINT "purchaseOrder_pkey" PRIMARY KEY ("id"),
- CONSTRAINT "purchaseOrder_purchaseOrderId_key" UNIQUE ("purchaseOrderId"),
- CONSTRAINT "purchaseOrder_supplierId_fkey" FOREIGN KEY ("supplierId") REFERENCES "supplier" ("id") ON DELETE CASCADE,
- CONSTRAINT "purchaseOrder_supplierLocationId_fkey" FOREIGN KEY ("supplierLocationId") REFERENCES "supplierLocation" ("id") ON UPDATE CASCADE ON DELETE RESTRICT,
- CONSTRAINT "purchaseOrder_supplierContactId_fkey" FOREIGN KEY ("supplierContactId") REFERENCES "supplierContact" ("id") ON UPDATE CASCADE ON DELETE RESTRICT,
- CONSTRAINT "purchaseOrder_closedBy_fkey" FOREIGN KEY ("closedBy") REFERENCES "user" ("id") ON DELETE RESTRICT,
- CONSTRAINT "purchaseOrder_createdBy_fkey" FOREIGN KEY ("createdBy") REFERENCES "user" ("id") ON DELETE RESTRICT,
- CONSTRAINT "purchaseOrder_updatedBy_fkey" FOREIGN KEY ("updatedBy") REFERENCES "user" ("id") ON DELETE RESTRICT
-);
-
-CREATE INDEX "purchaseOrder_purchaseOrderId_idx" ON "purchaseOrder" ("purchaseOrderId");
-CREATE INDEX "purchaseOrder_supplierId_idx" ON "purchaseOrder" ("supplierId");
-CREATE INDEX "purchaseOrder_supplierContactId_idx" ON "purchaseOrder" ("supplierContactId");
-CREATE INDEX "purchaseOrder_status_idx" ON "purchaseOrder" ("status");
-
-CREATE TYPE "purchaseOrderLineType" AS ENUM (
- 'Comment',
- 'G/L Account',
- 'Part',
- 'Service',
- 'Fixed Asset'
-);
-
-CREATE TABLE "purchaseOrderStatusHistory" (
- "id" TEXT NOT NULL DEFAULT xid(),
- "purchaseOrderId" TEXT NOT NULL,
- "status" "purchaseOrderStatus" NOT NULL,
- "createdAt" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW(),
- "createdBy" TEXT NOT NULL,
-
- CONSTRAINT "purchaseOrderStatusHistory_pkey" PRIMARY KEY ("id"),
- CONSTRAINT "purchaseOrderStatusHistory_purchaseOrderId_fkey" FOREIGN KEY ("purchaseOrderId") REFERENCES "purchaseOrder" ("id") ON DELETE CASCADE,
- CONSTRAINT "purchaseOrderStatusHistory_createdBy_fkey" FOREIGN KEY ("createdBy") REFERENCES "user" ("id") ON DELETE RESTRICT
-);
-
-
-CREATE TABLE "purchaseOrderLine" (
- "id" TEXT NOT NULL DEFAULT xid(),
- "purchaseOrderId" TEXT NOT NULL,
- "purchaseOrderLineType" "purchaseOrderLineType" NOT NULL,
- "partId" TEXT,
- "serviceId" TEXT,
- "accountNumber" TEXT,
- "assetId" TEXT,
- "description" TEXT,
- "purchaseQuantity" NUMERIC(9,2) DEFAULT 0,
- "quantityToReceive" NUMERIC(9,2) GENERATED ALWAYS AS (CASE WHEN "purchaseOrderLineType" = 'Comment' THEN 0 ELSE GREATEST(("purchaseQuantity" - "quantityReceived"), 0) END) STORED,
- "quantityReceived" NUMERIC(9,2) DEFAULT 0,
- "quantityToInvoice" NUMERIC(9,2) GENERATED ALWAYS AS (CASE WHEN "purchaseOrderLineType" = 'Comment' THEN 0 ELSE GREATEST(("purchaseQuantity" - "quantityInvoiced"), 0) END) STORED,
- "quantityInvoiced" NUMERIC(9,2) DEFAULT 0,
- "unitPrice" NUMERIC(9,2),
- "unitOfMeasureCode" TEXT,
- "locationId" TEXT,
- "shelfId" TEXT,
- "setupPrice" NUMERIC(9,2),
- "receivedComplete" BOOLEAN NOT NULL DEFAULT FALSE,
- "invoicedComplete" BOOLEAN NOT NULL DEFAULT FALSE,
- "requiresInspection" BOOLEAN NOT NULL DEFAULT FALSE,
- "createdAt" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW(),
- "createdBy" TEXT NOT NULL,
- "updatedAt" TIMESTAMP WITH TIME ZONE,
- "updatedBy" TEXT,
-
- CONSTRAINT "purchaseOrderLineType_number"
- CHECK (
- (
- "purchaseOrderLineType" = 'Comment' AND
- "partId" IS NULL AND
- "serviceId" IS NULL AND
- "accountNumber" IS NULL AND
- "assetId" IS NULL AND
- "description" IS NOT NULL
- )
- OR (
- "purchaseOrderLineType" = 'G/L Account' AND
- "partId" IS NULL AND
- "serviceId" IS NULL AND
- "accountNumber" IS NOT NULL AND
- "assetId" IS NULL
- )
- OR (
- "purchaseOrderLineType" = 'Part' AND
- "partId" IS NOT NULL AND
- "serviceId" IS NULL AND
- "accountNumber" IS NULL AND
- "assetId" IS NULL
- )
- OR (
- "purchaseOrderLineType" = 'Service' AND
- "partId" IS NULL AND
- "serviceId" IS NOT NULL AND
- "accountNumber" IS NULL AND
- "assetId" IS NULL
- )
- OR (
- "purchaseOrderLineType" = 'Fixed Asset' AND
- "partId" IS NULL AND
- "serviceId" IS NULL AND
- "accountNumber" IS NULL AND
- "assetId" IS NOT NULL
- )
- ),
-
- CONSTRAINT "purchaseOrderLine_pkey" PRIMARY KEY ("id"),
- CONSTRAINT "purchaseOrderLine_purchaseOrderId_fkey" FOREIGN KEY ("purchaseOrderId") REFERENCES "purchaseOrder" ("id") ON DELETE CASCADE,
- CONSTRAINT "purchaseOrderLine_partId_fkey" FOREIGN KEY ("partId") REFERENCES "part" ("id") ON DELETE CASCADE ON UPDATE CASCADE,
- CONSTRAINT "purchaseOrderLine_serviceId_fkey" FOREIGN KEY ("serviceId") REFERENCES "service" ("id") ON DELETE CASCADE ON UPDATE CASCADE,
- CONSTRAINT "purchaseOrderLine_accountNumber_fkey" FOREIGN KEY ("accountNumber") REFERENCES "account" ("number") ON DELETE CASCADE ON UPDATE CASCADE,
- -- TODO: Add assetId foreign key
- CONSTRAINT "purchaseOrderLine_shelfId_fkey" FOREIGN KEY ("shelfId", "locationId") REFERENCES "shelf" ("id", "locationId") ON DELETE CASCADE,
- CONSTRAINT "purchaseOrderLine_unitOfMeasureCode_fkey" FOREIGN KEY ("unitOfMeasureCode") REFERENCES "unitOfMeasure" ("code") ON DELETE CASCADE ON UPDATE CASCADE,
- CONSTRAINT "purchaseOrderLine_createdBy_fkey" FOREIGN KEY ("createdBy") REFERENCES "user" ("id") ON DELETE RESTRICT,
- CONSTRAINT "purchaseOrderLine_updatedBy_fkey" FOREIGN KEY ("updatedBy") REFERENCES "user" ("id") ON DELETE RESTRICT
-);
-
-CREATE TABLE "purchaseOrderPayment" (
- "id" TEXT NOT NULL,
- "invoiceSupplierId" TEXT,
- "invoiceSupplierLocationId" TEXT,
- "invoiceSupplierContactId" TEXT,
- "paymentTermId" TEXT,
- "paymentComplete" BOOLEAN NOT NULL DEFAULT FALSE,
- "currencyCode" TEXT NOT NULL DEFAULT 'USD',
- "updatedAt" TIMESTAMP WITH TIME ZONE,
- "updatedBy" TEXT,
-
- CONSTRAINT "purchaseOrderPayment_pkey" PRIMARY KEY ("id"),
- CONSTRAINT "purchaseOrderPayment_id_fkey" FOREIGN KEY ("id") REFERENCES "purchaseOrder" ("id") ON DELETE CASCADE,
- CONSTRAINT "purchaseOrderPayment_invoiceSupplierId_fkey" FOREIGN KEY ("invoiceSupplierId") REFERENCES "supplier" ("id") ON DELETE CASCADE,
- CONSTRAINT "purchaseOrderPayment_invoiceSupplierLocationId_fkey" FOREIGN KEY ("invoiceSupplierLocationId") REFERENCES "supplierLocation" ("id") ON DELETE CASCADE,
- CONSTRAINT "purchaseOrderPayment_invoiceSupplierContactId_fkey" FOREIGN KEY ("invoiceSupplierContactId") REFERENCES "supplierContact" ("id") ON DELETE CASCADE,
- CONSTRAINT "purchaseOrderPayment_paymentTermId_fkey" FOREIGN KEY ("paymentTermId") REFERENCES "paymentTerm" ("id") ON DELETE CASCADE,
- CONSTRAINT "purchaseOrderPayment_currencyCode_fkey" FOREIGN KEY ("currencyCode") REFERENCES "currency" ("code") ON DELETE CASCADE ON UPDATE CASCADE
-);
-
-CREATE INDEX "purchaseOrderPayment_invoiceSupplierId_idx" ON "purchaseOrderPayment" ("invoiceSupplierId");
-CREATE INDEX "purchaseOrderPayment_invoiceSupplierLocationId_idx" ON "purchaseOrderPayment" ("invoiceSupplierLocationId");
-CREATE INDEX "purchaseOrderPayment_invoiceSupplierContactId_idx" ON "purchaseOrderPayment" ("invoiceSupplierContactId");
-
-CREATE TABLE "purchaseOrderDelivery" (
- "id" TEXT NOT NULL,
- "locationId" TEXT,
- "shippingMethodId" TEXT,
- "shippingTermId" TEXT,
- "receiptRequestedDate" DATE,
- "receiptPromisedDate" DATE,
- "deliveryDate" DATE,
- "notes" TEXT,
- "trackingNumber" TEXT,
- "dropShipment" BOOLEAN NOT NULL DEFAULT FALSE,
- "customerId" TEXT,
- "customerLocationId" TEXT,
- "updatedBy" TEXT,
- "updatedAt" TIMESTAMP WITH TIME ZONE,
-
- CONSTRAINT "purchaseOrderDelivery_pkey" PRIMARY KEY ("id"),
- CONSTRAINT "purchaseOrderDelivery_id_fkey" FOREIGN KEY ("id") REFERENCES "purchaseOrder" ("id") ON DELETE CASCADE,
- CONSTRAINT "purchaseOrderDelivery_locationId_fkey" FOREIGN KEY ("locationId") REFERENCES "location" ("id") ON DELETE CASCADE,
- CONSTRAINT "purchaseOrderDelivery_shippingMethodId_fkey" FOREIGN KEY ("shippingMethodId") REFERENCES "shippingMethod" ("id") ON DELETE CASCADE,
- CONSTRAINT "purchaseOrderDelivery_shippingTermId_fkey" FOREIGN KEY ("shippingTermId") REFERENCES "shippingTerm" ("id") ON DELETE CASCADE,
- CONSTRAINT "purchaseOrderDelivery_customerId_fkey" FOREIGN KEY ("customerId") REFERENCES "customer" ("id") ON DELETE CASCADE,
- CONSTRAINT "purchaseOrderDelivery_customerLocationId_fkey" FOREIGN KEY ("customerLocationId") REFERENCES "customerLocation" ("id") ON DELETE CASCADE,
- CONSTRAINT "purchaseOrderDelivery_updatedBy_fkey" FOREIGN KEY ("updatedBy") REFERENCES "user" ("id") ON DELETE RESTRICT
-);
-
-CREATE TYPE "purchaseOrderTransactionType" AS ENUM (
- 'Edit',
- 'Favorite',
- 'Unfavorite',
- 'Approved',
- 'Reject',
- 'Request Approval'
-);
-
-CREATE TABLE "purchaseOrderTransaction" (
- "id" TEXT NOT NULL DEFAULT xid(),
- "purchaseOrderId" TEXT NOT NULL,
- "type" "purchaseOrderTransactionType" NOT NULL,
- "userId" TEXT NOT NULL,
- "createdAt" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW(),
-
- CONSTRAINT "purchaseOrderTransaction_pkey" PRIMARY KEY ("id"),
- CONSTRAINT "purchaseOrderTransaction_purchaseOrderId_fkey" FOREIGN KEY ("purchaseOrderId") REFERENCES "purchaseOrder"("id") ON DELETE CASCADE,
- CONSTRAINT "purchaseOrderTransaction_userId_fkey" FOREIGN KEY ("userId") REFERENCES "user"("id") ON DELETE CASCADE
-);
-
-CREATE INDEX "purchaseOrderTransaction_purchaseOrderId_idx" ON "purchaseOrderTransaction" ("purchaseOrderId");
-CREATE INDEX "purchaseOrderTransaction_userId_idx" ON "purchaseOrderTransaction" ("userId");
-
-CREATE TABLE "purchaseOrderFavorite" (
- "purchaseOrderId" TEXT NOT NULL,
- "userId" TEXT NOT NULL,
-
- CONSTRAINT "purchaseOrderFavorites_pkey" PRIMARY KEY ("purchaseOrderId", "userId"),
- CONSTRAINT "purchaseOrderFavorites_purchaseOrderId_fkey" FOREIGN KEY ("purchaseOrderId") REFERENCES "purchaseOrder"("id") ON DELETE CASCADE,
- CONSTRAINT "purchaseOrderFavorites_userId_fkey" FOREIGN KEY ("userId") REFERENCES "user"("id") ON DELETE CASCADE
-);
-
-CREATE INDEX "purchaseOrderFavorites_userId_idx" ON "purchaseOrderFavorite" ("userId");
-CREATE INDEX "purchaseOrderFavorites_purchaseOrderId_idx" ON "purchaseOrderFavorite" ("purchaseOrderId");
-
-ALTER TABLE "purchaseOrderFavorite" ENABLE ROW LEVEL SECURITY;
-
-CREATE POLICY "Users can view their own purchase order favorites" ON "purchaseOrderFavorite"
- FOR SELECT USING (
- auth.uid()::text = "userId"
- );
-
-CREATE POLICY "Users can create their own purchase order favorites" ON "purchaseOrderFavorite"
- FOR INSERT WITH CHECK (
- auth.uid()::text = "userId"
- );
-
-CREATE POLICY "Users can delete their own purchase order favorites" ON "purchaseOrderFavorite"
- FOR DELETE USING (
- auth.uid()::text = "userId"
- );
-
-CREATE OR REPLACE VIEW "purchaseOrders" AS
- SELECT
- p.*,
- sm."name" AS "shippingMethodName",
- st."name" AS "shippingTermName",
- pt."name" AS "paymentTermName",
- pd."receiptRequestedDate",
- pd."receiptPromisedDate",
- pd."dropShipment",
- l."id" AS "locationId",
- l."name" AS "locationName",
- s."name" AS "supplierName",
- u."avatarUrl" AS "createdByAvatar",
- u."fullName" AS "createdByFullName",
- u2."avatarUrl" AS "updatedByAvatar",
- u2."fullName" AS "updatedByFullName",
- u3."avatarUrl" AS "closedByAvatar",
- u3."fullName" AS "closedByFullName",
- EXISTS(SELECT 1 FROM "purchaseOrderFavorite" pf WHERE pf."purchaseOrderId" = p.id AND pf."userId" = auth.uid()::text) AS favorite
- FROM "purchaseOrder" p
- LEFT JOIN "purchaseOrderDelivery" pd ON pd."id" = p."id"
- LEFT JOIN "shippingMethod" sm ON sm."id" = pd."shippingMethodId"
- LEFT JOIN "shippingTerm" st ON st."id" = pd."shippingTermId"
- LEFT JOIN "purchaseOrderPayment" pp ON pp."id" = p."id"
- LEFT JOIN "paymentTerm" pt ON pt."id" = pp."paymentTermId"
- LEFT JOIN "location" l ON l."id" = pd."locationId"
- LEFT JOIN "supplier" s ON s."id" = p."supplierId"
- LEFT JOIN "user" u ON u."id" = p."createdBy"
- LEFT JOIN "user" u2 ON u2."id" = p."updatedBy"
- LEFT JOIN "user" u3 ON u3."id" = p."closedBy";
-
-
-CREATE OR REPLACE VIEW "purchaseOrderSuppliers" AS
- SELECT DISTINCT
- s."id",
- s."name"
- FROM "supplier" s
- INNER JOIN "purchaseOrder" p ON p."supplierId" = s."id";
-
-
-```
-
-
-
-## `sequences`
-
-```sql
-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" 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 ("id"),
- CONSTRAINT "sequence_next_check" CHECK ("next" >= 0),
- CONSTRAINT "sequence_size_check" CHECK ("size" >= 1),
- CONSTRAINT "sequence_step_check" CHECK ("step" >= 1),
- CONSTRAINT "sequence_updatedBy_fkey" FOREIGN KEY ("updatedBy") REFERENCES "user" ("id") ON DELETE RESTRICT ON UPDATE CASCADE
-);
-
-
-```
-
-
-
-## `purchasing-files`
-
-```sql
-INSERT INTO storage.buckets (id, name, public)
-VALUES
- ('purchasing-internal', 'purchasing-internal', false),
- ('purchasing-external', 'purchasing-external', false);
-
--- Internal purchasing documents
-
-CREATE POLICY "Internal purchasing documents view requires purchasing_view" ON storage.objects
-FOR SELECT USING (
- bucket_id = 'purchasing-internal'
- AND (auth.role() = 'authenticated')
- AND coalesce(get_my_claim('purchasing_view')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
-);
-
-CREATE POLICY "Internal purchasing documents insert requires purchasing_create" ON storage.objects
-FOR INSERT WITH CHECK (
- bucket_id = 'purchasing-internal'
- AND (auth.role() = 'authenticated')
- AND coalesce(get_my_claim('purchasing_create')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
-);
-
-CREATE POLICY "Internal purchasing documents update requires purchasing_update" ON storage.objects
-FOR UPDATE USING (
- bucket_id = 'purchasing-internal'
- AND (auth.role() = 'authenticated')
- AND coalesce(get_my_claim('purchasing_update')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
-);
-
-CREATE POLICY "Internal purchasing documents delete requires purchasing_delete" ON storage.objects
-FOR DELETE USING (
- bucket_id = 'purchasing-internal'
- AND (auth.role() = 'authenticated')
- AND coalesce(get_my_claim('purchasing_delete')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
-);
-
--- External purchasing documents
-
-CREATE POLICY "External purchasing documents view requires purchasing_view" ON storage.objects
-FOR SELECT USING (
- bucket_id = 'purchasing-external'
- AND (auth.role() = 'authenticated')
- AND coalesce(get_my_claim('purchasing_view')::boolean, false) = true
- AND (
- (get_my_claim('role'::text)) = '"employee"'::jsonb OR
- (
- (get_my_claim('role'::text)) = '"supplier"'::jsonb
- )
- )
-);
-
-CREATE POLICY "External purchasing documents insert requires purchasing_view" ON storage.objects
-FOR INSERT WITH CHECK (
- bucket_id = 'purchasing-external'
- AND (auth.role() = 'authenticated')
- AND coalesce(get_my_claim('purchasing_view')::boolean, false) = true
- AND (
- (get_my_claim('role'::text)) = '"employee"'::jsonb OR
- (
- (get_my_claim('role'::text)) = '"supplier"'::jsonb
- )
- )
-);
-
-CREATE POLICY "External purchasing documents update requires purchasing_update" ON storage.objects
-FOR UPDATE USING (
- bucket_id = 'purchasing-external'
- AND (auth.role() = 'authenticated')
- AND coalesce(get_my_claim('purchasing_update')::boolean, false) = true
- AND (
- (get_my_claim('role'::text)) = '"employee"'::jsonb OR
- (
- (get_my_claim('role'::text)) = '"supplier"'::jsonb
- )
- )
-);
-
-CREATE POLICY "External purchasing documents delete requires purchasing_delete" ON storage.objects
-FOR DELETE USING (
- bucket_id = 'purchasing-external'
- AND (auth.role() = 'authenticated')
- AND coalesce(get_my_claim('purchasing_delete')::boolean, false) = true
- AND (
- (get_my_claim('role'::text)) = '"employee"'::jsonb OR
- (
- (get_my_claim('role'::text)) = '"supplier"'::jsonb
- )
- )
-);
-```
-
-
-
-## `purchasing-rls`
-
-```sql
-ALTER TABLE "purchaseOrder" ENABLE ROW LEVEL SECURITY;
-
-CREATE POLICY "Employees with purchasing_view, inventory_view, or invoicing_view can view purchase orders" ON "purchaseOrder"
- FOR SELECT
- USING (
- (
- coalesce(get_my_claim('purchasing_view')::boolean, false) = true OR
- coalesce(get_my_claim('inventory_view')::boolean, false) = true OR
- coalesce(get_my_claim('invoicing_view')::boolean, false) = true
- ) AND (get_my_claim('role'::text)) = '"employee"'::jsonb);
-
-CREATE POLICY "Suppliers with purchasing_view can their own purchase orders" ON "purchaseOrder"
- FOR SELECT
- USING (
- coalesce(get_my_claim('purchasing_view')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"supplier"'::jsonb
- AND "supplierId" IN (
- SELECT "supplierId" FROM "supplierAccount" WHERE id::uuid = auth.uid()
- )
- );
-
-CREATE POLICY "Employees with purchasing_create can create purchase orders" ON "purchaseOrder"
- FOR INSERT
- WITH CHECK (coalesce(get_my_claim('purchasing_create')::boolean,false) AND (get_my_claim('role'::text)) = '"employee"'::jsonb);
-
-
-CREATE POLICY "Employees with purchasing_update can update purchase orders" ON "purchaseOrder"
- FOR UPDATE
- USING (coalesce(get_my_claim('purchasing_update')::boolean,false) AND (get_my_claim('role'::text)) = '"employee"'::jsonb);
-
-CREATE POLICY "Suppliers with purchasing_update can their own purchase orders" ON "purchaseOrder"
- FOR UPDATE
- USING (
- coalesce(get_my_claim('purchasing_update')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"supplier"'::jsonb
- AND "supplierId" IN (
- SELECT "supplierId" FROM "supplierAccount" WHERE id::uuid = auth.uid()
- )
- );
-
-CREATE POLICY "Employees with purchasing_delete can delete purchase orders" ON "purchaseOrder"
- FOR DELETE
- USING (coalesce(get_my_claim('purchasing_delete')::boolean, false) = true AND (get_my_claim('role'::text)) = '"employee"'::jsonb);
-
--- Search
-
-CREATE FUNCTION public.create_purchase_order_search_result()
-RETURNS TRIGGER AS $$
-BEGIN
- INSERT INTO public.search(name, entity, uuid, link)
- VALUES (new."purchaseOrderId", 'Purchase Order', new.id, '/x/purchase-order/' || new.id);
- RETURN new;
-END;
-$$ LANGUAGE plpgsql SECURITY DEFINER;
-
-CREATE TRIGGER create_purchase_order_search_result
- AFTER INSERT on public."purchaseOrder"
- FOR EACH ROW EXECUTE PROCEDURE public.create_purchase_order_search_result();
-
-CREATE FUNCTION public.update_purchase_order_search_result()
-RETURNS TRIGGER AS $$
-BEGIN
- IF (old."purchaseOrderId" <> new."purchaseOrderId") THEN
- UPDATE public.search SET name = new."purchaseOrderId"
- WHERE entity = 'Purchase Order' AND uuid = new.id;
- END IF;
- RETURN new;
-END;
-$$ LANGUAGE plpgsql SECURITY DEFINER;
-
-CREATE TRIGGER update_purchase_order_search_result
- AFTER UPDATE on public."purchaseOrder"
- FOR EACH ROW EXECUTE PROCEDURE public.update_purchase_order_search_result();
-
-
-CREATE POLICY "Suppliers with purchasing_view can search for their own purchase orders" ON "search"
- FOR SELECT
- USING (
- coalesce(get_my_claim('purchasing_view')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"supplier"'::jsonb
- AND entity = 'Purchase Order'
- AND uuid IN (
- SELECT id FROM "purchaseOrder" WHERE "supplierId" IN (
- SELECT "supplierId" FROM "purchaseOrder" WHERE "supplierId" IN (
- SELECT "supplierId" FROM "supplierAccount" WHERE id::uuid = auth.uid()
- )
- )
- )
- );
-
--- Purchase Order Status History
-
-ALTER TABLE "purchaseOrderStatusHistory" ENABLE ROW LEVEL SECURITY;
-
-CREATE POLICY "Anyone with purchasing_view can view purchase order status history" ON "purchaseOrderStatusHistory"
- FOR SELECT
- USING (coalesce(get_my_claim('purchasing_view')::boolean, false) = true);
-
--- Purchase Order Lines
-
-ALTER TABLE "purchaseOrderLine" ENABLE ROW LEVEL SECURITY;
-
-CREATE POLICY "Employees with purchasing_view can view purchase order lines" ON "purchaseOrderLine"
- FOR SELECT
- USING (coalesce(get_my_claim('purchasing_view')::boolean, false) = true AND (get_my_claim('role'::text)) = '"employee"'::jsonb);
-
-CREATE POLICY "Suppliers with purchasing_view can their own purchase order lines" ON "purchaseOrderLine"
- FOR SELECT
- USING (
- coalesce(get_my_claim('purchasing_view')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"supplier"'::jsonb
- AND "purchaseOrderId" IN (
- SELECT id FROM "purchaseOrder" WHERE "supplierId" IN (
- SELECT "supplierId" FROM "purchaseOrder" WHERE "supplierId" IN (
- SELECT "supplierId" FROM "supplierAccount" WHERE id::uuid = auth.uid()
- )
- )
- )
- );
-
-CREATE POLICY "Employees with purchasing_create can create purchase order lines" ON "purchaseOrderLine"
- FOR INSERT
- WITH CHECK (coalesce(get_my_claim('purchasing_create')::boolean,false) AND (get_my_claim('role'::text)) = '"employee"'::jsonb);
-
-CREATE POLICY "Suppliers with purchasing_create can create lines on their own purchase order" ON "purchaseOrderLine"
- FOR INSERT
- WITH CHECK (
- coalesce(get_my_claim('purchasing_create')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"supplier"'::jsonb
- AND "purchaseOrderId" IN (
- SELECT id FROM "purchaseOrder" WHERE "supplierId" IN (
- SELECT "supplierId" FROM "purchaseOrder" WHERE "supplierId" IN (
- SELECT "supplierId" FROM "supplierAccount" WHERE id::uuid = auth.uid()
- )
- )
- )
- );
-
-CREATE POLICY "Employees with purchasing_update can update purchase order lines" ON "purchaseOrderLine"
- FOR UPDATE
- USING (coalesce(get_my_claim('purchasing_update')::boolean,false) AND (get_my_claim('role'::text)) = '"employee"'::jsonb);
-
-CREATE POLICY "Suppliers with purchasing_update can their own purchase order lines" ON "purchaseOrderLine"
- FOR UPDATE
- USING (
- coalesce(get_my_claim('purchasing_update')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"supplier"'::jsonb
- AND "purchaseOrderId" IN (
- SELECT id FROM "purchaseOrder" WHERE "supplierId" IN (
- SELECT "supplierId" FROM "purchaseOrder" WHERE "supplierId" IN (
- SELECT "supplierId" FROM "supplierAccount" WHERE id::uuid = auth.uid()
- )
- )
- )
- );
-
-CREATE POLICY "Employees with purchasing_delete can delete purchase order lines" ON "purchaseOrderLine"
- FOR DELETE
- USING (coalesce(get_my_claim('purchasing_delete')::boolean, false) = true AND (get_my_claim('role'::text)) = '"employee"'::jsonb);
-
-CREATE POLICY "Suppliers with purchasing_delete can delete lines on their own purchase order" ON "purchaseOrderLine"
- FOR DELETE
- USING (
- coalesce(get_my_claim('purchasing_delete')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"supplier"'::jsonb
- AND "purchaseOrderId" IN (
- SELECT id FROM "purchaseOrder" WHERE "supplierId" IN (
- SELECT "supplierId" FROM "purchaseOrder" WHERE "supplierId" IN (
- SELECT "supplierId" FROM "supplierAccount" WHERE id::uuid = auth.uid()
- )
- )
- )
- );
-
-
--- Purchase Order Deliveries
-
-ALTER TABLE "purchaseOrderDelivery" ENABLE ROW LEVEL SECURITY;
-
-CREATE POLICY "Employees with purchasing_view can view purchase order deliveries" ON "purchaseOrderDelivery"
- FOR SELECT
- USING (coalesce(get_my_claim('purchasing_view')::boolean, false) = true AND (get_my_claim('role'::text)) = '"employee"'::jsonb);
-
-CREATE POLICY "Suppliers with purchasing_view can their own purchase order deliveries" ON "purchaseOrderDelivery"
- FOR SELECT
- USING (
- coalesce(get_my_claim('purchasing_view')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"supplier"'::jsonb
- AND id IN (
- SELECT id FROM "purchaseOrder" WHERE "supplierId" IN (
- SELECT "supplierId" FROM "purchaseOrder" WHERE "supplierId" IN (
- SELECT "supplierId" FROM "supplierAccount" WHERE id::uuid = auth.uid()
- )
- )
- )
- );
-
-CREATE POLICY "Employees with purchasing_create can create purchase order deliveries" ON "purchaseOrderDelivery"
- FOR INSERT
- WITH CHECK (coalesce(get_my_claim('purchasing_create')::boolean,false) AND (get_my_claim('role'::text)) = '"employee"'::jsonb);
-
-CREATE POLICY "Employees with purchasing_update can update purchase order deliveries" ON "purchaseOrderDelivery"
- FOR UPDATE
- USING (coalesce(get_my_claim('purchasing_update')::boolean,false) AND (get_my_claim('role'::text)) = '"employee"'::jsonb);
-
-CREATE POLICY "Suppliers with purchasing_update can their own purchase order deliveries" ON "purchaseOrderDelivery"
- FOR UPDATE
- USING (
- coalesce(get_my_claim('purchasing_update')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"supplier"'::jsonb
- AND id IN (
- SELECT id FROM "purchaseOrder" WHERE "supplierId" IN (
- SELECT "supplierId" FROM "purchaseOrder" WHERE "supplierId" IN (
- SELECT "supplierId" FROM "supplierAccount" WHERE id::uuid = auth.uid()
- )
- )
- )
- );
-
-CREATE POLICY "Employees with purchasing_delete can delete purchase order deliveries" ON "purchaseOrderDelivery"
- FOR DELETE
- USING (coalesce(get_my_claim('purchasing_delete')::boolean, false) = true AND (get_my_claim('role'::text)) = '"employee"'::jsonb);
-
-
--- Purchase Order Payments
-
-ALTER TABLE "purchaseOrderPayment" ENABLE ROW LEVEL SECURITY;
-
-CREATE POLICY "Employees with purchasing_view can view purchase order payments" ON "purchaseOrderPayment"
- 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_create can create purchase order payments" ON "purchaseOrderPayment"
- FOR INSERT
- WITH CHECK (coalesce(get_my_claim('purchasing_create')::boolean,false) AND (get_my_claim('role'::text)) = '"employee"'::jsonb);
-
-CREATE POLICY "Employees with purchasing_update can update purchase order payments" ON "purchaseOrderPayment"
- FOR UPDATE
- USING (coalesce(get_my_claim('purchasing_update')::boolean,false) AND (get_my_claim('role'::text)) = '"employee"'::jsonb);
-
-CREATE POLICY "Employees with purchasing_delete can delete purchase order payments" ON "purchaseOrderPayment"
- FOR DELETE
- USING (coalesce(get_my_claim('purchasing_delete')::boolean, false) = true AND (get_my_claim('role'::text)) = '"employee"'::jsonb);
-
-```
-
-
-
-## `supplier-view`
-
-```sql
-CREATE OR REPLACE VIEW "suppliers" AS
- SELECT
- s.id,
- s.name,
- s."supplierTypeId",
- st.name AS "type",
- s."supplierStatusId",
- ss.name AS "status",
- po.count AS "orderCount",
- p.count AS "partCount"
- FROM "supplier" s
- LEFT JOIN "supplierType" st ON st.id = s."supplierTypeId"
- LEFT JOIN "supplierStatus" ss ON ss.id = s."supplierStatusId"
- LEFT JOIN (
- SELECT
- "supplierId",
- COUNT(*) AS "count"
- FROM "purchaseOrder"
- GROUP BY "supplierId"
- ) po ON po."supplierId" = s.id
- LEFT JOIN (
- SELECT
- "supplierId",
- COUNT(*) AS "count"
- FROM "partSupplier"
- GROUP BY "supplierId"
- ) p ON p."supplierId" = s.id;
-
- CREATE OR REPLACE VIEW "customers" AS
- SELECT
- c.id,
- c.name,
- c."customerTypeId",
- ct.name AS "type",
- c."customerStatusId",
- cs.name AS "status"
- -- so.count AS "orderCount"
- FROM "customer" c
- LEFT JOIN "customerType" ct ON ct.id = c."customerTypeId"
- LEFT JOIN "customerStatus" cs ON cs.id = c."customerStatusId";
-
- -- LEFT JOIN (
- -- SELECT
- -- "customerId",
- -- COUNT(*) AS "count"
- -- FROM "salesOrder"
- -- GROUP BY "customerId"
- -- ) so ON so."customerId" = c.id
-
-```
-
-
-
-## `parts-view`
-
-```sql
-CREATE OR REPLACE VIEW "parts" AS
- SELECT
- p.id,
- p.name,
- p.description,
- p."partType",
- p."partGroupId",
- pg.name AS "partGroup",
- p."replenishmentSystem",
- p.active,
- array_agg(ps."supplierId") AS "supplierIds"
- FROM "part" p
- LEFT JOIN "partGroup" pg ON pg.id = p."partGroupId"
- LEFT JOIN "partSupplier" ps ON ps."partId" = p.id
- GROUP BY p.id,
- p.name,
- p.description,
- p."partType",
- p."partGroupId",
- pg.name,
- p."replenishmentSystem",
- p.active;
-
-
-```
-
-
-
-## `view-rls`
-
-```sql
-ALTER VIEW "contractors" SET (security_invoker = on);
-ALTER VIEW "partners" SET (security_invoker = on);
-ALTER VIEW "accounts" SET (security_invoker = on);
-ALTER VIEW "accountCategories" SET (security_invoker = on);
-ALTER VIEW "documentLabels" SET (security_invoker = on);
-ALTER VIEW "documents" SET (security_invoker = on);
-ALTER VIEW "purchaseOrders" SET (security_invoker = on);
-ALTER VIEW "purchaseOrderSuppliers" SET (security_invoker = on);
-ALTER VIEW "suppliers" SET (security_invoker = on);
-ALTER VIEW "parts" SET (security_invoker = on);
-
-```
-
-
-
-## `warehouses`
-
-```sql
-
-
-
--- inbound warehouse request
--- is created automatically when a source document is released
--- is automatically deleted when the inventory put away gets everything handled
--- has a type
--- has a source document number
-
-
--- warehouse item journal
-
-
--- purchase receipt
--- return receipt
--- transfer receipt
-
--- part ledger entry pur
--- records the quantity change
-
--- value entry
--- records the value change
--- has a posting date
--- has an item ledger entry type (e.g. purchase, return, transfer, etc)
--- has an entry type (e.g. direct cost, indirect cost, etc)
--- has an adjustment checkbox
--- has a document type (e.g. purchase receipt, purchase invoice, sales invoice, etc)
--- has a document number
--- has an entry number (serial)
--- has a cost amount actual
--- has a cost amount expected
--- has an actual cost posted to gl
--- has an expected cost posted to gl
-
--- value entry - gl entry relation
--- has a value entry
--- has a gl entry
-
--- gl entry
-
-
--- warehouse entry
--- has an entry type (positive or negative)
--- has a part number
--- has a shelf
--- has a qty
-
-
--- inventory put away
--- has a warehouse
--- has a source document (assembly order, purchase order, purchase return order, inbound transfer, outbound transfer, sales order return, etc)
--- has a posting date
-
-
--- inventory put away lines
--- has a part number
--- has a description
--- has a shelf
--- has an order quantity
--- has a qty to handle
--- has a qty handled
--- has a calculated qty outstanding
--- has a uom and due date
-
-
-
-```
-
-
-
-## `ledgers`
-
-```sql
-CREATE TYPE "month" AS ENUM (
- 'January',
- 'February',
- 'March',
- 'April',
- 'May',
- 'June',
- 'July',
- 'August',
- 'September',
- 'October',
- 'November',
- 'December'
-);
-
-CREATE TABLE "fiscalYearSettings" (
- "id" BOOLEAN NOT NULL DEFAULT TRUE,
- "startMonth" "month" NOT NULL DEFAULT 'January',
- "taxStartMonth" "month" NOT NULL DEFAULT 'January',
- "updatedBy" TEXT NOT NULL,
-
- CONSTRAINT "fiscalYearSettings_pkey" PRIMARY KEY ("id"),
- CONSTRAINT "fiscalYearSettings_updatedBy_fkey" FOREIGN KEY ("updatedBy") REFERENCES "user" ("id") ON DELETE RESTRICT,
- CONSTRAINT "fiscalYear_id_check" CHECK (id = TRUE),
- CONSTRAINT "fiscalYear_id_unique" UNIQUE ("id")
-);
-
-CREATE TYPE "accountingPeriodStatus" AS ENUM (
- 'Inactive',
- 'Active'
-);
-
-CREATE TABLE "accountingPeriod" (
- "id" TEXT NOT NULL DEFAULT xid(),
- "startDate" DATE NOT NULL,
- "endDate" DATE NOT NULL,
- "status" "accountingPeriodStatus" NOT NULL DEFAULT 'Inactive',
- "closedAt" TIMESTAMP WITH TIME ZONE,
- "closedBy" TEXT,
- "createdBy" TEXT NOT NULL,
- "createdAt" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT now(),
- "updatedBy" TEXT,
- "updatedAt" TIMESTAMP WITH TIME ZONE,
-
- CONSTRAINT "accountingPeriod_pkey" PRIMARY KEY ("id"),
- CONSTRAINT "accountingPeriod_closedBy_fkey" FOREIGN KEY ("closedBy") REFERENCES "user" ("id") ON DELETE RESTRICT,
- CONSTRAINT "accountingPeriod_createdBy_fkey" FOREIGN KEY ("createdBy") REFERENCES "user" ("id") ON DELETE RESTRICT,
- CONSTRAINT "accountingPeriod_updatedBy_fkey" FOREIGN KEY ("updatedBy") REFERENCES "user" ("id") ON DELETE RESTRICT
-);
-
-CREATE TABLE "journal" (
- "id" SERIAL,
- "description" TEXT,
- "accountingPeriodId" TEXT,
- "postingDate" DATE NOT NULL DEFAULT CURRENT_DATE,
- "createdAt" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT now(),
-
- CONSTRAINT "journal_pkey" PRIMARY KEY ("id"),
- CONSTRAINT "journal_accountPeriodId_fkey" FOREIGN KEY ("accountingPeriodId") REFERENCES "accountingPeriod" ("id") ON DELETE RESTRICT
-);
-
-CREATE INDEX "journal_accountPeriodId_idx" ON "journal" ("accountingPeriodId");
-CREATE INDEX "journal_postingDate_idx" ON "journal" ("postingDate");
-
-ALTER TABLE "journal" ENABLE ROW LEVEL SECURITY;
-
-CREATE POLICY "Employees with accounting_view can view journals" ON "journal"
- FOR SELECT
- USING (
- coalesce(get_my_claim('accounting_view')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-
-
-CREATE POLICY "Employees with accounting_create can insert journals" ON "journal"
- FOR INSERT
- WITH CHECK (
- coalesce(get_my_claim('accounting_create')::boolean,false)
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
-);
-
-
-CREATE TYPE "journalLineDocumentType" AS ENUM (
- 'Receipt',
- 'Invoice',
- 'Credit Memo',
- 'Blanket Order',
- 'Return Order'
-);
-
-CREATE TABLE "journalLine" (
- "id" TEXT NOT NULL DEFAULT xid(),
- "journalId" INTEGER NOT NULL,
- "accountNumber" TEXT NOT NULL,
- "description" TEXT,
- "amount" NUMERIC(19, 4) NOT NULL,
- "quantity" NUMERIC(12, 4) NOT NULL DEFAULT 1,
- "documentType" "journalLineDocumentType",
- "documentId" TEXT,
- "externalDocumentId" TEXT,
- "journalLineReference" TEXT NOT NULL,
- "documentLineReference" TEXT,
- "accrual" BOOLEAN NOT NULL DEFAULT false,
- "createdAt" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT now(),
-
- CONSTRAINT "journalLine_pkey" PRIMARY KEY ("id"),
- CONSTRAINT "journalLine_accountNumber_fkey" FOREIGN KEY ("accountNumber") REFERENCES "account"("number") ON UPDATE CASCADE ON DELETE SET NULL
-);
-
-CREATE INDEX "journalLine_accountNumber_idx" ON "journalLine" ("accountNumber");
-
-ALTER TABLE "journalLine" ENABLE ROW LEVEL SECURITY;
-
-CREATE POLICY "Employees with accounting_view can view journal lines" ON "journalLine"
- FOR SELECT
- USING (
- coalesce(get_my_claim('accounting_view')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-
-
-CREATE POLICY "Employees with accounting_create can insert journal lines" ON "journalLine"
- FOR INSERT
- WITH CHECK (
- coalesce(get_my_claim('accounting_create')::boolean,false)
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
-);
-
--- delete and update are not availble for journal lines
-
-CREATE TYPE "partLedgerType" AS ENUM (
- 'Purchase',
- 'Sale',
- 'Positive Adjmt.',
- 'Negative Adjmt.',
- 'Transfer',
- 'Consumption',
- 'Output',
- 'Assembly Consumption',
- 'Assembly Output'
-);
-
-CREATE TYPE "costLedgerType" AS ENUM (
- 'Direct Cost',
- 'Revaluation',
- 'Rounding',
- 'Indirect Cost',
- 'Variance',
- 'Total'
-);
-
-CREATE TYPE "partLedgerDocumentType" AS ENUM (
- 'Sales Shipment',
- 'Sales Invoice',
- 'Sales Return Receipt',
- 'Sales Credit Memo',
- 'Purchase Receipt',
- 'Purchase Invoice',
- 'Purchase Return Shipment',
- 'Purchase Credit Memo',
- 'Transfer Shipment',
- 'Transfer Receipt',
- 'Service Shipment',
- 'Service Invoice',
- 'Service Credit Memo',
- 'Posted Assembly',
- 'Inventory Receipt',
- 'Inventory Shipment',
- 'Direct Transfer'
-);
-
-CREATE TABLE "costLedger" (
- "id" TEXT NOT NULL DEFAULT xid(),
- "entryNumber" SERIAL,
- "postingDate" DATE NOT NULL DEFAULT CURRENT_DATE,
- "partLedgerType" "partLedgerType" NOT NULL,
- "costLedgerType" "costLedgerType" NOT NULL,
- "adjustment" BOOLEAN NOT NULL DEFAULT false,
- "documentType" "partLedgerDocumentType",
- "documentId" TEXT,
- "externalDocumentId" TEXT,
- "partId" TEXT,
- "quantity" NUMERIC(12, 4) NOT NULL DEFAULT 0,
- "cost" NUMERIC(19, 4) NOT NULL DEFAULT 0,
- "costPostedToGL" NUMERIC(19, 4) NOT NULL DEFAULT 0,
- "createdAt" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT now(),
-
- CONSTRAINT "costLedger_pkey" PRIMARY KEY ("id")
-);
-
-ALTER TABLE "costLedger" ENABLE ROW LEVEL SECURITY;
-
-CREATE POLICY "Employees with accounting_view can view the value ledger" ON "costLedger"
- FOR SELECT
- USING (
- coalesce(get_my_claim('accounting_view')::boolean, false) = true AND
- (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-
--- CREATE TABLE "costLedgerJournalLineRelation" (
--- "costLedgerId" TEXT NOT NULL,
--- "journalLineId" TEXT NOT NULL,
-
--- CONSTRAINT "costLedgerJournalLineRelation_pkey" PRIMARY KEY ("costLedgerId", "journalLineId"),
--- CONSTRAINT "costLedgerJournalLineRelation_costLedgerId_fkey" FOREIGN KEY ("costLedgerId") REFERENCES "costLedger"("id"),
--- CONSTRAINT "costLedgerJournalLineRelation_journalLineId_fkey" FOREIGN KEY ("journalLineId") REFERENCES "journalLine"("id")
--- );
-
--- ALTER TABLE "costLedgerJournalLineRelation" ENABLE ROW LEVEL SECURITY;
-
--- CREATE POLICY "Employees with accounting_view can view the value ledger/general ledger relations" ON "costLedgerJournalLineRelation"
--- FOR SELECT
--- USING (
--- coalesce(get_my_claim('accounting_view')::boolean, false) = true AND
--- (get_my_claim('role'::text)) = '"employee"'::jsonb
--- );
-
-
-CREATE TABLE "partLedger" (
- "id" TEXT NOT NULL DEFAULT xid(),
- "entryNumber" SERIAL,
- "postingDate" DATE NOT NULL DEFAULT CURRENT_DATE,
- "entryType" "partLedgerType" NOT NULL,
- "documentType" "partLedgerDocumentType",
- "documentId" TEXT,
- "externalDocumentId" TEXT,
- "partId" TEXT NOT NULL,
- "locationId" TEXT,
- "shelfId" TEXT,
- "quantity" NUMERIC(12, 4) NOT NULL,
- "createdAt" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT now(),
-
- CONSTRAINT "partLedger_pkey" PRIMARY KEY ("id"),
- CONSTRAINT "partLedger_partId_fkey" FOREIGN KEY ("partId") REFERENCES "part"("id") ON UPDATE CASCADE ON DELETE CASCADE,
- CONSTRAINT "partLedger_locationId_fkey" FOREIGN KEY ("locationId") REFERENCES "location"("id") ON UPDATE CASCADE ON DELETE SET NULL,
- CONSTRAINT "partLedger_shelfId_fkey" FOREIGN KEY ("shelfId", "locationId") REFERENCES "shelf"("id", "locationId") ON UPDATE CASCADE ON DELETE SET NULL
-);
-
-ALTER TABLE "partLedger" ENABLE ROW LEVEL SECURITY;
-
-CREATE POLICY "Certain employees can view the parts ledger" ON "partLedger"
- FOR SELECT
- USING (
- (
- coalesce(get_my_claim('accounting_view')::boolean, false) = true OR
- coalesce(get_my_claim('parts_view')::boolean, false) = true
- )
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-
-CREATE TYPE "supplierLedgerDocumentType" AS ENUM (
- 'Payment',
- 'Invoice',
- 'Credit Memo',
- 'Finance Charge Memo',
- 'Reminder',
- 'Refund'
-);
-
-CREATE TABLE "supplierLedger" (
- "id" TEXT NOT NULL DEFAULT xid(),
- "entryNumber" SERIAL,
- "postingDate" DATE NOT NULL DEFAULT CURRENT_DATE,
- "documentType" "supplierLedgerDocumentType",
- "documentId" TEXT,
- "externalDocumentId" TEXT,
- "supplierId" TEXT NOT NULL,
- "amount" NUMERIC(19, 4) NOT NULL,
- "createdAt" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT now(),
-
- CONSTRAINT "supplierLedger_pkey" PRIMARY KEY ("id"),
- CONSTRAINT "supplierLedger_supplierId_fkey" FOREIGN KEY ("supplierId") REFERENCES "supplier"("id") ON UPDATE CASCADE ON DELETE CASCADE
-);
-
-
-CREATE OR REPLACE FUNCTION "journalLinesByAccountNumber" (
- from_date DATE DEFAULT (now() - INTERVAL '100 year'),
- to_date DATE DEFAULT now()
-)
-RETURNS TABLE (
- "number" TEXT,
- "balance" NUMERIC(19, 4),
- "balanceAtDate" NUMERIC(19, 4),
- "netChange" NUMERIC(19, 4)
-) LANGUAGE "plpgsql" SECURITY INVOKER SET search_path = public
-AS $$
- BEGIN
- RETURN QUERY
- SELECT
- a."number",
- SUM(jl."amount") AS "balance",
- SUM(CASE WHEN j."postingDate" <= to_date THEN jl."amount" ELSE 0 END) AS "balanceAtDate",
- SUM(CASE WHEN j."postingDate" >= from_date AND j."postingDate" <= to_date THEN jl."amount" ELSE 0 END) AS "netChange"
- FROM "account" a
- LEFT JOIN "journalLine" jl ON jl."accountNumber" = a."number"
- INNER JOIN "journal" j ON j."id" = jl."journalId"
- GROUP BY a."number";
- END;
-$$;
-
-
-
-
-
-
-
-```
-
-
-
-## `receipts`
-
-```sql
-CREATE TYPE "receiptSourceDocument" AS ENUM (
- 'Sales Order',
- 'Sales Invoice',
- 'Sales Return Order',
- 'Purchase Order',
- 'Purchase Invoice',
- 'Purchase Return Order',
- 'Inbound Transfer',
- 'Outbound Transfer',
- 'Manufacturing Consumption',
- 'Manufacturing Output'
-);
-
-CREATE TYPE "receiptStatus" AS ENUM (
- 'Draft',
- 'Pending',
- 'Posted'
-);
-
-CREATE TABLE "receipt" (
- "id" TEXT NOT NULL DEFAULT xid(),
- "receiptId" TEXT NOT NULL,
- "locationId" TEXT,
- "sourceDocument" "receiptSourceDocument",
- "sourceDocumentId" TEXT,
- "sourceDocumentReadableId" TEXT,
- "externalDocumentId" TEXT,
- "supplierId" TEXT,
- "status" "receiptStatus" NOT NULL DEFAULT 'Draft',
- "postingDate" DATE,
- "invoiced" BOOLEAN DEFAULT FALSE,
- "createdAt" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW(),
- "createdBy" TEXT NOT NULL,
- "updatedAt" TIMESTAMP WITH TIME ZONE,
- "updatedBy" TEXT,
-
- CONSTRAINT "receipt_pkey" PRIMARY KEY ("id"),
- CONSTRAINT "receipt_receiptId_key" UNIQUE ("receiptId"),
- CONSTRAINT "receipt_locationId_fkey" FOREIGN KEY ("locationId") REFERENCES "location" ("id") ON DELETE SET NULL ON UPDATE CASCADE,
- CONSTRAINT "receipt_supplierId_fkey" FOREIGN KEY ("supplierId") REFERENCES "supplier" ("id") ON DELETE CASCADE ON UPDATE CASCADE,
- CONSTRAINT "receipt_createdBy_fkey" FOREIGN KEY ("createdBy") REFERENCES "user" ("id") ON DELETE RESTRICT ON UPDATE CASCADE,
- CONSTRAINT "receipt_updatedBy_fkey" FOREIGN KEY ("updatedBy") REFERENCES "user" ("id") ON DELETE RESTRICT ON UPDATE CASCADE
-);
-
-CREATE INDEX "receipt_receiptId_idx" ON "receipt" ("receiptId");
-CREATE INDEX "receipt_status_idx" ON "receipt" ("status");
-CREATE INDEX "receipt_locationId_idx" ON "receipt" ("locationId");
-CREATE INDEX "receipt_sourceDocumentId_idx" ON "receipt" ("sourceDocumentId");
-CREATE INDEX "receipt_supplierId_idx" ON "receipt" ("supplierId");
-
-ALTER TABLE "receipt" ENABLE ROW LEVEL SECURITY;
-
-CREATE POLICY "Employees with inventory_view can view receipts" ON "receipt"
- FOR SELECT
- USING (coalesce(get_my_claim('inventory_view')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb);
-
-
-CREATE POLICY "Employees with inventory_create can insert receipts" ON "receipt"
- FOR INSERT
- WITH CHECK (
- coalesce(get_my_claim('inventory_create')::boolean,false)
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
-);
-
-CREATE POLICY "Employees with inventory_update can update receipts" ON "receipt"
- FOR UPDATE
- USING (
- coalesce(get_my_claim('inventory_update')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-
-CREATE POLICY "Employees with inventory_delete can delete receipts" ON "receipt"
- FOR DELETE
- USING (
- coalesce(get_my_claim('inventory_delete')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-
-ALTER publication supabase_realtime ADD TABLE "receipt";
-
-CREATE TABLE "receiptLine" (
- "id" TEXT NOT NULL DEFAULT xid(),
- "receiptId" TEXT NOT NULL,
- "lineId" TEXT,
- "partId" TEXT NOT NULL,
- "orderQuantity" NUMERIC(18, 4) NOT NULL,
- "outstandingQuantity" NUMERIC(18, 4) NOT NULL DEFAULT 0,
- "receivedQuantity" NUMERIC(18, 4) NOT NULL DEFAULT 0,
- "locationId" TEXT,
- "shelfId" TEXT,
- "unitOfMeasure" TEXT NOT NULL,
- "unitPrice" NUMERIC(18, 4) NOT NULL,
- "createdAt" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW(),
- "createdBy" TEXT NOT NULL,
- "updatedAt" TIMESTAMP WITH TIME ZONE,
- "updatedBy" TEXT,
-
- CONSTRAINT "receiptLine_pkey" PRIMARY KEY ("id"),
- CONSTRAINT "receiptLine_receiptId_fkey" FOREIGN KEY ("receiptId") REFERENCES "receipt" ("id") ON DELETE CASCADE ON UPDATE CASCADE,
- CONSTRAINT "receiptLine_partId_fkey" FOREIGN KEY ("partId") REFERENCES "part" ("id") ON DELETE CASCADE ON UPDATE CASCADE,
- CONSTRAINT "receiptLine_locationId_fkey" FOREIGN KEY ("locationId") REFERENCES "location" ("id") ON DELETE SET NULL ON UPDATE CASCADE,
- CONSTRAINT "receiptLine_shelfId_fkey" FOREIGN KEY ("shelfId", "locationId") REFERENCES "shelf" ("id", "locationId") ON DELETE SET NULL ON UPDATE CASCADE,
- CONSTRAINT "receiptLine_createdBy_fkey" FOREIGN KEY ("createdBy") REFERENCES "user" ("id") ON DELETE RESTRICT ON UPDATE CASCADE,
- CONSTRAINT "receiptLine_updatedBy_fkey" FOREIGN KEY ("updatedBy") REFERENCES "user" ("id") ON DELETE RESTRICT ON UPDATE CASCADE
-);
-
-CREATE INDEX "receiptLine_receiptId_idx" ON "receiptLine" ("receiptId");
-CREATE INDEX "receiptLine_lineId_idx" ON "receiptLine" ("lineId");
-CREATE INDEX "receiptLine_receiptId_lineId_idx" ON "receiptLine" ("receiptId", "lineId");
-
-ALTER TABLE "receiptLine" ENABLE ROW LEVEL SECURITY;
-
-CREATE POLICY "Employees with inventory_view can view receipt lines" ON "receiptLine"
- FOR SELECT
- USING (
- coalesce(get_my_claim('inventory_view')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-
-
-CREATE POLICY "Employees with inventory_create can insert receipt lines" ON "receiptLine"
- FOR INSERT
- WITH CHECK (
- coalesce(get_my_claim('inventory_create')::boolean,false)
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
-);
-
-CREATE POLICY "Employees with inventory_update can update receipt lines" ON "receiptLine"
- FOR UPDATE
- USING (
- coalesce(get_my_claim('inventory_update')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-
-CREATE POLICY "Employees with inventory_delete can delete receipt lines" ON "receiptLine"
- FOR DELETE
- USING (
- coalesce(get_my_claim('inventory_delete')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-
-
-
-
-
-```
-
-
-
-## `defaults`
-
-```sql
-CREATE OR REPLACE VIEW "userDefaults" AS
- SELECT
- u.id as "userId",
- ej."locationId"
- FROM "user" u
- LEFT JOIN "employeeJob" ej ON ej.id = u.id;
-```
-
-
-
-## `posting-groups`
-
-```sql
-CREATE TABLE "accountDefault" (
- "id" BOOLEAN NOT NULL DEFAULT TRUE,
- -- income statement
- -- revenue
- "salesAccount" TEXT NOT NULL,
- "salesDiscountAccount" TEXT NOT NULL,
-
- -- part cost
- "costOfGoodsSoldAccount" TEXT NOT NULL,
- "purchaseAccount" TEXT NOT NULL,
- "directCostAppliedAccount" TEXT NOT NULL,
- "overheadCostAppliedAccount" TEXT NOT NULL,
- "purchaseVarianceAccount" TEXT NOT NULL,
- "inventoryAdjustmentVarianceAccount" TEXT NOT NULL,
-
- -- costs
- "materialVarianceAccount" TEXT NOT NULL,
- "capacityVarianceAccount" TEXT NOT NULL,
- "overheadAccount" TEXT NOT NULL,
- "maintenanceAccount" TEXT NOT NULL,
-
- -- depreciaition of fixed assets
- "assetDepreciationExpenseAccount" TEXT NOT NULL,
- "assetGainsAndLossesAccount" TEXT NOT NULL,
- "serviceChargeAccount" TEXT NOT NULL,
-
- -- interest
- "interestAccount" TEXT NOT NULL,
- "supplierPaymentDiscountAccount" TEXT NOT NULL,
- "customerPaymentDiscountAccount" TEXT NOT NULL,
- "roundingAccount" TEXT NOT NULL,
-
- -- balance sheet
- -- assets
- "assetAquisitionCostAccount" TEXT NOT NULL,
- "assetAquisitionCostOnDisposalAccount" TEXT NOT NULL,
- "accumulatedDepreciationAccount" TEXT NOT NULL,
- "accumulatedDepreciationOnDisposalAccount" TEXT NOT NULL,
-
- -- current assets
- "inventoryAccount" TEXT NOT NULL,
- "inventoryInterimAccrualAccount" TEXT NOT NULL,
- "workInProgressAccount" TEXT NOT NULL,
- "receivablesAccount" TEXT NOT NULL,
- "inventoryShippedNotInvoicedAccount" TEXT NOT NULL,
- "inventoryInvoicedNotReceivedAccount" TEXT NOT NULL,
- "bankCashAccount" TEXT NOT NULL,
- "bankLocalCurrencyAccount" TEXT NOT NULL,
- "bankForeignCurrencyAccount" TEXT NOT NULL,
-
- -- liabilities
- "prepaymentAccount" TEXT NOT NULL,
- "payablesAccount" TEXT NOT NULL,
- "inventoryReceivedNotInvoicedAccount" TEXT NOT NULL,
- "salesTaxPayableAccount" TEXT NOT NULL,
- "purchaseTaxPayableAccount" TEXT NOT NULL,
- "reverseChargeSalesTaxPayableAccount" TEXT NOT NULL,
-
- -- retained earnings
- "retainedEarningsAccount" TEXT NOT NULL,
-
- "updatedBy" TEXT,
-
-
-
- CONSTRAINT "accountDefault_pkey" PRIMARY KEY ("id"),
- -- this is a hack to make sure that this table only ever has one row
- CONSTRAINT "accountDefault_id_check" CHECK ("id" = TRUE),
- CONSTRAINT "accountDefault_id_unique" UNIQUE ("id"),
- CONSTRAINT "accountDefault_salesAccount_fkey" FOREIGN KEY ("salesAccount") REFERENCES "account" ("number") ON DELETE RESTRICT ON UPDATE CASCADE,
- CONSTRAINT "accountDefault_salesDiscountAccount_fkey" FOREIGN KEY ("salesDiscountAccount") REFERENCES "account" ("number") ON DELETE RESTRICT ON UPDATE CASCADE,
- CONSTRAINT "accountDefault_costOfGoodsSoldAccount_fkey" FOREIGN KEY ("costOfGoodsSoldAccount") REFERENCES "account" ("number") ON DELETE RESTRICT ON UPDATE CASCADE,
- CONSTRAINT "accountDefault_purchaseAccount_fkey" FOREIGN KEY ("purchaseAccount") REFERENCES "account" ("number") ON DELETE RESTRICT ON UPDATE CASCADE,
- CONSTRAINT "accountDefault_directCostAppliedAccount_fkey" FOREIGN KEY ("directCostAppliedAccount") REFERENCES "account" ("number") ON DELETE RESTRICT ON UPDATE CASCADE,
- CONSTRAINT "accountDefault_overheadCostAppliedAccount_fkey" FOREIGN KEY ("overheadCostAppliedAccount") REFERENCES "account" ("number") ON DELETE RESTRICT ON UPDATE CASCADE,
- CONSTRAINT "accountDefault_purchaseVarianceAccount_fkey" FOREIGN KEY ("purchaseVarianceAccount") REFERENCES "account" ("number") ON DELETE RESTRICT ON UPDATE CASCADE,
- CONSTRAINT "accountDefault_inventoryAdjustmentVarianceAccount_fkey" FOREIGN KEY ("inventoryAdjustmentVarianceAccount") REFERENCES "account" ("number") ON DELETE RESTRICT ON UPDATE CASCADE,
- CONSTRAINT "accountDefault_materialVarianceAccount_fkey" FOREIGN KEY ("materialVarianceAccount") REFERENCES "account" ("number") ON DELETE RESTRICT ON UPDATE CASCADE,
- CONSTRAINT "accountDefault_capacityVarianceAccount_fkey" FOREIGN KEY ("capacityVarianceAccount") REFERENCES "account" ("number") ON DELETE RESTRICT ON UPDATE CASCADE,
- CONSTRAINT "accountDefault_overheadAccount_fkey" FOREIGN KEY ("overheadAccount") REFERENCES "account" ("number") ON DELETE RESTRICT ON UPDATE CASCADE,
- CONSTRAINT "accountDefault_maintenanceAccount_fkey" FOREIGN KEY ("maintenanceAccount") REFERENCES "account" ("number") ON DELETE RESTRICT ON UPDATE CASCADE,
- CONSTRAINT "accountDefault_assetDepreciationExpenseAccount_fkey" FOREIGN KEY ("assetDepreciationExpenseAccount") REFERENCES "account" ("number") ON DELETE RESTRICT ON UPDATE CASCADE,
- CONSTRAINT "accountDefault_assetGainsAndLossesAccount_fkey" FOREIGN KEY ("assetGainsAndLossesAccount") REFERENCES "account" ("number") ON DELETE RESTRICT ON UPDATE CASCADE,
- CONSTRAINT "accountDefault_serviceChargeAccount_fkey" FOREIGN KEY ("serviceChargeAccount") REFERENCES "account" ("number") ON DELETE RESTRICT ON UPDATE CASCADE,
- CONSTRAINT "accountDefault_interestAccount_fkey" FOREIGN KEY ("interestAccount") REFERENCES "account" ("number") ON DELETE RESTRICT ON UPDATE CASCADE,
- CONSTRAINT "accountDefault_supplierPaymentDiscountAccount_fkey" FOREIGN KEY ("supplierPaymentDiscountAccount") REFERENCES "account" ("number") ON DELETE RESTRICT ON UPDATE CASCADE,
- CONSTRAINT "accountDefault_customerPaymentDiscountAccount_fkey" FOREIGN KEY ("customerPaymentDiscountAccount") REFERENCES "account" ("number") ON DELETE RESTRICT ON UPDATE CASCADE,
- CONSTRAINT "accountDefault_roundingAccount_fkey" FOREIGN KEY ("roundingAccount") REFERENCES "account" ("number") ON DELETE RESTRICT ON UPDATE CASCADE,
- CONSTRAINT "accountDefault_aquisitionCostAccount_fkey" FOREIGN KEY ("assetAquisitionCostAccount") REFERENCES "account" ("number") ON DELETE RESTRICT ON UPDATE CASCADE,
- CONSTRAINT "accountDefault_aquisitionCostOnDisposalAccount_fkey" FOREIGN KEY ("assetAquisitionCostOnDisposalAccount") REFERENCES "account" ("number") ON DELETE RESTRICT ON UPDATE CASCADE,
- CONSTRAINT "accountDefault_accumulatedDepreciationAccount_fkey" FOREIGN KEY ("accumulatedDepreciationAccount") REFERENCES "account" ("number") ON DELETE RESTRICT ON UPDATE CASCADE,
- CONSTRAINT "accountDefault_accumulatedDepreciationOnDisposalAccount_fkey" FOREIGN KEY ("accumulatedDepreciationOnDisposalAccount") REFERENCES "account" ("number") ON DELETE RESTRICT ON UPDATE CASCADE,
- CONSTRAINT "accountDefault_inventoryAccount_fkey" FOREIGN KEY ("inventoryAccount") REFERENCES "account" ("number") ON DELETE RESTRICT ON UPDATE CASCADE,
- CONSTRAINT "accountDefault_inventoryInterimAccrualAccount_fkey" FOREIGN KEY ("inventoryInterimAccrualAccount") REFERENCES "account" ("number") ON DELETE RESTRICT ON UPDATE CASCADE,
- CONSTRAINT "accountDefault_workInProgressAccount_fkey" FOREIGN KEY ("workInProgressAccount") REFERENCES "account" ("number") ON DELETE RESTRICT ON UPDATE CASCADE,
- CONSTRAINT "accountDefault_receivablesAccount_fkey" FOREIGN KEY ("receivablesAccount") REFERENCES "account" ("number") ON DELETE RESTRICT ON UPDATE CASCADE,
- CONSTRAINT "accountDefault_inventoryShippedNotInvoicedAccount_fkey" FOREIGN KEY ("inventoryShippedNotInvoicedAccount") REFERENCES "account" ("number") ON DELETE RESTRICT ON UPDATE CASCADE,
- CONSTRAINT "accountDefault_bankCashAccount_fkey" FOREIGN KEY ("bankCashAccount") REFERENCES "account" ("number") ON DELETE RESTRICT ON UPDATE CASCADE,
- CONSTRAINT "accountDefault_bankLocalCurrencyAccount_fkey" FOREIGN KEY ("bankLocalCurrencyAccount") REFERENCES "account" ("number") ON DELETE RESTRICT ON UPDATE CASCADE,
- CONSTRAINT "accountDefault_bankForeignCurrencyAccount_fkey" FOREIGN KEY ("bankForeignCurrencyAccount") REFERENCES "account" ("number") ON DELETE RESTRICT ON UPDATE CASCADE,
- CONSTRAINT "accountDefault_prepaymentAccount_fkey" FOREIGN KEY ("prepaymentAccount") REFERENCES "account" ("number") ON DELETE RESTRICT ON UPDATE CASCADE,
- CONSTRAINT "accountDefault_payablesAccount_fkey" FOREIGN KEY ("payablesAccount") REFERENCES "account" ("number") ON DELETE RESTRICT ON UPDATE CASCADE,
- CONSTRAINT "accountDefault_inventoryReceivedNotInvoicedAccount_fkey" FOREIGN KEY ("inventoryReceivedNotInvoicedAccount") REFERENCES "account" ("number") ON DELETE RESTRICT ON UPDATE CASCADE,
- CONSTRAINT "accountDefault_salesTaxPayableAccount_fkey" FOREIGN KEY ("salesTaxPayableAccount") REFERENCES "account" ("number") ON DELETE RESTRICT ON UPDATE CASCADE,
- CONSTRAINT "accountDefault_reverseChargeSalesTaxPayableAccount_fkey" FOREIGN KEY ("reverseChargeSalesTaxPayableAccount") REFERENCES "account" ("number") ON DELETE RESTRICT ON UPDATE CASCADE,
- CONSTRAINT "accountDefault_purchaseTaxPayableAccount_fkey" FOREIGN KEY ("purchaseTaxPayableAccount") REFERENCES "account" ("number") ON DELETE RESTRICT ON UPDATE CASCADE,
- CONSTRAINT "accountDefault_retainedEarningsAccount_fkey" FOREIGN KEY ("retainedEarningsAccount") REFERENCES "account" ("number") ON DELETE RESTRICT ON UPDATE CASCADE,
- CONSTRAINT "accountDefault_updatedBy_fkey" FOREIGN KEY ("updatedBy") REFERENCES "user" ("id") ON DELETE RESTRICT ON UPDATE CASCADE
-);
-
-ALTER TABLE "accountDefault" ENABLE ROW LEVEL SECURITY;
-
-
-CREATE POLICY "Employees with accounting_view can view account defaults" ON "accountDefault"
- FOR SELECT
- USING (
- coalesce(get_my_claim('accounting_view')::boolean,false)
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-
-CREATE POLICY "Employees with accounting_update can update account defaults" ON "accountDefault"
- FOR UPDATE
- USING (
- coalesce(get_my_claim('accounting_update')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-
-
-
-CREATE TABLE "postingGroupInventory" (
- "id" TEXT NOT NULL DEFAULT xid(),
- "partGroupId" TEXT,
- "locationId" TEXT,
- "costOfGoodsSoldAccount" TEXT NOT NULL,
- "inventoryAccount" TEXT NOT NULL,
- "inventoryInterimAccrualAccount" TEXT NOT NULL,
- "inventoryReceivedNotInvoicedAccount" TEXT NOT NULL,
- "inventoryInvoicedNotReceivedAccount" TEXT NOT NULL,
- "inventoryShippedNotInvoicedAccount" TEXT NOT NULL,
- "workInProgressAccount" TEXT NOT NULL,
- "directCostAppliedAccount" TEXT NOT NULL,
- "overheadAccount" TEXT NOT NULL,
- "overheadCostAppliedAccount" TEXT NOT NULL,
- "purchaseVarianceAccount" TEXT NOT NULL,
- "inventoryAdjustmentVarianceAccount" TEXT NOT NULL,
- "materialVarianceAccount" TEXT NOT NULL,
- "capacityVarianceAccount" TEXT NOT NULL,
- "updatedBy" TEXT,
-
- CONSTRAINT "postingGroupInventory_pkey" PRIMARY KEY ("id"),
- CONSTRAINT "postingGroupInventory_id_partGroupId_locationId_key" UNIQUE ("partGroupId", "locationId"),
- CONSTRAINT "postingGroupInventory_partGroupId_fkey" FOREIGN KEY ("partGroupId") REFERENCES "partGroup" ("id") ON DELETE CASCADE ON UPDATE CASCADE,
- CONSTRAINT "postingGroupInventory_locationId_fkey" FOREIGN KEY ("locationId") REFERENCES "location" ("id") ON DELETE CASCADE ON UPDATE CASCADE,
- CONSTRAINT "postingGroupInventory_costOfGoodsSoldAccount_fkey" FOREIGN KEY ("costOfGoodsSoldAccount") REFERENCES "account" ("number") ON DELETE RESTRICT ON UPDATE CASCADE,
- CONSTRAINT "postingGroupInventory_inventoryAccount_fkey" FOREIGN KEY ("inventoryAccount") REFERENCES "account" ("number") ON DELETE RESTRICT ON UPDATE CASCADE,
- CONSTRAINT "postingGroupInventory_inventoryInterimAccrualAccount_fkey" FOREIGN KEY ("inventoryInterimAccrualAccount") REFERENCES "account" ("number") ON DELETE RESTRICT ON UPDATE CASCADE,
- CONSTRAINT "postingGroupInventory_inventoryReceivedNotInvoicedAccount_fkey" FOREIGN KEY ("inventoryReceivedNotInvoicedAccount") REFERENCES "account" ("number") ON DELETE RESTRICT ON UPDATE CASCADE,
- CONSTRAINT "postingGroupInventory_inventoryInvoicedNotReceivedAccount_fkey" FOREIGN KEY ("inventoryInvoicedNotReceivedAccount") REFERENCES "account" ("number") ON DELETE RESTRICT ON UPDATE CASCADE,
- CONSTRAINT "postingGroupInventory_inventoryShippedNotInvoicedAccount_fkey" FOREIGN KEY ("inventoryShippedNotInvoicedAccount") REFERENCES "account" ("number") ON DELETE RESTRICT ON UPDATE CASCADE,
- CONSTRAINT "postingGroupInventory_workInProgressAccount_fkey" FOREIGN KEY ("workInProgressAccount") REFERENCES "account" ("number") ON DELETE RESTRICT ON UPDATE CASCADE,
- CONSTRAINT "postingGroupInventory_directCostAppliedAccount_fkey" FOREIGN KEY ("directCostAppliedAccount") REFERENCES "account" ("number") ON DELETE RESTRICT ON UPDATE CASCADE,
- CONSTRAINT "postingGroupInventory_overheadCostAppliedAccount_fkey" FOREIGN KEY ("overheadCostAppliedAccount") REFERENCES "account" ("number") ON DELETE RESTRICT ON UPDATE CASCADE,
- CONSTRAINT "postingGroupInventory_purchaseVarianceAccount_fkey" FOREIGN KEY ("purchaseVarianceAccount") REFERENCES "account" ("number") ON DELETE RESTRICT ON UPDATE CASCADE,
- CONSTRAINT "postingGroupInventory_inventoryAdjustmentVarianceAccount_fkey" FOREIGN KEY ("inventoryAdjustmentVarianceAccount") REFERENCES "account" ("number") ON DELETE RESTRICT ON UPDATE CASCADE,
- CONSTRAINT "postingGroupInventory_materialVarianceAccount_fkey" FOREIGN KEY ("materialVarianceAccount") REFERENCES "account" ("number") ON DELETE RESTRICT ON UPDATE CASCADE,
- CONSTRAINT "postingGroupInventory_capacityVarianceAccount_fkey" FOREIGN KEY ("capacityVarianceAccount") REFERENCES "account" ("number") ON DELETE RESTRICT ON UPDATE CASCADE,
- CONSTRAINT "postingGroupInventory_overheadAccount_fkey" FOREIGN KEY ("overheadAccount") REFERENCES "account" ("number") ON DELETE RESTRICT ON UPDATE CASCADE,
- CONSTRAINT "postingGroupInventory_updatedBy_fkey" FOREIGN KEY ("updatedBy") REFERENCES "user" ("id") ON DELETE SET NULL ON UPDATE CASCADE
-);
-
-CREATE INDEX "postingGroupInventory_partGroupId_locationId_idx" ON "postingGroupInventory" ("partGroupId", "locationId");
-
-ALTER TABLE "postingGroupInventory" ENABLE ROW LEVEL SECURITY;
-
-CREATE POLICY "Employees with accounting_view can view inventory posting groups" ON "postingGroupInventory"
- FOR SELECT
- USING (
- coalesce(get_my_claim('accounting_view')::boolean,false)
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-
-CREATE POLICY "Employees with accounting_update can update inventory posting groups" ON "postingGroupInventory"
- FOR UPDATE
- USING (
- coalesce(get_my_claim('accounting_update')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-
-
-CREATE TABLE "postingGroupPurchasing" (
- "id" TEXT NOT NULL DEFAULT xid(),
- "supplierTypeId" TEXT,
- "partGroupId" TEXT,
- "payablesAccount" TEXT NOT NULL,
- "purchaseAccount" TEXT NOT NULL,
- "purchaseDiscountAccount" TEXT NOT NULL,
- "purchaseCreditAccount" TEXT NOT NULL,
- "purchasePrepaymentAccount" TEXT NOT NULL,
- "purchaseTaxPayableAccount" TEXT NOT NULL,
- "updatedBy" TEXT,
-
- CONSTRAINT "postingGroupPurchasing_pkey" PRIMARY KEY ("id"),
- CONSTRAINT "postingGroupPurchasing_id_supplierTypeId_partGroupId_key" UNIQUE ("supplierTypeId", "partGroupId"),
- CONSTRAINT "postingGroupPurchasing_partGroupId_fkey" FOREIGN KEY ("partGroupId") REFERENCES "partGroup" ("id") ON DELETE CASCADE ON UPDATE CASCADE,
- CONSTRAINT "postingGroupPurchasing_supplierTypeId_fkey" FOREIGN KEY ("supplierTypeId") REFERENCES "supplierType" ("id") ON DELETE CASCADE ON UPDATE CASCADE,
- CONSTRAINT "postingGroupPurchasing_payablesAccount_fkey" FOREIGN KEY ("payablesAccount") REFERENCES "account" ("number") ON DELETE RESTRICT ON UPDATE CASCADE,
- CONSTRAINT "postingGroupPurchasing_purchaseAccount_fkey" FOREIGN KEY ("purchaseAccount") REFERENCES "account" ("number") ON DELETE RESTRICT ON UPDATE CASCADE,
- CONSTRAINT "postingGroupPurchasing_purchaseDiscountAccount_fkey" FOREIGN KEY ("purchaseDiscountAccount") REFERENCES "account" ("number") ON DELETE RESTRICT ON UPDATE CASCADE,
- CONSTRAINT "postingGroupPurchasing_purchaseCreditAccount_fkey" FOREIGN KEY ("purchaseCreditAccount") REFERENCES "account" ("number") ON DELETE RESTRICT ON UPDATE CASCADE,
- CONSTRAINT "postingGroupPurchasing_purchasePrepaymentAccount_fkey" FOREIGN KEY ("purchasePrepaymentAccount") REFERENCES "account" ("number") ON DELETE RESTRICT ON UPDATE CASCADE,
- CONSTRAINT "postingGroupPurchasing_purchaseTaxPayableAccount_fkey" FOREIGN KEY ("purchaseTaxPayableAccount") REFERENCES "account" ("number") ON DELETE RESTRICT ON UPDATE CASCADE,
- CONSTRAINT "postingGroupPurchasing_updatedBy_fkey" FOREIGN KEY ("updatedBy") REFERENCES "user" ("id") ON DELETE SET NULL ON UPDATE CASCADE
-);
-
-CREATE INDEX "postingGroupPurchasing_partGroupId_supplierTypeId_idx" ON "postingGroupPurchasing" ("partGroupId", "supplierTypeId");
-
-ALTER TABLE "postingGroupPurchasing" ENABLE ROW LEVEL SECURITY;
-
-CREATE POLICY "Employees with accounting_view can view purchasing posting groups" ON "postingGroupPurchasing"
- FOR SELECT
- USING (
- coalesce(get_my_claim('accounting_view')::boolean,false)
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-
-CREATE POLICY "Employees with accounting_update can update purchasing posting groups" ON "postingGroupPurchasing"
- FOR UPDATE
- USING (
- coalesce(get_my_claim('accounting_update')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-
-CREATE TABLE "postingGroupSales" (
- "id" TEXT NOT NULL DEFAULT xid(),
- "customerTypeId" TEXT,
- "partGroupId" TEXT,
- "receivablesAccount" TEXT NOT NULL,
- "salesAccount" TEXT NOT NULL,
- "salesDiscountAccount" TEXT NOT NULL,
- "salesCreditAccount" TEXT NOT NULL,
- "salesPrepaymentAccount" TEXT NOT NULL,
- "salesTaxPayableAccount" TEXT NOT NULL,
- "updatedBy" TEXT,
-
- CONSTRAINT "postingGroupSales_pkey" PRIMARY KEY ("id"),
- CONSTRAINT "postingGroupSales_id_customerTypeId_partGroupId_key" UNIQUE ("customerTypeId", "partGroupId"),
- CONSTRAINT "postingGroupSales_partGroupId_fkey" FOREIGN KEY ("partGroupId") REFERENCES "partGroup" ("id") ON DELETE CASCADE ON UPDATE CASCADE,
- CONSTRAINT "postingGroupSales_customerTypeId_fkey" FOREIGN KEY ("customerTypeId") REFERENCES "customerType" ("id") ON DELETE CASCADE ON UPDATE CASCADE,
- CONSTRAINT "postingGroupSales_receivablesAccount_fkey" FOREIGN KEY ("receivablesAccount") REFERENCES "account" ("number") ON DELETE RESTRICT ON UPDATE CASCADE,
- CONSTRAINT "postingGroupSales_salesAccount_fkey" FOREIGN KEY ("salesAccount") REFERENCES "account" ("number") ON DELETE RESTRICT ON UPDATE CASCADE,
- CONSTRAINT "postingGroupSales_salesDiscountAccount_fkey" FOREIGN KEY ("salesDiscountAccount") REFERENCES "account" ("number") ON DELETE RESTRICT ON UPDATE CASCADE,
- CONSTRAINT "postingGroupSales_salesCreditAccount_fkey" FOREIGN KEY ("salesCreditAccount") REFERENCES "account" ("number") ON DELETE RESTRICT ON UPDATE CASCADE,
- CONSTRAINT "postingGroupSales_salesPrepaymentAccount_fkey" FOREIGN KEY ("salesPrepaymentAccount") REFERENCES "account" ("number") ON DELETE RESTRICT ON UPDATE CASCADE,
- CONSTRAINT "postingGroupSales_salesTaxPayableAccount_fkey" FOREIGN KEY ("salesTaxPayableAccount") REFERENCES "account" ("number") ON DELETE RESTRICT ON UPDATE CASCADE,
- CONSTRAINT "postingGroupSales_updatedBy_fkey" FOREIGN KEY ("updatedBy") REFERENCES "user" ("id") ON DELETE SET NULL ON UPDATE CASCADE
-);
-
-CREATE INDEX "postingGroupSales_partGroupId_customerTypeId_idx" ON "postingGroupSales" ("partGroupId", "customerTypeId");
-
-CREATE POLICY "Employees with accounting_view can view sales posting groups" ON "postingGroupSales"
- FOR SELECT
- USING (
- coalesce(get_my_claim('accounting_view')::boolean,false)
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-
-CREATE POLICY "Employees with accounting_update can update sales posting groups" ON "postingGroupSales"
- FOR UPDATE
- USING (
- coalesce(get_my_claim('accounting_update')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-
-CREATE FUNCTION public.create_posting_groups_for_location()
-RETURNS TRIGGER AS $$
-DECLARE
- part_group RECORD;
- account_defaults RECORD;
-BEGIN
- SELECT * INTO account_defaults FROM "accountDefault" WHERE "id" = TRUE;
-
- FOR part_group IN SELECT "id" FROM "partGroup"
- LOOP
- INSERT INTO "postingGroupInventory" (
- "partGroupId",
- "locationId",
- "costOfGoodsSoldAccount",
- "inventoryAccount",
- "inventoryInterimAccrualAccount",
- "inventoryReceivedNotInvoicedAccount",
- "inventoryInvoicedNotReceivedAccount",
- "inventoryShippedNotInvoicedAccount",
- "workInProgressAccount",
- "directCostAppliedAccount",
- "overheadCostAppliedAccount",
- "purchaseVarianceAccount",
- "inventoryAdjustmentVarianceAccount",
- "materialVarianceAccount",
- "capacityVarianceAccount",
- "overheadAccount",
- "updatedBy"
- ) VALUES (
- part_group."id",
- new."id",
- account_defaults."costOfGoodsSoldAccount",
- account_defaults."inventoryAccount",
- account_defaults."inventoryInterimAccrualAccount",
- account_defaults."inventoryReceivedNotInvoicedAccount",
- account_defaults."inventoryInvoicedNotReceivedAccount",
- account_defaults."inventoryShippedNotInvoicedAccount",
- account_defaults."workInProgressAccount",
- account_defaults."directCostAppliedAccount",
- account_defaults."overheadCostAppliedAccount",
- account_defaults."purchaseVarianceAccount",
- account_defaults."inventoryAdjustmentVarianceAccount",
- account_defaults."materialVarianceAccount",
- account_defaults."capacityVarianceAccount",
- account_defaults."overheadAccount",
- new."createdBy"
- );
- END LOOP;
-
- -- insert the null part group
- INSERT INTO "postingGroupInventory" (
- "partGroupId",
- "locationId",
- "costOfGoodsSoldAccount",
- "inventoryAccount",
- "inventoryInterimAccrualAccount",
- "inventoryReceivedNotInvoicedAccount",
- "inventoryInvoicedNotReceivedAccount",
- "inventoryShippedNotInvoicedAccount",
- "workInProgressAccount",
- "directCostAppliedAccount",
- "overheadCostAppliedAccount",
- "purchaseVarianceAccount",
- "inventoryAdjustmentVarianceAccount",
- "materialVarianceAccount",
- "capacityVarianceAccount",
- "overheadAccount",
- "updatedBy"
- ) VALUES (
- NULL,
- new."id",
- account_defaults."costOfGoodsSoldAccount",
- account_defaults."inventoryAccount",
- account_defaults."inventoryInterimAccrualAccount",
- account_defaults."inventoryReceivedNotInvoicedAccount",
- account_defaults."inventoryInvoicedNotReceivedAccount",
- account_defaults."inventoryShippedNotInvoicedAccount",
- account_defaults."workInProgressAccount",
- account_defaults."directCostAppliedAccount",
- account_defaults."overheadCostAppliedAccount",
- account_defaults."purchaseVarianceAccount",
- account_defaults."inventoryAdjustmentVarianceAccount",
- account_defaults."materialVarianceAccount",
- account_defaults."capacityVarianceAccount",
- account_defaults."overheadAccount",
- new."createdBy"
- );
-
- RETURN new;
-END;
-$$ LANGUAGE plpgsql SECURITY DEFINER;
-
-CREATE TRIGGER create_location
- AFTER INSERT on public."location"
- FOR EACH ROW EXECUTE PROCEDURE public.create_posting_groups_for_location();
-
-
-CREATE FUNCTION public.create_posting_groups_for_part_group()
-RETURNS TRIGGER AS $$
-DECLARE
- rec RECORD;
- account_defaults RECORD;
-BEGIN
- SELECT * INTO account_defaults FROM "accountDefault" WHERE "id" = TRUE;
-
- FOR rec IN SELECT "id" FROM "customerType"
- LOOP
- INSERT INTO "postingGroupSales" (
- "partGroupId",
- "customerTypeId",
- "receivablesAccount",
- "salesAccount",
- "salesDiscountAccount",
- "salesCreditAccount",
- "salesPrepaymentAccount",
- "salesTaxPayableAccount",
- "updatedBy"
- ) VALUES (
- new."id",
- rec."id",
- account_defaults."receivablesAccount",
- account_defaults."salesAccount",
- account_defaults."salesDiscountAccount",
- account_defaults."receivablesAccount",
- account_defaults."prepaymentAccount",
- account_defaults."salesTaxPayableAccount",
- new."createdBy"
- );
- END LOOP;
-
- -- insert the null customer type
- INSERT INTO "postingGroupSales" (
- "partGroupId",
- "customerTypeId",
- "receivablesAccount",
- "salesAccount",
- "salesDiscountAccount",
- "salesCreditAccount",
- "salesPrepaymentAccount",
- "salesTaxPayableAccount",
- "updatedBy"
- ) VALUES (
- new."id",
- NULL,
- account_defaults."receivablesAccount",
- account_defaults."salesAccount",
- account_defaults."salesDiscountAccount",
- account_defaults."receivablesAccount",
- account_defaults."prepaymentAccount",
- account_defaults."salesTaxPayableAccount",
- new."createdBy"
- );
-
- FOR rec IN SELECT "id" FROM "supplierType"
- LOOP
- INSERT INTO "postingGroupPurchasing" (
- "partGroupId",
- "supplierTypeId",
- "payablesAccount",
- "purchaseAccount",
- "purchaseDiscountAccount",
- "purchaseCreditAccount",
- "purchasePrepaymentAccount",
- "purchaseTaxPayableAccount",
- "updatedBy"
- ) VALUES (
- new."id",
- rec."id",
- account_defaults."payablesAccount",
- account_defaults."purchaseAccount",
- account_defaults."purchaseAccount",
- account_defaults."payablesAccount",
- account_defaults."prepaymentAccount",
- account_defaults."purchaseTaxPayableAccount",
- new."createdBy"
- );
- END LOOP;
-
- -- insert the null supplier type
- INSERT INTO "postingGroupPurchasing" (
- "partGroupId",
- "supplierTypeId",
- "payablesAccount",
- "purchaseAccount",
- "purchaseDiscountAccount",
- "purchaseCreditAccount",
- "purchasePrepaymentAccount",
- "purchaseTaxPayableAccount",
- "updatedBy"
- ) VALUES (
- new."id",
- NULL,
- account_defaults."payablesAccount",
- account_defaults."purchaseAccount",
- account_defaults."purchaseAccount",
- account_defaults."payablesAccount",
- account_defaults."prepaymentAccount",
- account_defaults."purchaseTaxPayableAccount",
- new."createdBy"
- );
-
- FOR rec IN SELECT "id" FROM "location"
- LOOP
- INSERT INTO "postingGroupInventory" (
- "partGroupId",
- "locationId",
- "costOfGoodsSoldAccount",
- "inventoryAccount",
- "inventoryInterimAccrualAccount",
- "inventoryReceivedNotInvoicedAccount",
- "inventoryInvoicedNotReceivedAccount",
- "inventoryShippedNotInvoicedAccount",
- "workInProgressAccount",
- "directCostAppliedAccount",
- "overheadCostAppliedAccount",
- "purchaseVarianceAccount",
- "inventoryAdjustmentVarianceAccount",
- "materialVarianceAccount",
- "capacityVarianceAccount",
- "overheadAccount",
- "updatedBy"
- ) VALUES (
- new."id",
- rec."id",
- account_defaults."costOfGoodsSoldAccount",
- account_defaults."inventoryAccount",
- account_defaults."inventoryInterimAccrualAccount",
- account_defaults."inventoryReceivedNotInvoicedAccount",
- account_defaults."inventoryInvoicedNotReceivedAccount",
- account_defaults."inventoryShippedNotInvoicedAccount",
- account_defaults."workInProgressAccount",
- account_defaults."directCostAppliedAccount",
- account_defaults."overheadCostAppliedAccount",
- account_defaults."purchaseVarianceAccount",
- account_defaults."inventoryAdjustmentVarianceAccount",
- account_defaults."materialVarianceAccount",
- account_defaults."capacityVarianceAccount",
- account_defaults."overheadAccount",
- new."createdBy"
- );
- END LOOP;
-
- -- insert the null location
- INSERT INTO "postingGroupInventory" (
- "partGroupId",
- "locationId",
- "costOfGoodsSoldAccount",
- "inventoryAccount",
- "inventoryInterimAccrualAccount",
- "inventoryReceivedNotInvoicedAccount",
- "inventoryInvoicedNotReceivedAccount",
- "inventoryShippedNotInvoicedAccount",
- "workInProgressAccount",
- "directCostAppliedAccount",
- "overheadCostAppliedAccount",
- "purchaseVarianceAccount",
- "inventoryAdjustmentVarianceAccount",
- "materialVarianceAccount",
- "capacityVarianceAccount",
- "overheadAccount",
- "updatedBy"
- ) VALUES (
- new."id",
- NULL,
- account_defaults."costOfGoodsSoldAccount",
- account_defaults."inventoryAccount",
- account_defaults."inventoryInterimAccrualAccount",
- account_defaults."inventoryReceivedNotInvoicedAccount",
- account_defaults."inventoryInvoicedNotReceivedAccount",
- account_defaults."inventoryShippedNotInvoicedAccount",
- account_defaults."workInProgressAccount",
- account_defaults."directCostAppliedAccount",
- account_defaults."overheadCostAppliedAccount",
- account_defaults."purchaseVarianceAccount",
- account_defaults."inventoryAdjustmentVarianceAccount",
- account_defaults."materialVarianceAccount",
- account_defaults."capacityVarianceAccount",
- account_defaults."overheadAccount",
- new."createdBy"
- );
-
- RETURN new;
-END;
-$$ LANGUAGE plpgsql SECURITY DEFINER;
-
-
-CREATE TRIGGER create_part_group
- AFTER INSERT on public."partGroup"
- FOR EACH ROW EXECUTE PROCEDURE public.create_posting_groups_for_part_group();
-
-CREATE FUNCTION public.create_posting_groups_for_customer_type()
-RETURNS TRIGGER AS $$
-DECLARE
- rec RECORD;
- account_defaults RECORD;
-BEGIN
- SELECT * INTO account_defaults FROM "accountDefault" WHERE "id" = TRUE;
-
- FOR rec IN SELECT "id" FROM "partGroup"
- LOOP
- INSERT INTO "postingGroupSales" (
- "customerTypeId",
- "partGroupId",
- "receivablesAccount",
- "salesAccount",
- "salesDiscountAccount",
- "salesCreditAccount",
- "salesPrepaymentAccount",
- "salesTaxPayableAccount",
- "updatedBy"
- ) VALUES (
- new."id",
- rec."id",
- account_defaults."receivablesAccount",
- account_defaults."salesAccount",
- account_defaults."salesDiscountAccount",
- account_defaults."salesAccount",
- account_defaults."prepaymentAccount",
- account_defaults."salesTaxPayableAccount",
- new."createdBy"
- );
- END LOOP;
-
- -- insert the null part group
- INSERT INTO "postingGroupSales" (
- "customerTypeId",
- "partGroupId",
- "receivablesAccount",
- "salesAccount",
- "salesDiscountAccount",
- "salesCreditAccount",
- "salesPrepaymentAccount",
- "salesTaxPayableAccount",
- "updatedBy"
- ) VALUES (
- new."id",
- NULL,
- account_defaults."receivablesAccount",
- account_defaults."salesAccount",
- account_defaults."salesDiscountAccount",
- account_defaults."salesAccount",
- account_defaults."prepaymentAccount",
- account_defaults."salesTaxPayableAccount",
- new."createdBy"
- );
-
- RETURN new;
-END;
-$$ LANGUAGE plpgsql SECURITY DEFINER;
-
-CREATE TRIGGER create_posting_groups_for_customer_type
- AFTER INSERT on public."customerType"
- FOR EACH ROW EXECUTE PROCEDURE public.create_posting_groups_for_customer_type();
-
-
-CREATE FUNCTION public.create_posting_groups_for_supplier_type()
-RETURNS TRIGGER AS $$
-DECLARE
- rec RECORD;
- account_defaults RECORD;
-BEGIN
- SELECT * INTO account_defaults FROM "accountDefault" WHERE "id" = TRUE;
-
- FOR rec IN SELECT "id" FROM "partGroup"
- LOOP
- INSERT INTO "postingGroupPurchasing" (
- "supplierTypeId",
- "partGroupId",
- "payablesAccount",
- "purchaseAccount",
- "purchaseDiscountAccount",
- "purchaseCreditAccount",
- "purchasePrepaymentAccount",
- "purchaseTaxPayableAccount",
- "updatedBy"
- ) VALUES (
- new."id",
- rec."id",
- account_defaults."payablesAccount",
- account_defaults."purchaseAccount",
- account_defaults."purchaseAccount",
- account_defaults."purchaseAccount",
- account_defaults."prepaymentAccount",
- account_defaults."purchaseTaxPayableAccount",
- new."createdBy"
- );
- END LOOP;
-
- -- insert the null part group
- INSERT INTO "postingGroupPurchasing" (
- "supplierTypeId",
- "partGroupId",
- "payablesAccount",
- "purchaseAccount",
- "purchaseDiscountAccount",
- "purchaseCreditAccount",
- "purchasePrepaymentAccount",
- "purchaseTaxPayableAccount",
- "updatedBy"
- ) VALUES (
- new."id",
- NULL,
- account_defaults."payablesAccount",
- account_defaults."purchaseAccount",
- account_defaults."purchaseAccount",
- account_defaults."purchaseAccount",
- account_defaults."prepaymentAccount",
- account_defaults."purchaseTaxPayableAccount",
- new."createdBy"
- );
-
- RETURN new;
-END;
-$$ LANGUAGE plpgsql SECURITY DEFINER;
-
-CREATE TRIGGER create_posting_groups_for_supplier_type
- AFTER INSERT on public."supplierType"
- FOR EACH ROW EXECUTE PROCEDURE public.create_posting_groups_for_supplier_type();
-
-```
-
-
-
-## `uninvoiced-receipts`
-
-```sql
-CREATE OR REPLACE VIEW "receiptsPostedNotInvoiced" AS
- SELECT
- r."id",
- r."receiptId",
- r."sourceDocument",
- r."sourceDocumentId",
- r."sourceDocumentReadableId",
- r."postingDate",
- r."supplierId",
- s."name" AS "supplierName",
- SUM(l."receivedQuantity" * l."unitPrice") AS "estimatedCost"
- FROM "receipt" r
- INNER JOIN "receiptLine" l
- ON l."receiptId" = r."receiptId"
- INNER JOIN "supplier" s
- ON s."id" = r."supplierId"
- WHERE r."status" = 'Posted'
- AND r."invoiced" = FALSE
- AND r."sourceDocument" != 'Manufacturing Consumption'
- AND r."sourceDocument" != 'Manufacturing Output'
- AND r."sourceDocument" != 'Inbound Transfer'
- AND r."sourceDocument" != 'Outbound Transfer'
-
- GROUP BY
- r."id",
- r."receiptId",
- r."sourceDocument",
- r."sourceDocumentId",
- r."sourceDocumentReadableId",
- r."postingDate",
- r."supplierId",
- s."name";
-;
-
-CREATE OR REPLACE VIEW "totalReceiptsPostedNotInvoiced" AS
- SELECT SUM(l."receivedQuantity" * l."unitPrice") AS "total"
- FROM "receipt" r
- INNER JOIN "receiptLine" l
- ON l."receiptId" = r."receiptId"
- WHERE r."status" = 'Posted'
- AND r."invoiced" = FALSE
- AND r."sourceDocument" != 'Manufacturing Consumption'
- AND r."sourceDocument" != 'Manufacturing Output'
- AND r."sourceDocument" != 'Inbound Transfer'
- AND r."sourceDocument" != 'Outbound Transfer';
-```
-
-
-
-## `quantity-on-hand`
-
-```sql
-CREATE OR REPLACE VIEW "partQuantities" AS
- SELECT
- p."id" AS "partId",
- loc."id" AS "locationId",
- COALESCE(SUM(pl."quantity"), 0) AS "quantityOnHand",
- COALESCE(pol."quantityToReceive", 0) AS "quantityOnPurchaseOrder",
- 0 AS "quantityOnSalesOrder",
- 0 AS "quantityOnProdOrder",
- 0 AS "quantityAvailable"
- FROM "part" p
- CROSS JOIN "location" loc
- LEFT JOIN "partLedger" pl
- ON pl."partId" = p."id" AND pl."locationId" = loc."id"
- LEFT JOIN (
- SELECT
- pol."partId",
- pol."locationId",
- COALESCE(SUM(GREATEST(pol."quantityToReceive", 0)), 0) AS "quantityToReceive"
- FROM "purchaseOrderLine" pol
- INNER JOIN "purchaseOrder" po
- ON pol."purchaseOrderId" = po."id"
- WHERE po."status" != 'Draft'
- AND po."status" != 'Rejected'
- AND po."status" != 'Closed'
- GROUP BY
- pol."partId",
- pol."locationId"
- ) pol ON pol."partId" = p."id" AND pol."locationId" = loc."id"
- GROUP BY
- p."id",
- loc."id",
- pol."quantityToReceive"
-```
-
-
-
-## `accounts-payable`
-
-```sql
-CREATE TYPE "purchaseInvoiceStatus" AS ENUM (
- 'Draft',
- 'Pending',
- 'Submitted',
- 'Return',
- 'Debit Note Issued',
- 'Paid',
- 'Partially Paid',
- 'Overdue',
- 'Voided'
-);
-
-CREATE TABLE "purchaseInvoice" (
- "id" TEXT NOT NULL DEFAULT xid(),
- "invoiceId" TEXT NOT NULL,
- "status" "purchaseInvoiceStatus" NOT NULL DEFAULT 'Draft',
- "supplierId" TEXT,
- "supplierReference" TEXT,
- "invoiceSupplierId" TEXT,
- "invoiceSupplierLocationId" TEXT,
- "invoiceSupplierContactId" TEXT,
- "paymentTermId" TEXT,
- "currencyCode" TEXT NOT NULL,
- "exchangeRate" NUMERIC(10, 4) NOT NULL DEFAULT 1,
- "postingDate" DATE,
- "dateIssued" DATE,
- "dateDue" DATE,
- "datePaid" DATE,
- "subtotal" NUMERIC(10, 2) NOT NULL DEFAULT 0,
- "totalDiscount" NUMERIC(10, 2) NOT NULL DEFAULT 0,
- "totalAmount" NUMERIC(10, 2) NOT NULL DEFAULT 0,
- "totalTax" NUMERIC(10, 2) NOT NULL DEFAULT 0,
- "balance" NUMERIC(10, 2) NOT NULL DEFAULT 0,
- "createdBy" TEXT NOT NULL,
- "createdAt" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT now(),
- "updatedBy" TEXT,
- "updatedAt" TIMESTAMP WITH TIME ZONE,
-
- CONSTRAINT "purchaseInvoice_pkey" PRIMARY KEY ("id"),
- CONSTRAINT "purchaseInvoice_supplierId_fkey" FOREIGN KEY ("supplierId") REFERENCES "supplier" ("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")
-);
-
-CREATE INDEX "purchaseInvoice_invoiceId_idx" ON "purchaseInvoice" ("invoiceId");
-CREATE INDEX "purchaseInvoice_status_idx" ON "purchaseInvoice" ("status");
-CREATE INDEX "purchaseInvoice_supplierId_idx" ON "purchaseInvoice" ("supplierId");
-CREATE INDEX "purchaseInvoice_dateDue_idx" ON "purchaseInvoice" ("dateDue");
-CREATE INDEX "purchaseInvoice_datePaid_idx" ON "purchaseInvoice" ("datePaid");
-
-ALTER publication supabase_realtime ADD TABLE "purchaseInvoice";
-
-ALTER TABLE "purchaseInvoice" ENABLE ROW LEVEL SECURITY;
-
-CREATE POLICY "Employees with invoicing_view can view AP invoices" ON "purchaseInvoice"
- FOR SELECT
- USING (
- coalesce(get_my_claim('invoicing_view')::boolean,false)
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-
-CREATE POLICY "Employees with invoicing_create can insert AP invoices" ON "purchaseInvoice"
- FOR INSERT
- WITH CHECK (
- coalesce(get_my_claim('invoicing_create')::boolean,false)
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
-);
-
-CREATE POLICY "Employees with invoicing_update can update AP invoices" ON "purchaseInvoice"
- FOR UPDATE
- USING (
- coalesce(get_my_claim('invoicing_update')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-
-CREATE POLICY "Employees with invoicing_delete can delete AP invoices" ON "purchaseInvoice"
- FOR DELETE
- USING (
- coalesce(get_my_claim('invoicing_delete')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-
-
-
-CREATE TABLE "purchaseInvoiceStatusHistory" (
- "id" TEXT NOT NULL DEFAULT xid(),
- "invoiceId" TEXT NOT NULL,
- "status" "purchaseInvoiceStatus" NOT NULL,
- "createdAt" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT now(),
-
- CONSTRAINT "purchaseInvoiceStatusHistory_pkey" PRIMARY KEY ("id"),
- CONSTRAINT "purchaseInvoiceStatusHistory_invoiceId_fkey" FOREIGN KEY ("invoiceId") REFERENCES "purchaseInvoice" ("id") ON UPDATE CASCADE ON DELETE CASCADE
-);
-
-ALTER TABLE "purchaseInvoiceStatusHistory" ENABLE ROW LEVEL SECURITY;
-
-CREATE POLICY "Employees with invoicing_view can view AP invoices status history" ON "purchaseInvoiceStatusHistory"
- FOR SELECT
- USING (
- coalesce(get_my_claim('invoicing_view')::boolean,false)
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-
-
-CREATE TYPE "payableLineType" AS ENUM (
- 'G/L Account',
- 'Part',
- 'Service',
- 'Fixed Asset',
- 'Comment'
-);
-
-CREATE TABLE "purchaseInvoiceLine" (
- "id" TEXT NOT NULL DEFAULT xid(),
- "invoiceId" TEXT NOT NULL,
- "invoiceLineType" "payableLineType" NOT NULL,
- "purchaseOrderId" TEXT,
- "purchaseOrderLineId" TEXT,
- "partId" TEXT,
- "serviceId" TEXT,
- "locationId" TEXT,
- "shelfId" TEXT,
- "accountNumber" TEXT,
- "assetId" TEXT,
- "description" TEXT,
- "quantity" NUMERIC(10, 2) NOT NULL DEFAULT 0,
- "unitPrice" NUMERIC(10, 2) NOT NULL DEFAULT 0,
- "totalAmount" NUMERIC(10, 2) GENERATED ALWAYS AS ("quantity" * "unitPrice") STORED,
- "currencyCode" TEXT NOT NULL,
- "exchangeRate" NUMERIC(10, 4) NOT NULL DEFAULT 1,
- "unitOfMeasureCode" TEXT,
- "createdBy" TEXT NOT NULL,
- "createdAt" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT now(),
- "updatedBy" TEXT,
- "updatedAt" TIMESTAMP WITH TIME ZONE,
-
- CONSTRAINT "invoiceLineType_number"
- CHECK (
- (
- "invoiceLineType" = 'Comment' AND
- "partId" IS NULL AND
- "serviceId" IS NULL AND
- "accountNumber" IS NULL AND
- "assetId" IS NULL AND
- "description" IS NOT NULL
- )
- OR (
- "invoiceLineType" = 'G/L Account' AND
- "partId" IS NULL AND
- "serviceId" IS NULL AND
- "accountNumber" IS NOT NULL AND
- "assetId" IS NULL
- )
- OR (
- "invoiceLineType" = 'Part' AND
- "partId" IS NOT NULL AND
- "serviceId" IS NULL AND
- "accountNumber" IS NULL AND
- "assetId" IS NULL
- )
- OR (
- "invoiceLineType" = 'Service' AND
- "partId" IS NULL AND
- "serviceId" IS NOT NULL AND
- "accountNumber" IS NULL AND
- "assetId" IS NULL
- )
- OR (
- "invoiceLineType" = 'Fixed Asset' AND
- "partId" IS NULL AND
- "serviceId" IS NULL AND
- "accountNumber" IS NULL AND
- "assetId" IS NOT NULL
- )
- ),
-
- CONSTRAINT "purchaseInvoiceLines_pkey" PRIMARY KEY ("id"),
- 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_serviceId_fkey" FOREIGN KEY ("serviceId") REFERENCES "service" ("id") ON UPDATE CASCADE ON DELETE RESTRICT,
- CONSTRAINT "purchaseInvoiceLines_locationId_fkey" FOREIGN KEY ("locationId") REFERENCES "location" ("id") ON UPDATE CASCADE ON DELETE RESTRICT,
- CONSTRAINT "purchaseInvoiceLines_shelfId_fkey" FOREIGN KEY ("shelfId", "locationId") REFERENCES "shelf" ("id", "locationId") ON DELETE SET NULL ON UPDATE CASCADE,
- 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,
- CONSTRAINT "purchaseInvoiceLines_currencyCode_fkey" FOREIGN KEY ("currencyCode") REFERENCES "currency" ("code") ON UPDATE CASCADE ON DELETE RESTRICT,
- CONSTRAINT "purchaseInvoiceLines_unitOfMeasureCode_fkey" FOREIGN KEY ("unitOfMeasureCode") REFERENCES "unitOfMeasure" ("code") ON UPDATE CASCADE ON DELETE RESTRICT,
- CONSTRAINT "purchaseInvoiceLines_createdBy_fkey" FOREIGN KEY ("createdBy") REFERENCES "user" ("id") ON UPDATE CASCADE ON DELETE RESTRICT,
- CONSTRAINT "purchaseInvoiceLines_updatedBy_fkey" FOREIGN KEY ("updatedBy") REFERENCES "user" ("id") ON UPDATE CASCADE ON DELETE RESTRICT
-);
-
-ALTER TABLE "purchaseInvoiceLine" ENABLE ROW LEVEL SECURITY;
-
-CREATE POLICY "Employees with invoicing_view can view AP invoice lines" ON "purchaseInvoiceLine"
- FOR SELECT
- USING (
- coalesce(get_my_claim('invoicing_view')::boolean,false)
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-
-CREATE POLICY "Employees with invoicing_create can insert AP invoice lines" ON "purchaseInvoiceLine"
- FOR INSERT
- WITH CHECK (
- coalesce(get_my_claim('invoicing_create')::boolean,false)
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
-);
-
-CREATE POLICY "Employees with invoicing_update can update AP invoice lines" ON "purchaseInvoiceLine"
- FOR UPDATE
- USING (
- coalesce(get_my_claim('invoicing_update')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-
-CREATE POLICY "Employees with invoicing_delete can delete AP invoice lines" ON "purchaseInvoiceLine"
- FOR DELETE
- USING (
- coalesce(get_my_claim('invoicing_delete')::boolean, false) = true
- 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,
- "supplierId" TEXT NOT NULL,
- "paymentDate" DATE,
- "currencyCode" TEXT NOT NULL,
- "exchangeRate" NUMERIC(10, 4) NOT NULL DEFAULT 1,
- "totalAmount" NUMERIC(10, 2) NOT NULL DEFAULT 0,
- "createdBy" TEXT NOT NULL,
- "createdAt" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT now(),
- "updatedBy" TEXT,
- "updatedAt" TIMESTAMP WITH TIME ZONE,
-
- CONSTRAINT "purchasePayment_pkey" PRIMARY KEY ("id"),
- CONSTRAINT "purchasePayment_supplierId_fkey" FOREIGN KEY ("supplierId") REFERENCES "supplier" ("id") ON UPDATE CASCADE ON DELETE RESTRICT,
- CONSTRAINT "purchasePayment_currencyCode_fkey" FOREIGN KEY ("currencyCode") REFERENCES "currency" ("code") ON UPDATE CASCADE ON DELETE RESTRICT,
- CONSTRAINT "purchasePayment_createdBy_fkey" FOREIGN KEY ("createdBy") REFERENCES "user" ("id") ON UPDATE CASCADE ON DELETE RESTRICT,
- CONSTRAINT "purchasePayment_updatedBy_fkey" FOREIGN KEY ("updatedBy") REFERENCES "user" ("id") ON UPDATE CASCADE ON DELETE RESTRICT
-);
-
-ALTER TABLE "purchasePayment" ENABLE ROW LEVEL SECURITY;
-
-CREATE POLICY "Employees with invoicing_view can view AP payments" ON "purchasePayment"
- FOR SELECT
- USING (
- coalesce(get_my_claim('invoicing_view')::boolean,false)
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-
-CREATE POLICY "Employees with invoicing_create can insert AP payments" ON "purchasePayment"
- FOR INSERT
- WITH CHECK (
- coalesce(get_my_claim('invoicing_create')::boolean,false)
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
-);
-
-CREATE POLICY "Employees with invoicing_update can update AP payments" ON "purchasePayment"
- FOR UPDATE
- USING (
- "paymentDate" IS NULL
- AND coalesce(get_my_claim('invoicing_update')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-
-CREATE POLICY "Employees with invoicing_delete can delete AP payments" ON "purchasePayment"
- FOR DELETE
- USING (
- "paymentDate" IS NULL
- AND coalesce(get_my_claim('invoicing_delete')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-
-CREATE TABLE "purchaseInvoicePaymentRelation" (
- "id" TEXT NOT NULL DEFAULT xid(),
- "invoiceId" TEXT NOT NULL,
- "paymentId" TEXT NOT NULL,
-
- CONSTRAINT "purchasePayments_pkey" PRIMARY KEY ("id"),
- CONSTRAINT "purchasePayments_invoiceId_fkey" FOREIGN KEY ("invoiceId") REFERENCES "purchaseInvoice" ("id") ON UPDATE CASCADE ON DELETE RESTRICT,
- CONSTRAINT "purchasePayments_paymentId_fkey" FOREIGN KEY ("paymentId") REFERENCES "purchasePayment" ("id") ON UPDATE CASCADE ON DELETE RESTRICT
-);
-
-ALTER TABLE "purchaseInvoicePaymentRelation" ENABLE ROW LEVEL SECURITY;
-
-CREATE POLICY "Employees with invoicing_view can view AP invoice/payment relations" ON "purchaseInvoicePaymentRelation"
- FOR SELECT
- USING (
- coalesce(get_my_claim('invoicing_view')::boolean,false)
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-
-
-CREATE OR REPLACE VIEW "purchaseInvoices" AS
- SELECT
- pi."id",
- pi."invoiceId",
- pi."supplierId",
- pi."supplierReference",
- pi."invoiceSupplierId",
- pi."invoiceSupplierLocationId",
- pi."invoiceSupplierContactId",
- pi."postingDate",
- pi."dateIssued",
- pi."dateDue",
- pi."datePaid",
- pi."paymentTermId",
- pi."currencyCode",
- pi."exchangeRate",
- pi."subtotal",
- pi."totalDiscount",
- pi."totalAmount",
- pi."totalTax",
- pi."balance",
- pi."createdBy",
- pi."createdAt",
- pi."updatedBy",
- pi."updatedAt",
- CASE
- WHEN pi."dateDue" < CURRENT_DATE AND pi."status" = 'Submitted' THEN 'Overdue'
- ELSE pi."status"
- END AS status,
- s."name" AS "supplierName",
- c."fullName" AS "contactName",
- u."avatarUrl" AS "createdByAvatar",
- u."fullName" AS "createdByFullName",
- u2."avatarUrl" AS "updatedByAvatar",
- u2."fullName" AS "updatedByFullName"
- FROM "purchaseInvoice" pi
- LEFT JOIN "supplier" s ON s.id = pi."supplierId"
- 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";
-
-
-
-ALTER 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();
-```
-
-
-
-## `company`
-
-```sql
-CREATE TABLE "company" (
- "id" BOOLEAN NOT NULL DEFAULT TRUE,
- "name" TEXT NOT NULL,
- "taxId" TEXT,
- "logo" TEXT,
- "addressLine1" TEXT,
- "addressLine2" TEXT,
- "city" TEXT,
- "state" TEXT,
- "postalCode" TEXT,
- "countryCode" TEXT,
- "phone" TEXT,
- "fax" TEXT,
- "email" TEXT,
- "website" TEXT,
- "updatedBy" TEXT,
-
- CONSTRAINT "company_pkey" PRIMARY KEY ("id"),
- -- this is a hack to make sure that this table only ever has one row
- CONSTRAINT "accountDefault_id_check" CHECK ("id" = TRUE),
- CONSTRAINT "accountDefault_id_unique" UNIQUE ("id"),
- CONSTRAINT "accountDefault_updatedBy_fkey" FOREIGN KEY ("updatedBy") REFERENCES "user"("id")
-);
-
-ALTER TABLE "company" ENABLE ROW LEVEL SECURITY;
-
-CREATE POLICY "Authenticated users can view company" ON "company"
- FOR SELECT
- USING (
- auth.role() = 'authenticated'
- );
-
-CREATE POLICY "Employees with settings_create can create company" ON "company"
- FOR INSERT
- WITH CHECK (
- coalesce(get_my_claim('settings_create')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-
-CREATE POLICY "Employees with settings_update can update company" ON "company"
- FOR UPDATE
- USING (
- coalesce(get_my_claim('settings_update')::boolean, false) = true
- AND (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-```
-
-
-
-## `purchase-order-document`
-
-```sql
-CREATE OR REPLACE VIEW "purchaseOrderLines" WITH(SECURITY_INVOKER=true) AS
- SELECT
- pol.*,
- po."supplierId" ,
- p.name AS "partName",
- p.description AS "partDescription",
- ps."supplierPartId",
- s.name AS "serviceName",
- s.description AS "serviceDescription",
- ss."supplierServiceId"
- FROM "purchaseOrderLine" pol
- INNER JOIN "purchaseOrder" po
- ON po.id = pol."purchaseOrderId"
- LEFT OUTER JOIN "part" p
- ON p.id = pol."partId"
- LEFT OUTER JOIN "partSupplier" ps
- ON p.id = ps."partId" AND po."supplierId" = ps."supplierId"
- LEFT OUTER JOIN "service" s
- ON s.id = pol."serviceId"
- LEFT OUTER JOIN "serviceSupplier" ss
- ON s.id = ss."serviceId" AND po."supplierId" = ss."supplierId";
-
-CREATE OR REPLACE VIEW "purchaseOrderLocations" WITH(SECURITY_INVOKER=true) AS
- SELECT
- po.id,
- s.name AS "supplierName",
- sa."addressLine1" AS "supplierAddressLine1",
- sa."addressLine2" AS "supplierAddressLine2",
- sa."city" AS "supplierCity",
- sa."state" AS "supplierState",
- sa."postalCode" AS "supplierPostalCode",
- sa."countryCode" AS "supplierCountryCode",
- dl.name AS "deliveryName",
- dl."addressLine1" AS "deliveryAddressLine1",
- dl."addressLine2" AS "deliveryAddressLine2",
- dl."city" AS "deliveryCity",
- dl."state" AS "deliveryState",
- dl."postalCode" AS "deliveryPostalCode",
- dl."countryCode" AS "deliveryCountryCode",
- pod."dropShipment",
- c.name AS "customerName",
- ca."addressLine1" AS "customerAddressLine1",
- ca."addressLine2" AS "customerAddressLine2",
- ca."city" AS "customerCity",
- ca."state" AS "customerState",
- ca."postalCode" AS "customerPostalCode",
- ca."countryCode" AS "customerCountryCode"
- FROM "purchaseOrder" po
- LEFT OUTER JOIN "supplier" s
- ON s.id = po."supplierId"
- LEFT OUTER JOIN "supplierLocation" sl
- ON sl.id = po."supplierLocationId"
- LEFT OUTER JOIN "address" sa
- ON sa.id = sl."addressId"
- INNER JOIN "purchaseOrderDelivery" pod
- ON pod.id = po.id
- LEFT OUTER JOIN "location" dl
- ON dl.id = pod."locationId"
- LEFT OUTER JOIN "customer" c
- ON c.id = pod."customerId"
- LEFT OUTER JOIN "customerLocation" cl
- ON cl.id = pod."customerLocationId"
- LEFT OUTER JOIN "address" ca
- ON ca.id = cl."addressId";
-
-
-
-```
-
-
-
-## `employee-summary`
-
-```sql
-CREATE OR REPLACE VIEW "employeeSummary" WITH(SECURITY_INVOKER=true) AS
- SELECT
- u.id,
- u."fullName" AS "name",
- u."avatarUrl",
- ej.title,
- ej."startDate",
- d.name AS "departmentName",
- l.name AS "locationName",
- m."fullName" AS "managerName"
- FROM "employee" e
- INNER JOIN "user" u
- ON u.id = e.id
- INNER JOIN "employeeJob" ej
- ON e.id = ej.id
- LEFT OUTER JOIN "location" l
- ON l.id = ej."locationId"
- LEFT OUTER JOIN "user" m
- ON m.id = ej."managerId"
- LEFT OUTER JOIN "department" d
- ON d.id = ej."departmentId";
-```
-
-
-
-## `currency-exchange-rates`
-
-```sql
-CREATE TABLE "currencyExchangeRate" (
- "currency" TEXT NOT NULL,
- "exchangeRate" NUMERIC NOT NULL,
- "updatedAt" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW(),
-
- CONSTRAINT "currencyExchangeRate_pkey" PRIMARY KEY ("currency")
-);
-
-ALTER TABLE "currencyExchangeRate" ENABLE ROW LEVEL SECURITY;
-
-CREATE POLICY "Authenticated users can read currencyExchangeRate" ON "currencyExchangeRate"
- FOR SELECT USING (auth.role() = 'authenticated');
-```
-
-
-
-## `integrations`
-
-```sql
--- Enable the "pg_jsonschema" extension
-CREATE EXTENSION pg_jsonschema WITH SCHEMA extensions;
-
-CREATE TABLE integration (
- "name" TEXT NOT NULL,
- "active" BOOLEAN NOT NULL DEFAULT FALSE,
- "visible" BOOLEAN NOT NULL DEFAULT TRUE,
- "jsonschema" JSON NOT NULL,
- "metadata" JSON NOT NULL DEFAULT '{}',
- "updatedAt" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW(),
- "updatedBy" TEXT,
-
- CONSTRAINT integration_pkey PRIMARY KEY ("name"),
- CONSTRAINT integration_metadata CHECK (
- active = false OR
- json_matches_schema(jsonschema, metadata)
- ),
- CONSTRAINT "integration_updatedBy_fkey" FOREIGN KEY ("updatedBy") REFERENCES "user"("id") ON UPDATE CASCADE
-);
-
-CREATE POLICY "Employees with settings_view can view integrations." ON "integration"
- FOR SELECT USING (
- coalesce(get_my_claim('settings_view')::boolean,false) AND
- (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-
-CREATE POLICY "Employees with settings_update can update integrations." ON "integration"
- FOR UPDATE
- USING (
- coalesce(get_my_claim('settings_update')::boolean,false) AND
- (get_my_claim('role'::text)) = '"employee"'::jsonb
- );
-
-INSERT INTO "integration" ("name", "jsonschema")
-VALUES (
- 'exchangeRatesV1',
- '{
- "type": "object",
- "properties": {
- "apiKey": {
- "type": "string"
- }
- },
- "required": [
- "apiKey"
- ]
- }'::json);
-
-
-```
-
diff --git a/packages/database/src/types.ts b/packages/database/src/types.ts
index a5be472f2e..2fecf5b837 100644
--- a/packages/database/src/types.ts
+++ b/packages/database/src/types.ts
@@ -1590,8 +1590,7 @@ export interface Database {
Row: {
active: boolean;
code: string;
- createdAt: string;
- createdBy: string;
+ decimalPlaces: number;
exchangeRate: number;
id: string;
isBaseCurrency: boolean;
@@ -1603,8 +1602,7 @@ export interface Database {
Insert: {
active?: boolean;
code: string;
- createdAt?: string;
- createdBy: string;
+ decimalPlaces?: number;
exchangeRate?: number;
id?: string;
isBaseCurrency?: boolean;
@@ -1616,8 +1614,7 @@ export interface Database {
Update: {
active?: boolean;
code?: string;
- createdAt?: string;
- createdBy?: string;
+ decimalPlaces?: number;
exchangeRate?: number;
id?: string;
isBaseCurrency?: boolean;
@@ -1627,24 +1624,6 @@ export interface Database {
updatedBy?: string | null;
};
Relationships: [
- {
- foreignKeyName: "currency_createdBy_fkey";
- columns: ["createdBy"];
- referencedRelation: "user";
- referencedColumns: ["id"];
- },
- {
- foreignKeyName: "currency_createdBy_fkey";
- columns: ["createdBy"];
- referencedRelation: "employeeSummary";
- referencedColumns: ["id"];
- },
- {
- foreignKeyName: "currency_createdBy_fkey";
- columns: ["createdBy"];
- referencedRelation: "userDefaults";
- referencedColumns: ["userId"];
- },
{
foreignKeyName: "currency_updatedBy_fkey";
columns: ["updatedBy"];
@@ -3192,27 +3171,36 @@ export interface Database {
integration: {
Row: {
active: boolean;
+ description: string | null;
+ id: string;
jsonschema: Json;
+ logoPath: string | null;
metadata: Json;
- name: string;
+ title: string;
updatedAt: string;
updatedBy: string | null;
visible: boolean;
};
Insert: {
active?: boolean;
+ description?: string | null;
+ id: string;
jsonschema: Json;
+ logoPath?: string | null;
metadata?: Json;
- name: string;
+ title: string;
updatedAt?: string;
updatedBy?: string | null;
visible?: boolean;
};
Update: {
active?: boolean;
+ description?: string | null;
+ id?: string;
jsonschema?: Json;
+ logoPath?: string | null;
metadata?: Json;
- name?: string;
+ title?: string;
updatedAt?: string;
updatedBy?: string | null;
visible?: boolean;
diff --git a/packages/database/supabase/migrations/20230330024715_accounts.sql b/packages/database/supabase/migrations/20230330024715_accounts.sql
index 98df2a9e88..b05e774b28 100644
--- a/packages/database/supabase/migrations/20230330024715_accounts.sql
+++ b/packages/database/supabase/migrations/20230330024715_accounts.sql
@@ -3,18 +3,16 @@ CREATE TABLE "currency" (
"name" TEXT NOT NULL,
"code" TEXT NOT NULL,
"symbol" TEXT,
- "exchangeRate" NUMERIC(10,4) NOT NULL DEFAULT 1.0000,
+ "exchangeRate" NUMERIC(20,8) NOT NULL DEFAULT 1,
+ "decimalPlaces" INTEGER NOT NULL DEFAULT 2,
"isBaseCurrency" BOOLEAN NOT NULL DEFAULT false,
"active" BOOLEAN NOT NULL DEFAULT true,
- "createdBy" TEXT NOT NULL,
- "createdAt" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW(),
"updatedBy" TEXT,
"updatedAt" TIMESTAMP WITH TIME ZONE,
CONSTRAINT "currency_pkey" PRIMARY KEY ("id"),
CONSTRAINT "currency_code_key" UNIQUE ("code"),
CONSTRAINT "currency_exchangeRate_check" CHECK ("exchangeRate" > 0),
- CONSTRAINT "currency_createdBy_fkey" FOREIGN KEY ("createdBy") REFERENCES "user"("id"),
CONSTRAINT "currency_updatedBy_fkey" FOREIGN KEY ("updatedBy") REFERENCES "user"("id")
);
@@ -49,6 +47,7 @@ CREATE POLICY "Employees with accounting_delete can delete currencies" ON "curre
AND (get_my_claim('role'::text)) = '"employee"'::jsonb
);
+
CREATE TYPE "glAccountCategory" AS ENUM (
'Bank',
'Accounts Receivable',
diff --git a/packages/database/supabase/migrations/20240119095150_integrations.sql b/packages/database/supabase/migrations/20240119095150_integrations.sql
index 598cc9d991..fdad488eeb 100644
--- a/packages/database/supabase/migrations/20240119095150_integrations.sql
+++ b/packages/database/supabase/migrations/20240119095150_integrations.sql
@@ -3,6 +3,7 @@ CREATE EXTENSION pg_jsonschema WITH SCHEMA extensions;
CREATE TABLE integration (
"id" TEXT NOT NULL,
+ "title" TEXT NOT NULL,
"description" TEXT,
"logoPath" TEXT,
"active" BOOLEAN NOT NULL DEFAULT FALSE,
@@ -33,9 +34,12 @@ CREATE POLICY "Employees with settings_update can update integrations." ON "inte
(get_my_claim('role'::text)) = '"employee"'::jsonb
);
-INSERT INTO "integration" ("id", "jsonschema")
+INSERT INTO "integration" ("id", "title", "description", "logoPath", "jsonschema")
VALUES (
'exchange-rates-v1',
+ 'Update Exchange Rates',
+ 'Pulls currency rates from exchange rates API',
+ '/integrations/exchange-rates.png',
'{
"type": "object",
"properties": {
diff --git a/packages/database/supabase/seed.sql b/packages/database/supabase/seed.sql
index ca2371fc45..96271382d3 100644
--- a/packages/database/supabase/seed.sql
+++ b/packages/database/supabase/seed.sql
@@ -5,8 +5,125 @@ VALUES ('system', '[email protected]', 'System', 'Operation');
-- currencies
-INSERT INTO "currency" ("name", "code", "symbol", "exchangeRate", "isBaseCurrency", "createdBy")
-VALUES ('US Dollar', 'USD', '$', 1.0000, true, 'system');
+INSERT INTO "currency" ("name", "code", "symbol", "exchangeRate", "decimalPlaces", "isBaseCurrency")
+VALUES ('US Dollar', 'USD', '$', 1, 2, TRUE),
+ ('Canadian Dollar', 'CAD', 'CA$', 1, 2, FALSE),
+ ('Euro', 'EUR', '€', 1, 2, FALSE),
+ ('United Arab Emirates Dirham', 'AED', 'AED', 1, 2, FALSE),
+ ('Afghan Afghani', 'AFN', 'Af', 1, 0, FALSE),
+ ('Albanian Lek', 'ALL', 'ALL', 1, 0, FALSE),
+ ('Armenian Dram', 'AMD', 'AMD', 1, 0, FALSE),
+ ('Argentine Peso', 'ARS', 'AR$', 1, 2, FALSE),
+ ('Australian Dollar', 'AUD', 'AU$', 1, 2, FALSE),
+ ('Azerbaijani Manat', 'AZN', 'man.', 1, 2, FALSE),
+ ('Bosnia-Herzegovina Convertible Mark', 'BAM', 'KM', 1, 2, FALSE),
+ ('Bangladeshi Taka', 'BDT', 'Tk', 1, 2, FALSE),
+ ('Bulgarian Lev', 'BGN', 'BGN', 1, 2, FALSE),
+ ('Bahraini Dinar', 'BHD', 'BD', 1, 3, FALSE),
+ ('Burundian Franc', 'BIF', 'FBu', 1, 0, FALSE),
+ ('Brunei Dollar', 'BND', 'BN$', 1, 2, FALSE),
+ ('Bolivian Boliviano', 'BOB', 'Bs', 1, 2, FALSE),
+ ('Brazilian Real', 'BRL', 'R$', 1, 2, FALSE),
+ ('Botswanan Pula', 'BWP', 'BWP', 1, 2, FALSE),
+ ('Belarusian Ruble', 'BYN', 'Br', 1, 2, FALSE),
+ ('Belize Dollar', 'BZD', 'BZ$', 1, 2, FALSE),
+ ('Congolese Franc', 'CDF', 'CDF', 1, 2, FALSE),
+ ('Swiss Franc', 'CHF', 'CHF', 1, 2, FALSE),
+ ('Chilean Peso', 'CLP', 'CL$', 1, 0, FALSE),
+ ('Chinese Yuan', 'CNY', 'CN¥', 1, 2, FALSE),
+ ('Colombian Peso', 'COP', 'CO$', 1, 0, FALSE),
+ ('Costa Rican Colón', 'CRC', '₡', 1, 0, FALSE),
+ ('Cape Verdean Escudo', 'CVE', 'CV$', 1, 2, FALSE),
+ ('Czech Republic Koruna', 'CZK', 'Kč', 1, 2, FALSE),
+ ('Djiboutian Franc', 'DJF', 'Fdj', 1, 0, FALSE),
+ ('Danish Krone', 'DKK', 'Dkr', 1, 2, FALSE),
+ ('Dominican Peso', 'DOP', 'RD$', 1, 2, FALSE),
+ ('Algerian Dinar', 'DZD', 'DA', 1, 2, FALSE),
+ ('Egyptian Pound', 'EGP', 'EGP', 1, 2, FALSE),
+ ('Eritrean Nakfa', 'ERN', 'Nfk', 1, 2, FALSE),
+ ('Ethiopian Birr', 'ETB', 'Br', 1, 2, FALSE),
+ ('British Pound Sterling', 'GBP', '£', 1, 2, FALSE),
+ ('Georgian Lari', 'GEL', 'GEL', 1, 2, FALSE),
+ ('Ghanaian Cedi', 'GHS', 'GH₵', 1, 2, FALSE),
+ ('Guinean Franc', 'GNF', 'FG', 1, 0, FALSE),
+ ('Guatemalan Quetzal', 'GTQ', 'GTQ', 1, 2, FALSE),
+ ('Hong Kong Dollar', 'HKD', 'HK$', 1, 2, FALSE),
+ ('Honduran Lempira', 'HNL', 'HNL', 1, 2, FALSE),
+ ('Croatian Kuna', 'HRK', 'kn', 1, 2, FALSE),
+ ('Hungarian Forint', 'HUF', 'Ft', 1, 0, FALSE),
+ ('Indonesian Rupiah', 'IDR', 'Rp', 1, 0, FALSE),
+ ('Israeli New Sheqel', 'ILS', '₪', 1, 2, FALSE),
+ ('Indian Rupee', 'INR', 'Rs', 1, 2, FALSE),
+ ('Iraqi Dinar', 'IQD', 'IQD', 1, 0, FALSE),
+ ('Iranian Rial', 'IRR', 'IRR', 1, 0, FALSE),
+ ('Icelandic Króna', 'ISK', 'Ikr', 1, 0, FALSE),
+ ('Jamaican Dollar', 'JMD', 'J$', 1, 2, FALSE),
+ ('Jordanian Dinar', 'JOD', 'JD', 1, 3, FALSE),
+ ('Japanese Yen', 'JPY', '¥', 1, 0, FALSE),
+ ('Kenyan Shilling', 'KES', 'Ksh', 1, 2, FALSE),
+ ('Cambodian Riel', 'KHR', 'KHR', 1, 2, FALSE),
+ ('Comorian Franc', 'KMF', 'CF', 1, 0, FALSE),
+ ('South Korean Won', 'KRW', '₩', 1, 0, FALSE),
+ ('Kuwaiti Dinar', 'KWD', 'KD', 1, 3, FALSE),
+ ('Kazakhstani Tenge', 'KZT', 'KZT', 1, 2, FALSE),
+ ('Lebanese Pound', 'LBP', 'L.L.', 1, 0, FALSE),
+ ('Sri Lankan Rupee', 'LKR', 'SLRs', 1, 2, FALSE),
+ ('Lithuanian Litas', 'LTL', 'Lt', 1, 2, FALSE),
+ ('Latvian Lats', 'LVL', 'Ls', 1, 2, FALSE),
+ ('Libyan Dinar', 'LYD', 'LD', 1, 3, FALSE),
+ ('Moroccan Dirham', 'MAD', 'MAD', 1, 2, FALSE),
+ ('Moldovan Leu', 'MDL', 'MDL', 1, 2, FALSE),
+ ('Malagasy Ariary', 'MGA', 'MGA', 1, 0, FALSE),
+ ('Macedonian Denar', 'MKD', 'MKD', 1, 2, FALSE),
+ ('Myanma Kyat', 'MMK', 'MMK', 1, 0, FALSE),
+ ('Macanese Pataca', 'MOP', 'MOP$', 1, 2, FALSE),
+ ('Mauritian Rupee', 'MUR', 'MURs', 1, 0, FALSE),
+ ('Mexican Peso', 'MXN', 'MX$', 1, 2, FALSE),
+ ('Malaysian Ringgit', 'MYR', 'RM', 1, 2, FALSE),
+ ('Mozambican Metical', 'MZN', 'MTn', 1, 2, FALSE),
+ ('Namibian Dollar', 'NAD', 'N$', 1, 2, FALSE),
+ ('Nigerian Naira', 'NGN', '₦', 1, 2, FALSE),
+ ('Nicaraguan Córdoba', 'NIO', 'C$', 1, 2, FALSE),
+ ('Norwegian Krone', 'NOK', 'Nkr', 1, 2, FALSE),
+ ('Nepalese Rupee', 'NPR', 'NPRs', 1, 2, FALSE),
+ ('New Zealand Dollar', 'NZD', 'NZ$', 1, 2, FALSE),
+ ('Omani Rial', 'OMR', 'OMR', 1, 3, FALSE),
+ ('Panamanian Balboa', 'PAB', 'B/.', 1, 2, FALSE),
+ ('Peruvian Nuevo Sol', 'PEN', 'S/.', 1, 2, FALSE),
+ ('Philippine Peso', 'PHP', '₱', 1, 2, FALSE),
+ ('Pakistani Rupee', 'PKR', 'PKRs', 1, 0, FALSE),
+ ('Polish Zloty', 'PLN', 'zł', 1, 2, FALSE),
+ ('Paraguayan Guarani', 'PYG', '₲', 1, 0, FALSE),
+ ('Qatari Rial', 'QAR', 'QR', 1, 2, FALSE),
+ ('Romanian Leu', 'RON', 'RON', 1, 2, FALSE),
+ ('Serbian Dinar', 'RSD', 'din.', 1, 0, FALSE),
+ ('Russian Ruble', 'RUB', 'RUB', 1, 2, FALSE),
+ ('Rwandan Franc', 'RWF', 'RWF', 1, 0, FALSE),
+ ('Saudi Riyal', 'SAR', 'SR', 1, 2, FALSE),
+ ('Sudanese Pound', 'SDG', 'SDG', 1, 2, FALSE),
+ ('Swedish Krona', 'SEK', 'Skr', 1, 2, FALSE),
+ ('Singapore Dollar', 'SGD', 'S$', 1, 2, FALSE),
+ ('Somali Shilling', 'SOS', 'Ssh', 1, 0, FALSE),
+ ('Syrian Pound', 'SYP', 'SY£', 1, 0, FALSE),
+ ('Thai Baht', 'THB', '฿', 1, 2, FALSE),
+ ('Tunisian Dinar', 'TND', 'DT', 1, 3, FALSE),
+ ('Tongan Paʻanga', 'TOP', 'T$', 1, 2, FALSE),
+ ('Turkish Lira', 'TRY', 'TL', 1, 2, FALSE),
+ ('Trinidad and Tobago Dollar', 'TTD', 'TT$', 1, 2, FALSE),
+ ('New Taiwan Dollar', 'TWD', 'NT$', 1, 2, FALSE),
+ ('Tanzanian Shilling', 'TZS', 'TSh', 1, 0, FALSE),
+ ('Ukrainian Hryvnia', 'UAH', '₴', 1, 2, FALSE),
+ ('Ugandan Shilling', 'UGX', 'USh', 1, 0, FALSE),
+ ('Uruguayan Peso', 'UYU', '$U', 1, 2, FALSE),
+ ('Uzbekistan Som', 'UZS', 'UZS', 1, 0, FALSE),
+ ('Venezuelan Bolívar', 'VEF', 'Bs.F.', 1, 2, FALSE),
+ ('Vietnamese Dong', 'VND', '₫', 1, 0, FALSE),
+ ('CFA Franc BEAC', 'XAF', 'FCFA', 1, 0, FALSE),
+ ('CFA Franc BCEAO', 'XOF', 'CFA', 1, 0, FALSE),
+ ('Yemeni Rial', 'YER', 'YR', 1, 0, FALSE),
+ ('South African Rand', 'ZAR', 'R', 1, 2, FALSE),
+ ('Zambian Kwacha', 'ZMK', 'ZK', 1, 0, FALSE),
+ ('Zimbabwean Dollar', 'ZWL', 'ZWL$', 1, 0, FALSE);
-- attribute types
diff --git a/scripts/generate-schema-md.ts b/scripts/generate-schema-md.ts
deleted file mode 100644
index 755ded4ca1..0000000000
--- a/scripts/generate-schema-md.ts
+++ /dev/null
@@ -1,66 +0,0 @@
-import fs from "fs";
-import path from "path";
-
-readFiles(
- path.resolve(__dirname, "../packages/database/supabase/migrations"),
- writeMarkDown,
- (err) => {
- throw new Error(err.message);
- }
-);
-
-function writeMarkDown(
- fileName: string,
- content: string,
- stream: fs.WriteStream
-) {
- const heading = fileName.split("_")[1].split(".")[0];
- const markdown = `
-
-## \`${heading}\`
-
-\`\`\`sql
-${content}
-\`\`\`
-
-`;
- stream.write(markdown);
-}
-
-function readFiles(
- dirName: string,
- onFileContent: (
- fileName: string,
- content: string,
- stream: fs.WriteStream
- ) => void,
- onError: (err: Error) => void
-) {
- fs.writeFile(
- path.resolve(__dirname, "../packages/database/SCHEMA.md"),
- "# Carbon Database Schema",
- function () {
- console.log("Rewriting SCHEMA.md");
- }
- );
- const stream = fs.createWriteStream("packages/database/SCHEMA.md", {
- flags: "a",
- });
- stream.write(`
-
-This file is generated by \`scripts/generate-schema-md.ts\` using the migrations in \`packages/database/supabase/migrations\`.
-
-`);
- fs.readdir(dirName, function (err, fileNames) {
- if (err) {
- onError(err);
- return;
- }
- fileNames.forEach(function (fileName) {
- let content = fs.readFileSync(dirName + "/" + fileName, "utf-8");
- onFileContent(fileName, content, stream);
- });
-
- stream.end();
- });
-}