algoliasearch 5.0.0-beta.2 → 5.0.0-beta.4

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 +73 -11
  6. package/dist/algoliasearch.esm.browser.js +82 -26
  7. package/dist/algoliasearch.esm.node.js +73 -11
  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 +28 -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,18 +1,13 @@
1
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
2
 
3
3
  export * from './acl';
4
- export * from './action';
5
- export * from './addApiKeyResponse';
6
4
  export * from './advancedSyntaxFeatures';
7
5
  export * from './alternativesAsExact';
8
- export * from './anchoring';
9
6
  export * from './apiKey';
10
- export * from './apiKeyOperation';
11
7
  export * from './aroundPrecision';
12
8
  export * from './aroundPrecisionFromValueInner';
13
9
  export * from './aroundRadius';
14
10
  export * from './aroundRadiusAll';
15
- export * from './attributeToUpdate';
16
11
  export * from './automaticFacetFilter';
17
12
  export * from './automaticFacetFilters';
18
13
  export * from './baseGetApiKeyResponse';
@@ -20,24 +15,12 @@ export * from './baseIndexSettings';
20
15
  export * from './baseSearchParams';
21
16
  export * from './baseSearchParamsWithoutQuery';
22
17
  export * from './baseSearchResponse';
23
- export * from './browseParams';
24
18
  export * from './browseParamsObject';
25
19
  export * from './browseResponse';
26
- export * from './builtInOperation';
27
- export * from './builtInOperationType';
28
- export * from './condition';
29
- export * from './consequence';
30
- export * from './consequenceHide';
31
20
  export * from './consequenceParams';
32
21
  export * from './consequenceQuery';
33
22
  export * from './consequenceQueryObject';
34
23
  export * from './cursor';
35
- export * from './deleteByParams';
36
- export * from './dictionaryAction';
37
- export * from './dictionaryEntry';
38
- export * from './dictionaryEntryState';
39
- export * from './dictionaryLanguage';
40
- export * from './dictionaryType';
41
24
  export * from './distinct';
42
25
  export * from './edit';
43
26
  export * from './editType';
@@ -49,7 +32,6 @@ export * from './facetHits';
49
32
  export * from './facetOrdering';
50
33
  export * from './facets';
51
34
  export * from './facetsStats';
52
- export * from './fetchedIndex';
53
35
  export * from './getApiKeyResponse';
54
36
  export * from './highlightResult';
55
37
  export * from './highlightResultOption';
@@ -57,20 +39,13 @@ export * from './hit';
57
39
  export * from './ignorePlurals';
58
40
  export * from './indexSettings';
59
41
  export * from './indexSettingsAsSearchParams';
60
- export * from './languages';
61
- export * from './listIndicesResponse';
62
- export * from './logType';
63
42
  export * from './matchLevel';
64
43
  export * from './matchedGeoLocation';
65
44
  export * from './mode';
66
45
  export * from './numericFilters';
67
- export * from './operationType';
68
46
  export * from './optionalFilters';
69
47
  export * from './params';
70
48
  export * from './personalization';
71
- export * from './promote';
72
- export * from './promoteObjectID';
73
- export * from './promoteObjectIDs';
74
49
  export * from './queryType';
75
50
  export * from './rankingInfo';
76
51
  export * from './reRankingApplyFilter';
@@ -80,9 +55,6 @@ export * from './redirectRuleIndexMetadataData';
80
55
  export * from './removeStopWords';
81
56
  export * from './removeWordsIfNoResults';
82
57
  export * from './renderingContent';
83
- export * from './rule';
84
- export * from './scopeType';
85
- export * from './searchDictionaryEntriesResponse';
86
58
  export * from './searchForFacetValuesResponse';
87
59
  export * from './searchForFacets';
88
60
  export * from './searchForFacetsOptions';
@@ -99,25 +71,15 @@ export * from './searchResponse';
99
71
  export * from './searchResponses';
100
72
  export * from './searchResult';
101
73
  export * from './searchStrategy';
102
- export * from './searchSynonymsResponse';
103
74
  export * from './searchTypeDefault';
104
75
  export * from './searchTypeFacet';
105
- export * from './securedAPIKeyRestrictions';
106
76
  export * from './semanticSearch';
