-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1644 Redirect spectrogram to visualizer (#2012)
* #1644 Add the endpoint for get the rec id (mock playload) * #1644 Call get rec id when click icon * #1644 Call api with real data * #1644 store.project without the computed, change prop name and use window.location.assign * #1644 Use Number(response.data) and use response == null
- Loading branch information
1 parent
882f381
commit 3b0775f
Showing
5 changed files
with
30 additions
and
2 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
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
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,13 @@ | ||
import { type AxiosInstance } from 'axios' | ||
|
||
export interface RecordingsQueryParams { | ||
start: string | ||
end?: string | ||
site_external_id: string | ||
project_id?: number | ||
} | ||
|
||
export const apiArbimonLegacyFindRecording = async (apiClient: AxiosInstance, slug: string, params: RecordingsQueryParams): Promise<number> => { | ||
const response = await apiClient.get(`/legacy-api/project/${slug}/recordings/query`, { params }) | ||
return Number(response.data) | ||
} |