@omnia/fx
Version:
Provide Omnia Fx typings and tooling for clientside Omnia development.
27 lines (26 loc) • 1.45 kB
TypeScript
import { FontAwesomeIcon, Future, IdentityProperty, ResolvedUserIdentity, LanguagePropertyValue, PropertyBinding, PropertyDefinition, UserIdentityPropertyDefinition } from "@omnia/fx-models";
export declare class UserPresenceStatus {
private availability;
private activity;
private localizationService;
constructor(availability: string, activity: string);
get name(): string;
get icon(): FontAwesomeIcon;
get color(): "#ffffff" | "#92c353" | "#fdb913" | "#c4314b" | "#c84cb9" | "#808285";
}
export declare class UserIdentityService {
private httpClient;
private graphClient;
getUsersPresenceStatus(users: ResolvedUserIdentity[]): Future<{
[uid: string]: UserPresenceStatus;
}>;
getUserProperties(): Future<IdentityProperty[]>;
addUserProperty(property: PropertyBinding<PropertyDefinition<any, any, any>>): Future<IdentityProperty>;
createUserProperty(property: UserIdentityPropertyDefinition): Future<IdentityProperty>;
removeUserProperty(identityProperty: IdentityProperty): Future<void>;
updateUserProperty(identityProperty: IdentityProperty): Future<void>;
terminateUserProperty(identityProperty: IdentityProperty): Future<void>;
restoreIdentityProperty(identityProperty: IdentityProperty): Future<IdentityProperty>;
setUiLanguageAsync(uiLanguage: LanguagePropertyValue): Future<ResolvedUserIdentity>;
removeUiLanguageAsync(): Future<ResolvedUserIdentity>;
}