Skip to content
Sarj Workspace Sync

org-sync/org-chart

@sarj-ai/workspace-sync/org-sync/org-chart ยท Source

import { type GoogleDirectoryUser, type GoogleGitHubProfile } from "./model.ts";
export interface OrgChartPolicy {
allowedEmptyDepartmentGoogleUserIds: readonly string[];
excludedGoogleUserIds: readonly string[];
expectedRootGoogleUserIds: readonly string[];
minimumGoogleParticipants: number;
protectedDepartedGoogleUserIds: readonly string[];
}
export interface OrgChartArtifact {
people: number;
svg: string;
}
export interface ChartPerson {
department: string;
email: string;
githubProfile: GoogleGitHubProfile | null;
id: string;
linkedinUrl: null | string;
managerId: null | string;
name: string;
title: string;
}
export declare function renderOrgChartSvg(users: readonly GoogleDirectoryUser[], excludedGoogleUserIds?: readonly string[]): string;
export declare function renderOrgChartArtifact(users: readonly GoogleDirectoryUser[], policy: OrgChartPolicy): OrgChartArtifact;
export declare function chartPeople(users: readonly GoogleDirectoryUser[], policy: OrgChartPolicy): ChartPerson[];
export declare function orgChartParticipants(users: readonly GoogleDirectoryUser[], policy: OrgChartPolicy): GoogleDirectoryUser[];