initial vitepress site with basic nav
This commit is contained in:
parent
a7df2e049d
commit
2029f16583
1900 changed files with 1014692 additions and 0 deletions
49
node_modules/@algolia/client-personalization/dist/client-personalization.cjs.js
generated
vendored
Normal file
49
node_modules/@algolia/client-personalization/dist/client-personalization.cjs.js
generated
vendored
Normal file
|
@ -0,0 +1,49 @@
|
|||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, '__esModule', { value: true });
|
||||
|
||||
var clientCommon = require('@algolia/client-common');
|
||||
var transporter = require('@algolia/transporter');
|
||||
var requesterCommon = require('@algolia/requester-common');
|
||||
|
||||
const createPersonalizationClient = options => {
|
||||
const region = options.region || 'us';
|
||||
const auth = clientCommon.createAuth(clientCommon.AuthMode.WithinHeaders, options.appId, options.apiKey);
|
||||
const transporter$1 = transporter.createTransporter({
|
||||
hosts: [{ url: `personalization.${region}.algolia.com` }],
|
||||
...options,
|
||||
headers: {
|
||||
...auth.headers(),
|
||||
...{ 'content-type': 'application/json' },
|
||||
...options.headers,
|
||||
},
|
||||
queryParameters: {
|
||||
...auth.queryParameters(),
|
||||
...options.queryParameters,
|
||||
},
|
||||
});
|
||||
return clientCommon.addMethods({ appId: options.appId, transporter: transporter$1 }, options.methods);
|
||||
};
|
||||
|
||||
const getPersonalizationStrategy = (base) => {
|
||||
return (requestOptions) => {
|
||||
return base.transporter.read({
|
||||
method: requesterCommon.MethodEnum.Get,
|
||||
path: '1/strategies/personalization',
|
||||
}, requestOptions);
|
||||
};
|
||||
};
|
||||
|
||||
const setPersonalizationStrategy = (base) => {
|
||||
return (personalizationStrategy, requestOptions) => {
|
||||
return base.transporter.write({
|
||||
method: requesterCommon.MethodEnum.Post,
|
||||
path: '1/strategies/personalization',
|
||||
data: personalizationStrategy,
|
||||
}, requestOptions);
|
||||
};
|
||||
};
|
||||
|
||||
exports.createPersonalizationClient = createPersonalizationClient;
|
||||
exports.getPersonalizationStrategy = getPersonalizationStrategy;
|
||||
exports.setPersonalizationStrategy = setPersonalizationStrategy;
|
93
node_modules/@algolia/client-personalization/dist/client-personalization.d.ts
generated
vendored
Normal file
93
node_modules/@algolia/client-personalization/dist/client-personalization.d.ts
generated
vendored
Normal file
|
@ -0,0 +1,93 @@
|
|||
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 { }
|
43
node_modules/@algolia/client-personalization/dist/client-personalization.esm.js
generated
vendored
Normal file
43
node_modules/@algolia/client-personalization/dist/client-personalization.esm.js
generated
vendored
Normal file
|
@ -0,0 +1,43 @@
|
|||
import { createAuth, AuthMode, addMethods } from '@algolia/client-common';
|
||||
import { createTransporter } from '@algolia/transporter';
|
||||
import { MethodEnum } from '@algolia/requester-common';
|
||||
|
||||
const createPersonalizationClient = options => {
|
||||
const region = options.region || 'us';
|
||||
const auth = createAuth(AuthMode.WithinHeaders, options.appId, options.apiKey);
|
||||
const transporter = createTransporter({
|
||||
hosts: [{ url: `personalization.${region}.algolia.com` }],
|
||||
...options,
|
||||
headers: {
|
||||
...auth.headers(),
|
||||
...{ 'content-type': 'application/json' },
|
||||
...options.headers,
|
||||
},
|
||||
queryParameters: {
|
||||
...auth.queryParameters(),
|
||||
...options.queryParameters,
|
||||
},
|
||||
});
|
||||
return addMethods({ appId: options.appId, transporter }, options.methods);
|
||||
};
|
||||
|
||||
const getPersonalizationStrategy = (base) => {
|
||||
return (requestOptions) => {
|
||||
return base.transporter.read({
|
||||
method: MethodEnum.Get,
|
||||
path: '1/strategies/personalization',
|
||||
}, requestOptions);
|
||||
};
|
||||
};
|
||||
|
||||
const setPersonalizationStrategy = (base) => {
|
||||
return (personalizationStrategy, requestOptions) => {
|
||||
return base.transporter.write({
|
||||
method: MethodEnum.Post,
|
||||
path: '1/strategies/personalization',
|
||||
data: personalizationStrategy,
|
||||
}, requestOptions);
|
||||
};
|
||||
};
|
||||
|
||||
export { createPersonalizationClient, getPersonalizationStrategy, setPersonalizationStrategy };
|
2
node_modules/@algolia/client-personalization/index.js
generated
vendored
Normal file
2
node_modules/@algolia/client-personalization/index.js
generated
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
// eslint-disable-next-line functional/immutable-data, import/no-commonjs
|
||||
module.exports = require('./dist/client-personalization.cjs.js');
|
23
node_modules/@algolia/client-personalization/package.json
generated
vendored
Normal file
23
node_modules/@algolia/client-personalization/package.json
generated
vendored
Normal file
|
@ -0,0 +1,23 @@
|
|||
{
|
||||
"name": "@algolia/client-personalization",
|
||||
"version": "4.17.0",
|
||||
"private": false,
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git://github.com/algolia/algoliasearch-client-javascript.git"
|
||||
},
|
||||
"license": "MIT",
|
||||
"sideEffects": false,
|
||||
"main": "index.js",
|
||||
"module": "dist/client-personalization.esm.js",
|
||||
"types": "dist/client-personalization.d.ts",
|
||||
"files": [
|
||||
"index.js",
|
||||
"dist"
|
||||
],
|
||||
"dependencies": {
|
||||
"@algolia/client-common": "4.17.0",
|
||||
"@algolia/requester-common": "4.17.0",
|
||||
"@algolia/transporter": "4.17.0"
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue