fix: enforce work product taxonomy

This commit is contained in:
ZacharyZhang-NY committed 2026-04-23 22:44:41 -04:00
1 parent fa53d15822
commit 67ccfc1160
9 files changed
+261 -38

No files matched your search

+7
View File
@@ -235,6 +235,13 @@ export type DocumentType =
export type DocumentStatus = "draft" | "in_review" | "approved" | "archived" | "superseded";
export type {
WorkProductType,
WorkProductProvider,
WorkProductStatus,
WorkProductReviewState,
} from "../contracts/schemas-work-products";
export type KnowledgeCategory =
| "lesson_learned"
| "best_practice"
+8 -4
View File
@@ -23,6 +23,10 @@ import type {
ThreadWaitingFor,
ThreadNotifyOn,
DepartmentId,
WorkProductType,
WorkProductProvider,
WorkProductStatus,
WorkProductReviewState,
} from "./enums";
export interface SocialAccountRecord {
@@ -103,13 +107,13 @@ export interface WorkProductRecord {
projectId: string | null;
taskId: string | null;
workspaceId: string | null;
type: string;
provider: string;
type: WorkProductType;
provider: WorkProductProvider;
externalId: string | null;
title: string;
url: string | null;
status: string;
reviewState: string;
status: WorkProductStatus;
reviewState: WorkProductReviewState;
isPrimary: boolean;
summary: string | null;
metadataJson: string | null;