Skip to content

Commit 4ff0767

Browse files
feat(specs): add Algolia Index as a native connector in ingestion client (generated)
algolia/api-clients-automation#6290 Co-authored-by: algolia-bot <accounts+algolia-api-client-bot@algolia.com> Co-authored-by: Morgan Leroi <morgan.leroi@gmail.com>
1 parent 442b543 commit 4ff0767

9 files changed

Lines changed: 48 additions & 6 deletions

File tree

packages/algoliasearch/lite/src/liteClient.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,11 +247,11 @@ export function createLiteClient({
247247
},
248248

249249
/**
250-
* Sends multiple search requests to one or more indices. This can be useful in these cases: - Different indices for different purposes, such as, one index for products, another one for marketing content. - Multiple searches to the same index—for example, with different filters. Use the helper `searchForHits` or `searchForFacets` to get the results in a more convenient format, if you already know the return type you want.
250+
* Runs multiple search queries against one or more indices in a single API request. Use cases include: - Searching different indices, such as products and marketing content. - Run multiple queries on the same index with different parameters or filters. If you know the expected result type, use the `searchForHits` or `searchForFacets` helper to simplify the response format.
251251
*
252252
* Required API Key ACLs:
253253
* - search
254-
* @param searchMethodParams - Muli-search request body. Results are returned in the same order as the requests.
254+
* @param searchMethodParams - Multi-query search request body. Results are returned in the same order as the requests.
255255
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
256256
*/
257257
search<T>(

packages/client-search/src/searchClient.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2571,11 +2571,11 @@ export function createSearchClient({
25712571
},
25722572

25732573
/**
2574-
* Sends multiple search requests to one or more indices. This can be useful in these cases: - Different indices for different purposes, such as, one index for products, another one for marketing content. - Multiple searches to the same index—for example, with different filters. Use the helper `searchForHits` or `searchForFacets` to get the results in a more convenient format, if you already know the return type you want.
2574+
* Runs multiple search queries against one or more indices in a single API request. Use cases include: - Searching different indices, such as products and marketing content. - Run multiple queries on the same index with different parameters or filters. If you know the expected result type, use the `searchForHits` or `searchForFacets` helper to simplify the response format.
25752575
*
25762576
* Required API Key ACLs:
25772577
* - search
2578-
* @param searchMethodParams - Muli-search request body. Results are returned in the same order as the requests.
2578+
* @param searchMethodParams - Multi-query search request body. Results are returned in the same order as the requests.
25792579
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
25802580
*/
25812581
search<T>(
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
22

3+
/**
4+
* Ordering to apply on the injected items coming from the external source. \'default\' means the items will be ordered as they are in the index (natural relevance) in the smart group. \'userDefined\' means the order in which the objectIDs are provided in the run request payload will be preserved in the smart group.
5+
*/
36
export type ExternalOrdering = 'default' | 'userDefined';

packages/ingestion/model/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ export * from './shopifyInput';
9494
export * from './shopifyMarket';
9595
export * from './shopifyMetafield';
9696
export * from './source';
97+
export * from './sourceAlgoliaIndex';
9798
export * from './sourceBigCommerce';
9899
export * from './sourceBigQuery';
99100
export * from './sourceCommercetools';
@@ -110,6 +111,7 @@ export * from './sourceShopifyBase';
110111
export * from './sourceSortKeys';
111112
export * from './sourceType';
112113
export * from './sourceUpdate';
114+
export * from './sourceUpdateAlgoliaIndex';
113115
export * from './sourceUpdateCommercetools';
114116
export * from './sourceUpdateDocker';
115117
export * from './sourceUpdateInput';
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2+
3+
/**
4+
* Specific configuration attributes of an `algoliaIndex` source.
5+
*/
6+
export type SourceAlgoliaIndex = {
7+
/**
8+
* Name of the Algolia index to read records from.
9+
*/
10+
indexName: string;
11+
12+
/**
13+
* SQL-like filter expression applied while browsing the source index. See [filters](https://www.algolia.com/doc/api-reference/api-parameters/filters/).
14+
*/
15+
filters?: string | undefined;
16+
};

packages/ingestion/model/sourceInput.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
22

3+
import type { SourceAlgoliaIndex } from './sourceAlgoliaIndex';
34
import type { SourceBigCommerce } from './sourceBigCommerce';
45
import type { SourceBigQuery } from './sourceBigQuery';
56
import type { SourceCSV } from './sourceCSV';
@@ -17,4 +18,5 @@ export type SourceInput =
1718
| SourceBigQuery
1819
| SourceGA4BigQueryExport
1920
| SourceDocker
20-
| SourceShopify;
21+
| SourceShopify
22+
| SourceAlgoliaIndex;

packages/ingestion/model/sourceType.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
22

33
export type SourceType =
4+
| 'algoliaIndex'
45
| 'bigcommerce'
56
| 'bigquery'
67
| 'commercetools'
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2+
3+
/**
4+
* Specific configuration attributes of an `algoliaIndex` source.
5+
*/
6+
export type SourceUpdateAlgoliaIndex = {
7+
/**
8+
* Name of the Algolia index to read records from.
9+
*/
10+
indexName?: string | undefined;
11+
12+
/**
13+
* SQL-like filter expression applied while browsing the source index. See [filters](https://www.algolia.com/doc/api-reference/api-parameters/filters/).
14+
*/
15+
filters?: string | undefined;
16+
};

packages/ingestion/model/sourceUpdateInput.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import type { SourceBigQuery } from './sourceBigQuery';
44
import type { SourceCSV } from './sourceCSV';
55
import type { SourceGA4BigQueryExport } from './sourceGA4BigQueryExport';
66
import type { SourceJSON } from './sourceJSON';
7+
import type { SourceUpdateAlgoliaIndex } from './sourceUpdateAlgoliaIndex';
78
import type { SourceUpdateCommercetools } from './sourceUpdateCommercetools';
89
import type { SourceUpdateDocker } from './sourceUpdateDocker';
910
import type { SourceUpdateShopify } from './sourceUpdateShopify';
@@ -15,4 +16,5 @@ export type SourceUpdateInput =
1516
| SourceBigQuery
1617
| SourceGA4BigQueryExport
1718
| SourceUpdateDocker
18-
| SourceUpdateShopify;
19+
| SourceUpdateShopify
20+
| SourceUpdateAlgoliaIndex;

0 commit comments

Comments
 (0)