feat(platform): checkpoint current implementation state
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { TRPCError } from "@trpc/server";
|
||||
import { z } from "zod";
|
||||
import { COLUMN_MAP, type ColumnDef, RESOURCE_MONTH_COLUMNS } from "./report-columns.js";
|
||||
import type { ReportExplainability } from "./report-explainability.js";
|
||||
|
||||
export const ENTITY_MAP = {
|
||||
resource: "resource",
|
||||
@@ -17,12 +18,14 @@ const ALLOWED_SCALAR_FIELDS: Record<EntityKey, Set<string>> = {
|
||||
resource: new Set([
|
||||
"id", "eid", "displayName", "email", "chapter", "resourceType",
|
||||
"lcrCents", "ucrCents", "currency", "chargeabilityTarget", "fte",
|
||||
"enterpriseId", "portfolioUrl", "valueScore", "valueScoreUpdatedAt",
|
||||
"isActive", "chgResponsibility", "rolledOff", "departed",
|
||||
"postalCode", "federalState", "createdAt", "updatedAt",
|
||||
]),
|
||||
project: new Set([
|
||||
"id", "shortCode", "name", "orderType", "allocationType", "status",
|
||||
"winProbability", "budgetCents", "startDate", "endDate",
|
||||
"winProbability", "budgetCents", "shoringThreshold", "onshoreCountryCode", "color",
|
||||
"startDate", "endDate",
|
||||
"responsiblePerson", "createdAt", "updatedAt",
|
||||
]),
|
||||
assignment: new Set([
|
||||
@@ -179,6 +182,7 @@ export interface ReportQueryResult {
|
||||
columns: string[];
|
||||
totalCount: number;
|
||||
groups: ReportGroupSummary[];
|
||||
explainability?: ReportExplainability;
|
||||
}
|
||||
|
||||
export function validateReportInput(input: ReportInput | z.infer<typeof ReportTemplateConfigSchema>): void {
|
||||
|
||||
Reference in New Issue
Block a user