2025-04-14 06:06:56 +00:00
|
|
|
import { httpGetArrayBuffer, httpPostInterceptor } from "../http-config/http-interceptor-service";
|
2024-12-12 18:38:15 +00:00
|
|
|
|
|
|
|
|
export async function generateTicket() {
|
|
|
|
|
const url = "/admin/tableau-ticket";
|
2025-01-01 17:48:57 +00:00
|
|
|
return httpPostInterceptor(url, null);
|
2024-12-12 18:38:15 +00:00
|
|
|
}
|
2025-04-14 06:06:56 +00:00
|
|
|
|
|
|
|
|
export async function tableauSignin() {
|
|
|
|
|
const url = "/admin/tableau-signin";
|
|
|
|
|
return httpPostInterceptor(url, null);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export async function tableauViewImage(token: string, viewId: string, date?: string) {
|
|
|
|
|
const headers = {
|
|
|
|
|
"x-token": token
|
|
|
|
|
}
|
|
|
|
|
return await httpGetArrayBuffer(`/admin/tableau-view-image?viewId=${viewId}&date=${date}`, headers);
|
|
|
|
|
}
|