algoliasearch 5.39.0 → 5.40.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -10
- package/dist/algoliasearch.umd.js +1 -1
- package/dist/browser.d.ts +1 -1
- package/dist/browser.js.map +1 -1
- package/dist/browser.min.js +1 -1
- package/dist/browser.min.js.map +1 -1
- package/dist/fetch.js.map +1 -1
- package/dist/lite/browser.d.ts +42 -42
- package/dist/lite/builds/browser.js +1 -1
- package/dist/lite/builds/browser.js.map +1 -1
- package/dist/lite/builds/browser.min.js +1 -1
- package/dist/lite/builds/browser.min.js.map +1 -1
- package/dist/lite/builds/browser.umd.js +1 -1
- package/dist/lite/builds/node.cjs +1 -1
- package/dist/lite/builds/node.cjs.map +1 -1
- package/dist/lite/builds/node.js +1 -1
- package/dist/lite/builds/node.js.map +1 -1
- package/dist/lite/node.d.cts +42 -42
- package/dist/lite/node.d.ts +42 -42
- package/dist/lite/src/liteClient.cjs +1 -1
- package/dist/lite/src/liteClient.cjs.map +1 -1
- package/dist/lite/src/liteClient.js +1 -1
- package/dist/lite/src/liteClient.js.map +1 -1
- package/dist/node.cjs.map +1 -1
- package/dist/node.d.ts +1 -1
- package/dist/node.js.map +1 -1
- package/dist/worker.d.ts +1 -1
- package/dist/worker.js.map +1 -1
- package/package.json +22 -22
- package/dist/fetch.d.ts +0 -104
- package/dist/node.d.cts +0 -104
package/dist/fetch.d.ts
DELETED
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
import { ClientOptions, RequestOptions } from '@algolia/client-common';
|
|
2
|
-
import { Region as Region$2, RegionOptions as RegionOptions$2, AbtestingV3Client } from '@algolia/abtesting';
|
|
3
|
-
export * from '@algolia/abtesting';
|
|
4
|
-
export { Region as AbtestingV3Region, RegionOptions as AbtestingV3RegionOptions } from '@algolia/abtesting';
|
|
5
|
-
import { Region as Region$1, RegionOptions as RegionOptions$1, AbtestingClient } from '@algolia/client-abtesting';
|
|
6
|
-
export * from '@algolia/client-abtesting';
|
|
7
|
-
export { ABTest, ABTestConfiguration, ABTestResponse, AbTestsVariant, AbTestsVariantSearchParams, Region as AbtestingRegion, RegionOptions as AbtestingRegionOptions, AddABTestsRequest, AddABTestsVariant, CustomSearchParams, DeleteABTestProps, EffectMetric, EmptySearchFilter, EstimateABTestRequest, EstimateABTestResponse, EstimateConfiguration, FilterEffects, GetABTestProps, ListABTestsProps, ListABTestsResponse, MinimumDetectableEffect, OutliersFilter, ScheduleABTestResponse, ScheduleABTestsRequest, Status, StopABTestProps, Variant } from '@algolia/client-abtesting';
|
|
8
|
-
import { Region as Region$3, RegionOptions as RegionOptions$3, AnalyticsClient } from '@algolia/client-analytics';
|
|
9
|
-
export * from '@algolia/client-analytics';
|
|
10
|
-
export { Region as AnalyticsRegion, RegionOptions as AnalyticsRegionOptions, Direction } from '@algolia/client-analytics';
|
|
11
|
-
import { Region as Region$5, RegionOptions as RegionOptions$5, InsightsClient } from '@algolia/client-insights';
|
|
12
|
-
export * from '@algolia/client-insights';
|
|
13
|
-
export { Region as InsightsRegion, RegionOptions as InsightsRegionOptions } from '@algolia/client-insights';
|
|
14
|
-
import { Region as Region$6, RegionOptions as RegionOptions$6, PersonalizationClient } from '@algolia/client-personalization';
|
|
15
|
-
export * from '@algolia/client-personalization';
|
|
16
|
-
export { EventType, Region as PersonalizationRegion, RegionOptions as PersonalizationRegionOptions } from '@algolia/client-personalization';
|
|
17
|
-
import { Region as Region$7, RegionOptions as RegionOptions$7, QuerySuggestionsClient } from '@algolia/client-query-suggestions';
|
|
18
|
-
export * from '@algolia/client-query-suggestions';
|
|
19
|
-
export { Region as QuerySuggestionsRegion, RegionOptions as QuerySuggestionsRegionOptions } from '@algolia/client-query-suggestions';
|
|
20
|
-
import { SearchClient, SaveObjectsOptions, PartialUpdateObjectsOptions, ReplaceAllObjectsOptions, ReplaceAllObjectsWithTransformationResponse } from '@algolia/client-search';
|
|
21
|
-
export * from '@algolia/client-search';
|
|
22
|
-
export { Action, AdvancedSyntaxFeatures, AlternativesAsExact, Anchoring, AroundPrecision, AroundRadius, AroundRadiusAll, AutomaticFacetFilter, AutomaticFacetFilters, Banner, BannerImage, BannerImageUrl, BannerLink, BaseIndexSettings, BaseSearchParams, BaseSearchParamsWithoutQuery, BaseSearchResponse, BooleanString, Condition, Consequence, ConsequenceHide, ConsequenceParams, ConsequenceQuery, ConsequenceQueryObject, CustomDeleteProps, CustomGetProps, CustomPostProps, CustomPutProps, DeleteSourceProps, DeletedAtResponse, Distinct, Edit, EditType, ErrorBase, ExactOnSingleWordQuery, Exhaustive, FacetFilters, FacetHits, FacetOrdering, FacetStats, Facets, GetTaskProps, HighlightResult, HighlightResultOption, Hit, IgnorePlurals, IndexSettingsAsSearchParams, InsideBoundingBox, Languages, MatchLevel, MatchedGeoLocation, Mode, NumericFilters, OptionalFilters, OptionalWords, Params, Personalization, Promote, PromoteObjectID, PromoteObjectIDs, QueryType, Range, RankingInfo, ReRankingApplyFilter, Redirect, RedirectRuleIndexData, RedirectRuleIndexMetadata, RedirectURL, RemoveStopWords, RemoveWordsIfNoResults, RenderingContent, SearchForFacetValuesProps, SearchForFacetValuesRequest, SearchForFacetValuesResponse, SearchHits, SearchPagination, SearchParams, SearchParamsObject, SearchParamsQuery, SearchResponse, SemanticSearch, SnippetResult, SnippetResultOption, SortRemainingBy, Source, SupportedLanguage, TagFilters, TaskStatus, TimeRange, TypoTolerance, TypoToleranceEnum, Value, Widgets, apiClientVersion } from '@algolia/client-search';
|
|
23
|
-
import { Region as Region$4, RegionOptions as RegionOptions$4, IngestionClient, WatchResponse } from '@algolia/ingestion';
|
|
24
|
-
export * from '@algolia/ingestion';
|
|
25
|
-
export { Event, EventStatus, Region as IngestionRegion, RegionOptions as IngestionRegionOptions, WatchResponse } from '@algolia/ingestion';
|
|
26
|
-
import { MonitoringClient } from '@algolia/monitoring';
|
|
27
|
-
export * from '@algolia/monitoring';
|
|
28
|
-
import { RecommendClient } from '@algolia/recommend';
|
|
29
|
-
export * from '@algolia/recommend';
|
|
30
|
-
|
|
31
|
-
type Region = Region$1 | Region$2 | Region$3 | Region$4 | Region$5 | Region$6 | Region$7;
|
|
32
|
-
type RegionOptions = RegionOptions$1 | RegionOptions$2 | RegionOptions$3 | RegionOptions$4 | RegionOptions$5 | RegionOptions$6 | RegionOptions$7;
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* Options forwarded to the client initialized via the `init` method.
|
|
36
|
-
*/
|
|
37
|
-
type InitClientOptions = Partial<{
|
|
38
|
-
/**
|
|
39
|
-
* App to target with the initialized client, defaults to the `algoliasearch` appId.
|
|
40
|
-
*/
|
|
41
|
-
appId: string;
|
|
42
|
-
/**
|
|
43
|
-
* API key of the targeted app ID, defaults to the `algoliasearch` apiKey.
|
|
44
|
-
*/
|
|
45
|
-
apiKey: string;
|
|
46
|
-
options: ClientOptions;
|
|
47
|
-
}>;
|
|
48
|
-
|
|
49
|
-
type Algoliasearch = SearchClient & {
|
|
50
|
-
initAbtesting: (initOptions: InitClientOptions & RegionOptions$1) => AbtestingClient;
|
|
51
|
-
initAbtestingV3: (initOptions: InitClientOptions & RegionOptions$2) => AbtestingV3Client;
|
|
52
|
-
initAnalytics: (initOptions: InitClientOptions & RegionOptions$3) => AnalyticsClient;
|
|
53
|
-
initIngestion: (initOptions: InitClientOptions & RegionOptions$4) => IngestionClient;
|
|
54
|
-
initInsights: (initOptions: InitClientOptions & RegionOptions$5) => InsightsClient;
|
|
55
|
-
initMonitoring: (initOptions?: InitClientOptions) => MonitoringClient;
|
|
56
|
-
initPersonalization: (initOptions: InitClientOptions & RegionOptions$6) => PersonalizationClient;
|
|
57
|
-
initQuerySuggestions: (initOptions: InitClientOptions & RegionOptions$7) => QuerySuggestionsClient;
|
|
58
|
-
initRecommend: (initOptions?: InitClientOptions) => RecommendClient;
|
|
59
|
-
/**
|
|
60
|
-
* Helper: Similar to the `saveObjects` method but requires a Push connector (https://www.algolia.com/doc/guides/sending-and-managing-data/send-and-update-your-data/connectors/push/) to be created first, in order to transform records before indexing them to Algolia. The `region` must have been passed to the client instantiation method.
|
|
61
|
-
*
|
|
62
|
-
* @summary Save objects to an Algolia index by leveraging the Transformation pipeline setup using the Push connector (https://www.algolia.com/doc/guides/sending-and-managing-data/send-and-update-your-data/connectors/push/).
|
|
63
|
-
* @param saveObjects - The `saveObjects` object.
|
|
64
|
-
* @param saveObjects.indexName - The `indexName` to save `objects` in.
|
|
65
|
-
* @param saveObjects.objects - The array of `objects` to store in the given Algolia `indexName`.
|
|
66
|
-
* @param saveObjects.batchSize - The size of the chunk of `objects`. The number of `batch` calls will be equal to `length(objects) / batchSize`. Defaults to 1000.
|
|
67
|
-
* @param saveObjects.waitForTasks - Whether or not we should wait until every `batch` tasks has been processed, this operation may slow the total execution time of this method but is more reliable.
|
|
68
|
-
* @param requestOptions - The requestOptions to send along with the query, they will be forwarded to the `push` method and merged with the transporter requestOptions.
|
|
69
|
-
*/
|
|
70
|
-
saveObjectsWithTransformation: (options: SaveObjectsOptions, requestOptions?: RequestOptions | undefined) => Promise<Array<WatchResponse>>;
|
|
71
|
-
/**
|
|
72
|
-
* Helper: Similar to the `partialUpdateObjects` method but requires a Push connector (https://www.algolia.com/doc/guides/sending-and-managing-data/send-and-update-your-data/connectors/push/) to be created first, in order to transform records before indexing them to Algolia. The `region` must have been passed to the client instantiation method.
|
|
73
|
-
*
|
|
74
|
-
* @summary Save objects to an Algolia index by leveraging the Transformation pipeline setup in the Push connector (https://www.algolia.com/doc/guides/sending-and-managing-data/send-and-update-your-data/connectors/push/).
|
|
75
|
-
* @param partialUpdateObjects - The `partialUpdateObjects` object.
|
|
76
|
-
* @param partialUpdateObjects.indexName - The `indexName` to update `objects` in.
|
|
77
|
-
* @param partialUpdateObjects.objects - The array of `objects` to update in the given Algolia `indexName`.
|
|
78
|
-
* @param partialUpdateObjects.createIfNotExists - To be provided if non-existing objects are passed, otherwise, the call will fail..
|
|
79
|
-
* @param partialUpdateObjects.batchSize - The size of the chunk of `objects`. The number of `batch` calls will be equal to `length(objects) / batchSize`. Defaults to 1000.
|
|
80
|
-
* @param partialUpdateObjects.waitForTasks - Whether or not we should wait until every `batch` tasks has been processed, this operation may slow the total execution time of this method but is more reliable.
|
|
81
|
-
* @param requestOptions - The requestOptions to send along with the query, they will be forwarded to the `push` method and merged with the transporter requestOptions.
|
|
82
|
-
*/
|
|
83
|
-
partialUpdateObjectsWithTransformation: (options: PartialUpdateObjectsOptions, requestOptions?: RequestOptions | undefined) => Promise<Array<WatchResponse>>;
|
|
84
|
-
/**
|
|
85
|
-
* Helper: Similar to the `replaceAllObjects` method but requires a Push connector (https://www.algolia.com/doc/guides/sending-and-managing-data/send-and-update-your-data/connectors/push/) to be created first, in order to transform records before indexing them to Algolia. The `region` must have been passed to the client instantiation method.
|
|
86
|
-
*
|
|
87
|
-
* @summary Helper: Replaces all objects (records) in the given `index_name` by leveraging the Transformation pipeline setup in the Push connector (https://www.algolia.com/doc/guides/sending-and-managing-data/send-and-update-your-data/connectors/push/) with the given `objects`. A temporary index is created during this process in order to backup your data.
|
|
88
|
-
* @param replaceAllObjects - The `replaceAllObjects` object.
|
|
89
|
-
* @param replaceAllObjects.indexName - The `indexName` to replace `objects` in.
|
|
90
|
-
* @param replaceAllObjects.objects - The array of `objects` to store in the given Algolia `indexName`.
|
|
91
|
-
* @param replaceAllObjects.batchSize - The size of the chunk of `objects`. The number of `batch` calls will be equal to `objects.length / batchSize`. Defaults to 1000.
|
|
92
|
-
* @param replaceAllObjects.scopes - The `scopes` to keep from the index. Defaults to ['settings', 'rules', 'synonyms'].
|
|
93
|
-
* @param requestOptions - The requestOptions to send along with the query, they will be forwarded to the `push`, `operationIndex` and `getEvent` method and merged with the transporter requestOptions.
|
|
94
|
-
*/
|
|
95
|
-
replaceAllObjectsWithTransformation: (options: ReplaceAllObjectsOptions, requestOptions?: RequestOptions | undefined) => Promise<ReplaceAllObjectsWithTransformationResponse>;
|
|
96
|
-
};
|
|
97
|
-
type TransformationOptions = {
|
|
98
|
-
transformation?: {
|
|
99
|
-
region: Region$4;
|
|
100
|
-
} | undefined;
|
|
101
|
-
};
|
|
102
|
-
declare function algoliasearch(appId: string, apiKey: string, options?: (ClientOptions & TransformationOptions) | undefined): Algoliasearch;
|
|
103
|
-
|
|
104
|
-
export { type Algoliasearch, type InitClientOptions, type Region, type RegionOptions, type TransformationOptions, algoliasearch };
|
package/dist/node.d.cts
DELETED
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
import { ClientOptions, RequestOptions } from '@algolia/client-common';
|
|
2
|
-
import { Region as Region$2, RegionOptions as RegionOptions$2, AbtestingV3Client } from '@algolia/abtesting';
|
|
3
|
-
export * from '@algolia/abtesting';
|
|
4
|
-
export { Region as AbtestingV3Region, RegionOptions as AbtestingV3RegionOptions } from '@algolia/abtesting';
|
|
5
|
-
import { Region as Region$1, RegionOptions as RegionOptions$1, AbtestingClient } from '@algolia/client-abtesting';
|
|
6
|
-
export * from '@algolia/client-abtesting';
|
|
7
|
-
export { ABTest, ABTestConfiguration, ABTestResponse, AbTestsVariant, AbTestsVariantSearchParams, Region as AbtestingRegion, RegionOptions as AbtestingRegionOptions, AddABTestsRequest, AddABTestsVariant, CustomSearchParams, DeleteABTestProps, EffectMetric, EmptySearchFilter, EstimateABTestRequest, EstimateABTestResponse, EstimateConfiguration, FilterEffects, GetABTestProps, ListABTestsProps, ListABTestsResponse, MinimumDetectableEffect, OutliersFilter, ScheduleABTestResponse, ScheduleABTestsRequest, Status, StopABTestProps, Variant } from '@algolia/client-abtesting';
|
|
8
|
-
import { Region as Region$3, RegionOptions as RegionOptions$3, AnalyticsClient } from '@algolia/client-analytics';
|
|
9
|
-
export * from '@algolia/client-analytics';
|
|
10
|
-
export { Region as AnalyticsRegion, RegionOptions as AnalyticsRegionOptions, Direction } from '@algolia/client-analytics';
|
|
11
|
-
import { Region as Region$5, RegionOptions as RegionOptions$5, InsightsClient } from '@algolia/client-insights';
|
|
12
|
-
export * from '@algolia/client-insights';
|
|
13
|
-
export { Region as InsightsRegion, RegionOptions as InsightsRegionOptions } from '@algolia/client-insights';
|
|
14
|
-
import { Region as Region$6, RegionOptions as RegionOptions$6, PersonalizationClient } from '@algolia/client-personalization';
|
|
15
|
-
export * from '@algolia/client-personalization';
|
|
16
|
-
export { EventType, Region as PersonalizationRegion, RegionOptions as PersonalizationRegionOptions } from '@algolia/client-personalization';
|
|
17
|
-
import { Region as Region$7, RegionOptions as RegionOptions$7, QuerySuggestionsClient } from '@algolia/client-query-suggestions';
|
|
18
|
-
export * from '@algolia/client-query-suggestions';
|
|
19
|
-
export { Region as QuerySuggestionsRegion, RegionOptions as QuerySuggestionsRegionOptions } from '@algolia/client-query-suggestions';
|
|
20
|
-
import { SearchClient, SaveObjectsOptions, PartialUpdateObjectsOptions, ReplaceAllObjectsOptions, ReplaceAllObjectsWithTransformationResponse } from '@algolia/client-search';
|
|
21
|
-
export * from '@algolia/client-search';
|
|
22
|
-
export { Action, AdvancedSyntaxFeatures, AlternativesAsExact, Anchoring, AroundPrecision, AroundRadius, AroundRadiusAll, AutomaticFacetFilter, AutomaticFacetFilters, Banner, BannerImage, BannerImageUrl, BannerLink, BaseIndexSettings, BaseSearchParams, BaseSearchParamsWithoutQuery, BaseSearchResponse, BooleanString, Condition, Consequence, ConsequenceHide, ConsequenceParams, ConsequenceQuery, ConsequenceQueryObject, CustomDeleteProps, CustomGetProps, CustomPostProps, CustomPutProps, DeleteSourceProps, DeletedAtResponse, Distinct, Edit, EditType, ErrorBase, ExactOnSingleWordQuery, Exhaustive, FacetFilters, FacetHits, FacetOrdering, FacetStats, Facets, GetTaskProps, HighlightResult, HighlightResultOption, Hit, IgnorePlurals, IndexSettingsAsSearchParams, InsideBoundingBox, Languages, MatchLevel, MatchedGeoLocation, Mode, NumericFilters, OptionalFilters, OptionalWords, Params, Personalization, Promote, PromoteObjectID, PromoteObjectIDs, QueryType, Range, RankingInfo, ReRankingApplyFilter, Redirect, RedirectRuleIndexData, RedirectRuleIndexMetadata, RedirectURL, RemoveStopWords, RemoveWordsIfNoResults, RenderingContent, SearchForFacetValuesProps, SearchForFacetValuesRequest, SearchForFacetValuesResponse, SearchHits, SearchPagination, SearchParams, SearchParamsObject, SearchParamsQuery, SearchResponse, SemanticSearch, SnippetResult, SnippetResultOption, SortRemainingBy, Source, SupportedLanguage, TagFilters, TaskStatus, TimeRange, TypoTolerance, TypoToleranceEnum, Value, Widgets, apiClientVersion } from '@algolia/client-search';
|
|
23
|
-
import { Region as Region$4, RegionOptions as RegionOptions$4, IngestionClient, WatchResponse } from '@algolia/ingestion';
|
|
24
|
-
export * from '@algolia/ingestion';
|
|
25
|
-
export { Event, EventStatus, Region as IngestionRegion, RegionOptions as IngestionRegionOptions, WatchResponse } from '@algolia/ingestion';
|
|
26
|
-
import { MonitoringClient } from '@algolia/monitoring';
|
|
27
|
-
export * from '@algolia/monitoring';
|
|
28
|
-
import { RecommendClient } from '@algolia/recommend';
|
|
29
|
-
export * from '@algolia/recommend';
|
|
30
|
-
|
|
31
|
-
type Region = Region$1 | Region$2 | Region$3 | Region$4 | Region$5 | Region$6 | Region$7;
|
|
32
|
-
type RegionOptions = RegionOptions$1 | RegionOptions$2 | RegionOptions$3 | RegionOptions$4 | RegionOptions$5 | RegionOptions$6 | RegionOptions$7;
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* Options forwarded to the client initialized via the `init` method.
|
|
36
|
-
*/
|
|
37
|
-
type InitClientOptions = Partial<{
|
|
38
|
-
/**
|
|
39
|
-
* App to target with the initialized client, defaults to the `algoliasearch` appId.
|
|
40
|
-
*/
|
|
41
|
-
appId: string;
|
|
42
|
-
/**
|
|
43
|
-
* API key of the targeted app ID, defaults to the `algoliasearch` apiKey.
|
|
44
|
-
*/
|
|
45
|
-
apiKey: string;
|
|
46
|
-
options: ClientOptions;
|
|
47
|
-
}>;
|
|
48
|
-
|
|
49
|
-
type Algoliasearch = SearchClient & {
|
|
50
|
-
initAbtesting: (initOptions: InitClientOptions & RegionOptions$1) => AbtestingClient;
|
|
51
|
-
initAbtestingV3: (initOptions: InitClientOptions & RegionOptions$2) => AbtestingV3Client;
|
|
52
|
-
initAnalytics: (initOptions: InitClientOptions & RegionOptions$3) => AnalyticsClient;
|
|
53
|
-
initIngestion: (initOptions: InitClientOptions & RegionOptions$4) => IngestionClient;
|
|
54
|
-
initInsights: (initOptions: InitClientOptions & RegionOptions$5) => InsightsClient;
|
|
55
|
-
initMonitoring: (initOptions?: InitClientOptions) => MonitoringClient;
|
|
56
|
-
initPersonalization: (initOptions: InitClientOptions & RegionOptions$6) => PersonalizationClient;
|
|
57
|
-
initQuerySuggestions: (initOptions: InitClientOptions & RegionOptions$7) => QuerySuggestionsClient;
|
|
58
|
-
initRecommend: (initOptions?: InitClientOptions) => RecommendClient;
|
|
59
|
-
/**
|
|
60
|
-
* Helper: Similar to the `saveObjects` method but requires a Push connector (https://www.algolia.com/doc/guides/sending-and-managing-data/send-and-update-your-data/connectors/push/) to be created first, in order to transform records before indexing them to Algolia. The `region` must have been passed to the client instantiation method.
|
|
61
|
-
*
|
|
62
|
-
* @summary Save objects to an Algolia index by leveraging the Transformation pipeline setup using the Push connector (https://www.algolia.com/doc/guides/sending-and-managing-data/send-and-update-your-data/connectors/push/).
|
|
63
|
-
* @param saveObjects - The `saveObjects` object.
|
|
64
|
-
* @param saveObjects.indexName - The `indexName` to save `objects` in.
|
|
65
|
-
* @param saveObjects.objects - The array of `objects` to store in the given Algolia `indexName`.
|
|
66
|
-
* @param saveObjects.batchSize - The size of the chunk of `objects`. The number of `batch` calls will be equal to `length(objects) / batchSize`. Defaults to 1000.
|
|
67
|
-
* @param saveObjects.waitForTasks - Whether or not we should wait until every `batch` tasks has been processed, this operation may slow the total execution time of this method but is more reliable.
|
|
68
|
-
* @param requestOptions - The requestOptions to send along with the query, they will be forwarded to the `push` method and merged with the transporter requestOptions.
|
|
69
|
-
*/
|
|
70
|
-
saveObjectsWithTransformation: (options: SaveObjectsOptions, requestOptions?: RequestOptions | undefined) => Promise<Array<WatchResponse>>;
|
|
71
|
-
/**
|
|
72
|
-
* Helper: Similar to the `partialUpdateObjects` method but requires a Push connector (https://www.algolia.com/doc/guides/sending-and-managing-data/send-and-update-your-data/connectors/push/) to be created first, in order to transform records before indexing them to Algolia. The `region` must have been passed to the client instantiation method.
|
|
73
|
-
*
|
|
74
|
-
* @summary Save objects to an Algolia index by leveraging the Transformation pipeline setup in the Push connector (https://www.algolia.com/doc/guides/sending-and-managing-data/send-and-update-your-data/connectors/push/).
|
|
75
|
-
* @param partialUpdateObjects - The `partialUpdateObjects` object.
|
|
76
|
-
* @param partialUpdateObjects.indexName - The `indexName` to update `objects` in.
|
|
77
|
-
* @param partialUpdateObjects.objects - The array of `objects` to update in the given Algolia `indexName`.
|
|
78
|
-
* @param partialUpdateObjects.createIfNotExists - To be provided if non-existing objects are passed, otherwise, the call will fail..
|
|
79
|
-
* @param partialUpdateObjects.batchSize - The size of the chunk of `objects`. The number of `batch` calls will be equal to `length(objects) / batchSize`. Defaults to 1000.
|
|
80
|
-
* @param partialUpdateObjects.waitForTasks - Whether or not we should wait until every `batch` tasks has been processed, this operation may slow the total execution time of this method but is more reliable.
|
|
81
|
-
* @param requestOptions - The requestOptions to send along with the query, they will be forwarded to the `push` method and merged with the transporter requestOptions.
|
|
82
|
-
*/
|
|
83
|
-
partialUpdateObjectsWithTransformation: (options: PartialUpdateObjectsOptions, requestOptions?: RequestOptions | undefined) => Promise<Array<WatchResponse>>;
|
|
84
|
-
/**
|
|
85
|
-
* Helper: Similar to the `replaceAllObjects` method but requires a Push connector (https://www.algolia.com/doc/guides/sending-and-managing-data/send-and-update-your-data/connectors/push/) to be created first, in order to transform records before indexing them to Algolia. The `region` must have been passed to the client instantiation method.
|
|
86
|
-
*
|
|
87
|
-
* @summary Helper: Replaces all objects (records) in the given `index_name` by leveraging the Transformation pipeline setup in the Push connector (https://www.algolia.com/doc/guides/sending-and-managing-data/send-and-update-your-data/connectors/push/) with the given `objects`. A temporary index is created during this process in order to backup your data.
|
|
88
|
-
* @param replaceAllObjects - The `replaceAllObjects` object.
|
|
89
|
-
* @param replaceAllObjects.indexName - The `indexName` to replace `objects` in.
|
|
90
|
-
* @param replaceAllObjects.objects - The array of `objects` to store in the given Algolia `indexName`.
|
|
91
|
-
* @param replaceAllObjects.batchSize - The size of the chunk of `objects`. The number of `batch` calls will be equal to `objects.length / batchSize`. Defaults to 1000.
|
|
92
|
-
* @param replaceAllObjects.scopes - The `scopes` to keep from the index. Defaults to ['settings', 'rules', 'synonyms'].
|
|
93
|
-
* @param requestOptions - The requestOptions to send along with the query, they will be forwarded to the `push`, `operationIndex` and `getEvent` method and merged with the transporter requestOptions.
|
|
94
|
-
*/
|
|
95
|
-
replaceAllObjectsWithTransformation: (options: ReplaceAllObjectsOptions, requestOptions?: RequestOptions | undefined) => Promise<ReplaceAllObjectsWithTransformationResponse>;
|
|
96
|
-
};
|
|
97
|
-
type TransformationOptions = {
|
|
98
|
-
transformation?: {
|
|
99
|
-
region: Region$4;
|
|
100
|
-
} | undefined;
|
|
101
|
-
};
|
|
102
|
-
declare function algoliasearch(appId: string, apiKey: string, options?: (ClientOptions & TransformationOptions) | undefined): Algoliasearch;
|
|
103
|
-
|
|
104
|
-
export { type Algoliasearch, type InitClientOptions, type Region, type RegionOptions, type TransformationOptions, algoliasearch };
|