107
77
  export * from './snippetResult';
108
78
  export * from './snippetResultOption';
109
79
  export * from './sortRemainingBy';
110
- export * from './source';
111
- export * from './standardEntries';
112
80
  export * from './supportedLanguage';
113
- export * from './synonymHit';
114
- export * from './synonymType';
115
81
  export * from './tagFilters';
116
- export * from './taskStatus';
117
- export * from './timeRange';
118
82
  export * from './typoTolerance';
119
83
  export * from './typoToleranceEnum';
120
- export * from './updatedRuleResponse';
121
- export * from './userId';
122
84
  export * from './value';
123
85
  export * from './clientMethodProps';
@@ -10,7 +10,7 @@ export type RankingInfo = {
10
10
  /**
11
11
  * Whether a filter matched the query.
12
12
  */
13
- filters: number;
13
+ filters?: number;
14
14
 
15
15
  /**
16
16
  * Position of the first matched word in the best matching attribute of the record.
@@ -44,7 +44,7 @@ export type RankingInfo = {
44
44
  /**
45
45
  * Whether the record was promoted by a rule.
46
46
  */
47
- promoted: boolean;
47
+ promoted?: boolean;
48
48
 
49
49
  /**
50
50
  * Number of words between multiple matches in the query plus 1. For single word queries, `proximityDistance` is 0.
@@ -59,7 +59,7 @@ export type RankingInfo = {
59
59
  /**
60
60
  * Number of matched words.
61
61
  */
62
- words: number;
62
+ words?: number;
63
63
 
64
64
  /**
65
65
  * Whether the record is re-ranked.
@@ -22,7 +22,7 @@ import type {
22
22
  import type { SearchMethodParams } from '../model/searchMethodParams';
23
23
  import type { SearchResponses } from '../model/searchResponses';
24
24
 
25
- export const apiClientVersion = '5.0.0-beta.2';
25
+ export const apiClientVersion = '5.0.0-beta.4';
26
26
 
27
27
  function getDefaultHosts(appId: string): Host[] {
28
28
  return (
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "algoliasearch",
3
- "version": "5.0.0-beta.2",
3
+ "version": "5.0.0-beta.4",
4
4
  "description": "A fully-featured and blazing-fast JavaScript API client to interact with Algolia API.",
5
5
  "repository": "algolia/algoliasearch-client-javascript",
6
6
  "license": "MIT",
@@ -60,21 +60,21 @@
60
60
  "test": "jest"
61
61
  },
62
62
  "dependencies": {
63
- "@algolia/client-abtesting": "5.0.0-beta.2",
64
- "@algolia/client-analytics": "5.0.0-beta.2",
65
- "@algolia/client-common": "5.0.0-beta.2",
66
- "@algolia/client-personalization": "5.0.0-beta.2",
67
- "@algolia/client-search": "5.0.0-beta.2",
68
- "@algolia/requester-browser-xhr": "5.0.0-beta.2",
69
- "@algolia/requester-node-http": "5.0.0-beta.2"
63
+ "@algolia/client-abtesting": "5.0.0-beta.4",
64
+ "@algolia/client-analytics": "5.0.0-beta.4",
65
+ "@algolia/client-common": "5.0.0-beta.4",
66
+ "@algolia/client-personalization": "5.0.0-beta.4",
67
+ "@algolia/client-search": "5.0.0-beta.4",
68
+ "@algolia/requester-browser-xhr": "5.0.0-beta.4",
69
+ "@algolia/requester-node-http": "5.0.0-beta.4"
70
70
  },
71
71
  "devDependencies": {
72
- "@babel/preset-env": "7.24.5",
73
- "@babel/preset-typescript": "7.24.1",
72
+ "@babel/preset-env": "7.24.7",
73
+ "@babel/preset-typescript": "7.24.7",
74
74
  "@types/jest": "29.5.12",
75
- "@types/node": "20.12.11",
75
+ "@types/node": "20.14.2",
76
76
  "jest": "29.7.0",
77
- "rollup": "4.17.2",
77
+ "rollup": "4.18.0",
78
78
  "typescript": "5.4.5"
79
79
  },
80
80
  "engines": {
@@ -1,5 +0,0 @@
1
- /**
2
- * Type of indexing operation.
3
- */
4
- export type Action = 'addObject' | 'clear' | 'delete' | 'deleteObject' | 'partialUpdateObject' | 'partialUpdateObjectNoCreate' | 'updateObject';
5
- //# sourceMappingURL=action.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"action.d.ts","sourceRoot":"","sources":["../../../lite/model/action.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,MAAM,GACd,WAAW,GACX,OAAO,GACP,QAAQ,GACR,cAAc,GACd,qBAAqB,GACrB,6BAA6B,GAC7B,cAAc,CAAC"}
@@ -1,11 +0,0 @@
1
- export type AddApiKeyResponse = {
2
- /**
3
- * API key.
4
- */
5
- key: string;
6
- /**
7
- * Date and time when the object was created, in RFC 3339 format.
8
- */
9
- createdAt: string;
10
- };
11
- //# sourceMappingURL=addApiKeyResponse.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"addApiKeyResponse.d.ts","sourceRoot":"","sources":["../../../lite/model/addApiKeyResponse.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,iBAAiB,GAAG;IAC9B;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IAEZ;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC"}
@@ -1,5 +0,0 @@
1
- /**
2
- * Which part of the search query the pattern should match: - `startsWith`. The pattern must match the begginning of the query. - `endsWith`. The pattern must match the end of the query. - `is`. The pattern must match the query exactly. - `contains`. The pattern must match anywhere in the query. Empty queries are only allowed as pattern with `anchoring: is`.
3
- */
4
- export type Anchoring = 'contains' | 'endsWith' | 'is' | 'startsWith';
5
- //# sourceMappingURL=anchoring.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"anchoring.d.ts","sourceRoot":"","sources":["../../../lite/model/anchoring.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,UAAU,GAAG,UAAU,GAAG,IAAI,GAAG,YAAY,CAAC"}
@@ -1,2 +0,0 @@
1
- export type ApiKeyOperation = 'add' | 'delete' | 'update';
2
- //# sourceMappingURL=apiKeyOperation.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"apiKeyOperation.d.ts","sourceRoot":"","sources":["../../../lite/model/apiKeyOperation.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,eAAe,GAAG,KAAK,GAAG,QAAQ,GAAG,QAAQ,CAAC"}
@@ -1,3 +0,0 @@
1
- import type { BuiltInOperation } from './builtInOperation';
2
- export type AttributeToUpdate = BuiltInOperation | string;
3
- //# sourceMappingURL=attributeToUpdate.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"attributeToUpdate.d.ts","sourceRoot":"","sources":["../../../lite/model/attributeToUpdate.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAE3D,MAAM,MAAM,iBAAiB,GAAG,gBAAgB,GAAG,MAAM,CAAC"}
@@ -1,4 +0,0 @@
1
- import type { BrowseParamsObject } from './browseParamsObject';
2
- import type { SearchParamsString } from './searchParamsString';
3
- export type BrowseParams = BrowseParamsObject | SearchParamsString;
4
- //# sourceMappingURL=browseParams.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"browseParams.d.ts","sourceRoot":"","sources":["../../../lite/model/browseParams.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE/D,MAAM,MAAM,YAAY,GAAG,kBAAkB,GAAG,kBAAkB,CAAC"}
@@ -1,12 +0,0 @@
1
- import type { BuiltInOperationType } from './builtInOperationType';
2
- /**
3
- * Update to perform on the attribute.
4
- */
5
- export type BuiltInOperation = {
6
- _operation: BuiltInOperationType;
7
- /**
8
- * Value that corresponds to the operation, for example an `Increment` or `Decrement` step, or an `Add` or `Remove` value.
9
- */
10
- value: string;
11
- };
12
- //# sourceMappingURL=builtInOperation.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"builtInOperation.d.ts","sourceRoot":"","sources":["../../../lite/model/builtInOperation.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAEnE;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B,UAAU,EAAE,oBAAoB,CAAC;IAEjC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;CACf,CAAC"}
@@ -1,5 +0,0 @@
1
- /**
2
- * How to change the attribute.
3
- */
4
- export type BuiltInOperationType = 'Add' | 'AddUnique' | 'Decrement' | 'Increment' | 'IncrementFrom' | 'IncrementSet' | 'Remove';
5
- //# sourceMappingURL=builtInOperationType.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"builtInOperationType.d.ts","sourceRoot":"","sources":["../../../lite/model/builtInOperationType.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAC5B,KAAK,GACL,WAAW,GACX,WAAW,GACX,WAAW,GACX,eAAe,GACf,cAAc,GACd,QAAQ,CAAC"}
@@ -1,21 +0,0 @@
1
- import type { Anchoring } from './anchoring';
2
- export type Condition = {
3
- /**
4
- * Query pattern that triggers the rule. You can use either a literal string, or a special pattern `{facet:ATTRIBUTE}`, where `ATTRIBUTE` is a facet name. The rule is triggered if the query matches the literal string or a value of the specified facet. For example, with `pattern: {facet:genre}`, the rule is triggered when users search for a genre, such as \"comedy\".
5
- */
6
- pattern?: string;
7
- anchoring?: Anchoring;
8
- /**
9
- * Whether the pattern should match plurals, synonyms, and typos.
10
- */
11
- alternatives?: boolean;
12
- /**
13
- * An additional restriction that only triggers the rule, when the search has the same value as `ruleContexts` parameter. For example, if `context: mobile`, the rule is only triggered when the search request has a matching `ruleContexts: mobile`. A rule context must only contain alphanumeric characters.
14
- */
15
- context?: string;
16
- /**
17
- * Filters that trigger the rule. You can add add filters using the syntax `facet:value` so that the rule is triggered, when the specific filter is selected. You can use `filters` on its own or combine it with the `pattern` parameter.
18
- */
19
- filters?: string;
20
- };
21
- //# sourceMappingURL=condition.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"condition.d.ts","sourceRoot":"","sources":["../../../lite/model/condition.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAE7C,MAAM,MAAM,SAAS,GAAG;IACtB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,SAAS,CAAC,EAAE,SAAS,CAAC;IAEtB;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IAEvB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC"}
@@ -1,26 +0,0 @@
1
- import type { ConsequenceHide } from './consequenceHide';
2
- import type { ConsequenceParams } from './consequenceParams';
3
- import type { Promote } from './promote';
4
- /**
5
- * Effect of the rule. For more information, see [Consequences](https://www.algolia.com/doc/guides/managing-results/rules/rules-overview/#consequences).
6
- */
7
- export type Consequence = {
8
- params?: ConsequenceParams;
9
- /**
10
- * Records you want to pin to a specific position in the search results. You can promote up to 300 records, either individually, or as groups of up to 100 records each.
11
- */
12
- promote?: Promote[];
13
- /**
14
- * 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.
15
- */
16
- filterPromotes?: boolean;
17
- /**
18
- * Records you want to hide from the search results.
19
- */
20
- hide?: ConsequenceHide[];
21
- /**
22
- * A JSON object with custom data that will be appended to the `userData` array in the response. This object isn\'t interpreted by the API and is limited to 1 kB of minified JSON.
23
- */
24
- userData?: any | null;
25
- };
26
- //# sourceMappingURL=consequence.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"consequence.d.ts","sourceRoot":"","sources":["../../../lite/model/consequence.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEzC;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG;IACxB,MAAM,CAAC,EAAE,iBAAiB,CAAC;IAE3B;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,EAAE,CAAC;IAEpB;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IAEzB;;OAEG;IACH,IAAI,CAAC,EAAE,eAAe,EAAE,CAAC;IAEzB;;OAEG;IACH,QAAQ,CAAC,EAAE,GAAG,GAAG,IAAI,CAAC;CACvB,CAAC"}
@@ -1,10 +0,0 @@
1
- /**
2
- * Object ID of the record to hide.
3
- */
4
- export type ConsequenceHide = {
5
- /**
6
- * Unique record identifier.
7
- */
8
- objectID: string;
9
- };
10
- //# sourceMappingURL=consequenceHide.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"consequenceHide.d.ts","sourceRoot":"","sources":["../../../lite/model/consequenceHide.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC"}
@@ -1,27 +0,0 @@
1
- import type { AroundRadius } from './aroundRadius';
2
- import type { FacetFilters } from './facetFilters';
3
- import type { NumericFilters } from './numericFilters';
4
- import type { TagFilters } from './tagFilters';
5
- export type DeleteByParams = {
6
- facetFilters?: FacetFilters;
7
- /**
8
- * Filter expression to only include items that match the filter criteria in the response. You can use these filter expressions: - **Numeric filters.** `<facet> <op> <number>`, where `<op>` is one of `<`, `<=`, `=`, `!=`, `>`, `>=`. - **Ranges.** `<facet>:<lower> TO <upper>` where `<lower>` and `<upper>` are the lower and upper limits of the range (inclusive). - **Facet filters.** `<facet>:<value>` where `<facet>` is a facet attribute (case-sensitive) and `<value>` a facet value. - **Tag filters.** `_tags:<value>` or just `<value>` (case-sensitive). - **Boolean filters.** `<facet>: true | false`. You can combine filters with `AND`, `OR`, and `NOT` operators with the following restrictions: - You can only combine filters of the same type with `OR`. **Not supported:** `facet:value OR num > 3`. - You can\'t use `NOT` with combinations of filters. **Not supported:** `NOT(facet:value OR facet:value)` - You can\'t combine conjunctions (`AND`) with `OR`. **Not supported:** `facet:value OR (facet:value AND facet:value)` Use quotes around your filters, if the facet attribute name or facet value has spaces, keywords (`OR`, `AND`, `NOT`), or quotes. If a facet attribute is an array, the filter matches if it matches at least one element of the array. For more information, see [Filters](https://www.algolia.com/doc/guides/managing-results/refine-results/filtering/).
9
- */
10
- filters?: string;
11
- numericFilters?: NumericFilters;
12
- tagFilters?: TagFilters;
13
- /**
14
- * Coordinates for the center of a circle, expressed as a comma-separated string of latitude and longitude. Only records included within circle around this central location are included in the results. The radius of the circle is determined by the `aroundRadius` and `minimumAroundRadius` settings. This parameter is ignored if you also specify `insidePolygon` or `insideBoundingBox`.
15
- */
16
- aroundLatLng?: string;
17
- aroundRadius?: AroundRadius;
18
- /**
19
- * Coordinates for a rectangular area in which to search. Each bounding box is defined by the two opposite points of its diagonal, and expressed as latitude and longitude pair: `[p1 lat, p1 long, p2 lat, p2 long]`. Provide multiple bounding boxes as nested arrays. For more information, see [rectangular area](https://www.algolia.com/doc/guides/managing-results/refine-results/geolocation/#filtering-inside-rectangular-or-polygonal-areas).
20
- */
21
- insideBoundingBox?: number[][];
22
- /**
23
- * Coordinates of a polygon in which to search. Polygons are defined by 3 to 10,000 points. Each point is represented by its latitude and longitude. Provide multiple polygons as nested arrays. For more information, see [filtering inside polygons](https://www.algolia.com/doc/guides/managing-results/refine-results/geolocation/#filtering-inside-rectangular-or-polygonal-areas). This parameter is ignored if you also specify `insideBoundingBox`.
24
- */
25
- insidePolygon?: number[][];
26
- };
27
- //# sourceMappingURL=deleteByParams.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"deleteByParams.d.ts","sourceRoot":"","sources":["../../../lite/model/deleteByParams.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,MAAM,MAAM,cAAc,GAAG;IAC3B,YAAY,CAAC,EAAE,YAAY,CAAC;IAE5B;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,cAAc,CAAC,EAAE,cAAc,CAAC;IAEhC,UAAU,CAAC,EAAE,UAAU,CAAC;IAExB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB,YAAY,CAAC,EAAE,YAAY,CAAC;IAE5B;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,EAAE,EAAE,CAAC;IAE/B;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,EAAE,EAAE,CAAC;CAC5B,CAAC"}
@@ -1,5 +0,0 @@
1
- /**
2
- * Actions to perform.
3
- */
4
- export type DictionaryAction = 'addEntry' | 'deleteEntry';
5
- //# sourceMappingURL=dictionaryAction.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"dictionaryAction.d.ts","sourceRoot":"","sources":["../../../lite/model/dictionaryAction.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,UAAU,GAAG,aAAa,CAAC"}
@@ -1,26 +0,0 @@
1
- import type { DictionaryEntryState } from './dictionaryEntryState';
2
- import type { SupportedLanguage } from './supportedLanguage';
3
- /**
4
- * Dictionary entry.
5
- */
6
- export type DictionaryEntry = Record<string, any> & {
7
- /**
8
- * Unique identifier for the dictionary entry.
9
- */
10
- objectID: string;
11
- language: SupportedLanguage;
12
- /**
13
- * Matching dictionary word for `stopwords` and `compounds` dictionaries.
14
- */
15
- word?: string;
16
- /**
17
- * Matching words in the `plurals` dictionary including declensions.
18
- */
19
- words?: string[];
20
- /**
21
- * Invividual components of a compound word in the `compounds` dictionary.
22
- */
23
- decomposition?: string[];
24
- state?: DictionaryEntryState;
25
- };
26
- //# sourceMappingURL=dictionaryEntry.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"dictionaryEntry.d.ts","sourceRoot":"","sources":["../../../lite/model/dictionaryEntry.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AACnE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAE7D;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG;IAClD;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB,QAAQ,EAAE,iBAAiB,CAAC;IAE5B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IAEjB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;IAEzB,KAAK,CAAC,EAAE,oBAAoB,CAAC;CAC9B,CAAC"}
@@ -1,5 +0,0 @@
1
- /**
2
- * Whether a dictionary entry is active.
3
- */
4
- export type DictionaryEntryState = 'disabled' | 'enabled';
5
- //# sourceMappingURL=dictionaryEntryState.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"dictionaryEntryState.d.ts","sourceRoot":"","sources":["../../../lite/model/dictionaryEntryState.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG,UAAU,GAAG,SAAS,CAAC"}
@@ -1,10 +0,0 @@
1
- /**
2
- * Dictionary type. If `null`, this dictionary type isn\'t supported for the language.
3
- */
4
- export type DictionaryLanguage = {
5
- /**
6
- * Number of custom dictionary entries.
7
- */
8
- nbCustomEntries?: number;
9
- };
10
- //# sourceMappingURL=dictionaryLanguage.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"dictionaryLanguage.d.ts","sourceRoot":"","sources":["../../../lite/model/dictionaryLanguage.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC"}
@@ -1,2 +0,0 @@
1
- export type DictionaryType = 'compounds' | 'plurals' | 'stopwords';
2
- //# sourceMappingURL=dictionaryType.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"dictionaryType.d.ts","sourceRoot":"","sources":["../../../lite/model/dictionaryType.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,cAAc,GAAG,WAAW,GAAG,SAAS,GAAG,WAAW,CAAC"}
@@ -1,47 +0,0 @@
1
- export type FetchedIndex = {
2
- /**
3
- * Index name.
4
- */
5
- name: string;
6
- /**
7
- * Index creation date. An empty string means that the index has no records.
8
- */
9
- createdAt: string;
10
- /**
11
- * Date and time when the object was updated, in RFC 3339 format.
12
- */
13
- updatedAt: string;
14
- /**
15
- * Number of records contained in the index.
16
- */
17
- entries: number;
18
- /**
19
- * Number of bytes of the index in minified format.
20
- */
21
- dataSize: number;
22
- /**
23
- * Number of bytes of the index binary file.
24
- */
25
- fileSize: number;
26
- /**
27
- * Last build time.
28
- */
29
- lastBuildTimeS: number;
30
- /**
31
- * Number of pending indexing operations. This value is deprecated and should not be used.
32
- */
33
- numberOfPendingTasks: number;
34
- /**
35
- * A boolean which says whether the index has pending tasks. This value is deprecated and should not be used.
36
- */
37
- pendingTask: boolean;
38
- /**
39
- * Only present if the index is a replica. Contains the name of the related primary index.
40
- */
41
- primary?: string;
42
- /**
43
- * Only present if the index is a primary index with replicas. Contains the names of all linked replicas.
44
- */
45
- replicas?: string[];
46
- };
47
- //# sourceMappingURL=fetchedIndex.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"fetchedIndex.d.ts","sourceRoot":"","sources":["../../../lite/model/fetchedIndex.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,YAAY,GAAG;IACzB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,oBAAoB,EAAE,MAAM,CAAC;IAE7B;;OAEG;IACH,WAAW,EAAE,OAAO,CAAC;IAErB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;CACrB,CAAC"}
@@ -1,10 +0,0 @@
1
- import type { DictionaryLanguage } from './dictionaryLanguage';
2
- /**
3
- * Dictionary language.
4
- */
5
- export type Languages = {
6
- plurals: DictionaryLanguage | null;
7
- stopwords: DictionaryLanguage | null;
8
- compounds: DictionaryLanguage | null;
9
- };
10
- //# sourceMappingURL=languages.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"languages.d.ts","sourceRoot":"","sources":["../../../lite/model/languages.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE/D;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG;IACtB,OAAO,EAAE,kBAAkB,GAAG,IAAI,CAAC;IAEnC,SAAS,EAAE,kBAAkB,GAAG,IAAI,CAAC;IAErC,SAAS,EAAE,kBAAkB,GAAG,IAAI,CAAC;CACtC,CAAC"}
@@ -1,12 +0,0 @@
1
- import type { FetchedIndex } from './fetchedIndex';
2
- export type ListIndicesResponse = {
3
- /**
4
- * All indices in your Algolia application.
5
- */
6
- items: FetchedIndex[];
7
- /**
8
- * Number of pages.
9
- */
10
- nbPages?: number;
11
- };
12
- //# sourceMappingURL=listIndicesResponse.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"listIndicesResponse.d.ts","sourceRoot":"","sources":["../../../lite/model/listIndicesResponse.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAEnD,MAAM,MAAM,mBAAmB,GAAG;IAChC;;OAEG;IACH,KAAK,EAAE,YAAY,EAAE,CAAC;IAEtB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC"}
@@ -1,2 +0,0 @@
1
- export type LogType = 'all' | 'build' | 'error' | 'query';
2
- //# sourceMappingURL=logType.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"logType.d.ts","sourceRoot":"","sources":["../../../lite/model/logType.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,OAAO,GAAG,KAAK,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,CAAC"}
@@ -1,5 +0,0 @@
1
- /**
2
- * Operation to perform on the index.
3
- */
4
- export type OperationType = 'copy' | 'move';
5
- //# sourceMappingURL=operationType.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"operationType.d.ts","sourceRoot":"","sources":["../../../lite/model/operationType.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,MAAM,CAAC"}
@@ -1,4 +0,0 @@
1
- import type { PromoteObjectID } from './promoteObjectID';
2
- import type { PromoteObjectIDs } from './promoteObjectIDs';
3
- export type Promote = PromoteObjectID | PromoteObjectIDs;
4
- //# sourceMappingURL=promote.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"promote.d.ts","sourceRoot":"","sources":["../../../lite/model/promote.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAE3D,MAAM,MAAM,OAAO,GAAG,eAAe,GAAG,gBAAgB,CAAC"}
@@ -1,14 +0,0 @@
1
- /**
2
- * Record to promote.
3
- */
4
- export type PromoteObjectID = {
5
- /**
6
- * Unique record identifier.
7
- */
8
- objectID: string;
9
- /**
10
- * Position in the search results where you want to show the promoted records.
11
- */
12
- position: number;
13
- };
14
- //# sourceMappingURL=promoteObjectID.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"promoteObjectID.d.ts","sourceRoot":"","sources":["../../../lite/model/promoteObjectID.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC"}
@@ -1,14 +0,0 @@
1
- /**
2
- * Records to promote.
3
- */
4
- export type PromoteObjectIDs = {
5
- /**
6
- * 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.
7
- */
8
- objectIDs: string[];
9
- /**
10
- * Position in the search results where you want to show the promoted records.
11
- */
12
- position: number;
13
- };
14
- //# sourceMappingURL=promoteObjectIDs.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"promoteObjectIDs.d.ts","sourceRoot":"","sources":["../../../lite/model/promoteObjectIDs.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B;;OAEG;IACH,SAAS,EAAE,MAAM,EAAE,CAAC;IAEpB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC"}