Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

Merge branch 'main' into zapier

Kiran Ke1be859f90d8
diff --cc apps/web/lib/types.ts
index 936281f59e,0e19c1b1ac..c207325e29
--- a/apps/web/lib/types.ts
+++ b/apps/web/lib/types.ts
@@@ -1,8 -1,9 +1,9 @@@
import z from "@/lib/zod";
import { metaTagsSchema } from "@/lib/zod/schemas/metatags";
import { DirectorySyncProviders } from "@boxyhq/saml-jackson";
-import { Link } from "@prisma/client";
+import { Link, Project } from "@prisma/client";
import { createLinkBodySchema } from "./zod/schemas/links";
+ import { oAuthAppSchema, oAuthAuthorizedAppSchema } from "./zod/schemas/oauth";
import { tokenSchema } from "./zod/schemas/token";
export type LinkProps = Link;
diff --cc apps/web/prisma/schema/workspace.prisma
index ad0d9b1ebf,8d2723f7df..aa4cdb98a4
--- a/apps/web/prisma/schema/workspace.prisma
+++ b/apps/web/prisma/schema/workspace.prisma
@@@ -20,21 -20,22 +20,24 @@@ model Project
tagsLimit Int @default(5)
usersLimit Int @default(1)
- createdAt DateTime @default(now())
- updatedAt DateTime @updatedAt
- usageLastChecked DateTime @default(now())
-
- users ProjectUsers[]
- invites ProjectInvite[]
- sentEmails SentEmail[]
- links Link[]
- domains Domain[]
- tags Tag[]
- customers Customer[]
- defaultDomains DefaultDomains[]
- restrictedTokens RestrictedToken[]
+ createdAt DateTime @default(now())
+ updatedAt DateTime @updatedAt
+ usageLastChecked DateTime @default(now())
+ zapierHookEnabled Boolean @default(false)
+
+ users ProjectUsers[]
+ invites ProjectInvite[]
+ sentEmails SentEmail[]
+ links Link[]
+ domains Domain[]
+ tags Tag[]
+ customers Customer[]
+ defaultDomains DefaultDomains[]
+ restrictedTokens RestrictedToken[]
+ oAuthCodes OAuthCode[]
+ oAuthApps OAuthApp[] // OAuth apps workspace published
+ oAuthAuthorizedApps OAuthAuthorizedApp[] // OAuth apps workspace authorized
+ zapierHooks ZapierHook[]
@@index(usageLastChecked(sort: Asc))
}