Skip to content

armgit / papra

Public Imported from GitHub
0

The minimalistic document archiving platform.

feat(custom-properties): export type from server constants (#1145)

Corentin Thomasset0c90b776defd
diff --git a/apps/papra-client/src/modules/custom-properties/custom-properties.types.ts b/apps/papra-client/src/modules/custom-properties/custom-properties.types.ts
index cad4ce13..9d2d5cc9 100644
--- a/apps/papra-client/src/modules/custom-properties/custom-properties.types.ts
+++ b/apps/papra-client/src/modules/custom-properties/custom-properties.types.ts
@@ -1,4 +1,8 @@
-export type CustomPropertyType = 'text' | 'number' | 'date' | 'boolean' | 'select' | 'multi_select' | 'user_relation' | 'document_relation';
+import type { CustomPropertyType } from '@papra/app-server/customProperties/constants';
+
+export {
+ CustomPropertyType,
+};
export type DocumentCustomProperty = {
key: string;
diff --git a/apps/papra-server/package.json b/apps/papra-server/package.json
index 5ecbe67c..cfa36578 100644
--- a/apps/papra-server/package.json
+++ b/apps/papra-server/package.json
@@ -8,7 +8,8 @@
"license": "AGPL-3.0-or-later",
"keywords": [],
"exports": {
- "./organizations/constants": "./src/modules/organizations/organizations.constants.ts"
+ "./organizations/constants": "./src/modules/organizations/organizations.constants.ts",
+ "./customProperties/constants": "./src/modules/custom-properties/custom-properties.constants.ts"
},
"scripts": {
"dev": "tsx watch --env-file-if-exists=.env src/index.ts | crowlog-pretty",