123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 |
- import { ClientTransporterOptions } from '@algolia/client-common';
- import { CreateClient } from '@algolia/client-common';
- import { RequestOptions } from '@algolia/transporter';
- import { Transporter } from '@algolia/transporter';
- export declare const createPersonalizationClient: CreateClient<PersonalizationClient, PersonalizationClientOptions & ClientTransporterOptions>;
- export declare const getPersonalizationStrategy: (base: PersonalizationClient) => (requestOptions?: RequestOptions | undefined) => Readonly<Promise<GetPersonalizationStrategyResponse>>;
- export declare type GetPersonalizationStrategyResponse = {
- /**
- * Events scoring
- */
- eventsScoring: Array<{
- eventName: string;
- eventType: string;
- score: number;
- }>;
- /**
- * Facets scoring
- */
- facetsScoring: Array<{
- facetName: string;
- score: number;
- }>;
- /**
- * Personalization impact
- */
- personalizationImpact: number;
- };
- export declare type PersonalizationClient = {
- /**
- * The application id.
- */
- readonly appId: string;
- /**
- * The underlying transporter.
- */
- readonly transporter: Transporter;
- };
- export declare type PersonalizationClientOptions = {
- /**
- * The application id.
- */
- readonly appId: string;
- /**
- * The api key.
- */
- readonly apiKey: string;
- /**
- * The prefered region.
- */
- readonly region?: string;
- };
- export declare type PersonalizationStrategy = {
- /**
- * Events scoring
- */
- readonly eventsScoring: ReadonlyArray<{
- readonly eventName: string;
- readonly eventType: string;
- readonly score: number;
- }>;
- /**
- * Facets scoring
- */
- readonly facetsScoring: ReadonlyArray<{
- readonly facetName: string;
- readonly score: number;
- }>;
- /**
- * Personalization impact
- */
- readonly personalizationImpact: number;
- };
- export declare const setPersonalizationStrategy: (base: PersonalizationClient) => (personalizationStrategy: PersonalizationStrategy, requestOptions?: RequestOptions | undefined) => Readonly<Promise<SetPersonalizationStrategyResponse>>;
- export declare type SetPersonalizationStrategyResponse = {
- /**
- * The status code.
- */
- status?: number;
- /**
- * The message.
- */
- message: string;
- };
- export { }
|