import { Response } from "src/server"; import { Resource } from "../resource"; import { APIProfileTraitCondition, StoreProfileTraitCondition } from "./interfaces"; export declare class ProfileTraitCondition extends Resource { /** * The profile the profile-trait-condition belongs to. */ profileId: string; /** * The reconmendation trait condition the profile-trait-condition belongs to. */ recommendationTraitConditionId: string; /** * The profile-trait-condition's score. */ score: number; constructor(profileId: string, recommendationTraitConditionId: string, score: number); /** * The name of the profile-trait-condition resource on the API server. */ static get resourceName(): string; /** * The name of the service containing the profile-trait-condition resource. */ static get serviceName(): string; /** * Convert the profile-trait-condition into a JSON serializable * object for the API server. */ serializeAPI(): APIProfileTraitCondition; /** * Deserialize the data from the API server. * * @param data The profile-trait-condition data from the API server. */ deserializeAPI(data: APIProfileTraitCondition): void; /** * Serialize the profile-trait-condition into a format for storing in the Redux store. */ serializeRedux(): StoreProfileTraitCondition; /** * Handle any http errors. * * @param response The response. * * @returns `null`. */ protected static handleError(response: Response): null; /** * Create a profile-trait-condition from the API server data. * * @param data Data from the api server. * * @returns The profile-trait-condition object. */ static apiFactory(data: APIProfileTraitCondition): ProfileTraitCondition; /** * Create a profile-trait-condition from the Redux store data. * * @param data Data from the api server. * * @returns The profile-trait-condition object. */ static reduxFactory(data: StoreProfileTraitCondition): ProfileTraitCondition; }