Move document type from document to document version
Follow the same pattern used for classification: document type now lives exclusively on DocumentVersion. A migration copies existing values from documents to their versions. The document filter uses a subquery on the latest version. All three API surfaces (GraphQL, MCP, CLI), resolvers, frontend, and e2e tests are updated accordingly. Signed-off-by: Sacha Al Himdani <sacha@getprobo.com>
This commit is contained in:
@@ -20,28 +20,3 @@ export const trustCenterDocumentAccessStatus = {
|
||||
} as const;
|
||||
|
||||
export type TrustCenterDocumentAccessStatus = (typeof trustCenterDocumentAccessStatus)[keyof typeof trustCenterDocumentAccessStatus];
|
||||
|
||||
export type TrustCenterDocumentAccess = {
|
||||
id: string;
|
||||
status: TrustCenterDocumentAccessStatus;
|
||||
document?: {
|
||||
id: string;
|
||||
title: string;
|
||||
documentType: string;
|
||||
} | null;
|
||||
report?: {
|
||||
id: string;
|
||||
filename: string;
|
||||
audit?: {
|
||||
id: string;
|
||||
framework?: {
|
||||
name: string;
|
||||
} | null;
|
||||
} | null;
|
||||
} | null;
|
||||
trustCenterFile?: {
|
||||
id: string;
|
||||
name: string;
|
||||
category: string;
|
||||
} | null;
|
||||
};
|
||||
|
||||
@@ -13,6 +13,5 @@
|
||||
// PERFORMANCE OF THIS SOFTWARE.
|
||||
|
||||
export type {
|
||||
TrustCenterDocumentAccess,
|
||||
TrustCenterDocumentAccessStatus,
|
||||
} from "./TrustCenterDocumentAccess";
|
||||
|
||||
Reference in New Issue
Block a user