-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(specs): add
analytics
specs and client. (#36)
- Loading branch information
Showing
105 changed files
with
4,307 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
clients/algoliasearch-client-javascript/client-analytics/.gitignore
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
node_modules | ||
dist | ||
.openapi-generator | ||
.env |
7 changes: 7 additions & 0 deletions
7
clients/algoliasearch-client-javascript/client-analytics/.openapi-generator-ignore
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# OpenAPI Generator Ignore | ||
# Generated by openapi-generator https://github.com/openapitools/openapi-generator | ||
|
||
# Use this file to prevent files from being overwritten by the generator. | ||
# The patterns follow closely to .gitignore or .dockerignore. | ||
|
||
git_push.sh |
3 changes: 3 additions & 0 deletions
3
clients/algoliasearch-client-javascript/client-analytics/api.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
// This is the entrypoint for the package | ||
export * from './src/apis'; | ||
export * from './model/models'; |
6 changes: 6 additions & 0 deletions
6
clients/algoliasearch-client-javascript/client-analytics/model/errorBase.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
/** | ||
* Error. | ||
*/ | ||
export type ErrorBase = { | ||
message?: string; | ||
}; |
16 changes: 16 additions & 0 deletions
16
...algoliasearch-client-javascript/client-analytics/model/getAverageClickPositionResponse.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import type { GetAverageClickPositionResponseDates } from './getAverageClickPositionResponseDates'; | ||
|
||
export type GetAverageClickPositionResponse = { | ||
/** | ||
* The average of all the click count event. | ||
*/ | ||
average: number; | ||
/** | ||
* The number of click event. | ||
*/ | ||
clickCount: number; | ||
/** | ||
* A list of average click position with their date. | ||
*/ | ||
dates: GetAverageClickPositionResponseDates[]; | ||
}; |
14 changes: 14 additions & 0 deletions
14
...iasearch-client-javascript/client-analytics/model/getAverageClickPositionResponseDates.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
export type GetAverageClickPositionResponseDates = { | ||
/** | ||
* The average of all the click count event. | ||
*/ | ||
average: number; | ||
/** | ||
* The number of click event. | ||
*/ | ||
clickCount: number; | ||
/** | ||
* Date of the event. | ||
*/ | ||
date: Date; | ||
}; |
8 changes: 8 additions & 0 deletions
8
clients/algoliasearch-client-javascript/client-analytics/model/getClickPositionsResponse.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import type { GetClickPositionsResponsePositions } from './getClickPositionsResponsePositions'; | ||
|
||
export type GetClickPositionsResponse = { | ||
/** | ||
* A list of the click positions with their click count. | ||
*/ | ||
positions: GetClickPositionsResponsePositions[]; | ||
}; |
10 changes: 10 additions & 0 deletions
10
...oliasearch-client-javascript/client-analytics/model/getClickPositionsResponsePositions.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
export type GetClickPositionsResponsePositions = { | ||
/** | ||
* Range of positions with the following pattern: Positions from 1 to 10 included are displayed in separated groups. Positions from 11 to 20 included are grouped together. Positions from 21 and up are grouped together. | ||
*/ | ||
position: number[]; | ||
/** | ||
* The number of click event. | ||
*/ | ||
clickCount: number; | ||
}; |
20 changes: 20 additions & 0 deletions
20
...nts/algoliasearch-client-javascript/client-analytics/model/getClickThroughRateResponse.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import type { GetClickThroughRateResponseDates } from './getClickThroughRateResponseDates'; | ||
|
||
export type GetClickThroughRateResponse = { | ||
/** | ||
* The click-through rate. | ||
*/ | ||
rate: number; | ||
/** | ||
* The number of click event. | ||
*/ | ||
clickCount: number; | ||
/** | ||
* The number of tracked search click. | ||
*/ | ||
trackedSearchCount: number; | ||
/** | ||
* A list of click-through rate events with their date. | ||
*/ | ||
dates: GetClickThroughRateResponseDates[]; | ||
}; |
18 changes: 18 additions & 0 deletions
18
...lgoliasearch-client-javascript/client-analytics/model/getClickThroughRateResponseDates.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
export type GetClickThroughRateResponseDates = { | ||
/** | ||
* The click-through rate. | ||
*/ | ||
rate: number; | ||
/** | ||
* The number of click event. | ||
*/ | ||
clickCount: number; | ||
/** | ||
* The number of tracked search click. | ||
*/ | ||
trackedSearchCount: number; | ||
/** | ||
* Date of the event. | ||
*/ | ||
date: Date; | ||
}; |
20 changes: 20 additions & 0 deletions
20
...nts/algoliasearch-client-javascript/client-analytics/model/getConversationRateResponse.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import type { GetConversationRateResponseDates } from './getConversationRateResponseDates'; | ||
|
||
export type GetConversationRateResponse = { | ||
/** | ||
* The click-through rate. | ||
*/ | ||
rate: number; | ||
/** | ||
* The number of tracked search click. | ||
*/ | ||
trackedSearchCount: number; | ||
/** | ||
* The number of converted clicks. | ||
*/ | ||
conversionCount: number; | ||
/** | ||
* A list of conversion events with their date. | ||
*/ | ||
dates: GetConversationRateResponseDates[]; | ||
}; |
18 changes: 18 additions & 0 deletions
18
...lgoliasearch-client-javascript/client-analytics/model/getConversationRateResponseDates.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
export type GetConversationRateResponseDates = { | ||
/** | ||
* The click-through rate. | ||
*/ | ||
rate: number; | ||
/** | ||
* The number of tracked search click. | ||
*/ | ||
trackedSearchCount: number; | ||
/** | ||
* The number of converted clicks. | ||
*/ | ||
conversionCount: number; | ||
/** | ||
* Date of the event. | ||
*/ | ||
date: Date; | ||
}; |
20 changes: 20 additions & 0 deletions
20
clients/algoliasearch-client-javascript/client-analytics/model/getNoClickRateResponse.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import type { GetNoClickRateResponseDates } from './getNoClickRateResponseDates'; | ||
|
||
export type GetNoClickRateResponse = { | ||
/** | ||
* The click-through rate. | ||
*/ | ||
rate: number; | ||
/** | ||
* The number of click event. | ||
*/ | ||
count: number; | ||
/** | ||
* The number of click event. | ||
*/ | ||
noClickCount: number; | ||
/** | ||
* A list of searches without clicks with their date, rate and counts. | ||
*/ | ||
dates: GetNoClickRateResponseDates[]; | ||
}; |
18 changes: 18 additions & 0 deletions
18
...nts/algoliasearch-client-javascript/client-analytics/model/getNoClickRateResponseDates.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
export type GetNoClickRateResponseDates = { | ||
/** | ||
* The click-through rate. | ||
*/ | ||
rate: number; | ||
/** | ||
* The number of click event. | ||
*/ | ||
count: number; | ||
/** | ||
* The number of click event. | ||
*/ | ||
noClickCount: number; | ||
/** | ||
* Date of the event. | ||
*/ | ||
date: Date; | ||
}; |
20 changes: 20 additions & 0 deletions
20
clients/algoliasearch-client-javascript/client-analytics/model/getNoResultsRateResponse.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import type { GetNoResultsRateResponseDates } from './getNoResultsRateResponseDates'; | ||
|
||
export type GetNoResultsRateResponse = { | ||
/** | ||
* The click-through rate. | ||
*/ | ||
rate: number; | ||
/** | ||
* The number of occurrences. | ||
*/ | ||
count: number; | ||
/** | ||
* The number of occurrences. | ||
*/ | ||
noResultCount: number; | ||
/** | ||
* A list of searches without results with their date, rate and counts. | ||
*/ | ||
dates: GetNoResultsRateResponseDates[]; | ||
}; |
18 changes: 18 additions & 0 deletions
18
...s/algoliasearch-client-javascript/client-analytics/model/getNoResultsRateResponseDates.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
export type GetNoResultsRateResponseDates = { | ||
/** | ||
* Date of the event. | ||
*/ | ||
date: Date; | ||
/** | ||
* The number of occurrences. | ||
*/ | ||
noResultCount: number; | ||
/** | ||
* The number of occurrences. | ||
*/ | ||
count: number; | ||
/** | ||
* The click-through rate. | ||
*/ | ||
rate: number; | ||
}; |
12 changes: 12 additions & 0 deletions
12
clients/algoliasearch-client-javascript/client-analytics/model/getSearchesCountResponse.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import type { GetSearchesCountResponseDates } from './getSearchesCountResponseDates'; | ||
|
||
export type GetSearchesCountResponse = { | ||
/** | ||
* The number of occurrences. | ||
*/ | ||
count: number; | ||
/** | ||
* A list of search events with their date and count. | ||
*/ | ||
dates: GetSearchesCountResponseDates[]; | ||
}; |
10 changes: 10 additions & 0 deletions
10
...s/algoliasearch-client-javascript/client-analytics/model/getSearchesCountResponseDates.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
export type GetSearchesCountResponseDates = { | ||
/** | ||
* Date of the event. | ||
*/ | ||
date: Date; | ||
/** | ||
* The number of occurrences. | ||
*/ | ||
count: number; | ||
}; |
8 changes: 8 additions & 0 deletions
8
...nts/algoliasearch-client-javascript/client-analytics/model/getSearchesNoClicksResponse.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import type { GetSearchesNoClicksResponseSearches } from './getSearchesNoClicksResponseSearches'; | ||
|
||
export type GetSearchesNoClicksResponse = { | ||
/** | ||
* A list of searches with no clicks and their count. | ||
*/ | ||
searches: GetSearchesNoClicksResponseSearches[]; | ||
}; |
14 changes: 14 additions & 0 deletions
14
...liasearch-client-javascript/client-analytics/model/getSearchesNoClicksResponseSearches.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
export type GetSearchesNoClicksResponseSearches = { | ||
/** | ||
* The search query. | ||
*/ | ||
search: string; | ||
/** | ||
* The number of occurrences. | ||
*/ | ||
count: number; | ||
/** | ||
* The number of occurrences. | ||
*/ | ||
withFilterCount: number; | ||
}; |
8 changes: 8 additions & 0 deletions
8
...ts/algoliasearch-client-javascript/client-analytics/model/getSearchesNoResultsResponse.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import type { GetSearchesNoResultsResponseSearches } from './getSearchesNoResultsResponseSearches'; | ||
|
||
export type GetSearchesNoResultsResponse = { | ||
/** | ||
* A list of searches with no results and their count. | ||
*/ | ||
searches: GetSearchesNoResultsResponseSearches[]; | ||
}; |
14 changes: 14 additions & 0 deletions
14
...iasearch-client-javascript/client-analytics/model/getSearchesNoResultsResponseSearches.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
export type GetSearchesNoResultsResponseSearches = { | ||
/** | ||
* The search query. | ||
*/ | ||
search: string; | ||
/** | ||
* The number of occurrences. | ||
*/ | ||
count: number; | ||
/** | ||
* Number of hits that the search query matched. | ||
*/ | ||
nbHits: number; | ||
}; |
6 changes: 6 additions & 0 deletions
6
clients/algoliasearch-client-javascript/client-analytics/model/getStatusResponse.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
export type GetStatusResponse = { | ||
/** | ||
* Date of last update (ISO-8601 format). | ||
*/ | ||
updatedAt: Date; | ||
}; |
8 changes: 8 additions & 0 deletions
8
clients/algoliasearch-client-javascript/client-analytics/model/getTopCountriesResponse.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import type { GetTopCountriesResponseCountries } from './getTopCountriesResponseCountries'; | ||
|
||
export type GetTopCountriesResponse = { | ||
/** | ||
* A list of countries with their count. | ||
*/ | ||
countries: GetTopCountriesResponseCountries[]; | ||
}; |
10 changes: 10 additions & 0 deletions
10
...lgoliasearch-client-javascript/client-analytics/model/getTopCountriesResponseCountries.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
export type GetTopCountriesResponseCountries = { | ||
/** | ||
* The country. | ||
*/ | ||
country: string; | ||
/** | ||
* The number of occurrences. | ||
*/ | ||
count: number; | ||
}; |
10 changes: 10 additions & 0 deletions
10
clients/algoliasearch-client-javascript/client-analytics/model/getTopFilterAttribute.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
export type GetTopFilterAttribute = { | ||
/** | ||
* The attribute. | ||
*/ | ||
attribute: string; | ||
/** | ||
* The number of occurrences. | ||
*/ | ||
count: number; | ||
}; |
8 changes: 8 additions & 0 deletions
8
.../algoliasearch-client-javascript/client-analytics/model/getTopFilterAttributesResponse.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import type { GetTopFilterAttribute } from './getTopFilterAttribute'; | ||
|
||
export type GetTopFilterAttributesResponse = { | ||
/** | ||
* A list of attributes with their count. | ||
*/ | ||
attributes: GetTopFilterAttribute[]; | ||
}; |
Oops, something went wrong.