Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.
Merge branch 'main' into 421-slack
Ashish Viradiya4026635e7b8c
diff --cc package-lock.jsonindex 8fe2b14a,c31e4936..917895e5--- a/package-lock.json+++ b/package-lock.json@@@ -74,9 -74,9 +74,10 @@@"clsx": "^2.1.1","cmdk": "^1.1.1","date-fns": "^3.6.0",+ "date-fns-tz": "^3.2.0",+ "dub": "^0.66.1","eslint": "8.57.0",- "eslint-config-next": "^14.2.31",+ "eslint-config-next": "^14.2.32","exceljs": "^4.4.0","fluent-ffmpeg": "^2.1.3","input-otp": "^1.4.2",diff --cc package.jsonindex 2078f124,a67adeda..1a781d51--- a/package.json+++ b/package.json@@@ -85,9 -85,9 +85,10 @@@"clsx": "^2.1.1","cmdk": "^1.1.1","date-fns": "^3.6.0",+ "date-fns-tz": "^3.2.0",+ "dub": "^0.66.1","eslint": "8.57.0",- "eslint-config-next": "^14.2.31",+ "eslint-config-next": "^14.2.32","exceljs": "^4.4.0","fluent-ffmpeg": "^2.1.3","input-otp": "^1.4.2",diff --cc pages/api/links/download/bulk.tsindex 68abe96e,8bd9a742..b5cf5179--- a/pages/api/links/download/bulk.ts+++ b/pages/api/links/download/bulk.ts@@@ -7,10 -7,9 +7,10 @@@ import { ItemType, ViewType } from "@primport { getLambdaClientForTeam } from "@/lib/files/aws-client";import prisma from "@/lib/prisma";import { getIpAddress } from "@/lib/utils/ip";+import { notifyDocumentDownload } from "@/lib/slack/events";export const config = {- maxDuration: 180,+ maxDuration: 300,memory: 2048,};@@@ -47,8 -46,8 +47,9 @@@ export default async function handlegroupId: true,dataroom: {select: {+ id: true,teamId: true,+ allowBulkDownload: true,folders: {select: {id: true,diff --cc pages/api/links/download/dataroom-folder.tsindex d42b8da4,bce91770..9bdf5172--- a/pages/api/links/download/dataroom-folder.ts+++ b/pages/api/links/download/dataroom-folder.ts@@@ -8,10 -8,9 +8,10 @@@ import slugify from "@sindresorhus/slugimport { getLambdaClientForTeam } from "@/lib/files/aws-client";import prisma from "@/lib/prisma";import { getIpAddress } from "@/lib/utils/ip";+import { notifyDocumentDownload } from "@/lib/slack/events";export const config = {- maxDuration: 180,+ maxDuration: 300,};export default async function handler(diff --cc prisma/schema/schema.prismaindex 294c2dac,389e50ef..81e2e65a--- a/prisma/schema/schema.prisma+++ b/prisma/schema/schema.prisma@@@ -62,58 -62,11 +62,61 @@@ model User// conversationparticipatedConversations ConversationParticipant[]messages Message[]++ // FAQ system+ publishedFaqItems DataroomFaqItem[]}+model Team {+ id String @id @default(cuid())+ name String+ users UserTeam[]+ documents Document[]+ folders Folder[]+ domains Domain[]+ invitations Invitation[]+ sentEmails SentEmail[]+ brand Brand?+ datarooms Dataroom[]+ agreements Agreement[]+ viewerGroups ViewerGroup[]+ viewers Viewer[]++ permissionGroups PermissionGroup[]++ links Link[]+ views View[]++ plan String @default("free")+ stripeId String? @unique // Stripe customer ID+ subscriptionId String? @unique // Stripe subscription ID+ startsAt DateTime? // Stripe subscription start date+ endsAt DateTime? // Stripe subscription end date++ linkPresets LinkPreset[] // Link presets for the team++ limits Json? // Plan limits // {datarooms: 1, users: 1, domains: 1, customDomainOnPro: boolean, customDomainInDataroom: boolean}++ incomingWebhooks IncomingWebhook[]+ restrictedTokens RestrictedToken[]+ webhooks Webhook[]+ slackNotifications SlackNotification[]++ conversations Conversation[]++ uploadedDocuments DocumentUpload[]+ slackIntegration SlackIntegration?++ // team settings+ enableExcelAdvancedMode Boolean @default(false) // Enable Excel advanced mode for all documents in the team++ createdAt DateTime @default(now())+ updatedAt DateTime @updatedAt+ Tag Tag[]++ ignoredDomains String[] // Domains that are ignored for the team+ globalBlockList String[]+}model Brand {id String @id @default(cuid())logo String? // This should be a reference to where the file is stored (S3, Google Cloud Storage, etc.)