/** * @api.video/nodejs-client * api.video is an API that encodes on the go to facilitate immediate playback, enhancing viewer streaming experiences across multiple devices and platforms. You can stream live or on-demand online videos within minutes. * * The version of the OpenAPI document: 1 * * * NOTE: This class is auto generated. * Do not edit the class manually. */ import AttributeType from './AttributeType.js'; export default class FilterBy2 { /** * Returns analytics based on the unique identifiers of a video or a live stream. */ 'mediaId'?: Array; 'mediaType'?: FilterBy2MediaTypeEnum; /** * Returns analytics based on the viewers' continent. The list of supported continents names are based on the [GeoNames public database](https://www.geonames.org/countries/). You must use the ISO-3166 alpha2 format, for example `EU`. */ 'continent'?: Array; /** * Returns analytics based on the viewers' country. The list of supported country names are based on the [GeoNames public database](https://www.geonames.org/countries/). You must use the ISO-3166 alpha2 format, for example `FR`. */ 'country'?: Array; /** * Returns analytics based on the type of device used by the viewers. Response values can include: `computer`, `phone`, `tablet`, `tv`, `console`, `wearable`, `unknown`. */ 'deviceType'?: Array; /** * Returns analytics based on the operating system used by the viewers. Response values can include `windows`, `mac osx`, `android`, `ios`, `linux`. */ 'operatingSystem'?: Array; /** * Returns analytics based on the browser used by the viewers. Response values can include `chrome`, `firefox`, `edge`, `opera`. */ 'browser'?: Array; /** * Returns analytics for videos using this tag. This filter only accepts a single value and is case sensitive. Read more about tagging your videos [here](https://docs.api.video/vod/tags-metadata). */ 'tag'?: string; /** * Filters data based on the URL where the view is originating from. This filter parameter accepts an empty string to filter view events where no referrer is available. - The API filters for exact matches. Include the trailing `/` characters if needed. - The URLs you add must be URL encoded. */ 'referrer'?: Array; static readonly discriminator?: string = undefined; static readonly attributeTypeMap: Array = [ { name: 'mediaId', baseName: 'mediaId', type: 'Array', format: '', }, { name: 'mediaType', baseName: 'mediaType', type: 'FilterBy2MediaTypeEnum', format: '', }, { name: 'continent', baseName: 'continent', type: 'Array', format: '', }, { name: 'country', baseName: 'country', type: 'Array', format: '', }, { name: 'deviceType', baseName: 'deviceType', type: 'Array', format: '', }, { name: 'operatingSystem', baseName: 'operatingSystem', type: 'Array', format: '', }, { name: 'browser', baseName: 'browser', type: 'Array', format: '', }, { name: 'tag', baseName: 'tag', type: 'string', format: '', }, { name: 'referrer', baseName: 'referrer', type: 'Array', format: 'uri', }, ]; static getAttributeTypeMap(): Array { return FilterBy2.attributeTypeMap; } } export type FilterBy2MediaTypeEnum = 'video' | 'live-stream'; export type FilterBy2ContinentEnum = | 'AS' | 'AF' | 'NA' | 'SA' | 'AN' | 'EU' | 'AZ';