import { Injector } from "@angular/core"; import { Observable } from "rxjs"; import { FeatureRepository } from "./feature-repository"; import { Prop } from "./types"; export declare class FeatureDataService { private injector; private repository; private localeId?; constructor(injector: Injector, repository: FeatureRepository, localeId?: string); /** * 根据物料id获取物料特征项及特征值(公共默认值) * @param materialId 物料id */ getFeaturesByMaterialId(materialId: string): Observable; /** * 根据物料id及物料特征保存后的hash获取该物料已经存储的特征项值 * @param materialId 物料Id * @param configID 对应该物料的特征项hash * @returns */ getConfigedValueByFeatureId(materialId: string, configID: string, configType?: string): Observable; /** * 保存物料特征项 * @param materialId 物料id * @param charactValue 特征值 * @param configType 配置类型 * @returns */ applyFeatures(materialId: string, charactValue: any, configType?: string): Observable; /** * 获取帮助信息 * @param helpid 帮助id * @param filter 过滤条件 * @param params 参数 * @returns */ getHelpInfo(helpid: string, filter: string, params: any): Observable; /** * 国际化特征项或特征集名称 * @param object 特征集或特征项对象 * @returns */ private translateName; }