@algolia/client-analytics 5.0.0-alpha.8 → 5.0.0-alpha.80

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 (146) hide show
  1. package/dist/builds/browser.d.ts +5 -5
  2. package/dist/builds/browser.d.ts.map +1 -1
  3. package/dist/builds/node.d.ts +5 -5
  4. package/dist/builds/node.d.ts.map +1 -1
  5. package/dist/{client-analytics.cjs.js → client-analytics.cjs} +922 -924
  6. package/dist/client-analytics.esm.browser.js +1105 -1153
  7. package/dist/client-analytics.esm.node.js +922 -922
  8. package/dist/client-analytics.umd.js +2 -2
  9. package/dist/model/averageClickEvent.d.ts +14 -14
  10. package/dist/model/averageClickEvent.d.ts.map +1 -1
  11. package/dist/model/clickPosition.d.ts +10 -10
  12. package/dist/model/clickPosition.d.ts.map +1 -1
  13. package/dist/model/clickThroughRateEvent.d.ts +18 -18
  14. package/dist/model/clickThroughRateEvent.d.ts.map +1 -1
  15. package/dist/model/clientMethodProps.d.ts +507 -507
  16. package/dist/model/clientMethodProps.d.ts.map +1 -1
  17. package/dist/model/conversionRateEvent.d.ts +18 -18
  18. package/dist/model/conversionRateEvent.d.ts.map +1 -1
  19. package/dist/model/direction.d.ts +1 -1
  20. package/dist/model/direction.d.ts.map +1 -1
  21. package/dist/model/errorBase.d.ts +6 -6
  22. package/dist/model/errorBase.d.ts.map +1 -1
  23. package/dist/model/getAverageClickPositionResponse.d.ts +15 -15
  24. package/dist/model/getAverageClickPositionResponse.d.ts.map +1 -1
  25. package/dist/model/getClickPositionsResponse.d.ts +7 -7
  26. package/dist/model/getClickPositionsResponse.d.ts.map +1 -1
  27. package/dist/model/getClickThroughRateResponse.d.ts +19 -19
  28. package/dist/model/getClickThroughRateResponse.d.ts.map +1 -1
  29. package/dist/model/getConversationRateResponse.d.ts +19 -19
  30. package/dist/model/getConversationRateResponse.d.ts.map +1 -1
  31. package/dist/model/getNoClickRateResponse.d.ts +19 -19
  32. package/dist/model/getNoClickRateResponse.d.ts.map +1 -1
  33. package/dist/model/getNoResultsRateResponse.d.ts +19 -19
  34. package/dist/model/getNoResultsRateResponse.d.ts.map +1 -1
  35. package/dist/model/getSearchesCountResponse.d.ts +11 -11
  36. package/dist/model/getSearchesCountResponse.d.ts.map +1 -1
  37. package/dist/model/getSearchesNoClicksResponse.d.ts +7 -7
  38. package/dist/model/getSearchesNoClicksResponse.d.ts.map +1 -1
  39. package/dist/model/getSearchesNoResultsResponse.d.ts +7 -7
  40. package/dist/model/getSearchesNoResultsResponse.d.ts.map +1 -1
  41. package/dist/model/getStatusResponse.d.ts +6 -6
  42. package/dist/model/getStatusResponse.d.ts.map +1 -1
  43. package/dist/model/getTopCountriesResponse.d.ts +7 -7
  44. package/dist/model/getTopCountriesResponse.d.ts.map +1 -1
  45. package/dist/model/getTopFilterAttribute.d.ts +10 -10
  46. package/dist/model/getTopFilterAttribute.d.ts.map +1 -1
  47. package/dist/model/getTopFilterAttributesResponse.d.ts +7 -7
  48. package/dist/model/getTopFilterAttributesResponse.d.ts.map +1 -1
  49. package/dist/model/getTopFilterForAttribute.d.ts +18 -18
  50. package/dist/model/getTopFilterForAttribute.d.ts.map +1 -1
  51. package/dist/model/getTopFilterForAttributeResponse.d.ts +7 -7
  52. package/dist/model/getTopFilterForAttributeResponse.d.ts.map +1 -1
  53. package/dist/model/getTopFiltersNoResultsResponse.d.ts +7 -7
  54. package/dist/model/getTopFiltersNoResultsResponse.d.ts.map +1 -1
  55. package/dist/model/getTopFiltersNoResultsValue.d.ts +14 -14
  56. package/dist/model/getTopFiltersNoResultsValue.d.ts.map +1 -1
  57. package/dist/model/getTopFiltersNoResultsValues.d.ts +11 -11
  58. package/dist/model/getTopFiltersNoResultsValues.d.ts.map +1 -1
  59. package/dist/model/getTopHitsResponse.d.ts +3 -3
  60. package/dist/model/getTopHitsResponse.d.ts.map +1 -1
  61. package/dist/model/getTopSearchesResponse.d.ts +3 -3
  62. package/dist/model/getTopSearchesResponse.d.ts.map +1 -1
  63. package/dist/model/getUsersCountResponse.d.ts +11 -11
  64. package/dist/model/getUsersCountResponse.d.ts.map +1 -1
  65. package/dist/model/index.d.ts +44 -44
  66. package/dist/model/noClickRateEvent.d.ts +18 -18
  67. package/dist/model/noClickRateEvent.d.ts.map +1 -1
  68. package/dist/model/noResultsRateEvent.d.ts +18 -18
  69. package/dist/model/noResultsRateEvent.d.ts.map +1 -1
  70. package/dist/model/orderBy.d.ts +4 -1
  71. package/dist/model/orderBy.d.ts.map +1 -1
  72. package/dist/model/searchEvent.d.ts +10 -10
  73. package/dist/model/searchEvent.d.ts.map +1 -1
  74. package/dist/model/searchNoClickEvent.d.ts +14 -14
  75. package/dist/model/searchNoClickEvent.d.ts.map +1 -1
  76. package/dist/model/searchNoResultEvent.d.ts +14 -14
  77. package/dist/model/searchNoResultEvent.d.ts.map +1 -1
  78. package/dist/model/topCountry.d.ts +10 -10
  79. package/dist/model/topCountry.d.ts.map +1 -1
  80. package/dist/model/topHit.d.ts +10 -10
  81. package/dist/model/topHit.d.ts.map +1 -1
  82. package/dist/model/topHitWithAnalytics.d.ts +30 -30
  83. package/dist/model/topHitWithAnalytics.d.ts.map +1 -1
  84. package/dist/model/topHitsResponse.d.ts +7 -7
  85. package/dist/model/topHitsResponse.d.ts.map +1 -1
  86. package/dist/model/topHitsResponseWithAnalytics.d.ts +7 -7
  87. package/dist/model/topHitsResponseWithAnalytics.d.ts.map +1 -1
  88. package/dist/model/topSearch.d.ts +14 -14
  89. package/dist/model/topSearch.d.ts.map +1 -1
  90. package/dist/model/topSearchWithAnalytics.d.ts +38 -38
  91. package/dist/model/topSearchWithAnalytics.d.ts.map +1 -1
  92. package/dist/model/topSearchesResponse.d.ts +7 -7
  93. package/dist/model/topSearchesResponse.d.ts.map +1 -1
  94. package/dist/model/topSearchesResponseWithAnalytics.d.ts +7 -7
  95. package/dist/model/topSearchesResponseWithAnalytics.d.ts.map +1 -1
  96. package/dist/model/userWithDate.d.ts +10 -10
  97. package/dist/model/userWithDate.d.ts.map +1 -1
  98. package/dist/src/analyticsClient.d.ts +318 -318
  99. package/dist/src/analyticsClient.d.ts.map +1 -1
  100. package/index.js +1 -1
  101. package/model/averageClickEvent.ts +4 -4
  102. package/model/clickPosition.ts +3 -3
  103. package/model/clickThroughRateEvent.ts +5 -5
  104. package/model/clientMethodProps.ts +92 -92
  105. package/model/conversionRateEvent.ts +5 -5
  106. package/model/direction.ts +1 -1
  107. package/model/errorBase.ts +1 -1
  108. package/model/getAverageClickPositionResponse.ts +4 -4
  109. package/model/getClickPositionsResponse.ts +2 -2
  110. package/model/getClickThroughRateResponse.ts +5 -5
  111. package/model/getConversationRateResponse.ts +5 -5
  112. package/model/getNoClickRateResponse.ts +5 -5
  113. package/model/getNoResultsRateResponse.ts +5 -5
  114. package/model/getSearchesCountResponse.ts +3 -3
  115. package/model/getSearchesNoClicksResponse.ts +2 -2
  116. package/model/getSearchesNoResultsResponse.ts +2 -2
  117. package/model/getStatusResponse.ts +2 -2
  118. package/model/getTopCountriesResponse.ts +2 -2
  119. package/model/getTopFilterAttribute.ts +3 -3
  120. package/model/getTopFilterAttributesResponse.ts +2 -2
  121. package/model/getTopFilterForAttribute.ts +5 -5
  122. package/model/getTopFilterForAttributeResponse.ts +2 -2
  123. package/model/getTopFiltersNoResultsResponse.ts +2 -2
  124. package/model/getTopFiltersNoResultsValue.ts +4 -4
  125. package/model/getTopFiltersNoResultsValues.ts +3 -3
  126. package/model/getTopHitsResponse.ts +1 -1
  127. package/model/getTopSearchesResponse.ts +1 -1
  128. package/model/getUsersCountResponse.ts +3 -3
  129. package/model/index.ts +1 -1
  130. package/model/noClickRateEvent.ts +5 -5
  131. package/model/noResultsRateEvent.ts +5 -5
  132. package/model/orderBy.ts +4 -1
  133. package/model/searchEvent.ts +3 -3
  134. package/model/searchNoClickEvent.ts +4 -4
  135. package/model/searchNoResultEvent.ts +4 -4
  136. package/model/topCountry.ts +3 -3
  137. package/model/topHit.ts +3 -3
  138. package/model/topHitWithAnalytics.ts +8 -8
  139. package/model/topHitsResponse.ts +2 -2
  140. package/model/topHitsResponseWithAnalytics.ts +2 -2
  141. package/model/topSearch.ts +4 -4
  142. package/model/topSearchWithAnalytics.ts +10 -10
  143. package/model/topSearchesResponse.ts +2 -2
  144. package/model/topSearchesResponseWithAnalytics.ts +2 -2
  145. package/model/userWithDate.ts +3 -3
  146. package/package.json +30 -13
