@omnia/fx-models
Version:
Provide Omnia Fx Models Stuffs.
91 lines (90 loc) • 3.11 kB
TypeScript
import { Theming } from "./Theming";
import { OmniaNamedModel, IOmniaPropertyBag } from "./NamedProperty";
import { GuidValue } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
import { MediaPickerEnums, ThemeType } from "./Enums";
import { LanguageSettings } from ".";
import { MultilingualString } from "./MultilingualString";
export interface BusinessProfileIdentity {
id: GuidValue;
name: MultilingualString;
}
export interface BusinessProfile extends BusinessProfileIdentity {
}
export interface BusinessProfilePath extends BusinessProfileIdentity {
businessProfile: BusinessProfile;
appInstanceId?: GuidValue;
profileId: GuidValue;
path: string;
}
export interface BusinessProfileWithProperties extends BusinessProfileIdentity {
properties: Array<BusinessProfileProperty>;
pathProperties: Array<BusinessProfileProperty>;
path: string;
}
export interface BusinessProfilePropertyIdentifier {
serviceId: string;
name: string;
}
export interface IBusinessProfile extends BusinessProfileIdentity {
readonly propertyBag: IOmniaPropertyBag<BusinessProfileProperty>;
readonly pathPropertyBag: IOmniaPropertyBag<BusinessProfileProperty>;
}
export declare abstract class BusinessProfileProperty extends OmniaNamedModel {
}
export declare abstract class BusinessProfilePathProperty extends OmniaNamedModel {
}
export declare class BusinessProfileTheme extends BusinessProfileProperty implements Theming {
constructor();
primary: string;
secondary: string;
corporatecolors: Array<string>;
accent: string;
error: string;
info: string;
success: string;
warning: string;
type: ThemeType;
}
export interface CentralImageLocation {
webUrl?: string;
webTitle?: string;
libraryTitle?: string;
libraryId: GuidValue;
libraryUrl?: string;
libraryAbsoluteUrl?: string;
title: string;
type?: GuidValue;
providerComponentId?: GuidValue;
icon?: string;
sortOrder?: number;
selectableMediaTypes?: MediaPickerEnums.OmniaMediaTypes[];
}
export declare class BusinessProfileMediaPicker extends BusinessProfileProperty {
centralImageLocationSettings: Array<CentralImageLocation>;
constructor();
}
export declare class BusinessProfileLanguageSettings extends BusinessProfileProperty {
inheritFromTenant: boolean;
excludeCountry?: boolean;
languages: Array<LanguageSettings>;
constructor();
}
export declare class BusinessProfileHomeUrlSettings extends BusinessProfileProperty {
url: string;
msTeamsUrl: string;
constructor();
}
export declare class BusinessProfileFaviconSettings extends BusinessProfileProperty {
links?: string[];
constructor();
}
export declare abstract class BusinessProfileRelativePathValue {
protected relativePath: string;
abstract readonly prefixToken: string;
constructor(relativePath: string);
get value(): string;
}
export declare class OmniaBusinessProfileRelativePathValue extends BusinessProfileRelativePathValue {
prefixToken: string;
constructor(relativePath: string);
}