algoliasearch 5.0.0-beta.1 → 5.0.0-beta.3

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.
Files changed (181) hide show
  1. package/dist/algoliasearch/builds/browser.d.ts +4 -2
  2. package/dist/algoliasearch/builds/browser.d.ts.map +1 -1
  3. package/dist/algoliasearch/builds/node.d.ts +4 -2
  4. package/dist/algoliasearch/builds/node.d.ts.map +1 -1
  5. package/dist/algoliasearch.cjs +57 -8
  6. package/dist/algoliasearch.esm.browser.js +66 -23
  7. package/dist/algoliasearch.esm.node.js +57 -8
  8. package/dist/algoliasearch.umd.js +2 -2
  9. package/dist/client-abtesting/src/abtestingClient.d.ts +1 -1
  10. package/dist/client-analytics/src/analyticsClient.d.ts +1 -1
  11. package/dist/client-personalization/src/personalizationClient.d.ts +1 -1
  12. package/dist/client-search/model/clientMethodProps.d.ts +16 -21
  13. package/dist/client-search/model/clientMethodProps.d.ts.map +1 -1
  14. package/dist/client-search/model/facetFilters.d.ts +1 -2
  15. package/dist/client-search/model/facetFilters.d.ts.map +1 -1
  16. package/dist/client-search/model/index.d.ts +1 -1
  17. package/dist/client-search/model/index.d.ts.map +1 -1
  18. package/dist/client-search/model/numericFilters.d.ts +1 -2
  19. package/dist/client-search/model/numericFilters.d.ts.map +1 -1
  20. package/dist/client-search/model/optionalFilters.d.ts +1 -2
  21. package/dist/client-search/model/optionalFilters.d.ts.map +1 -1
  22. package/dist/client-search/model/rankingInfo.d.ts +3 -3
  23. package/dist/client-search/model/rankingInfo.d.ts.map +1 -1
  24. package/dist/client-search/model/reRankingApplyFilter.d.ts +1 -2
  25. package/dist/client-search/model/reRankingApplyFilter.d.ts.map +1 -1
  26. package/dist/client-search/model/replaceAllObjectsResponse.d.ts +11 -0
  27. package/dist/client-search/model/replaceAllObjectsResponse.d.ts.map +1 -0
  28. package/dist/client-search/model/searchForFacetValuesResponse.d.ts +1 -1
  29. package/dist/client-search/model/tagFilters.d.ts +1 -2
  30. package/dist/client-search/model/tagFilters.d.ts.map +1 -1
  31. package/dist/client-search/src/searchClient.d.ts +27 -4
  32. package/dist/client-search/src/searchClient.d.ts.map +1 -1
  33. package/dist/lite/lite.cjs +1 -1
  34. package/dist/lite/lite.esm.browser.js +10 -16
  35. package/dist/lite/lite.esm.node.js +1 -1
  36. package/dist/lite/lite.umd.js +2 -2
  37. package/dist/lite/model/facetFilters.d.ts +1 -2
  38. package/dist/lite/model/facetFilters.d.ts.map +1 -1
  39. package/dist/lite/model/index.d.ts +0 -39
  40. package/dist/lite/model/index.d.ts.map +1 -1
  41. package/dist/lite/model/numericFilters.d.ts +1 -2
  42. package/dist/lite/model/numericFilters.d.ts.map +1 -1
  43. package/dist/lite/model/optionalFilters.d.ts +1 -2
  44. package/dist/lite/model/optionalFilters.d.ts.map +1 -1
  45. package/dist/lite/model/rankingInfo.d.ts +3 -3
  46. package/dist/lite/model/rankingInfo.d.ts.map +1 -1
  47. package/dist/lite/model/reRankingApplyFilter.d.ts +1 -2
  48. package/dist/lite/model/reRankingApplyFilter.d.ts.map +1 -1
  49. package/dist/lite/model/searchForFacetValuesResponse.d.ts +1 -1
  50. package/dist/lite/model/tagFilters.d.ts +1 -2
  51. package/dist/lite/model/tagFilters.d.ts.map +1 -1
  52. package/dist/lite/src/liteClient.d.ts +1 -1
  53. package/lite/model/facetFilters.ts +1 -3
  54. package/lite/model/index.ts +0 -39
  55. package/lite/model/numericFilters.ts +1 -3
  56. package/lite/model/optionalFilters.ts +1 -3
  57. package/lite/model/rankingInfo.ts +3 -3
  58. package/lite/model/reRankingApplyFilter.ts +1 -3
  59. package/lite/model/searchForFacetValuesResponse.ts +1 -1
  60. package/lite/model/tagFilters.ts +1 -3
  61. package/lite/src/liteClient.ts +1 -1
  62. package/package.json +12 -12
  63. package/dist/client-search/model/mixedSearchFilters.d.ts +0 -2
  64. package/dist/client-search/model/mixedSearchFilters.d.ts.map +0 -1
  65. package/dist/lite/model/action.d.ts +0 -5
  66. package/dist/lite/model/action.d.ts.map +0 -1
  67. package/dist/lite/model/addApiKeyResponse.d.ts +0 -11
  68. package/dist/lite/model/addApiKeyResponse.d.ts.map +0 -1
  69. package/dist/lite/model/anchoring.d.ts +0 -5
  70. package/dist/lite/model/anchoring.d.ts.map +0 -1
  71. package/dist/lite/model/apiKeyOperation.d.ts +0 -2
  72. package/dist/lite/model/apiKeyOperation.d.ts.map +0 -1
  73. package/dist/lite/model/attributeToUpdate.d.ts +0 -3
  74. package/dist/lite/model/attributeToUpdate.d.ts.map +0 -1
  75. package/dist/lite/model/browseParams.d.ts +0 -4
  76. package/dist/lite/model/browseParams.d.ts.map +0 -1
  77. package/dist/lite/model/builtInOperation.d.ts +0 -12
  78. package/dist/lite/model/builtInOperation.d.ts.map +0 -1
  79. package/dist/lite/model/builtInOperationType.d.ts +0 -5
  80. package/dist/lite/model/builtInOperationType.d.ts.map +0 -1
  81. package/dist/lite/model/condition.d.ts +0 -21
  82. package/dist/lite/model/condition.d.ts.map +0 -1
  83. package/dist/lite/model/consequence.d.ts +0 -26
  84. package/dist/lite/model/consequence.d.ts.map +0 -1
  85. package/dist/lite/model/consequenceHide.d.ts +0 -10
  86. package/dist/lite/model/consequenceHide.d.ts.map +0 -1
  87. package/dist/lite/model/deleteByParams.d.ts +0 -27
  88. package/dist/lite/model/deleteByParams.d.ts.map +0 -1
  89. package/dist/lite/model/dictionaryAction.d.ts +0 -5
  90. package/dist/lite/model/dictionaryAction.d.ts.map +0 -1
  91. package/dist/lite/model/dictionaryEntry.d.ts +0 -26
  92. package/dist/lite/model/dictionaryEntry.d.ts.map +0 -1
  93. package/dist/lite/model/dictionaryEntryState.d.ts +0 -5
  94. package/dist/lite/model/dictionaryEntryState.d.ts.map +0 -1
  95. package/dist/lite/model/dictionaryLanguage.d.ts +0 -10
  96. package/dist/lite/model/dictionaryLanguage.d.ts.map +0 -1
  97. package/dist/lite/model/dictionaryType.d.ts +0 -2
  98. package/dist/lite/model/dictionaryType.d.ts.map +0 -1
  99. package/dist/lite/model/fetchedIndex.d.ts +0 -47
  100. package/dist/lite/model/fetchedIndex.d.ts.map +0 -1
  101. package/dist/lite/model/languages.d.ts +0 -10
  102. package/dist/lite/model/languages.d.ts.map +0 -1
  103. package/dist/lite/model/listIndicesResponse.d.ts +0 -12
  104. package/dist/lite/model/listIndicesResponse.d.ts.map +0 -1
  105. package/dist/lite/model/logType.d.ts +0 -2
  106. package/dist/lite/model/logType.d.ts.map +0 -1
  107. package/dist/lite/model/mixedSearchFilters.d.ts +0 -2
  108. package/dist/lite/model/mixedSearchFilters.d.ts.map +0 -1
  109. package/dist/lite/model/operationType.d.ts +0 -5
  110. package/dist/lite/model/operationType.d.ts.map +0 -1
  111. package/dist/lite/model/promote.d.ts +0 -4
  112. package/dist/lite/model/promote.d.ts.map +0 -1
  113. package/dist/lite/model/promoteObjectID.d.ts +0 -14
  114. package/dist/lite/model/promoteObjectID.d.ts.map +0 -1
  115. package/dist/lite/model/promoteObjectIDs.d.ts +0 -14
  116. package/dist/lite/model/promoteObjectIDs.d.ts.map +0 -1
  117. package/dist/lite/model/rule.d.ts +0 -30
  118. package/dist/lite/model/rule.d.ts.map +0 -1
  119. package/dist/lite/model/scopeType.d.ts +0 -2
  120. package/dist/lite/model/scopeType.d.ts.map +0 -1
  121. package/dist/lite/model/searchDictionaryEntriesResponse.d.ts +0 -20
  122. package/dist/lite/model/searchDictionaryEntriesResponse.d.ts.map +0 -1
  123. package/dist/lite/model/searchSynonymsResponse.d.ts +0 -12
  124. package/dist/lite/model/searchSynonymsResponse.d.ts.map +0 -1
  125. package/dist/lite/model/securedAPIKeyRestrictions.d.ts +0 -25
  126. package/dist/lite/model/securedAPIKeyRestrictions.d.ts.map +0 -1
  127. package/dist/lite/model/source.d.ts +0 -14
  128. package/dist/lite/model/source.d.ts.map +0 -1
  129. package/dist/lite/model/standardEntries.d.ts +0 -18
  130. package/dist/lite/model/standardEntries.d.ts.map +0 -1
  131. package/dist/lite/model/synonymHit.d.ts +0 -36
  132. package/dist/lite/model/synonymHit.d.ts.map +0 -1
  133. package/dist/lite/model/synonymType.d.ts +0 -5
  134. package/dist/lite/model/synonymType.d.ts.map +0 -1
  135. package/dist/lite/model/taskStatus.d.ts +0 -5
  136. package/dist/lite/model/taskStatus.d.ts.map +0 -1
  137. package/dist/lite/model/timeRange.d.ts +0 -11
  138. package/dist/lite/model/timeRange.d.ts.map +0 -1
  139. package/dist/lite/model/updatedRuleResponse.d.ts +0 -15
  140. package/dist/lite/model/updatedRuleResponse.d.ts.map +0 -1
  141. package/dist/lite/model/userId.d.ts +0 -22
  142. package/dist/lite/model/userId.d.ts.map +0 -1
  143. package/lite/model/action.ts +0 -13
  144. package/lite/model/addApiKeyResponse.ts +0 -13
  145. package/lite/model/anchoring.ts +0 -6
  146. package/lite/model/apiKeyOperation.ts +0 -3
  147. package/lite/model/attributeToUpdate.ts +0 -5
  148. package/lite/model/browseParams.ts +0 -6
  149. package/lite/model/builtInOperation.ts +0 -15
  150. package/lite/model/builtInOperationType.ts +0 -13
  151. package/lite/model/condition.ts +0 -27
  152. package/lite/model/consequence.ts +0 -32
  153. package/lite/model/consequenceHide.ts +0 -11
  154. package/lite/model/deleteByParams.ts +0 -36
  155. package/lite/model/dictionaryAction.ts +0 -6
  156. package/lite/model/dictionaryEntry.ts +0 -33
  157. package/lite/model/dictionaryEntryState.ts +0 -6
  158. package/lite/model/dictionaryLanguage.ts +0 -11
  159. package/lite/model/dictionaryType.ts +0 -3
  160. package/lite/model/fetchedIndex.ts +0 -58
  161. package/lite/model/languages.ts +0 -14
  162. package/lite/model/listIndicesResponse.ts +0 -15
  163. package/lite/model/logType.ts +0 -3
  164. package/lite/model/mixedSearchFilters.ts +0 -3
  165. package/lite/model/operationType.ts +0 -6
  166. package/lite/model/promote.ts +0 -6
  167. package/lite/model/promoteObjectID.ts +0 -16
  168. package/lite/model/promoteObjectIDs.ts +0 -16
  169. package/lite/model/rule.ts +0 -37
  170. package/lite/model/scopeType.ts +0 -3
  171. package/lite/model/searchDictionaryEntriesResponse.ts +0 -25
  172. package/lite/model/searchSynonymsResponse.ts +0 -15
  173. package/lite/model/securedAPIKeyRestrictions.ts +0 -32
  174. package/lite/model/source.ts +0 -16
  175. package/lite/model/standardEntries.ts +0 -21
  176. package/lite/model/synonymHit.ts +0 -45
  177. package/lite/model/synonymType.ts +0 -11
  178. package/lite/model/taskStatus.ts +0 -6
  179. package/lite/model/timeRange.ts +0 -13
  180. package/lite/model/updatedRuleResponse.ts +0 -18
  181. package/lite/model/userId.ts +0 -26
