import BaseAPI from "./BaseAPI" ; import Client from "../Client" ; export type GetThumbnailsMetaData = { logRatio : number ; } ; export type RecordThumbnailLoadOptions = { duration : number ; loadState : string ; thumbnailType : string ; } ; export type RecordThumbnailLoad = unknown ; export type RecordBundleLoadOptions = { bundleUrl : string ; bundleName : string ; loadTimeInMilliseconds : number ; cdnProviderName : string ; loadState : string ; bundleContentType : string ; } ; export type RecordBundleLoad = unknown ; export default class LocaleAPI extends BaseAPI { constructor ( client ) { super ( { client , baseUrl : "https://metrics.roblox.com/" } ) ; } getThumbnailsMetaData ( ) { return this . request ( { requiresAuth : false , request : { path : `v1/thumbnails/metadata` } , json : true } ) . then ( response => response . body ) ; } recordThumbnailLoad ( options ) { return this . request ( { requiresAuth : false , request : { path : `v1/thumbnails/load` , method : "POST" , json : options } , json : true } ) . then ( response => response . body ) ; } recordBundleLoad ( options ) { return this . request ( { requiresAuth : false , request : { path : `v1/thumbnails/metadata` , method : "POST" , json : options } , json : true } ) . then ( response => response . body ) ; } }