@omnia/fx
Version:
Provide Omnia Fx typings and tooling for clientside Omnia development.
19 lines (18 loc) • 800 B
TypeScript
import { Identity } from "@omnia/fx-models";
export interface IdentityLookupValue {
value: Identity[] | string[];
type: "Identity" | "LoginName";
}
export declare class EnterprisePropertyHandler {
private static readonly IdentityRegex;
private static readonly EmailRegex;
private static readonly RefinementValueRegex;
static handlePersonProp(value: any): IPersonEnterprisePropertyValueHandler;
static ensureEnterprisePropertiesLabel(multilingualTitle: string, isRequired: boolean, showLabel: boolean, customLabel?: string): string;
static getIdentityLookupValue(value: unknown, isOnPrem?: boolean): IdentityLookupValue;
private static hasLoginNameInRefinementValue;
}
interface IPersonEnterprisePropertyValueHandler {
getValue(): Array<Identity>;
}
export {};