@@ -1,15 +1,15 @@
1
- export declare type GetTopFiltersNoResultsValue = {
2
- /**
3
- * The attribute.
4
- */
5
- attribute: string;
6
- /**
7
- * The operator.
8
- */
9
- operator: string;
10
- /**
11
- * The value of the attribute.
12
- */
13
- value: string;
14
- };
1
+ export type GetTopFiltersNoResultsValue = {
2
+ /**
3
+ * Attribute name.
4
+ */
5
+ attribute: string;
6
+ /**
7
+ * Operator.
8
+ */
9
+ operator: string;
10
+ /**
11
+ * Attribute value.
12
+ */
13
+ value: string;
14
+ };
15
15
  //# sourceMappingURL=getTopFiltersNoResultsValue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getTopFiltersNoResultsValue.d.ts","sourceRoot":"","sources":["../../model/getTopFiltersNoResultsValue.ts"],"names":[],"mappings":"AAEA,oBAAY,2BAA2B,GAAG;IACxC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;CACf,CAAC"}
1
+ {"version":3,"file":"getTopFiltersNoResultsValue.d.ts","sourceRoot":"","sources":["../../model/getTopFiltersNoResultsValue.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,2BAA2B,GAAG;IACxC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;CACf,CAAC"}
@@ -1,12 +1,12 @@
1
- import type { GetTopFiltersNoResultsValue } from './getTopFiltersNoResultsValue';
2
- export declare type GetTopFiltersNoResultsValues = {
3
- /**
4
- * The number of occurrences.
5
- */
6
- count: number;
7
- /**
8
- * A list of filters without results.
9
- */
10
- values: GetTopFiltersNoResultsValue[];
11
- };
1
+ import type { GetTopFiltersNoResultsValue } from './getTopFiltersNoResultsValue';
2
+ export type GetTopFiltersNoResultsValues = {
3
+ /**
4
+ * Number of occurrences.
5
+ */
6
+ count: number;
7
+ /**
8
+ * Filters with no results.
9
+ */
10
+ values: GetTopFiltersNoResultsValue[];
11
+ };
12
12
  //# sourceMappingURL=getTopFiltersNoResultsValues.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getTopFiltersNoResultsValues.d.ts","sourceRoot":"","sources":["../../model/getTopFiltersNoResultsValues.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAEjF,oBAAY,4BAA4B,GAAG;IACzC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,MAAM,EAAE,2BAA2B,EAAE,CAAC;CACvC,CAAC"}
1
+ {"version":3,"file":"getTopFiltersNoResultsValues.d.ts","sourceRoot":"","sources":["../../model/getTopFiltersNoResultsValues.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAEjF,MAAM,MAAM,4BAA4B,GAAG;IACzC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,MAAM,EAAE,2BAA2B,EAAE,CAAC;CACvC,CAAC"}
@@ -1,4 +1,4 @@
1
- import type { TopHitsResponse } from './topHitsResponse';
2
- import type { TopHitsResponseWithAnalytics } from './topHitsResponseWithAnalytics';
3
- export declare type GetTopHitsResponse = TopHitsResponse | TopHitsResponseWithAnalytics;
1
+ import type { TopHitsResponse } from './topHitsResponse';
2
+ import type { TopHitsResponseWithAnalytics } from './topHitsResponseWithAnalytics';
3
+ export type GetTopHitsResponse = TopHitsResponse | TopHitsResponseWithAnalytics;
4
4
  //# sourceMappingURL=getTopHitsResponse.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getTopHitsResponse.d.ts","sourceRoot":"","sources":["../../model/getTopHitsResponse.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AAEnF,oBAAY,kBAAkB,GAAG,eAAe,GAAG,4BAA4B,CAAC"}
1
+ {"version":3,"file":"getTopHitsResponse.d.ts","sourceRoot":"","sources":["../../model/getTopHitsResponse.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AAEnF,MAAM,MAAM,kBAAkB,GAAG,eAAe,GAAG,4BAA4B,CAAC"}
@@ -1,4 +1,4 @@
1
- import type { TopSearchesResponse } from './topSearchesResponse';
2
- import type { TopSearchesResponseWithAnalytics } from './topSearchesResponseWithAnalytics';
3
- export declare type GetTopSearchesResponse = TopSearchesResponse | TopSearchesResponseWithAnalytics;
1
+ import type { TopSearchesResponse } from './topSearchesResponse';
2
+ import type { TopSearchesResponseWithAnalytics } from './topSearchesResponseWithAnalytics';
3
+ export type GetTopSearchesResponse = TopSearchesResponse | TopSearchesResponseWithAnalytics;
4
4
  //# sourceMappingURL=getTopSearchesResponse.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getTopSearchesResponse.d.ts","sourceRoot":"","sources":["../../model/getTopSearchesResponse.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,oCAAoC,CAAC;AAE3F,oBAAY,sBAAsB,GAC9B,mBAAmB,GACnB,gCAAgC,CAAC"}
1
+ {"version":3,"file":"getTopSearchesResponse.d.ts","sourceRoot":"","sources":["../../model/getTopSearchesResponse.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,oCAAoC,CAAC;AAE3F,MAAM,MAAM,sBAAsB,GAC9B,mBAAmB,GACnB,gCAAgC,CAAC"}
@@ -1,12 +1,12 @@
1
- import type { UserWithDate } from './userWithDate';
2
- export declare type GetUsersCountResponse = {
3
- /**
4
- * The number of occurrences.
5
- */
6
- count: number;
7
- /**
8
- * A list of users count with their date.
9
- */
10
- dates: UserWithDate[];
11
- };
1
+ import type { UserWithDate } from './userWithDate';
2
+ export type GetUsersCountResponse = {
3
+ /**
4
+ * Number of occurrences.
5
+ */
6
+ count: number;
7
+ /**
8
+ * User count.
9
+ */
10
+ dates: UserWithDate[];
11
+ };
12
12
  //# sourceMappingURL=getUsersCountResponse.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getUsersCountResponse.d.ts","sourceRoot":"","sources":["../../model/getUsersCountResponse.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAEnD,oBAAY,qBAAqB,GAAG;IAClC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,KAAK,EAAE,YAAY,EAAE,CAAC;CACvB,CAAC"}
1
+ {"version":3,"file":"getUsersCountResponse.d.ts","sourceRoot":"","sources":["../../model/getUsersCountResponse.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAEnD,MAAM,MAAM,qBAAqB,GAAG;IAClC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,KAAK,EAAE,YAAY,EAAE,CAAC;CACvB,CAAC"}
@@ -1,45 +1,45 @@
1
- export * from './averageClickEvent';
2
- export * from './clickPosition';
3
- export * from './clickThroughRateEvent';
4
- export * from './conversionRateEvent';
5
- export * from './direction';
6
- export * from './errorBase';
7
- export * from './getAverageClickPositionResponse';
8
- export * from './getClickPositionsResponse';
9
- export * from './getClickThroughRateResponse';
10
- export * from './getConversationRateResponse';
11
- export * from './getNoClickRateResponse';
12
- export * from './getNoResultsRateResponse';
13
- export * from './getSearchesCountResponse';
14
- export * from './getSearchesNoClicksResponse';
15
- export * from './getSearchesNoResultsResponse';
16
- export * from './getStatusResponse';
17
- export * from './getTopCountriesResponse';
18
- export * from './getTopFilterAttribute';
19
- export * from './getTopFilterAttributesResponse';
20
- export * from './getTopFilterForAttribute';
21
- export * from './getTopFilterForAttributeResponse';
22
- export * from './getTopFiltersNoResultsResponse';
23
- export * from './getTopFiltersNoResultsValue';
24
- export * from './getTopFiltersNoResultsValues';
25
- export * from './getTopHitsResponse';
26
- export * from './getTopSearchesResponse';
27
- export * from './getUsersCountResponse';
28
- export * from './noClickRateEvent';
29
- export * from './noResultsRateEvent';
30
- export * from './orderBy';
31
- export * from './searchEvent';
32
- export * from './searchNoClickEvent';
33
- export * from './searchNoResultEvent';
34
- export * from './topCountry';
35
- export * from './topHit';
36
- export * from './topHitWithAnalytics';
37
- export * from './topHitsResponse';
38
- export * from './topHitsResponseWithAnalytics';
39
- export * from './topSearch';
40
- export * from './topSearchWithAnalytics';
41
- export * from './topSearchesResponse';
42
- export * from './topSearchesResponseWithAnalytics';
43
- export * from './userWithDate';
44
- export * from './clientMethodProps';
1
+ export * from './averageClickEvent';
2
+ export * from './clickPosition';
3
+ export * from './clickThroughRateEvent';
4
+ export * from './conversionRateEvent';
5
+ export * from './direction';
6
+ export * from './errorBase';
7
+ export * from './getAverageClickPositionResponse';
8
+ export * from './getClickPositionsResponse';
9
+ export * from './getClickThroughRateResponse';
10
+ export * from './getConversationRateResponse';
11
+ export * from './getNoClickRateResponse';
12
+ export * from './getNoResultsRateResponse';
13
+ export * from './getSearchesCountResponse';
14
+ export * from './getSearchesNoClicksResponse';
15
+ export * from './getSearchesNoResultsResponse';
16
+ export * from './getStatusResponse';
17
+ export * from './getTopCountriesResponse';
18
+ export * from './getTopFilterAttribute';
19
+ export * from './getTopFilterAttributesResponse';
20
+ export * from './getTopFilterForAttribute';
21
+ export * from './getTopFilterForAttributeResponse';
22
+ export * from './getTopFiltersNoResultsResponse';
23
+ export * from './getTopFiltersNoResultsValue';
24
+ export * from './getTopFiltersNoResultsValues';
25
+ export * from './getTopHitsResponse';
26
+ export * from './getTopSearchesResponse';
27
+ export * from './getUsersCountResponse';
28
+ export * from './noClickRateEvent';
29
+ export * from './noResultsRateEvent';
30
+ export * from './orderBy';
31
+ export * from './searchEvent';
32
+ export * from './searchNoClickEvent';
33
+ export * from './searchNoResultEvent';
34
+ export * from './topCountry';
35
+ export * from './topHit';
36
+ export * from './topHitWithAnalytics';
37
+ export * from './topHitsResponse';
38
+ export * from './topHitsResponseWithAnalytics';
39
+ export * from './topSearch';
40
+ export * from './topSearchWithAnalytics';
41
+ export * from './topSearchesResponse';
42
+ export * from './topSearchesResponseWithAnalytics';
43
+ export * from './userWithDate';
44
+ export * from './clientMethodProps';
45
45
  //# sourceMappingURL=index.d.ts.map
@@ -1,19 +1,19 @@
1
- export declare type NoClickRateEvent = {
2
- /**
3
- * The click-through rate.
4
- */
5
- rate: number;
6
- /**
7
- * The number of click event.
8
- */
9
- count: number;
10
- /**
11
- * The number of click event.
12
- */
13
- noClickCount: number;
14
- /**
15
- * Date of the event.
16
- */
17
- date: string;
18
- };
1
+ export type NoClickRateEvent = {
2
+ /**
3
+ * [Click-through rate (CTR)](https://www.algolia.com/doc/guides/search-analytics/concepts/metrics/#click-through-rate).
4
+ */
5
+ rate: number;
6
+ /**
7
+ * Number of tracked _and_ untracked searches (where the `clickAnalytics` parameter isn\'t `true`).
8
+ */
9
+ count: number;
10
+ /**
11
+ * Number of click events.
12
+ */
13
+ noClickCount: number;
14
+ /**
15
+ * Date of the event in the format YYYY-MM-DD.
16
+ */
17
+ date: string;
18
+ };
19
19
  //# sourceMappingURL=noClickRateEvent.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"noClickRateEvent.d.ts","sourceRoot":"","sources":["../../model/noClickRateEvent.ts"],"names":[],"mappings":"AAEA,oBAAY,gBAAgB,GAAG;IAC7B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CACd,CAAC"}
1
+ {"version":3,"file":"noClickRateEvent.d.ts","sourceRoot":"","sources":["../../model/noClickRateEvent.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,gBAAgB,GAAG;IAC7B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CACd,CAAC"}
@@ -1,19 +1,19 @@
1
- export declare type NoResultsRateEvent = {
2
- /**
3
- * Date of the event.
4
- */
5
- date: string;
6
- /**
7
- * The number of occurrences.
8
- */
9
- noResultCount: number;
10
- /**
11
- * The number of occurrences.
12
- */
13
- count: number;
14
- /**
15
- * The click-through rate.
16
- */
17
- rate: number;
18
- };
1
+ export type NoResultsRateEvent = {
2
+ /**
3
+ * Date of the event in the format YYYY-MM-DD.
4
+ */
5
+ date: string;
6
+ /**
7
+ * Number of occurences.
8
+ */
9
+ noResultCount: number;
10
+ /**
11
+ * Number of tracked _and_ untracked searches (where the `clickAnalytics` parameter isn\'t `true`).
12
+ */
13
+ count: number;
14
+ /**
15
+ * [Click-through rate (CTR)](https://www.algolia.com/doc/guides/search-analytics/concepts/metrics/#click-through-rate).
16
+ */
17
+ rate: number;
18
+ };
19
19
  //# sourceMappingURL=noResultsRateEvent.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"noResultsRateEvent.d.ts","sourceRoot":"","sources":["../../model/noResultsRateEvent.ts"],"names":[],"mappings":"AAEA,oBAAY,kBAAkB,GAAG;IAC/B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CACd,CAAC"}
1
+ {"version":3,"file":"noResultsRateEvent.d.ts","sourceRoot":"","sources":["../../model/noResultsRateEvent.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CACd,CAAC"}
@@ -1,2 +1,5 @@
1
- export declare type OrderBy = 'averageClickPosition' | 'clickThroughRate' | 'conversionRate' | 'searchCount';
1
+ /**
2
+ * Method for ordering results. `clickThroughRate`, `conversionRate` and `averageClickPosition` are only available if the `clickAnalytics` parameter is `true`.
3
+ */
4
+ export type OrderBy = 'averageClickPosition' | 'clickThroughRate' | 'conversionRate' | 'searchCount';
2
5
  //# sourceMappingURL=orderBy.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"orderBy.d.ts","sourceRoot":"","sources":["../../model/orderBy.ts"],"names":[],"mappings":"AAEA,oBAAY,OAAO,GACf,sBAAsB,GACtB,kBAAkB,GAClB,gBAAgB,GAChB,aAAa,CAAC"}
1
+ {"version":3,"file":"orderBy.d.ts","sourceRoot":"","sources":["../../model/orderBy.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,OAAO,GACf,sBAAsB,GACtB,kBAAkB,GAClB,gBAAgB,GAChB,aAAa,CAAC"}
@@ -1,11 +1,11 @@
1
- export declare type SearchEvent = {
2
- /**
3
- * Date of the event.
4
- */
5
- date: string;
6
- /**
7
- * The number of occurrences.
8
- */
9
- count: number;
10
- };
1
+ export type SearchEvent = {
2
+ /**
3
+ * Date of the event in the format YYYY-MM-DD.
4
+ */
5
+ date: string;
6
+ /**
7
+ * Number of occurrences.
8
+ */
9
+ count: number;
10
+ };
11
11
  //# sourceMappingURL=searchEvent.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"searchEvent.d.ts","sourceRoot":"","sources":["../../model/searchEvent.ts"],"names":[],"mappings":"AAEA,oBAAY,WAAW,GAAG;IACxB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;CACf,CAAC"}
1
+ {"version":3,"file":"searchEvent.d.ts","sourceRoot":"","sources":["../../model/searchEvent.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,WAAW,GAAG;IACxB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;CACf,CAAC"}
@@ -1,15 +1,15 @@
1
- export declare type SearchNoClickEvent = {
2
- /**
3
- * The search query.
4
- */
5
- search: string;
6
- /**
7
- * The number of occurrences.
8
- */
9
- count: number;
10
- /**
11
- * The number of occurrences.
12
- */
13
- withFilterCount: number;
14
- };
1
+ export type SearchNoClickEvent = {
2
+ /**
3
+ * User query.
4
+ */
5
+ search: string;
6
+ /**
7
+ * Number of occurrences.
8
+ */
9
+ count: number;
10
+ /**
11
+ * Number of occurrences.
12
+ */
13
+ withFilterCount: number;
14
+ };
15
15
  //# sourceMappingURL=searchNoClickEvent.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"searchNoClickEvent.d.ts","sourceRoot":"","sources":["../../model/searchNoClickEvent.ts"],"names":[],"mappings":"AAEA,oBAAY,kBAAkB,GAAG;IAC/B;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;CACzB,CAAC"}
1
+ {"version":3,"file":"searchNoClickEvent.d.ts","sourceRoot":"","sources":["../../model/searchNoClickEvent.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;CACzB,CAAC"}
@@ -1,15 +1,15 @@
1
- export declare type SearchNoResultEvent = {
2
- /**
3
- * The search query.
4
- */
5
- search: string;
6
- /**
7
- * The number of occurrences.
8
- */
9
- count: number;
10
- /**
11
- * Number of hits that the search query matched.
12
- */
13
- nbHits: number;
14
- };
1
+ export type SearchNoResultEvent = {
2
+ /**
3
+ * User query.
4
+ */
5
+ search: string;
6
+ /**
7
+ * Number of occurrences.
8
+ */
9
+ count: number;
10
+ /**
11
+ * Number of hits the search query matched.
12
+ */
13
+ nbHits: number;
14
+ };
15
15
  //# sourceMappingURL=searchNoResultEvent.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"searchNoResultEvent.d.ts","sourceRoot":"","sources":["../../model/searchNoResultEvent.ts"],"names":[],"mappings":"AAEA,oBAAY,mBAAmB,GAAG;IAChC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC"}
1
+ {"version":3,"file":"searchNoResultEvent.d.ts","sourceRoot":"","sources":["../../model/searchNoResultEvent.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,mBAAmB,GAAG;IAChC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC"}
@@ -1,11 +1,11 @@
1
- export declare type TopCountry = {
2
- /**
3
- * The country.
4
- */
5
- country: string;
6
- /**
7
- * The number of occurrences.
8
- */
9
- count: number;
10
- };
1
+ export type TopCountry = {
2
+ /**
3
+ * Country.
4
+ */
5
+ country: string;
6
+ /**
7
+ * Number of occurrences.
8
+ */
9
+ count: number;
10
+ };
11
11
  //# sourceMappingURL=topCountry.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"topCountry.d.ts","sourceRoot":"","sources":["../../model/topCountry.ts"],"names":[],"mappings":"AAEA,oBAAY,UAAU,GAAG;IACvB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;CACf,CAAC"}
1
+ {"version":3,"file":"topCountry.d.ts","sourceRoot":"","sources":["../../model/topCountry.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,UAAU,GAAG;IACvB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;CACf,CAAC"}
@@ -1,11 +1,11 @@
1
- export declare type TopHit = {
2
- /**
3
- * The hit.
4
- */
5
- hit: string;
6
- /**
7
- * The number of occurrences.
8
- */
9
- count: number;
10
- };
1
+ export type TopHit = {
2
+ /**
3
+ * Hit.
4
+ */
5
+ hit: string;
6
+ /**
7
+ * Number of occurrences.
8
+ */
9
+ count: number;
10
+ };
11
11
  //# sourceMappingURL=topHit.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"topHit.d.ts","sourceRoot":"","sources":["../../model/topHit.ts"],"names":[],"mappings":"AAEA,oBAAY,MAAM,GAAG;IACnB;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IAEZ;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;CACf,CAAC"}
1
+ {"version":3,"file":"topHit.d.ts","sourceRoot":"","sources":["../../model/topHit.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,MAAM,GAAG;IACnB;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IAEZ;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;CACf,CAAC"}
@@ -1,31 +1,31 @@
1
- export declare type TopHitWithAnalytics = {
2
- /**
3
- * The hit.
4
- */
5
- hit: string;
6
- /**
7
- * The number of occurrences.
8
- */
9
- count: number;
10
- /**
11
- * The click-through rate.
12
- */
13
- clickThroughRate: number;
14
- /**
15
- * The conversion rate.
16
- */
17
- conversionRate: number;
18
- /**
19
- * The number of tracked search click.
20
- */
21
- trackedSearchCount: number;
22
- /**
23
- * The number of click event.
24
- */
25
- clickCount: number;
26
- /**
27
- * The number of converted clicks.
28
- */
29
- conversionCount: number;
30
- };
1
+ export type TopHitWithAnalytics = {
2
+ /**
3
+ * Hit.
4
+ */
5
+ hit: string;
6
+ /**
7
+ * Number of occurrences.
8
+ */
9
+ count: number;
10
+ /**
11
+ * [Click-through rate (CTR)](https://www.algolia.com/doc/guides/search-analytics/concepts/metrics/#click-through-rate).
12
+ */
13
+ clickThroughRate: number;
14
+ /**
15
+ * [Conversion rate (CR)](https://www.algolia.com/doc/guides/search-analytics/concepts/metrics/#conversion-rate).
16
+ */
17
+ conversionRate: number;
18
+ /**
19
+ * Number of tracked searches. This is the number of search requests where the `clickAnalytics` parameter is `true`.
20
+ */
21
+ trackedSearchCount: number;
22
+ /**
23
+ * Number of click events.
24
+ */
25
+ clickCount: number;
26
+ /**
27
+ * Number of converted clicks.
28
+ */
29
+ conversionCount: number;
30
+ };
31
31
  //# sourceMappingURL=topHitWithAnalytics.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"topHitWithAnalytics.d.ts","sourceRoot":"","sources":["../../model/topHitWithAnalytics.ts"],"names":[],"mappings":"AAEA,oBAAY,mBAAmB,GAAG;IAChC;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IAEZ;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,gBAAgB,EAAE,MAAM,CAAC;IAEzB;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,kBAAkB,EAAE,MAAM,CAAC;IAE3B;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;CACzB,CAAC"}
1
+ {"version":3,"file":"topHitWithAnalytics.d.ts","sourceRoot":"","sources":["../../model/topHitWithAnalytics.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,mBAAmB,GAAG;IAChC;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IAEZ;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,gBAAgB,EAAE,MAAM,CAAC;IAEzB;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,kBAAkB,EAAE,MAAM,CAAC;IAE3B;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;CACzB,CAAC"}
@@ -1,8 +1,8 @@
1
- import type { TopHit } from './topHit';
2
- export declare type TopHitsResponse = {
3
- /**
4
- * A list of top hits with their count.
5
- */
6
- hits: TopHit[];
7
- };
1
+ import type { TopHit } from './topHit';
2
+ export type TopHitsResponse = {
3
+ /**
4
+ * Top hits.
5
+ */
6
+ hits: TopHit[];
7
+ };
8
8
  //# sourceMappingURL=topHitsResponse.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"topHitsResponse.d.ts","sourceRoot":"","sources":["../../model/topHitsResponse.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAEvC,oBAAY,eAAe,GAAG;IAC5B;;OAEG;IACH,IAAI,EAAE,MAAM,EAAE,CAAC;CAChB,CAAC"}
1
+ {"version":3,"file":"topHitsResponse.d.ts","sourceRoot":"","sources":["../../model/topHitsResponse.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAEvC,MAAM,MAAM,eAAe,GAAG;IAC5B;;OAEG;IACH,IAAI,EAAE,MAAM,EAAE,CAAC;CAChB,CAAC"}
@@ -1,8 +1,8 @@
1
- import type { TopHitWithAnalytics } from './topHitWithAnalytics';
2
- export declare type TopHitsResponseWithAnalytics = {
3
- /**
4
- * A list of top hits with their count and analytics.
5
- */
6
- hits: TopHitWithAnalytics[];
7
- };
1
+ import type { TopHitWithAnalytics } from './topHitWithAnalytics';
2
+ export type TopHitsResponseWithAnalytics = {
3
+ /**
4
+ * Top hits.
5
+ */
6
+ hits: TopHitWithAnalytics[];
7
+ };
8
8
  //# sourceMappingURL=topHitsResponseWithAnalytics.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"topHitsResponseWithAnalytics.d.ts","sourceRoot":"","sources":["../../model/topHitsResponseWithAnalytics.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAEjE,oBAAY,4BAA4B,GAAG;IACzC;;OAEG;IACH,IAAI,EAAE,mBAAmB,EAAE,CAAC;CAC7B,CAAC"}
1
+ {"version":3,"file":"topHitsResponseWithAnalytics.d.ts","sourceRoot":"","sources":["../../model/topHitsResponseWithAnalytics.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAEjE,MAAM,MAAM,4BAA4B,GAAG;IACzC;;OAEG;IACH,IAAI,EAAE,mBAAmB,EAAE,CAAC;CAC7B,CAAC"}
@@ -1,15 +1,15 @@
1
- export declare type TopSearch = {
2
- /**
3
- * The search query.
4
- */
5
- search: string;
6
- /**
7
- * The number of occurrences.
8
- */
9
- count: number;
10
- /**
11
- * Number of hits that the search query matched.
12
- */
13
- nbHits: number;
14
- };
1
+ export type TopSearch = {
2
+ /**
3
+ * User query.
4
+ */
5
+ search: string;
6
+ /**
7
+ * Number of tracked _and_ untracked searches (where the `clickAnalytics` parameter isn\'t `true`).
8
+ */
9
+ count: number;
10
+ /**
11
+ * Number of hits the search query matched.
12
+ */
13
+ nbHits: number;
14
+ };
15
15
  //# sourceMappingURL=topSearch.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"topSearch.d.ts","sourceRoot":"","sources":["../../model/topSearch.ts"],"names":[],"mappings":"AAEA,oBAAY,SAAS,GAAG;IACtB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC"}
1
+ {"version":3,"file":"topSearch.d.ts","sourceRoot":"","sources":["../../model/topSearch.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,SAAS,GAAG;IACtB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC"}