Open-source status page, incident response and uptime monitoring
TypeScript alertingincident-managementmcpmcp-servermonitoringmonitoring-as-codeobservabilityon-callopen-sourcesrestatus-pagestatuspagesynthetic-monitoringterraformtinybirdtursouptimeuptime-checkeruptime-monitor
Connect monitor to pages (#78)
Thibault Le Ouayc18c4733e029
diff --git a/apps/web/package.json b/apps/web/package.jsonindex 3ed1a1758..e6ba335f5 100644--- a/apps/web/package.json+++ b/apps/web/package.json@@ -47,7 +47,7 @@"lucide-react": "^0.244.0","micro": "10.0.1","nanoid": "^4.0.2",- "next": "13.4.8",+ "next": "13.4.12","next-contentlayer": "0.3.4","next-plausible": "3.7.2","react": "18.2.0",diff --git a/apps/web/src/app/app/(dashboard)/[workspaceId]/status-pages/_components/action-button.tsx b/apps/web/src/app/app/(dashboard)/[workspaceId]/status-pages/_components/action-button.tsxindex f142ffb8f..812d9b87a 100644--- a/apps/web/src/app/app/(dashboard)/[workspaceId]/status-pages/_components/action-button.tsx+++ b/apps/web/src/app/app/(dashboard)/[workspaceId]/status-pages/_components/action-button.tsx@@ -6,8 +6,9 @@ import { MoreVertical } from "lucide-react";import type * as z from "zod";import type {- insertMonitorSchema,- insertPageSchema,+ allMonitorsSchema,+ insertPageSchemaWithMonitors,+ selectPageSchema,} from "@openstatus/db/src/schema";import { StatusPageForm } from "@/components/forms/status-page-form";@@ -41,13 +42,12 @@ import {} from "@/components/ui/dropdown-menu";import { api } from "@/trpc/client";-type MonitorSchema = z.infer<typeof insertMonitorSchema>;-type PageSchema = z.infer<typeof insertPageSchema>;+type PageSchema = z.infer<typeof selectPageSchema>;// allMonitorsinterface ActionButtonProps {page: PageSchema;- allMonitors?: MonitorSchema[];+ allMonitors?: z.infer<typeof allMonitorsSchema>;}export function ActionButton({ page, allMonitors }: ActionButtonProps) {@@ -57,10 +57,9 @@ export function ActionButton({ page, allMonitors }: ActionButtonProps) {const [saving, setSaving] = React.useState(false);async function onUpdate({- monitors,workspaceId,...props- }: PageSchema & { monitors: string[] }) {+ }: z.infer<typeof insertPageSchemaWithMonitors>) {setSaving(true);await api.page.updatePage.mutate({id: page.id,@@ -140,12 +139,7 @@ export function ActionButton({ page, allMonitors }: ActionButtonProps) {id="status-page-update"onSubmit={onUpdate}defaultValues={page}- allMonitors={- allMonitors?.map((m) => ({- label: m.name || "",- value: String(m.id) || "",- })) ?? []- }+ allMonitors={allMonitors}/></div><DialogFooter>diff --git a/apps/web/src/app/app/(dashboard)/[workspaceId]/status-pages/_components/create-form.tsx b/apps/web/src/app/app/(dashboard)/[workspaceId]/status-pages/_components/create-form.tsxindex c6728ce1b..0932d942a 100644--- a/apps/web/src/app/app/(dashboard)/[workspaceId]/status-pages/_components/create-form.tsx+++ b/apps/web/src/app/app/(dashboard)/[workspaceId]/status-pages/_components/create-form.tsx@@ -5,8 +5,8 @@ import { useRouter } from "next/navigation";import type * as z from "zod";import type {- insertMonitorSchema,- insertPageSchema,+ allMonitorsSchema,+ insertPageSchemaWithMonitors,} from "@openstatus/db/src/schema";import { StatusPageForm } from "@/components/forms/status-page-form";@@ -23,12 +23,9 @@ import {} from "@/components/ui/dialog";import { api } from "@/trpc/client";-type MonitorSchema = z.infer<typeof insertMonitorSchema>;-type PageSchema = z.infer<typeof insertPageSchema>;-interface Props {workspaceId: number;- allMonitors?: MonitorSchema[];+ allMonitors?: z.infer<typeof allMonitorsSchema>;disabled?: boolean;}@@ -38,9 +35,8 @@ export function CreateForm({ workspaceId, allMonitors, disabled }: Props) {const [saving, setSaving] = React.useState(false);async function onCreate({- monitors, // TODO:...props- }: PageSchema & { monitors: string[] }) {+ }: z.infer<typeof insertPageSchemaWithMonitors>) {setSaving(true);// await api.monitor.getMonitorsByWorkspace.revalidate();await api.page.createPage.mutate({ ...props, workspaceId });@@ -63,12 +59,7 @@ export function CreateForm({ workspaceId, allMonitors, disabled }: Props) {<StatusPageFormid="status-page-create"onSubmit={onCreate}- allMonitors={- allMonitors?.map((m) => ({- label: m.name || "",- value: String(m.id) || "",- })) ?? []- }+ allMonitors={allMonitors}/></div><DialogFooter>diff --git a/apps/web/src/app/app/(dashboard)/[workspaceId]/status-pages/_components/empty-state.tsx b/apps/web/src/app/app/(dashboard)/[workspaceId]/status-pages/_components/empty-state.tsxindex 4e04e771b..ef1c50049 100644--- a/apps/web/src/app/app/(dashboard)/[workspaceId]/status-pages/_components/empty-state.tsx+++ b/apps/web/src/app/app/(dashboard)/[workspaceId]/status-pages/_components/empty-state.tsx@@ -1,20 +1,21 @@import Link from "next/link";import type * as z from "zod";-import type { insertMonitorSchema } from "@openstatus/db/src/schema";+import type {+ allMonitorsSchema,+ insertMonitorSchema,+} from "@openstatus/db/src/schema";import { EmptyState as DefaultEmptyState } from "@/components/dashboard/empty-state";import { Button } from "@/components/ui/button";import { CreateForm } from "./create-form";-type MonitorSchema = z.infer<typeof insertMonitorSchema>;-export function EmptyState({workspaceId,allMonitors,}: {workspaceId: number;- allMonitors?: MonitorSchema[];+ allMonitors?: z.infer<typeof allMonitorsSchema>;}) {// Navigate user to monitor if they don't have oneif (!Boolean(allMonitors?.length)) {diff --git a/apps/web/src/components/forms/status-page-form.tsx b/apps/web/src/components/forms/status-page-form.tsxindex daeceb72e..3188ebd22 100644--- a/apps/web/src/components/forms/status-page-form.tsx+++ b/apps/web/src/components/forms/status-page-form.tsx@@ -3,9 +3,10 @@import * as React from "react";import { zodResolver } from "@hookform/resolvers/zod";import { useForm } from "react-hook-form";-import * as z from "zod";+import type * as z from "zod";-import { insertPageSchema } from "@openstatus/db/src/schema";+import type { allMonitorsSchema } from "@openstatus/db/src/schema";+import { insertPageSchemaWithMonitors } from "@openstatus/db/src/schema";import {Form,@@ -20,21 +21,14 @@ import { Input } from "@/components/ui/input";import { Checkbox } from "../ui/checkbox";// REMINDER: only use the props you need!-const schema = insertPageSchema- .pick({ title: true, slug: true, description: true })- .merge(- z.object({- monitors: z.string().array().optional(), // HOW TO PASS- }),- );-type Schema = z.infer<typeof schema>;+type Schema = z.infer<typeof insertPageSchemaWithMonitors>;interface Props {id: string;defaultValues?: Schema;onSubmit: (values: Schema) => Promise<void>;- allMonitors?: Record<"label" | "value", string>[];+ allMonitors?: z.infer<typeof allMonitorsSchema>;}export function StatusPageForm({@@ -44,18 +38,24 @@ export function StatusPageForm({allMonitors,}: Props) {const form = useForm<Schema>({- resolver: zodResolver(schema),+ resolver: zodResolver(insertPageSchemaWithMonitors),defaultValues: {title: defaultValues?.title || "",slug: defaultValues?.slug || "", // TODO: verify if is uniquedescription: defaultValues?.description || "",monitors: [],+ workspaceId: 0,},});-return (<Form {...form}>- <form onSubmit={form.handleSubmit(onSubmit)} id={id}>+ <form+ onSubmit={form.handleSubmit(onSubmit, (e) => {+ console.log(e);+ console.log(form.getValues());+ })}+ id={id}+ ><div className="grid w-full items-center space-y-6"><FormFieldcontrol={form.control}@@ -116,34 +116,34 @@ export function StatusPageForm({</div>{allMonitors?.map((item) => (<FormField- key={item.value}+ key={item.id}control={form.control}name="monitors"render={({ field }) => {return (<FormItem- key={item.value}+ key={item.id}className="flex flex-row items-start space-x-3 space-y-0"><FormControl><Checkbox- checked={field.value?.includes(item.value)}+ checked={field.value?.includes(item.id)}onCheckedChange={(checked) => {return checked? field.onChange([...(field.value || []),- item.value,+ item.id,]): field.onChange(field.value?.filter(- (value) => value !== item.value,+ (value) => value !== item.id,),);}}/></FormControl><FormLabel className="font-normal">- {item.label}+ {item.name}</FormLabel></FormItem>);diff --git a/apps/web/src/middleware.ts b/apps/web/src/middleware.tsindex e901fd545..8c9b59adc 100644--- a/apps/web/src/middleware.ts+++ b/apps/web/src/middleware.ts@@ -73,7 +73,6 @@ export default authMiddleware({auth.userId &&(req.nextUrl.pathname === "/app" || req.nextUrl.pathname === "/app/")) {- console.log(auth.userId);// improve on sign-up if the webhook has not been triggered yetconst userQuery = db.select()diff --git a/packages/api/src/router/monitor.ts b/packages/api/src/router/monitor.tsindex fb2e66878..8720dad9b 100644--- a/packages/api/src/router/monitor.ts+++ b/packages/api/src/router/monitor.ts@@ -2,9 +2,9 @@ import { z } from "zod";import { eq } from "@openstatus/db";import {+ allMonitorsSchema,insertMonitorSchema,monitor,- selectMonitorSchema,user,usersToWorkspaces,} from "@openstatus/db/src/schema";@@ -30,7 +30,7 @@ export const monitorRouter = createTRPCRouter({.get();// the user don't have access to this workspace- if (!result.users_to_workspaces) return;+ if (!result || !result.users_to_workspaces) return;await opts.ctx.db.insert(monitor).values(opts.input).returning().get();}),@@ -56,7 +56,7 @@ export const monitorRouter = createTRPCRouter({.innerJoin(currentUser, eq(usersToWorkspaces.userId, currentUser.id)).get();- if (!result.users_to_workspaces) return;+ if (!result || !result.users_to_workspaces) return;return mon;}),@@ -90,7 +90,7 @@ export const monitorRouter = createTRPCRouter({.innerJoin(currentUser, eq(usersToWorkspaces.userId, currentUser.id)).get();- if (!result.users_to_workspaces) return;+ if (!result || !result.users_to_workspaces) return;opts.ctx.db.update(monitor)@@ -120,7 +120,7 @@ export const monitorRouter = createTRPCRouter({.innerJoin(currentUser, eq(usersToWorkspaces.userId, currentUser.id)).get();- if (!result.users_to_workspaces) return;+ if (!result || !result.users_to_workspaces) return;opts.ctx.db.update(monitor)@@ -186,7 +186,7 @@ export const monitorRouter = createTRPCRouter({.innerJoin(currentUser, eq(usersToWorkspaces.userId, currentUser.id)).get();- if (!result.users_to_workspaces) return;+ if (!result || !result.users_to_workspaces) return;opts.ctx.db.delete(monitor).where(eq(monitor.id, opts.input.monitorId));}),@@ -206,17 +206,16 @@ export const monitorRouter = createTRPCRouter({).innerJoin(currentUser, eq(usersToWorkspaces.userId, currentUser.id)).get();-// the user don't have access to this workspace- if (!result.users_to_workspaces) return;+ if (!result || !result.users_to_workspaces) return;const monitors = await opts.ctx.db.select().from(monitor).where(eq(monitor.workspaceId, opts.input.workspaceId)).all();- const selectMonitorsArray = selectMonitorSchema.array();+ // const selectMonitorsArray = selectMonitorSchema.array();- return selectMonitorsArray.parse(monitors);+ return allMonitorsSchema.parse(monitors);}),});diff --git a/packages/api/src/router/page.ts b/packages/api/src/router/page.tsindex 628122556..fa1eece33 100644--- a/packages/api/src/router/page.ts+++ b/packages/api/src/router/page.ts@@ -3,6 +3,9 @@ import { z } from "zod";import { eq } from "@openstatus/db";import {insertPageSchema,+ insertPageSchemaWithMonitors,+ monitor,+ monitorsToPages,page,selectIncidentSchema,selectMonitorSchema,@@ -14,9 +17,23 @@ import { createTRPCRouter, protectedProcedure, publicProcedure } from "../trpc";// TODO: deletePageById - updatePageByIdexport const pageRouter = createTRPCRouter({createPage: protectedProcedure- .input(insertPageSchema)+ .input(insertPageSchemaWithMonitors).mutation(async (opts) => {- return opts.ctx.db.insert(page).values(opts.input).returning().get();+ const { monitors, ...pageInput } = opts.input;+ const newPage = await opts.ctx.db+ .insert(page)+ .values(pageInput)+ .returning()+ .get();+ if (monitors) {+ // We should make sure the user has access to the monitors+ const values = monitors.map((monitorId) => ({+ monitorId: monitorId,+ pageId: newPage.id,+ }));++ await opts.ctx.db.insert(monitorsToPages).values(values).run();+ }}),getPageById: protectedProcedure@@ -24,21 +41,30 @@ export const pageRouter = createTRPCRouter({.query(async (opts) => {return await opts.ctx.db.query.page.findFirst({where: eq(page.id, opts.input.id),- with: { monitors: true, incidents: true },+ with: { monitorsToPages: { with: { monitor: true } }, incidents: true },});}),updatePage: protectedProcedure- .input(insertPageSchema)+ .input(insertPageSchemaWithMonitors).mutation(async (opts) => {- console.log(opts.input);- const r = await opts.ctx.db+ const { monitors, ...pageInput } = opts.input;++ await opts.ctx.db.update(page)- .set(opts.input)+ .set(pageInput).where(eq(page.id, Number(opts.input.id))).returning().get();- console.log(r);- return r;++ if (monitors) {+ // We should make sure the user has access to the monitors+ const values = monitors.map((monitorId) => ({+ monitorId: monitorId,+ pageId: Number(opts.input.id),+ }));++ await opts.ctx.db.insert(monitorsToPages).values(values).run();+ }}),deletePage: protectedProcedure.input(z.object({ pageId: z.number() }))@@ -61,7 +87,7 @@ export const pageRouter = createTRPCRouter({.query(async (opts) => {const result = opts.ctx.db.query.page.findFirst({where: eq(page.slug, opts.input.slug),- with: { monitors: true, incidents: true },+ with: { monitorsToPages: { with: { monitor: true } }, incidents: true },});const selectPageSchemaWithRelation = selectPageSchema.extend({monitors: z.array(selectMonitorSchema),diff --git a/packages/db/drizzle/0001_dry_hammerhead.sql b/packages/db/drizzle/0001_dry_hammerhead.sqlnew file mode 100644index 000000000..11dac2921--- /dev/null+++ b/packages/db/drizzle/0001_dry_hammerhead.sql@@ -0,0 +1,31 @@+DROP INDEX IF EXISTS page_custom_domain_unique;--> statement-breakpoint+/*+ SQLite does not support "Drop default from column" out of the box, we do not generate automatic migration for that, so it has to be done manually+ Please refer to: https://www.techonthenet.com/sqlite/tables/alter_table.php+ https://www.sqlite.org/lang_altertable.html+ https://stackoverflow.com/questions/2083543/modify-a-columns-type-in-sqlite3++ Due to that we don't generate migration automatically and it has to be done manually+*/++ALTER TABLE `page` RENAME TO `page_old`;+--> statement-breakpoint++CREATE TABLE `page` (+ id integer PRIMARY KEY NOT NULL,+ workspace_id integer NOT NULL,+ title text NOT NULL,+ description text NOT NULL,+ icon text(256),+ slug text(256) NOT NULL,+ custom_domain text(256),+ updated_at integer DEFAULT (strftime('%s', 'now')),+ FOREIGN KEY (workspace_id) REFERENCES workspace(id) ON UPDATE no action ON DELETE no action+);+--> statement-breakpoint++INSERT INTO `page` SELECT * FROM `page_old`;++--> statement-breakpoint+DROP TABLE `page_old`;+diff --git a/packages/db/drizzle/0002_strong_mister_sinister.sql b/packages/db/drizzle/0002_strong_mister_sinister.sqlnew file mode 100644index 000000000..1ce897f82--- /dev/null+++ b/packages/db/drizzle/0002_strong_mister_sinister.sql@@ -0,0 +1,7 @@+CREATE TABLE `monitors_to_pages` (+ `monitor_id` integer NOT NULL,+ `page_id` integer NOT NULL,+ PRIMARY KEY(`monitor_id`, `page_id`),+ FOREIGN KEY (`monitor_id`) REFERENCES `monitor`(`id`) ON UPDATE no action ON DELETE no action,+ FOREIGN KEY (`page_id`) REFERENCES `page`(`id`) ON UPDATE no action ON DELETE no action+);diff --git a/packages/db/drizzle/0003_windy_lionheart.sql b/packages/db/drizzle/0003_windy_lionheart.sqlnew file mode 100644index 000000000..f7a6e65c9--- /dev/null+++ b/packages/db/drizzle/0003_windy_lionheart.sql@@ -0,0 +1,49 @@+/*+ SQLite does not support "Dropping foreign key" out of the box, we do not generate automatic migration for that, so it has to be done manually+ Please refer to: https://www.techonthenet.com/sqlite/tables/alter_table.php+ https://www.sqlite.org/lang_altertable.html++ Due to that we don't generate migration automatically and it has to be done manually+*/++ALTER TABLE `monitor` RENAME TO `monitor_old`;+--> statement-breakpoint++CREATE TABLE `monitor` (+ `id` integer PRIMARY KEY NOT NULL,+ `job_type` text(3) DEFAULT 'other' NOT NULL,+ `periodicity` text(6) DEFAULT 'other' NOT NULL,+ `status` text(2) DEFAULT 'inactive' NOT NULL,+ `active` integer DEFAULT false,+ `url` text(512) NOT NULL,+ `name` text(256) DEFAULT '' NOT NULL,+ `description` text DEFAULT '' NOT NULL,+ `workspace_id` integer,+ `updated_at` integer DEFAULT (strftime('%s', 'now')),+ FOREIGN KEY (`workspace_id`) REFERENCES `workspace`(`id`) ON UPDATE no action ON DELETE no action+);+--> statement-breakpoint++INSERT INTO `monitor` SELECT `id`,`job_type`,`periodicity`,`status`,`active`,`url`,`name`,`description`,`workspace_id`,`updated_at` FROM `monitor_old`;+--> statement-breakpoint++ALTER TABLE `monitors_to_pages` RENAME TO `monitors_to_pages_old`;+--> statement-breakpoint++CREATE TABLE `monitors_to_pages` (+ `monitor_id` integer NOT NULL,+ `page_id` integer NOT NULL,+ PRIMARY KEY(`monitor_id`, `page_id`),+ FOREIGN KEY (`monitor_id`) REFERENCES `monitor`(`id`) ON UPDATE no action ON DELETE no action,+ FOREIGN KEY (`page_id`) REFERENCES `page`(`id`) ON UPDATE no action ON DELETE no action+);+--> statement-breakpoint++INSERT INTO `monitors_to_pages` SELECT * FROM `monitors_to_pages_old`;+++--> statement-breakpoint+DROP TABLE `monitor_old`;+--> statement-breakpoint++DROP TABLE `monitors_to_pages_old`;diff --git a/packages/db/drizzle/meta/0001_snapshot.json b/packages/db/drizzle/meta/0001_snapshot.jsonnew file mode 100644index 000000000..b8e862046--- /dev/null+++ b/packages/db/drizzle/meta/0001_snapshot.json@@ -0,0 +1,482 @@+{+ "version": "5",+ "dialect": "sqlite",+ "id": "8cf0919d-6852-47b5-ad24-7d9e48504b51",+ "prevId": "1c9c9848-d580-4543-9104-566450666ad5",+ "tables": {+ "incident": {+ "name": "incident",+ "columns": {+ "id": {+ "name": "id",+ "type": "integer",+ "primaryKey": true,+ "notNull": true,+ "autoincrement": false+ },+ "status": {+ "name": "status",+ "type": "text(2)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "page_id": {+ "name": "page_id",+ "type": "integer",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "updated_at": {+ "name": "updated_at",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false,+ "default": "(strftime('%s', 'now'))"+ }+ },+ "indexes": {},+ "foreignKeys": {+ "incident_page_id_page_id_fk": {+ "name": "incident_page_id_page_id_fk",+ "tableFrom": "incident",+ "tableTo": "page",+ "columnsFrom": [+ "page_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "no action",+ "onUpdate": "no action"+ }+ },+ "compositePrimaryKeys": {},+ "uniqueConstraints": {}+ },+ "incident_update": {+ "name": "incident_update",+ "columns": {+ "id": {+ "name": "id",+ "type": "integer",+ "primaryKey": true,+ "notNull": true,+ "autoincrement": false+ },+ "incident_date": {+ "name": "incident_date",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "title": {+ "name": "title",+ "type": "text(256)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "message": {+ "name": "message",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "incident_id": {+ "name": "incident_id",+ "type": "integer",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "updated_at": {+ "name": "updated_at",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false,+ "default": "(strftime('%s', 'now'))"+ }+ },+ "indexes": {},+ "foreignKeys": {+ "incident_update_incident_id_incident_id_fk": {+ "name": "incident_update_incident_id_incident_id_fk",+ "tableFrom": "incident_update",+ "tableTo": "incident",+ "columnsFrom": [+ "incident_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "no action",+ "onUpdate": "no action"+ }+ },+ "compositePrimaryKeys": {},+ "uniqueConstraints": {}+ },+ "page": {+ "name": "page",+ "columns": {+ "id": {+ "name": "id",+ "type": "integer",+ "primaryKey": true,+ "notNull": true,+ "autoincrement": false+ },+ "workspace_id": {+ "name": "workspace_id",+ "type": "integer",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "title": {+ "name": "title",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "description": {+ "name": "description",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "icon": {+ "name": "icon",+ "type": "text(256)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "slug": {+ "name": "slug",+ "type": "text(256)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "custom_domain": {+ "name": "custom_domain",+ "type": "text(256)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "updated_at": {+ "name": "updated_at",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false,+ "default": "(strftime('%s', 'now'))"+ }+ },+ "indexes": {+ "page_slug_unique": {+ "name": "page_slug_unique",+ "columns": [+ "slug"+ ],+ "isUnique": true+ }+ },+ "foreignKeys": {+ "page_workspace_id_workspace_id_fk": {+ "name": "page_workspace_id_workspace_id_fk",+ "tableFrom": "page",+ "tableTo": "workspace",+ "columnsFrom": [+ "workspace_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "no action",+ "onUpdate": "no action"+ }+ },+ "compositePrimaryKeys": {},+ "uniqueConstraints": {}+ },+ "monitor": {+ "name": "monitor",+ "columns": {+ "id": {+ "name": "id",+ "type": "integer",+ "primaryKey": true,+ "notNull": true,+ "autoincrement": false+ },+ "job_type": {+ "name": "job_type",+ "type": "text(3)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "'other'"+ },+ "periodicity": {+ "name": "periodicity",+ "type": "text(6)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "'other'"+ },+ "status": {+ "name": "status",+ "type": "text(2)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "'inactive'"+ },+ "active": {+ "name": "active",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false,+ "default": false+ },+ "url": {+ "name": "url",+ "type": "text(512)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "name": {+ "name": "name",+ "type": "text(256)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "''"+ },+ "description": {+ "name": "description",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "''"+ },+ "page_id": {+ "name": "page_id",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "workspace_id": {+ "name": "workspace_id",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "updated_at": {+ "name": "updated_at",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false,+ "default": "(strftime('%s', 'now'))"+ }+ },+ "indexes": {},+ "foreignKeys": {+ "monitor_page_id_page_id_fk": {+ "name": "monitor_page_id_page_id_fk",+ "tableFrom": "monitor",+ "tableTo": "page",+ "columnsFrom": [+ "page_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "no action",+ "onUpdate": "no action"+ },+ "monitor_workspace_id_workspace_id_fk": {+ "name": "monitor_workspace_id_workspace_id_fk",+ "tableFrom": "monitor",+ "tableTo": "workspace",+ "columnsFrom": [+ "workspace_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "no action",+ "onUpdate": "no action"+ }+ },+ "compositePrimaryKeys": {},+ "uniqueConstraints": {}+ },+ "user": {+ "name": "user",+ "columns": {+ "id": {+ "name": "id",+ "type": "integer",+ "primaryKey": true,+ "notNull": true,+ "autoincrement": false+ },+ "tenant_id": {+ "name": "tenant_id",+ "type": "text(256)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "updated_at": {+ "name": "updated_at",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false,+ "default": "(strftime('%s', 'now'))"+ }+ },+ "indexes": {+ "user_tenant_id_unique": {+ "name": "user_tenant_id_unique",+ "columns": [+ "tenant_id"+ ],+ "isUnique": true+ }+ },+ "foreignKeys": {},+ "compositePrimaryKeys": {},+ "uniqueConstraints": {}+ },+ "users_to_workspaces": {+ "name": "users_to_workspaces",+ "columns": {+ "user_id": {+ "name": "user_id",+ "type": "integer",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "workspace_id": {+ "name": "workspace_id",+ "type": "integer",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ }+ },+ "indexes": {},+ "foreignKeys": {+ "users_to_workspaces_user_id_user_id_fk": {+ "name": "users_to_workspaces_user_id_user_id_fk",+ "tableFrom": "users_to_workspaces",+ "tableTo": "user",+ "columnsFrom": [+ "user_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "no action",+ "onUpdate": "no action"+ },+ "users_to_workspaces_workspace_id_workspace_id_fk": {+ "name": "users_to_workspaces_workspace_id_workspace_id_fk",+ "tableFrom": "users_to_workspaces",+ "tableTo": "workspace",+ "columnsFrom": [+ "workspace_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "no action",+ "onUpdate": "no action"+ }+ },+ "compositePrimaryKeys": {+ "users_to_workspaces_user_id_workspace_id_pk": {+ "columns": [+ "user_id",+ "workspace_id"+ ]+ }+ },+ "uniqueConstraints": {}+ },+ "workspace": {+ "name": "workspace",+ "columns": {+ "id": {+ "name": "id",+ "type": "integer",+ "primaryKey": true,+ "notNull": true,+ "autoincrement": false+ },+ "stripe_id": {+ "name": "stripe_id",+ "type": "text(256)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "name": {+ "name": "name",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "updated_at": {+ "name": "updated_at",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false,+ "default": "(strftime('%s', 'now'))"+ }+ },+ "indexes": {+ "workspace_stripe_id_unique": {+ "name": "workspace_stripe_id_unique",+ "columns": [+ "stripe_id"+ ],+ "isUnique": true+ }+ },+ "foreignKeys": {},+ "compositePrimaryKeys": {},+ "uniqueConstraints": {}+ }+ },+ "enums": {},+ "_meta": {+ "schemas": {},+ "tables": {},+ "columns": {}+ }+}\ No newline at end of filediff --git a/packages/db/drizzle/meta/0002_snapshot.json b/packages/db/drizzle/meta/0002_snapshot.jsonnew file mode 100644index 000000000..a71689a31--- /dev/null+++ b/packages/db/drizzle/meta/0002_snapshot.json@@ -0,0 +1,539 @@+{+ "version": "5",+ "dialect": "sqlite",+ "id": "473566b5-0c33-467b-8a08-16bf6760c961",+ "prevId": "8cf0919d-6852-47b5-ad24-7d9e48504b51",+ "tables": {+ "incident": {+ "name": "incident",+ "columns": {+ "id": {+ "name": "id",+ "type": "integer",+ "primaryKey": true,+ "notNull": true,+ "autoincrement": false+ },+ "status": {+ "name": "status",+ "type": "text(2)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "page_id": {+ "name": "page_id",+ "type": "integer",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "updated_at": {+ "name": "updated_at",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false,+ "default": "(strftime('%s', 'now'))"+ }+ },+ "indexes": {},+ "foreignKeys": {+ "incident_page_id_page_id_fk": {+ "name": "incident_page_id_page_id_fk",+ "tableFrom": "incident",+ "tableTo": "page",+ "columnsFrom": [+ "page_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "no action",+ "onUpdate": "no action"+ }+ },+ "compositePrimaryKeys": {},+ "uniqueConstraints": {}+ },+ "incident_update": {+ "name": "incident_update",+ "columns": {+ "id": {+ "name": "id",+ "type": "integer",+ "primaryKey": true,+ "notNull": true,+ "autoincrement": false+ },+ "incident_date": {+ "name": "incident_date",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "title": {+ "name": "title",+ "type": "text(256)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "message": {+ "name": "message",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "incident_id": {+ "name": "incident_id",+ "type": "integer",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "updated_at": {+ "name": "updated_at",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false,+ "default": "(strftime('%s', 'now'))"+ }+ },+ "indexes": {},+ "foreignKeys": {+ "incident_update_incident_id_incident_id_fk": {+ "name": "incident_update_incident_id_incident_id_fk",+ "tableFrom": "incident_update",+ "tableTo": "incident",+ "columnsFrom": [+ "incident_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "no action",+ "onUpdate": "no action"+ }+ },+ "compositePrimaryKeys": {},+ "uniqueConstraints": {}+ },+ "page": {+ "name": "page",+ "columns": {+ "id": {+ "name": "id",+ "type": "integer",+ "primaryKey": true,+ "notNull": true,+ "autoincrement": false+ },+ "workspace_id": {+ "name": "workspace_id",+ "type": "integer",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "title": {+ "name": "title",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "description": {+ "name": "description",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "icon": {+ "name": "icon",+ "type": "text(256)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "slug": {+ "name": "slug",+ "type": "text(256)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "custom_domain": {+ "name": "custom_domain",+ "type": "text(256)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "updated_at": {+ "name": "updated_at",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false,+ "default": "(strftime('%s', 'now'))"+ }+ },+ "indexes": {+ "page_slug_unique": {+ "name": "page_slug_unique",+ "columns": [+ "slug"+ ],+ "isUnique": true+ }+ },+ "foreignKeys": {+ "page_workspace_id_workspace_id_fk": {+ "name": "page_workspace_id_workspace_id_fk",+ "tableFrom": "page",+ "tableTo": "workspace",+ "columnsFrom": [+ "workspace_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "no action",+ "onUpdate": "no action"+ }+ },+ "compositePrimaryKeys": {},+ "uniqueConstraints": {}+ },+ "monitor": {+ "name": "monitor",+ "columns": {+ "id": {+ "name": "id",+ "type": "integer",+ "primaryKey": true,+ "notNull": true,+ "autoincrement": false+ },+ "job_type": {+ "name": "job_type",+ "type": "text(3)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "'other'"+ },+ "periodicity": {+ "name": "periodicity",+ "type": "text(6)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "'other'"+ },+ "status": {+ "name": "status",+ "type": "text(2)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "'inactive'"+ },+ "active": {+ "name": "active",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false,+ "default": false+ },+ "url": {+ "name": "url",+ "type": "text(512)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "name": {+ "name": "name",+ "type": "text(256)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "''"+ },+ "description": {+ "name": "description",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "''"+ },+ "page_id": {+ "name": "page_id",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "workspace_id": {+ "name": "workspace_id",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "updated_at": {+ "name": "updated_at",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false,+ "default": "(strftime('%s', 'now'))"+ }+ },+ "indexes": {},+ "foreignKeys": {+ "monitor_page_id_page_id_fk": {+ "name": "monitor_page_id_page_id_fk",+ "tableFrom": "monitor",+ "tableTo": "page",+ "columnsFrom": [+ "page_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "no action",+ "onUpdate": "no action"+ },+ "monitor_workspace_id_workspace_id_fk": {+ "name": "monitor_workspace_id_workspace_id_fk",+ "tableFrom": "monitor",+ "tableTo": "workspace",+ "columnsFrom": [+ "workspace_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "no action",+ "onUpdate": "no action"+ }+ },+ "compositePrimaryKeys": {},+ "uniqueConstraints": {}+ },+ "monitors_to_pages": {+ "name": "monitors_to_pages",+ "columns": {+ "monitor_id": {+ "name": "monitor_id",+ "type": "integer",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "page_id": {+ "name": "page_id",+ "type": "integer",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ }+ },+ "indexes": {},+ "foreignKeys": {+ "monitors_to_pages_monitor_id_monitor_id_fk": {+ "name": "monitors_to_pages_monitor_id_monitor_id_fk",+ "tableFrom": "monitors_to_pages",+ "tableTo": "monitor",+ "columnsFrom": [+ "monitor_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "no action",+ "onUpdate": "no action"+ },+ "monitors_to_pages_page_id_page_id_fk": {+ "name": "monitors_to_pages_page_id_page_id_fk",+ "tableFrom": "monitors_to_pages",+ "tableTo": "page",+ "columnsFrom": [+ "page_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "no action",+ "onUpdate": "no action"+ }+ },+ "compositePrimaryKeys": {+ "monitors_to_pages_monitor_id_page_id_pk": {+ "columns": [+ "monitor_id",+ "page_id"+ ]+ }+ },+ "uniqueConstraints": {}+ },+ "user": {+ "name": "user",+ "columns": {+ "id": {+ "name": "id",+ "type": "integer",+ "primaryKey": true,+ "notNull": true,+ "autoincrement": false+ },+ "tenant_id": {+ "name": "tenant_id",+ "type": "text(256)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "updated_at": {+ "name": "updated_at",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false,+ "default": "(strftime('%s', 'now'))"+ }+ },+ "indexes": {+ "user_tenant_id_unique": {+ "name": "user_tenant_id_unique",+ "columns": [+ "tenant_id"+ ],+ "isUnique": true+ }+ },+ "foreignKeys": {},+ "compositePrimaryKeys": {},+ "uniqueConstraints": {}+ },+ "users_to_workspaces": {+ "name": "users_to_workspaces",+ "columns": {+ "user_id": {+ "name": "user_id",+ "type": "integer",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "workspace_id": {+ "name": "workspace_id",+ "type": "integer",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ }+ },+ "indexes": {},+ "foreignKeys": {+ "users_to_workspaces_user_id_user_id_fk": {+ "name": "users_to_workspaces_user_id_user_id_fk",+ "tableFrom": "users_to_workspaces",+ "tableTo": "user",+ "columnsFrom": [+ "user_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "no action",+ "onUpdate": "no action"+ },+ "users_to_workspaces_workspace_id_workspace_id_fk": {+ "name": "users_to_workspaces_workspace_id_workspace_id_fk",+ "tableFrom": "users_to_workspaces",+ "tableTo": "workspace",+ "columnsFrom": [+ "workspace_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "no action",+ "onUpdate": "no action"+ }+ },+ "compositePrimaryKeys": {+ "users_to_workspaces_user_id_workspace_id_pk": {+ "columns": [+ "user_id",+ "workspace_id"+ ]+ }+ },+ "uniqueConstraints": {}+ },+ "workspace": {+ "name": "workspace",+ "columns": {+ "id": {+ "name": "id",+ "type": "integer",+ "primaryKey": true,+ "notNull": true,+ "autoincrement": false+ },+ "stripe_id": {+ "name": "stripe_id",+ "type": "text(256)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "name": {+ "name": "name",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "updated_at": {+ "name": "updated_at",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false,+ "default": "(strftime('%s', 'now'))"+ }+ },+ "indexes": {+ "workspace_stripe_id_unique": {+ "name": "workspace_stripe_id_unique",+ "columns": [+ "stripe_id"+ ],+ "isUnique": true+ }+ },+ "foreignKeys": {},+ "compositePrimaryKeys": {},+ "uniqueConstraints": {}+ }+ },+ "enums": {},+ "_meta": {+ "schemas": {},+ "tables": {},+ "columns": {}+ }+}\ No newline at end of filediff --git a/packages/db/drizzle/meta/0003_snapshot.json b/packages/db/drizzle/meta/0003_snapshot.jsonnew file mode 100644index 000000000..4529d879b--- /dev/null+++ b/packages/db/drizzle/meta/0003_snapshot.json@@ -0,0 +1,519 @@+{+ "version": "5",+ "dialect": "sqlite",+ "id": "d6e08620-b030-4de6-ba58-cdfe94c47878",+ "prevId": "473566b5-0c33-467b-8a08-16bf6760c961",+ "tables": {+ "incident": {+ "name": "incident",+ "columns": {+ "id": {+ "name": "id",+ "type": "integer",+ "primaryKey": true,+ "notNull": true,+ "autoincrement": false+ },+ "status": {+ "name": "status",+ "type": "text(2)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "page_id": {+ "name": "page_id",+ "type": "integer",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "updated_at": {+ "name": "updated_at",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false,+ "default": "(strftime('%s', 'now'))"+ }+ },+ "indexes": {},+ "foreignKeys": {+ "incident_page_id_page_id_fk": {+ "name": "incident_page_id_page_id_fk",+ "tableFrom": "incident",+ "tableTo": "page",+ "columnsFrom": [+ "page_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "no action",+ "onUpdate": "no action"+ }+ },+ "compositePrimaryKeys": {},+ "uniqueConstraints": {}+ },+ "incident_update": {+ "name": "incident_update",+ "columns": {+ "id": {+ "name": "id",+ "type": "integer",+ "primaryKey": true,+ "notNull": true,+ "autoincrement": false+ },+ "incident_date": {+ "name": "incident_date",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "title": {+ "name": "title",+ "type": "text(256)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "message": {+ "name": "message",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "incident_id": {+ "name": "incident_id",+ "type": "integer",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "updated_at": {+ "name": "updated_at",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false,+ "default": "(strftime('%s', 'now'))"+ }+ },+ "indexes": {},+ "foreignKeys": {+ "incident_update_incident_id_incident_id_fk": {+ "name": "incident_update_incident_id_incident_id_fk",+ "tableFrom": "incident_update",+ "tableTo": "incident",+ "columnsFrom": [+ "incident_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "no action",+ "onUpdate": "no action"+ }+ },+ "compositePrimaryKeys": {},+ "uniqueConstraints": {}+ },+ "page": {+ "name": "page",+ "columns": {+ "id": {+ "name": "id",+ "type": "integer",+ "primaryKey": true,+ "notNull": true,+ "autoincrement": false+ },+ "workspace_id": {+ "name": "workspace_id",+ "type": "integer",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "title": {+ "name": "title",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "description": {+ "name": "description",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "icon": {+ "name": "icon",+ "type": "text(256)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "slug": {+ "name": "slug",+ "type": "text(256)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "custom_domain": {+ "name": "custom_domain",+ "type": "text(256)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "updated_at": {+ "name": "updated_at",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false,+ "default": "(strftime('%s', 'now'))"+ }+ },+ "indexes": {+ "page_slug_unique": {+ "name": "page_slug_unique",+ "columns": [+ "slug"+ ],+ "isUnique": true+ }+ },+ "foreignKeys": {+ "page_workspace_id_workspace_id_fk": {+ "name": "page_workspace_id_workspace_id_fk",+ "tableFrom": "page",+ "tableTo": "workspace",+ "columnsFrom": [+ "workspace_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "no action",+ "onUpdate": "no action"+ }+ },+ "compositePrimaryKeys": {},+ "uniqueConstraints": {}+ },+ "monitor": {+ "name": "monitor",+ "columns": {+ "id": {+ "name": "id",+ "type": "integer",+ "primaryKey": true,+ "notNull": true,+ "autoincrement": false+ },+ "job_type": {+ "name": "job_type",+ "type": "text(3)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "'other'"+ },+ "periodicity": {+ "name": "periodicity",+ "type": "text(6)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "'other'"+ },+ "status": {+ "name": "status",+ "type": "text(2)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "'inactive'"+ },+ "active": {+ "name": "active",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false,+ "default": false+ },+ "url": {+ "name": "url",+ "type": "text(512)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "name": {+ "name": "name",+ "type": "text(256)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "''"+ },+ "description": {+ "name": "description",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "''"+ },+ "workspace_id": {+ "name": "workspace_id",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "updated_at": {+ "name": "updated_at",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false,+ "default": "(strftime('%s', 'now'))"+ }+ },+ "indexes": {},+ "foreignKeys": {+ "monitor_workspace_id_workspace_id_fk": {+ "name": "monitor_workspace_id_workspace_id_fk",+ "tableFrom": "monitor",+ "tableTo": "workspace",+ "columnsFrom": [+ "workspace_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "no action",+ "onUpdate": "no action"+ }+ },+ "compositePrimaryKeys": {},+ "uniqueConstraints": {}+ },+ "monitors_to_pages": {+ "name": "monitors_to_pages",+ "columns": {+ "monitor_id": {+ "name": "monitor_id",+ "type": "integer",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "page_id": {+ "name": "page_id",+ "type": "integer",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ }+ },+ "indexes": {},+ "foreignKeys": {+ "monitors_to_pages_monitor_id_monitor_id_fk": {+ "name": "monitors_to_pages_monitor_id_monitor_id_fk",+ "tableFrom": "monitors_to_pages",+ "tableTo": "monitor",+ "columnsFrom": [+ "monitor_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "no action",+ "onUpdate": "no action"+ },+ "monitors_to_pages_page_id_page_id_fk": {+ "name": "monitors_to_pages_page_id_page_id_fk",+ "tableFrom": "monitors_to_pages",+ "tableTo": "page",+ "columnsFrom": [+ "page_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "no action",+ "onUpdate": "no action"+ }+ },+ "compositePrimaryKeys": {+ "monitors_to_pages_monitor_id_page_id_pk": {+ "columns": [+ "monitor_id",+ "page_id"+ ]+ }+ },+ "uniqueConstraints": {}+ },+ "user": {+ "name": "user",+ "columns": {+ "id": {+ "name": "id",+ "type": "integer",+ "primaryKey": true,+ "notNull": true,+ "autoincrement": false+ },+ "tenant_id": {+ "name": "tenant_id",+ "type": "text(256)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "updated_at": {+ "name": "updated_at",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false,+ "default": "(strftime('%s', 'now'))"+ }+ },+ "indexes": {+ "user_tenant_id_unique": {+ "name": "user_tenant_id_unique",+ "columns": [+ "tenant_id"+ ],+ "isUnique": true+ }+ },+ "foreignKeys": {},+ "compositePrimaryKeys": {},+ "uniqueConstraints": {}+ },+ "users_to_workspaces": {+ "name": "users_to_workspaces",+ "columns": {+ "user_id": {+ "name": "user_id",+ "type": "integer",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "workspace_id": {+ "name": "workspace_id",+ "type": "integer",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ }+ },+ "indexes": {},+ "foreignKeys": {+ "users_to_workspaces_user_id_user_id_fk": {+ "name": "users_to_workspaces_user_id_user_id_fk",+ "tableFrom": "users_to_workspaces",+ "tableTo": "user",+ "columnsFrom": [+ "user_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "no action",+ "onUpdate": "no action"+ },+ "users_to_workspaces_workspace_id_workspace_id_fk": {+ "name": "users_to_workspaces_workspace_id_workspace_id_fk",+ "tableFrom": "users_to_workspaces",+ "tableTo": "workspace",+ "columnsFrom": [+ "workspace_id"+ ],+ "columnsTo": [+ "id"+ ],+ "onDelete": "no action",+ "onUpdate": "no action"+ }+ },+ "compositePrimaryKeys": {+ "users_to_workspaces_user_id_workspace_id_pk": {+ "columns": [+ "user_id",+ "workspace_id"+ ]+ }+ },+ "uniqueConstraints": {}+ },+ "workspace": {+ "name": "workspace",+ "columns": {+ "id": {+ "name": "id",+ "type": "integer",+ "primaryKey": true,+ "notNull": true,+ "autoincrement": false+ },+ "stripe_id": {+ "name": "stripe_id",+ "type": "text(256)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "name": {+ "name": "name",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "updated_at": {+ "name": "updated_at",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false,+ "default": "(strftime('%s', 'now'))"+ }+ },+ "indexes": {+ "workspace_stripe_id_unique": {+ "name": "workspace_stripe_id_unique",+ "columns": [+ "stripe_id"+ ],+ "isUnique": true+ }+ },+ "foreignKeys": {},+ "compositePrimaryKeys": {},+ "uniqueConstraints": {}+ }+ },+ "enums": {},+ "_meta": {+ "schemas": {},+ "tables": {},+ "columns": {}+ }+}\ No newline at end of filediff --git a/packages/db/drizzle/meta/_journal.json b/packages/db/drizzle/meta/_journal.jsonindex 1b51c7b27..f0154efae 100644--- a/packages/db/drizzle/meta/_journal.json+++ b/packages/db/drizzle/meta/_journal.json@@ -8,6 +8,27 @@"when": 1690046393803,"tag": "0000_nebulous_shape","breakpoints": true+ },+ {+ "idx": 1,+ "version": "5",+ "when": 1690052668260,+ "tag": "0001_dry_hammerhead",+ "breakpoints": true+ },+ {+ "idx": 2,+ "version": "5",+ "when": 1690056788155,+ "tag": "0002_strong_mister_sinister",+ "breakpoints": true+ },+ {+ "idx": 3,+ "version": "5",+ "when": 1690126549474,+ "tag": "0003_windy_lionheart",+ "breakpoints": true}]}\ No newline at end of filediff --git a/packages/db/src/schema/monitor.ts b/packages/db/src/schema/monitor.tsindex 9fea101b0..70dd7079b 100644--- a/packages/db/src/schema/monitor.ts+++ b/packages/db/src/schema/monitor.ts@@ -1,5 +1,10 @@import { relations, sql } from "drizzle-orm";-import { integer, sqliteTable, text } from "drizzle-orm/sqlite-core";+import {+ integer,+ primaryKey,+ sqliteTable,+ text,+} from "drizzle-orm/sqlite-core";import { createInsertSchema, createSelectSchema } from "drizzle-zod";import { z } from "zod";@@ -22,7 +27,6 @@ export const monitor = sqliteTable("monitor", {name: text("name", { length: 256 }).default("").notNull(),description: text("description").default("").notNull(),- pageId: integer("page_id").references(() => page.id),workspaceId: integer("workspace_id").references(() => workspace.id),createdAt: integer("updated_at", { mode: "timestamp" }).default(@@ -33,17 +37,43 @@ export const monitor = sqliteTable("monitor", {),});-export const monitorRelation = relations(monitor, ({ one }) => ({- page: one(page, {- fields: [monitor.pageId],- references: [page.id],- }),+export const monitorRelation = relations(monitor, ({ one, many }) => ({+ monitorsToPages: many(monitorsToPages),workspace: one(workspace, {fields: [monitor.workspaceId],references: [workspace.id],}),}));+export const monitorsToPages = sqliteTable(+ "monitors_to_pages",+ {+ monitorId: integer("monitor_id")+ .notNull()+ .references(() => monitor.id),+ pageId: integer("page_id")+ .notNull()+ .references(() => page.id),+ },+ (t) => ({+ pk: primaryKey(t.monitorId, t.pageId),+ }),+);++export const monitorsToPagesRelation = relations(+ monitorsToPages,+ ({ one }) => ({+ monitor: one(monitor, {+ fields: [monitorsToPages.monitorId],+ references: [monitor.id],+ }),+ page: one(page, {+ fields: [monitorsToPages.pageId],+ references: [page.id],+ }),+ }),+);+export const periodicityEnum = z.enum(["1m","5m",@@ -67,3 +97,5 @@ export const selectMonitorSchema = createSelectSchema(monitor, {jobType: z.enum(["website", "cron", "other"]).default("other"),active: z.boolean().default(false),});++export const allMonitorsSchema = z.array(selectMonitorSchema);diff --git a/packages/db/src/schema/page.ts b/packages/db/src/schema/page.tsindex 14c7b946b..a945a1a54 100644--- a/packages/db/src/schema/page.ts+++ b/packages/db/src/schema/page.ts@@ -3,8 +3,8 @@ import { integer, sqliteTable, text } from "drizzle-orm/sqlite-core";import { createInsertSchema, createSelectSchema } from "drizzle-zod";import { z } from "zod";-import { incident, selectIncidentSchema } from "./incident";-import { monitor, selectMonitorSchema } from "./monitor";+import { incident } from "./incident";+import { monitorsToPages } from "./monitor";import { workspace } from "./workspace";export const page = sqliteTable("page", {@@ -18,10 +18,7 @@ export const page = sqliteTable("page", {description: text("description").notNull(), // description of the pageicon: text("icon", { length: 256 }), // icon of the pageslug: text("slug", { length: 256 }).notNull().unique(), // which is used for https://slug.openstatus.dev- customDomain: text("custom_domain", { length: 256 })- .notNull()- .default("")- .unique(),+ customDomain: text("custom_domain", { length: 256 }).notNull(),createdAt: integer("updated_at", { mode: "timestamp" }).default(sql`(strftime('%s', 'now'))`,@@ -32,12 +29,12 @@ export const page = sqliteTable("page", {});export const pageRelations = relations(page, ({ many, one }) => ({+ monitorsToPages: many(monitorsToPages),incidents: many(incident),workspace: one(workspace, {fields: [page.workspaceId],references: [workspace.id],}),- monitors: many(monitor),}));// Schema for inserting a Page - can be used to validate API requests@@ -45,5 +42,9 @@ export const insertPageSchema = createInsertSchema(page, {customDomain: z.string().optional(),});+export const insertPageSchemaWithMonitors = insertPageSchema.extend({+ customDomain: z.string().optional().default(""),+ monitors: z.array(z.number()).optional(),+});// Schema for selecting a Page - can be used to validate API responsesexport const selectPageSchema = createSelectSchema(page);diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex e0cd81f69..774aa14ed 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -46,7 +46,7 @@ importers:dependencies:'@clerk/nextjs':specifier: 4.21.14'@hookform/resolvers':specifier: ^3.1.1version: 3.1.1([email protected])@@ -121,7 +121,7 @@ importers:version: 10.32.0(@trpc/[email protected])'@trpc/next':specifier: 10.32.0- version: 10.32.0(@tanstack/[email protected])(@trpc/[email protected])(@trpc/[email protected])(@trpc/[email protected])([email protected])([email protected])([email protected])+ version: 10.32.0(@tanstack/[email protected])(@trpc/[email protected])(@trpc/[email protected])(@trpc/[email protected])([email protected])([email protected])([email protected])'@trpc/react-query':specifier: 10.32.0version: 10.32.0(@tanstack/[email protected])(@trpc/[email protected])(@trpc/[email protected])([email protected])([email protected])@@ -159,14 +159,14 @@ importers:specifier: ^4.0.2version: 4.0.2next:- specifier: 13.4.8- version: 13.4.8(@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected])+ specifier: 13.4.12+ version: 13.4.12(@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected])next-contentlayer:specifier: 0.3.4- version: 0.3.4([email protected])([email protected])([email protected])([email protected])([email protected])+ version: 0.3.4([email protected])([email protected])([email protected])([email protected])([email protected])next-plausible:specifier: 3.7.2react:specifier: 18.2.0version: 18.2.0@@ -254,7 +254,7 @@ importers:dependencies:'@clerk/nextjs':specifier: 4.21.10'@openstatus/db':specifier: workspace:^version: link:../db@@ -758,7 +758,7 @@ packages:tslib: 2.4.1dev: falseresolution: {integrity: sha512-5G02qZOBwbYvBxbHVPKpINyhZ1a3TLZ3noBExx5JHo8+UbpEp7ENd1TyFF/oO0EWG/VTbloP1Gegjm2XG9KeKw==}engines: {node: '>=14'}peerDependencies:@@ -770,14 +770,14 @@ packages:'@clerk/clerk-react': 4.20.5([email protected])'@clerk/clerk-sdk-node': 4.10.12'@clerk/types': 3.46.0- next: 13.4.8(@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected])+ next: 13.4.12(@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected])path-to-regexp: 6.2.1react: 18.2.0react-dom: 18.2.0([email protected])tslib: 2.4.1dev: falseresolution: {integrity: sha512-r+s9EKG0CPPj31p6UZmxPQ2A3+JVE70PmBYiC/pRrF3Oo57pYJGVmBB+eUWVYaYJNcJxhYoYb/QLsL8Xl0dUVQ==}engines: {node: '>=14'}peerDependencies:@@ -789,7 +789,7 @@ packages:'@clerk/clerk-react': 4.22.0([email protected])'@clerk/clerk-sdk-node': 4.10.15'@clerk/types': 3.46.1- next: 13.4.8(@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected])+ next: 13.4.12(@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected])path-to-regexp: 6.2.1react: 18.2.0react-dom: 18.2.0([email protected])@@ -2090,8 +2090,8 @@ packages:- supports-colordev: false- /@next/[email protected]:- resolution: {integrity: sha512-twuSf1klb3k9wXI7IZhbZGtFCWvGD4wXTY2rmvzIgVhXhs7ISThrbNyutBx3jWIL8Y/Hk9+woytFz5QsgtcRKQ==}+ /@next/[email protected]:+ resolution: {integrity: sha512-RmHanbV21saP/6OEPBJ7yJMuys68cIf8OBBWd7+uj40LdpmswVAwe1uzeuFyUsd6SfeITWT3XnQfn6wULeKwDQ==}dev: false/@next/[email protected]:@@ -2100,8 +2100,8 @@ packages:glob: 7.1.7dev: false- /@next/[email protected]:- resolution: {integrity: sha512-MSFplVM4dTWOuKAUv0XR9gY7AWtMSBu9os9f+kp+s5rWhM1I2CdR3obFttd6366nS/W/VZxbPM5oEIdlIa46zA==}+ /@next/[email protected]:+ resolution: {integrity: sha512-deUrbCXTMZ6ZhbOoloqecnUeNpUOupi8SE2tx4jPfNS9uyUR9zK4iXBvH65opVcA/9F5I/p8vDXSYbUlbmBjZg==}engines: {node: '>= 10'}cpu: [arm64]os: [darwin]@@ -2109,8 +2109,8 @@ packages:dev: falseoptional: true- /@next/[email protected]:- resolution: {integrity: sha512-Reox+UXgonon9P0WNDE6w85DGtyBqGitl/ryznOvn6TvfxEaZIpTgeu3ZrJLU9dHSMhiK7YAM793mE/Zii2/Qw==}+ /@next/[email protected]:+ resolution: {integrity: sha512-WRvH7RxgRHlC1yb5oG0ZLx8F7uci9AivM5/HGGv9ZyG2Als8Ij64GC3d+mQ5sJhWjusyU6T6V1WKTUoTmOB0zQ==}engines: {node: '>= 10'}cpu: [x64]os: [darwin]@@ -2118,8 +2118,8 @@ packages:dev: falseoptional: true- /@next/[email protected]:- resolution: {integrity: sha512-kdyzYvAYtqQVgzIKNN7e1rLU8aZv86FDSRqPlOkKZlvqudvTO0iohuTPmnEEDlECeBM6qRPShNffotDcU/R2KA==}+ /@next/[email protected]:+ resolution: {integrity: sha512-YEKracAWuxp54tKiAvvq73PUs9lok57cc8meYRibTWe/VdPB2vLgkTVWFcw31YDuRXdEhdX0fWS6Q+ESBhnEig==}engines: {node: '>= 10'}cpu: [arm64]os: [linux]@@ -2127,8 +2127,8 @@ packages:dev: falseoptional: true- /@next/[email protected]:- resolution: {integrity: sha512-oWxx4yRkUGcR81XwbI+T0zhZ3bDF6V1aVLpG+C7hSG50ULpV8gC39UxVO22/bv93ZlcfMY4zl8xkz9Klct6dpQ==}+ /@next/[email protected]:+ resolution: {integrity: sha512-LhJR7/RAjdHJ2Isl2pgc/JaoxNk0KtBgkVpiDJPVExVWA1c6gzY57+3zWuxuyWzTG+fhLZo2Y80pLXgIJv7g3g==}engines: {node: '>= 10'}cpu: [arm64]os: [linux]@@ -2136,8 +2136,8 @@ packages:dev: falseoptional: true- /@next/[email protected]:- resolution: {integrity: sha512-anhtvuO6eE9YRhYnaEGTfbpH3L5gT/9qPFcNoi6xS432r/4DAtpJY8kNktqkTVevVIC/pVumqO8tV59PR3zbNg==}+ /@next/[email protected]:+ resolution: {integrity: sha512-1DWLL/B9nBNiQRng+1aqs3OaZcxC16Nf+mOnpcrZZSdyKHek3WQh6j/fkbukObgNGwmCoVevLUa/p3UFTTqgqg==}engines: {node: '>= 10'}cpu: [x64]os: [linux]@@ -2145,8 +2145,8 @@ packages:dev: falseoptional: true- /@next/[email protected]:- resolution: {integrity: sha512-aR+J4wWfNgH1DwCCBNjan7Iumx0lLtn+2/rEYuhIrYLY4vnxqSVGz9u3fXcgUwo6Q9LT8NFkaqK1vPprdq+BXg==}+ /@next/[email protected]:+ resolution: {integrity: sha512-kEAJmgYFhp0VL+eRWmUkVxLVunn7oL9Mdue/FS8yzRBVj7Z0AnIrHpTIeIUl1bbdQq1VaoOztnKicAjfkLTRCQ==}engines: {node: '>= 10'}cpu: [x64]os: [linux]@@ -2154,8 +2154,8 @@ packages:dev: falseoptional: true- /@next/[email protected]:- resolution: {integrity: sha512-OWBKIrJwQBTqrat0xhxEB/jcsjJR3+diD9nc/Y8F1mRdQzsn4bPsomgJyuqPVZs6Lz3K18qdIkvywmfSq75SsQ==}+ /@next/[email protected]:+ resolution: {integrity: sha512-GMLuL/loR6yIIRTnPRY6UGbLL9MBdw2anxkOnANxvLvsml4F0HNIgvnU3Ej4BjbqMTNjD4hcPFdlEow4XHPdZA==}engines: {node: '>= 10'}cpu: [arm64]os: [win32]@@ -2163,8 +2163,8 @@ packages:dev: falseoptional: true- /@next/[email protected]:- resolution: {integrity: sha512-agiPWGjUndXGTOn4ChbKipQXRA6/UPkywAWIkx7BhgGv48TiJfHTK6MGfBoL9tS6B4mtW39++uy0wFPnfD0JWg==}+ /@next/[email protected]:+ resolution: {integrity: sha512-PhgNqN2Vnkm7XaMdRmmX0ZSwZXQAtamBVSa9A/V1dfKQCV1rjIZeiy/dbBnVYGdj63ANfsOR/30XpxP71W0eww==}engines: {node: '>= 10'}cpu: [ia32]os: [win32]@@ -2172,8 +2172,8 @@ packages:dev: falseoptional: true- /@next/[email protected]:- resolution: {integrity: sha512-UIRKoByVKbuR6SnFG4JM8EMFlJrfEGuUQ1ihxzEleWcNwRMMiVaCj1KyqfTOW8VTQhJ0u8P1Ngg6q1RwnIBTtw==}+ /@next/[email protected]:+ resolution: {integrity: sha512-Z+56e/Ljt0bUs+T+jPjhFyxYBcdY2RIq9ELFU+qAMQMteHo7ymbV7CKmlcX59RI9C4YzN8PgMgLyAoi916b5HA==}engines: {node: '>= 10'}cpu: [x64]os: [win32]@@ -3921,7 +3921,7 @@ packages:'@trpc/server': 10.32.0dev: false- /@trpc/[email protected](@tanstack/[email protected])(@trpc/[email protected])(@trpc/[email protected])(@trpc/[email protected])([email protected])([email protected])([email protected]):+ /@trpc/[email protected](@tanstack/[email protected])(@trpc/[email protected])(@trpc/[email protected])(@trpc/[email protected])([email protected])([email protected])([email protected]):resolution: {integrity: sha512-qJ3yvJDTVmiOOPW1x/FCpmOvtcMJXnP2t3EbcUFrqwgH+D1KdbU2Kk1iSa89Gwy/BBEmXUxaKkWoM3e4Id80gw==}peerDependencies:'@tanstack/react-query': ^4.18.0@@ -3936,7 +3936,7 @@ packages:'@trpc/client': 10.32.0(@trpc/[email protected])'@trpc/react-query': 10.32.0(@tanstack/[email protected])(@trpc/[email protected])(@trpc/[email protected])([email protected])([email protected])'@trpc/server': 10.32.0- next: 13.4.8(@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected])+ next: 13.4.12(@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected])react: 18.2.0react-dom: 18.2.0([email protected])react-ssr-prepass: 1.5.0([email protected])@@ -8360,7 +8360,7 @@ packages:resolution: {integrity: sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==}dev: true- /[email protected]([email protected])([email protected])([email protected])([email protected])([email protected]):+ /[email protected]([email protected])([email protected])([email protected])([email protected])([email protected]):resolution: {integrity: sha512-UtUCwgAl159KwfhNaOwyiI7Lg6sdioyKMeh+E7jxx0CJ29JuXGxBEYmCI6+72NxFGIFZKx8lvttbbQhbnYWYSw==}peerDependencies:contentlayer: 0.3.4@@ -8371,7 +8371,7 @@ packages:'@contentlayer/core': 0.3.4([email protected])'@contentlayer/utils': 0.3.4contentlayer: 0.3.4([email protected])- next: 13.4.8(@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected])+ next: 13.4.12(@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected])react: 18.2.0react-dom: 18.2.0([email protected])transitivePeerDependencies:@@ -8381,14 +8381,14 @@ packages:- supports-colordev: falseresolution: {integrity: sha512-9PqFiVtD1kZO5gHFYTcgilHhg2WhMzD6I4NK/RUh9DGavD1N11IhNAvyGLFmvB3f4FtHC9IoAsauYDtQBt+riA==}peerDependencies:next: ^11.1.0 || ^12.0.0 || ^13.0.0react: ^16.8.0 || ^17.0.0 || ^18.0.0react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0dependencies:- next: 13.4.8(@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected])+ next: 13.4.12(@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected])react: 18.2.0react-dom: 18.2.0([email protected])dev: false@@ -8397,8 +8397,8 @@ packages:resolution: {integrity: sha512-CXdUiJembsNjuToQvxayPZF9Vqht7hewsvy2sOWafLvi2awflj9mOC6bHIg50orX8IJvWKY9wYQ/zB2kogPslQ==}dev: true- /[email protected](@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected]):- resolution: {integrity: sha512-lxUjndYKjZHGK3CWeN2RI+/6ni6EUvjiqGWXAYPxUfGIdFGQ5XoisrqAJ/dF74aP27buAfs8MKIbIMMdxjqSBg==}+ /[email protected](@babel/[email protected])(@opentelemetry/[email protected])([email protected])([email protected]):+ resolution: {integrity: sha512-eHfnru9x6NRmTMcjQp6Nz0J4XH9OubmzOa7CkWL+AUrUxpibub3vWwttjduu9No16dug1kq04hiUUpo7J3m3Xw==}engines: {node: '>=16.8.0'}hasBin: truepeerDependencies:@@ -8415,7 +8415,7 @@ packages:sass:optional: truedependencies:- '@next/env': 13.4.8+ '@next/env': 13.4.12'@opentelemetry/api': 1.4.1'@swc/helpers': 0.5.1busboy: 1.6.0@@ -8427,15 +8427,15 @@ packages:watchpack: 2.4.0zod: 3.21.4optionalDependencies:- '@next/swc-darwin-arm64': 13.4.8- '@next/swc-darwin-x64': 13.4.8- '@next/swc-linux-arm64-gnu': 13.4.8- '@next/swc-linux-arm64-musl': 13.4.8- '@next/swc-linux-x64-gnu': 13.4.8- '@next/swc-linux-x64-musl': 13.4.8- '@next/swc-win32-arm64-msvc': 13.4.8- '@next/swc-win32-ia32-msvc': 13.4.8- '@next/swc-win32-x64-msvc': 13.4.8+ '@next/swc-darwin-arm64': 13.4.12+ '@next/swc-darwin-x64': 13.4.12+ '@next/swc-linux-arm64-gnu': 13.4.12+ '@next/swc-linux-arm64-musl': 13.4.12+ '@next/swc-linux-x64-gnu': 13.4.12+ '@next/swc-linux-x64-musl': 13.4.12+ '@next/swc-win32-arm64-msvc': 13.4.12+ '@next/swc-win32-ia32-msvc': 13.4.12+ '@next/swc-win32-x64-msvc': 13.4.12transitivePeerDependencies:- '@babel/core'- babel-plugin-macros