@@ -1,58 +0,0 @@
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
- export type FetchedIndex = {
4
- /**
5
- * Index name.
6
- */
7
- name: string;
8
-
9
- /**
10
- * Index creation date. An empty string means that the index has no records.
11
- */
12
- createdAt: string;
13
-
14
- /**
15
- * Date and time when the object was updated, in RFC 3339 format.
16
- */
17
- updatedAt: string;
18
-
19
- /**
20
- * Number of records contained in the index.
21
- */
22
- entries: number;
23
-
24
- /**
25
- * Number of bytes of the index in minified format.
26
- */
27
- dataSize: number;
28
-
29
- /**
30
- * Number of bytes of the index binary file.
31
- */
32
- fileSize: number;
33
-
34
- /**
35
- * Last build time.
36
- */
37
- lastBuildTimeS: number;
38
-
39
- /**
40
- * Number of pending indexing operations. This value is deprecated and should not be used.
41
- */
42
- numberOfPendingTasks: number;
43
-
44
- /**
45
- * A boolean which says whether the index has pending tasks. This value is deprecated and should not be used.
46
- */
47
- pendingTask: boolean;
48
-
49
- /**
50
- * Only present if the index is a replica. Contains the name of the related primary index.
51
- */
52
- primary?: string;
53
-
54
- /**
55
- * Only present if the index is a primary index with replicas. Contains the names of all linked replicas.
56
- */
57
- replicas?: string[];
58
- };
@@ -1,14 +0,0 @@
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
- import type { DictionaryLanguage } from './dictionaryLanguage';
4
-
5
- /**
6
- * Dictionary language.
7
- */
8
- export type Languages = {
9
- plurals: DictionaryLanguage | null;
10
-
11
- stopwords: DictionaryLanguage | null;
12
-
13
- compounds: DictionaryLanguage | null;
14
- };
@@ -1,15 +0,0 @@
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
- import type { FetchedIndex } from './fetchedIndex';
4
-
5
- export type ListIndicesResponse = {
6
- /**
7
- * All indices in your Algolia application.
8
- */
9
- items: FetchedIndex[];
10
-
11
- /**
12
- * Number of pages.
13
- */
14
- nbPages?: number;
15
- };
@@ -1,3 +0,0 @@
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
- export type LogType = 'all' | 'build' | 'error' | 'query';
@@ -1,3 +0,0 @@
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
- export type MixedSearchFilters = string[] | string;
@@ -1,6 +0,0 @@
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
- * Operation to perform on the index.
5
- */
6
- export type OperationType = 'copy' | 'move';
@@ -1,6 +0,0 @@
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
- import type { PromoteObjectID } from './promoteObjectID';
4
- import type { PromoteObjectIDs } from './promoteObjectIDs';
5
-
6
- export type Promote = PromoteObjectID | PromoteObjectIDs;
@@ -1,16 +0,0 @@
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
- * Record to promote.
5
- */
6
- export type PromoteObjectID = {
7
- /**
8
- * Unique record identifier.
9
- */
10
- objectID: string;
11
-
12
- /**
13
- * Position in the search results where you want to show the promoted records.
14
- */
15
- position: number;
16
- };
@@ -1,16 +0,0 @@
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
- * Records to promote.
5
- */
6
- export type PromoteObjectIDs = {
7
- /**
8
- * Object IDs of the records you want to promote. The records are placed as a group at the `position`. For example, if you want to promote four records to position `0`, they will be the first four search results.
9
- */
10
- objectIDs: string[];
11
-
12
- /**
13
- * Position in the search results where you want to show the promoted records.
14
- */
15
- position: number;
16
- };
@@ -1,37 +0,0 @@
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
- import type { Condition } from './condition';
4
- import type { Consequence } from './consequence';
5
- import type { TimeRange } from './timeRange';
6
-
7
- /**
8
- * Rule object.
9
- */
10
- export type Rule = {
11
- /**
12
- * Unique identifier of a rule object.
13
- */
14
- objectID: string;
15
-
16
- /**
17
- * Conditions that trigger a rule. Some consequences require specific conditions or don\'t require any condition. For more information, see [Conditions](https://www.algolia.com/doc/guides/managing-results/rules/rules-overview/#conditions).
18
- */
19
- conditions?: Condition[];
20
-
21
- consequence?: Consequence;
22
-
23
- /**
24
- * Description of the rule\'s purpose to help you distinguish between different rules.
25
- */
26
- description?: string;
27
-
28
- /**
29
- * Whether the rule is active.
30
- */
31
- enabled?: boolean;
32
-
33
- /**
34
- * Time periods when the rule is active.
35
- */
36
- validity?: TimeRange[];
37
- };
@@ -1,3 +0,0 @@
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
- export type ScopeType = 'rules' | 'settings' | 'synonyms';
@@ -1,25 +0,0 @@
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
- import type { DictionaryEntry } from './dictionaryEntry';
4
-
5
- export type SearchDictionaryEntriesResponse = {
6
- /**
7
- * Dictionary entries matching the search criteria.
8
- */
9
- hits: DictionaryEntry[];
10
-
11
- /**
12
- * Requested page of the API response.
13
- */
14
- page: number;
15
-
16
- /**
17
- * Number of results (hits).
18
- */
19
- nbHits: number;
20
-
21
- /**
22
- * Number of pages of results.
23
- */
24
- nbPages: number;
25
- };
@@ -1,15 +0,0 @@
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
- import type { SynonymHit } from './synonymHit';
4
-
5
- export type SearchSynonymsResponse = Record<string, any> & {
6
- /**
7
- * Matching synonyms.
8
- */
9
- hits: SynonymHit[];
10
-
11
- /**
12
- * Number of results (hits).
13
- */
14
- nbHits: number;
15
- };
@@ -1,32 +0,0 @@
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
- import type { SearchParamsObject } from './searchParamsObject';
4
-
5
- export type SecuredAPIKeyRestrictions = {
6
- searchParams?: SearchParamsObject;
7
-
8
- /**
9
- * Filters that apply to every search made with the secured API key. Extra filters added at search time will be combined with `AND`. For example, if you set `group:admin` as fixed filter on your generated API key, and add `groups:visitors` to the search query, the complete set of filters will be `group:admin AND groups:visitors`.
10
- */
11
- filters?: string;
12
-
13
- /**
14
- * Timestamp when the secured API key expires, measured in seconds since the Unix epoch.
15
- */
16
- validUntil?: number;
17
-
18
- /**
19
- * Index names or patterns that this API key can access. By default, an API key can access all indices in the same application. You can use leading and trailing wildcard characters (`*`): - `dev_*` matches all indices starting with \"dev_\". - `*_dev` matches all indices ending with \"_dev\". - `*_products_*` matches all indices containing \"_products_\".
20
- */
21
- restrictIndices?: string[];
22
-
23
- /**
24
- * IP network that are allowed to use this key. You can only add a single source, but you can provide a range of IP addresses. Use this to protect against API key leaking and reuse.
25
- */
26
- restrictSources?: string;
27
-
28
- /**
29
- * Pseudonymous user identifier to restrict usage of this API key to specific users. By default, rate limits are set based on IP addresses. This can be an issue if many users search from the same IP address. To avoid this, add a user token to each generated API key.
30
- */
31
- userToken?: string;
32
- };
@@ -1,16 +0,0 @@
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
- * Source.
5
- */
6
- export type Source = {
7
- /**
8
- * IP address range of the source.
9
- */
10
- source: string;
11
-
12
- /**
13
- * Source description.
14
- */
15
- description?: string;
16
- };
@@ -1,21 +0,0 @@
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
- * Key-value pairs of [supported language ISO codes](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/in-depth/supported-languages/) and boolean values.
5
- */
6
- export type StandardEntries = {
7
- /**
8
- * Key-value pair of a language ISO code and a boolean value.
9
- */
10
- plurals?: Record<string, boolean> | null;
11
-
12
- /**
13
- * Key-value pair of a language ISO code and a boolean value.
14
- */
15
- stopwords?: Record<string, boolean> | null;
16
-
17
- /**
18
- * Key-value pair of a language ISO code and a boolean value.
19
- */
20
- compounds?: Record<string, boolean> | null;
21
- };
@@ -1,45 +0,0 @@
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
- import type { SynonymType } from './synonymType';
4
-
5
- /**
6
- * Synonym object.
7
- */
8
- export type SynonymHit = {
9
- /**
10
- * Unique identifier of a synonym object.
11
- */
12
- objectID: string;
13
-
14
- type: SynonymType;
15
-
16
- /**
17
- * Words or phrases considered equivalent.
18
- */
19
- synonyms?: string[];
20
-
21
- /**
22
- * Word or phrase to appear in query strings (for [`onewaysynonym`s](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/adding-synonyms/in-depth/one-way-synonyms/)).
23
- */
24
- input?: string;
25
-
26
- /**
27
- * Word or phrase to appear in query strings (for [`altcorrection1` and `altcorrection2`](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/adding-synonyms/in-depth/synonyms-alternative-corrections/)).
28
- */
29
- word?: string;
30
-
31
- /**
32
- * Words to be matched in records.
33
- */
34
- corrections?: string[];
35
-
36
- /**
37
- * [Placeholder token](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/adding-synonyms/in-depth/synonyms-placeholders/) to be put inside records.
38
- */
39
- placeholder?: string;
40
-
41
- /**
42
- * Query words that will match the [placeholder token](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/adding-synonyms/in-depth/synonyms-placeholders/).
43
- */
44
- replacements?: string[];
45
- };
@@ -1,11 +0,0 @@
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
- * Synonym type.
5
- */
6
- export type SynonymType =
7
- | 'altcorrection1'
8
- | 'altcorrection2'
9
- | 'onewaysynonym'
10
- | 'placeholder'
11
- | 'synonym';
@@ -1,6 +0,0 @@
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
- * Task status, `published` if the task is completed, `notPublished` otherwise.
5
- */
6
- export type TaskStatus = 'notPublished' | 'published';
@@ -1,13 +0,0 @@
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
- export type TimeRange = {
4
- /**
5
- * When the rule should start to be active, in Unix epoch time.
6
- */
7
- from: number;
8
-
9
- /**
10
- * When the rule should stop to be active, in Unix epoch time.
11
- */
12
- until: number;
13
- };
@@ -1,18 +0,0 @@
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
- export type UpdatedRuleResponse = {
4
- /**
5
- * Unique identifier of a rule object.
6
- */
7
- objectID: string;
8
-
9
- /**
10
- * Date and time when the object was updated, in RFC 3339 format.
11
- */
12
- updatedAt: string;
13
-
14
- /**
15
- * Unique identifier of a task. A successful API response means that a task was added to a queue. It might not run immediately. You can check the task\'s progress with the [`task` operation](#tag/Indices/operation/getTask) and this `taskID`.
16
- */
17
- taskID: number;
18
- };
@@ -1,26 +0,0 @@
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
- * Unique user ID.
5
- */
6
- export type UserId = {
7
- /**
8
- * Unique identifier of the user who makes the search request.
9
- */
10
- userID: string;
11
-
12
- /**
13
- * Cluster to which the user is assigned.
14
- */
15
- clusterName: string;
16
-
17
- /**
18
- * Number of records belonging to the user.
19
- */
20
- nbRecords: number;
21
-
22
- /**
23
- * Data size used by the user.
24
- */
25
- dataSize: number;
26
- };