Skip to content

Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.

chore: update missing types

Marc Seitz44e47cdf9ec3
diff --git a/components/view/dataroom/document-card.tsx b/components/view/dataroom/document-card.tsx
index 95c54fa2..fac7d3ff 100644
--- a/components/view/dataroom/document-card.tsx
+++ b/components/view/dataroom/document-card.tsx
@@ -32,6 +32,7 @@ type DRDocument = {
downloadOnly: boolean;
versions: DocumentVersion[];
canDownload: boolean;
+ hierarchicalIndex: string | null;
};
type DocumentsCardProps = {
diff --git a/components/view/viewer/dataroom-viewer.tsx b/components/view/viewer/dataroom-viewer.tsx
index 75f0ccb1..762c9a5a 100644
--- a/components/view/viewer/dataroom-viewer.tsx
+++ b/components/view/viewer/dataroom-viewer.tsx
@@ -100,6 +100,7 @@ type DataroomDocument = {
versions: DocumentVersion[];
canDownload: boolean;
canView: boolean;
+ hierarchicalIndex: string | null;
};
const getParentFolders = (
diff --git a/pages/room_ppreview_demo.tsx b/pages/room_ppreview_demo.tsx
index 6274a6bc..2f30caa0 100644
--- a/pages/room_ppreview_demo.tsx
+++ b/pages/room_ppreview_demo.tsx
@@ -73,6 +73,7 @@ export default function ViewPage() {
parentId: null,
dataroomId: "1",
orderIndex: 0,
+ hierarchicalIndex: null,
path: "/",
createdAt: new Date(),
updatedAt: new Date(),
@@ -83,6 +84,7 @@ export default function ViewPage() {
parentId: null,
dataroomId: "1",
orderIndex: 1,
+ hierarchicalIndex: null,
path: "/",
createdAt: new Date(),
updatedAt: new Date(),
@@ -94,6 +96,7 @@ export default function ViewPage() {
name: "Q4 Report.pdf",
dataroomDocumentId: "1",
folderId: null,
+ hierarchicalIndex: null,
versions: [
{
id: "1",
@@ -122,6 +125,7 @@ export default function ViewPage() {
parentId: null,
dataroomId: "1",
orderIndex: 0,
+ hierarchicalIndex: null,
path: "/",
createdAt: new Date(),
updatedAt: new Date(),
@@ -142,6 +146,7 @@ export default function ViewPage() {
parentId: null,
dataroomId: "1",
orderIndex: 1,
+ hierarchicalIndex: null,
path: "/",
createdAt: new Date(),
updatedAt: new Date(),
@@ -162,6 +167,7 @@ export default function ViewPage() {
dataroomDocumentId: "1",
downloadOnly: false,
canDownload: false,
+ hierarchicalIndex: null,
versions: [
{
id: "1",