interface Organization {
    addressLine1: string;
    addressLine2: string;
    addressLine3: string;
    ancestorIds: string[];
    ancestorNamePath: string;
    auditStatus: "waiting_for_review" | "in_review" | "rejected" | "approved" | "change_requested" | "waiting_for_change_review";
    branchName: string;
    certificateImageId: string;
    certifiedQualifications: Qualification[];
    childrenCount: number;
    createdAt: Date;
    customFields: Record<string, unknown>;
    depth: number;
    description: string;
    iconImageId: string;
    id: string;
    logoImageId: string;
    name: string;
    numberOfProjects: string;
    parentId: null | string;
    phoneNumber: string;
    pictureUrl: string;
    postalCode: string;
    qualifications: Qualification[];
    reviewStats?: {
        averageRate?: number;
        averageSubRates?: Record<string, number>;
        totalCount?: number;
    };
    size: string;
    status: "cancelled" | "normal" | "restricted" | "prohibited";
    typeId: string;
    updatedAt: Date;
    url: string;
    users: OrganizationUser[];
}

Hierarchy (view full)

Implemented by

Properties

addressLine1: string
addressLine2: string
addressLine3: string
ancestorIds: string[]

The ancestor organization IDs (in order from root to this organization)

ancestorNamePath: string

The ancestor organization name path (comma separated name path, starting from root)

auditStatus: "waiting_for_review" | "in_review" | "rejected" | "approved" | "change_requested" | "waiting_for_change_review"
branchName: string
certificateImageId: string
certifiedQualifications: Qualification[]
childrenCount: number

The number of children this organization has

createdAt: Date
customFields: Record<string, unknown>
depth: number

The depth that this organization is in the tree

description: string
iconImageId: string
id: string
logoImageId: string
name: string
numberOfProjects: string
parentId: null | string

The parent organization's ID

phoneNumber: string
pictureUrl: string
postalCode: string
qualifications: Qualification[]
reviewStats?: {
    averageRate?: number;
    averageSubRates?: Record<string, number>;
    totalCount?: number;
}

Type declaration

  • Optional averageRate?: number
  • Optional averageSubRates?: Record<string, number>
  • Optional totalCount?: number
size: string
status: "cancelled" | "normal" | "restricted" | "prohibited"
typeId: string
updatedAt: Date
url: string

Generated using TypeDoc