algoliasearch 5.0.0-beta.2 → 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 (148) 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/index.d.ts +1 -0
  15. package/dist/client-search/model/index.d.ts.map +1 -1
  16. package/dist/client-search/model/rankingInfo.d.ts +3 -3
  17. package/dist/client-search/model/rankingInfo.d.ts.map +1 -1
  18. package/dist/client-search/model/replaceAllObjectsResponse.d.ts +11 -0
  19. package/dist/client-search/model/replaceAllObjectsResponse.d.ts.map +1 -0
  20. package/dist/client-search/src/searchClient.d.ts +27 -4
  21. package/dist/client-search/src/searchClient.d.ts.map +1 -1
  22. package/dist/lite/lite.cjs +1 -1
  23. package/dist/lite/lite.esm.browser.js +10 -16
  24. package/dist/lite/lite.esm.node.js +1 -1
  25. package/dist/lite/lite.umd.js +2 -2
  26. package/dist/lite/model/index.d.ts +0 -38
  27. package/dist/lite/model/index.d.ts.map +1 -1
  28. package/dist/lite/model/rankingInfo.d.ts +3 -3
  29. package/dist/lite/model/rankingInfo.d.ts.map +1 -1
  30. package/dist/lite/src/liteClient.d.ts +1 -1
  31. package/lite/model/index.ts +0 -38
  32. package/lite/model/rankingInfo.ts +3 -3
  33. package/lite/src/liteClient.ts +1 -1
  34. package/package.json +12 -12
  35. package/dist/lite/model/action.d.ts +0 -5
  36. package/dist/lite/model/action.d.ts.map +0 -1
  37. package/dist/lite/model/addApiKeyResponse.d.ts +0 -11
  38. package/dist/lite/model/addApiKeyResponse.d.ts.map +0 -1
  39. package/dist/lite/model/anchoring.d.ts +0 -5
  40. package/dist/lite/model/anchoring.d.ts.map +0 -1
  41. package/dist/lite/model/apiKeyOperation.d.ts +0 -2
  42. package/dist/lite/model/apiKeyOperation.d.ts.map +0 -1
  43. package/dist/lite/model/attributeToUpdate.d.ts +0 -3
  44. package/dist/lite/model/attributeToUpdate.d.ts.map +0 -1
  45. package/dist/lite/model/browseParams.d.ts +0 -4
  46. package/dist/lite/model/browseParams.d.ts.map +0 -1
  47. package/dist/lite/model/builtInOperation.d.ts +0 -12
  48. package/dist/lite/model/builtInOperation.d.ts.map +0 -1
  49. package/dist/lite/model/builtInOperationType.d.ts +0 -5
  50. package/dist/lite/model/builtInOperationType.d.ts.map +0 -1
  51. package/dist/lite/model/condition.d.ts +0 -21
  52. package/dist/lite/model/condition.d.ts.map +0 -1
  53. package/dist/lite/model/consequence.d.ts +0 -26
  54. package/dist/lite/model/consequence.d.ts.map +0 -1
  55. package/dist/lite/model/consequenceHide.d.ts +0 -10
  56. package/dist/lite/model/consequenceHide.d.ts.map +0 -1
  57. package/dist/lite/model/deleteByParams.d.ts +0 -27
  58. package/dist/lite/model/deleteByParams.d.ts.map +0 -1
  59. package/dist/lite/model/dictionaryAction.d.ts +0 -5
  60. package/dist/lite/model/dictionaryAction.d.ts.map +0 -1
  61. package/dist/lite/model/dictionaryEntry.d.ts +0 -26
  62. package/dist/lite/model/dictionaryEntry.d.ts.map +0 -1
  63. package/dist/lite/model/dictionaryEntryState.d.ts +0 -5
  64. package/dist/lite/model/dictionaryEntryState.d.ts.map +0 -1
  65. package/dist/lite/model/dictionaryLanguage.d.ts +0 -10
  66. package/dist/lite/model/dictionaryLanguage.d.ts.map +0 -1
  67. package/dist/lite/model/dictionaryType.d.ts +0 -2
  68. package/dist/lite/model/dictionaryType.d.ts.map +0 -1
  69. package/dist/lite/model/fetchedIndex.d.ts +0 -47
  70. package/dist/lite/model/fetchedIndex.d.ts.map +0 -1
  71. package/dist/lite/model/languages.d.ts +0 -10
  72. package/dist/lite/model/languages.d.ts.map +0 -1
  73. package/dist/lite/model/listIndicesResponse.d.ts +0 -12
  74. package/dist/lite/model/listIndicesResponse.d.ts.map +0 -1
  75. package/dist/lite/model/logType.d.ts +0 -2
  76. package/dist/lite/model/logType.d.ts.map +0 -1
  77. package/dist/lite/model/operationType.d.ts +0 -5
  78. package/dist/lite/model/operationType.d.ts.map +0 -1
  79. package/dist/lite/model/promote.d.ts +0 -4
  80. package/dist/lite/model/promote.d.ts.map +0 -1
  81. package/dist/lite/model/promoteObjectID.d.ts +0 -14
  82. package/dist/lite/model/promoteObjectID.d.ts.map +0 -1
  83. package/dist/lite/model/promoteObjectIDs.d.ts +0 -14
  84. package/dist/lite/model/promoteObjectIDs.d.ts.map +0 -1
  85. package/dist/lite/model/rule.d.ts +0 -30
  86. package/dist/lite/model/rule.d.ts.map +0 -1
  87. package/dist/lite/model/scopeType.d.ts +0 -2
  88. package/dist/lite/model/scopeType.d.ts.map +0 -1
  89. package/dist/lite/model/searchDictionaryEntriesResponse.d.ts +0 -20
  90. package/dist/lite/model/searchDictionaryEntriesResponse.d.ts.map +0 -1
  91. package/dist/lite/model/searchSynonymsResponse.d.ts +0 -12
  92. package/dist/lite/model/searchSynonymsResponse.d.ts.map +0 -1
  93. package/dist/lite/model/securedAPIKeyRestrictions.d.ts +0 -25
  94. package/dist/lite/model/securedAPIKeyRestrictions.d.ts.map +0 -1
  95. package/dist/lite/model/source.d.ts +0 -14
  96. package/dist/lite/model/source.d.ts.map +0 -1
  97. package/dist/lite/model/standardEntries.d.ts +0 -18
  98. package/dist/lite/model/standardEntries.d.ts.map +0 -1
  99. package/dist/lite/model/synonymHit.d.ts +0 -36
  100. package/dist/lite/model/synonymHit.d.ts.map +0 -1
  101. package/dist/lite/model/synonymType.d.ts +0 -5
  102. package/dist/lite/model/synonymType.d.ts.map +0 -1
  103. package/dist/lite/model/taskStatus.d.ts +0 -5
  104. package/dist/lite/model/taskStatus.d.ts.map +0 -1
  105. package/dist/lite/model/timeRange.d.ts +0 -11
  106. package/dist/lite/model/timeRange.d.ts.map +0 -1
  107. package/dist/lite/model/updatedRuleResponse.d.ts +0 -15
  108. package/dist/lite/model/updatedRuleResponse.d.ts.map +0 -1
  109. package/dist/lite/model/userId.d.ts +0 -22
  110. package/dist/lite/model/userId.d.ts.map +0 -1
  111. package/lite/model/action.ts +0 -13
  112. package/lite/model/addApiKeyResponse.ts +0 -13
  113. package/lite/model/anchoring.ts +0 -6
  114. package/lite/model/apiKeyOperation.ts +0 -3
  115. package/lite/model/attributeToUpdate.ts +0 -5
  116. package/lite/model/browseParams.ts +0 -6
  117. package/lite/model/builtInOperation.ts +0 -15
  118. package/lite/model/builtInOperationType.ts +0 -13
  119. package/lite/model/condition.ts +0 -27
  120. package/lite/model/consequence.ts +0 -32
  121. package/lite/model/consequenceHide.ts +0 -11
  122. package/lite/model/deleteByParams.ts +0 -36
  123. package/lite/model/dictionaryAction.ts +0 -6
  124. package/lite/model/dictionaryEntry.ts +0 -33
  125. package/lite/model/dictionaryEntryState.ts +0 -6
  126. package/lite/model/dictionaryLanguage.ts +0 -11
  127. package/lite/model/dictionaryType.ts +0 -3
  128. package/lite/model/fetchedIndex.ts +0 -58
  129. package/lite/model/languages.ts +0 -14
  130. package/lite/model/listIndicesResponse.ts +0 -15
  131. package/lite/model/logType.ts +0 -3
  132. package/lite/model/operationType.ts +0 -6
  133. package/lite/model/promote.ts +0 -6
  134. package/lite/model/promoteObjectID.ts +0 -16
  135. package/lite/model/promoteObjectIDs.ts +0 -16
  136. package/lite/model/rule.ts +0 -37
  137. package/lite/model/scopeType.ts +0 -3
  138. package/lite/model/searchDictionaryEntriesResponse.ts +0 -25
  139. package/lite/model/searchSynonymsResponse.ts +0 -15
  140. package/lite/model/securedAPIKeyRestrictions.ts +0 -32
  141. package/lite/model/source.ts +0 -16
  142. package/lite/model/standardEntries.ts +0 -21
  143. package/lite/model/synonymHit.ts +0 -45
  144. package/lite/model/synonymType.ts +0 -11
  145. package/lite/model/taskStatus.ts +0 -6
  146. package/lite/model/timeRange.ts +0 -13
  147. package/lite/model/updatedRuleResponse.ts +0 -18
  148. package/lite/model/userId.ts +0 -26
@@ -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
- };