From d5843595f3836a70daee509142122dda00bf5108 Mon Sep 17 00:00:00 2001 From: Travis Tidwell Date: Mon, 4 Nov 2024 14:37:14 -0600 Subject: [PATCH] Expanding the types for Project Roles and Access Information. --- src/types/project/Project.ts | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/src/types/project/Project.ts b/src/types/project/Project.ts index a9fa03e1..40d12158 100644 --- a/src/types/project/Project.ts +++ b/src/types/project/Project.ts @@ -28,7 +28,7 @@ export type Project = { protect: boolean; settings?: ProjectSettings; remoteSecret?: string; - + builderConfig?: any; formDefaults: { revisions?: 'current' | 'original'; }; @@ -46,6 +46,11 @@ export type Project = { deleted: Date | string; }; +export type ProjectRef = { + _id?: ProjectId; + name?: string; +}; + export type ProjectType = 'project' | 'stage' | 'tenant'; export type ProjectPlan = @@ -104,3 +109,24 @@ export type ProjectApiCalls = { used: ProjectUsage; reset: Date | string; }; + +export type ProjectRole = { + _id: string; + title: string; + default: boolean; + admin: boolean; +}; + +export type FormAccessInfo = { + _id: string; + name: string; + path: string; + title: string; + access: Record; + submissionAccess: Record; +}; + +export type ProjectAccessInfo = { + roles: Record; + forms: Record; +}; \ No newline at end of file