import { AxiosResponse } from 'axios'; import { Event } from './shared/eventstore-client/EventstoreClient'; import { ServiceClientWithEventstore } from './shared/service-client/ServiceClientWithEventstore'; export declare enum ThemeAppearance { ELEGANT = "elegant", CRAFTMANSHIP = "craftmanship" } export declare enum SortDirection { ASC = "asc", DESC = "desc" } export declare enum IdentificationMethod { NFC = "nfc", QR = "qr" } export declare enum SoMe { FACEBOOK = "facebook", INSTAGRAM = "instagram", PINTEREST = "pinterest", REDDIT = "reddit", SNAPCHAT = "snapchat", SPOTIFY = "spotify", TELEGRAM = "telegram", TUMBLR = "tumblr", TWITTER = "twitter", VIBER = "viber", VIMEO = "vimeo", VINE = "vine", WEBSITE = "website", WHATSAPP = "whatsapp", YOUTUBE = "youtube" } export interface SocialMedia { name: SoMe; url: string; order?: number; } export interface OrganizationSettings { displayName?: string; productIdentification?: { methods?: IdentificationMethod[]; }; theme?: { primaryColor?: string; backgroundColor?: string; headingColor?: string; paragraphColor?: string; iconColor?: string; buttonTextColor?: string; provenanceSortDirection?: SortDirection; appearance?: ThemeAppearance; }; links?: { termsOfService?: string; privacyPolicy?: string; cookiePolicy?: string; }; logoUrl?: string; emailLogoUrl?: string; fromEmail?: string; socialMedia?: SocialMedia[]; summaryEmailReceivers?: { ownershipRequests?: string[]; }; } export interface Organization { name: string; settings?: OrganizationSettings; } export interface PublicOrganizationSettings extends Pick { id: string; } export declare type UpdateOrganizationSettings = OrganizationSettings; export declare type PERMISSIONS = typeof GET | typeof UPDATE_SETTINGS; export declare const GET = "ORGANIZATION:GET"; export declare const UPDATE_SETTINGS = "ORGANIZATION:UPDATE:SETTINGS"; export declare const GET_EVENTS_ANY = "ORGANIZATION:GET_EVENTS:ANY"; export declare const GET_EVENTS_SETTINGS_UPDATED = "ORGANIZATION:GET_EVENTS:SETTINGS_UPDATED"; export declare const PERMISSION_NAMES: { GET: string; UPDATE_SETTINGS: string; GET_EVENTS_ANY: string; GET_EVENTS_SETTINGS_UPDATED: string; }; export interface UpdatedSettingsEvent extends Event { type: 'UPDATED_SETTINGS'; data: UpdateOrganizationSettings; } export declare type OrganizationEvents = UpdatedSettingsEvent; export declare class OrganizationClient extends ServiceClientWithEventstore { getMyOrganization(): Promise>; getPublicSettings({ orgName }: { orgName: string; }): Promise>; updateSettings(updatedSettings: UpdateOrganizationSettings): Promise>; }