-
Notifications
You must be signed in to change notification settings - Fork 21
feat(specs): add analytics
specs and client.
#36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
3b96b9f
feat(specs): add `analytics` spec and client
shortcuts 2219e83
feat: some more endpoints
shortcuts 6843872
feat: even more endpoints
shortcuts 867dde1
fix: eslint issue
shortcuts dfe6a07
fix: incorrect types
shortcuts 0a052fb
fix: specs and missing types
shortcuts f9fa267
feat: endpoint with attributes
shortcuts f0a74fb
fix: make naming consistent
shortcuts 4804167
Merge branch 'main' into feat/APIC-199/analytics-specs
shortcuts 104a2d0
merge main
shortcuts 38385de
apply changes from suggestion
shortcuts File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.