// Copyright © 2022-2026 Partium, Inc. DBA Partium export declare enum THEME { LIGHT = "light", DARK = "dark" } export interface OrganizationListItemFromAPI { partiumId: string; name: string; displayName?: string; parentName?: string; hasSuborgs?: boolean; requiresAdditionalAuthentication?: boolean; } export interface OrganizationFromAPI extends OrganizationListItemFromAPI { config?: { defaultSearchLanguage?: string; availableSearchLanguages?: string[]; availableUiLanguages?: string[]; smmsLanguages?: string[]; ecr?: { email?: string; contactPhoneNumber?: string; }; }; ci?: { format?: string; theme?: 'dark' | 'light'; colors?: { [id: string]: string; }; assets?: { [id: string]: string; }; }; /** List of enabled permissions for the current user in this organisation. */ permissions?: string[]; } /** * Advanced configuration parameters for this organization */ export interface OrganizationConfig { defaultSearchLanguage?: string; availableSearchLanguages?: string[]; availableUiLanguages?: string[]; smmsLanguages?: string[]; ecr?: { email?: string; contactPhoneNumber?: string; }; } export interface OrganizationCI { format?: string; theme?: THEME; colors?: { [id: string]: string; }; assets?: { [id: string]: string; }; } export interface OrganizationListItem { partiumId: string; name: string; displayName?: string; requiresAdditionalAuthentication?: boolean; hasSuborgs?: boolean; parentName?: string; } export interface Organization extends OrganizationListItem { config: OrganizationConfig; ci: OrganizationCI; /** list of all permissions, the user has in this organization */ permissions: string[]; } export declare const organizationHasPermission: (organization: Organization | undefined, permission: string) => boolean; export declare const organizationListItemFromAPIResponse: (data: OrganizationListItemFromAPI) => OrganizationListItem; export declare const organizationFromAPIResponse: (data: OrganizationFromAPI) => Organization;