@algolia/client-search 5.36.0 → 5.37.0

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/dist/worker.d.ts CHANGED
@@ -1486,7 +1486,7 @@ type Consequence = {
1486
1486
  */
1487
1487
  promote?: Array<Promote> | undefined;
1488
1488
  /**
1489
- * Whether promoted records must match an active filter for the consequence to be applied. This ensures that user actions (filtering the search) are given a higher precendence. For example, if you promote a record with the `color: red` attribute, and the user filters the search for `color: blue`, the \"red\" record won\'t be shown.
1489
+ * Determines whether promoted records must also match active filters for the consequence to apply. This ensures user-applied filters take priority and irrelevant matches aren\'t shown. For example, if you promote a record with `color: red` but the user filters for `color: blue`, the \"red\" record won\'t be shown. > In the Algolia dashboard, when you use the **Pin an item** consequence, `filterPromotes` appears as the checkbox: **Pinned items must match active filters to be displayed.** For examples, see [Promote results with rules](https://www.algolia.com/doc/guides/managing-results/rules/merchandising-and-promoting/how-to/promote-hits/#promote-results-matching-active-filters).
1490
1490
  */
1491
1491
  filterPromotes?: boolean | undefined;
1492
1492
  /**
@@ -2597,6 +2597,10 @@ type GetSettingsProps = {
2597
2597
  * Name of the index on which to perform the operation.
2598
2598
  */
2599
2599
  indexName: string;
2600
+ /**
2601
+ * When set to 2, the endpoint will not include `synonyms` in the response. This parameter is here for backward compatibility.
2602
+ */
2603
+ getVersion?: number | undefined;
2600
2604
  };
2601
2605
  /**
2602
2606
  * Properties for the `getSynonym` method.
@@ -3051,7 +3055,7 @@ type AccountCopyIndexOptions = {
3051
3055
  batchSize?: number | undefined;
3052
3056
  };
3053
3057
 
3054
- declare const apiClientVersion = "5.36.0";
3058
+ declare const apiClientVersion = "5.37.0";
3055
3059
  declare function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode, algoliaAgents, ...options }: CreateClientOptions): {
3056
3060
  transporter: _algolia_client_common.Transporter;
3057
3061
  /**
@@ -3559,9 +3563,10 @@ declare function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption,
3559
3563
  * - settings
3560
3564
  * @param getSettings - The getSettings object.
3561
3565
  * @param getSettings.indexName - Name of the index on which to perform the operation.
3566
+ * @param getSettings.getVersion - When set to 2, the endpoint will not include `synonyms` in the response. This parameter is here for backward compatibility.
3562
3567
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
3563
3568
  */
3564
- getSettings({ indexName }: GetSettingsProps, requestOptions?: RequestOptions): Promise<SettingsResponse>;
3569
+ getSettings({ indexName, getVersion }: GetSettingsProps, requestOptions?: RequestOptions): Promise<SettingsResponse>;
3565
3570
  /**
3566
3571
  * Retrieves all allowed IP addresses with access to your application.
3567
3572
  *
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "5.36.0",
2
+ "version": "5.37.0",
3
3
  "repository": {
4
4
  "type": "git",
5
5
  "url": "git+https://github.com/algolia/algoliasearch-client-javascript.git"
@@ -49,10 +49,10 @@
49
49
  "index.d.ts"
50
50
  ],
51
51
  "dependencies": {
52
- "@algolia/client-common": "5.36.0",
53
- "@algolia/requester-browser-xhr": "5.36.0",
54
- "@algolia/requester-fetch": "5.36.0",
55
- "@algolia/requester-node-http": "5.36.0"
52
+ "@algolia/client-common": "5.37.0",
53
+ "@algolia/requester-browser-xhr": "5.37.0",
54
+ "@algolia/requester-fetch": "5.37.0",
55
+ "@algolia/requester-node-http": "5.37.0"
56
56
  },
57
57
  "devDependencies": {
58
58
  "@arethetypeswrong/cli": "0.18.2",