@omnia/fx-models
Version:
Provide Omnia Fx Models Stuffs.
19 lines (18 loc) • 1.06 kB
TypeScript
import { ApiPath, EnterprisePropertyDataTypeIds, EnterprisePropertyToPropertySettingsMap, IExtendApiManifestWithConfiguration, PropertyDefinition, PropertySetting } from "@omnia/fx-models";
export interface IEnterprisePropertyToPropertySettingMappingApi {
getEnterprisePropertySetting: (enterprisePropertyDataTypeId: string) => Promise<EnterprisePropertyToPropertySettingsMap>;
registerEnterprisePropertyToPropertySettingMap: (propDefinitionCtor: new () => PropertyDefinition<any, any, any>, enterprisePropertyDataTypeId: EnterprisePropertyDataTypeIds, propSettingCtor?: new () => PropertySetting<any>) => void;
}
declare module "./UxApi" {
interface IOmniaUxApi {
enterprisePropertyDefinitionMapping: {
registration: Promise<IEnterprisePropertyToPropertySettingMappingApi>;
};
}
interface IOmniaUxExtendApiManifest {
enterprisePropertyDefinitionMapping: {
registration: ApiPath;
mappings: IExtendApiManifestWithConfiguration<EnterprisePropertyDataTypeIds>;
};
}
}