UNPKG

@clearcodehq/openrtb

Version:

Library with OpenRTB spec types which allows to build and validate OpenRTB objects

89 lines (88 loc) 5.52 kB
"use strict"; // Copyright (C) 2021 by Clearcode <https://clearcode.cc> // and associates (see AUTHORS). Object.defineProperty(exports, "__esModule", { value: true }); exports.CompanionType = exports.ContentDeliveryMethod = exports.AuctionType = exports.StartDelay = exports.IQGMediaRating = exports.Protocol = exports.AdPosition = exports.CreativeAttribute = exports.APIFramework = void 0; var APIFramework; (function (APIFramework) { APIFramework[APIFramework["VPAID10"] = 1] = "VPAID10"; APIFramework[APIFramework["VPAID20"] = 2] = "VPAID20"; APIFramework[APIFramework["MRAID1"] = 3] = "MRAID1"; APIFramework[APIFramework["ORMMA"] = 4] = "ORMMA"; APIFramework[APIFramework["MRAID2"] = 5] = "MRAID2"; APIFramework[APIFramework["MRAID3"] = 6] = "MRAID3"; })(APIFramework = exports.APIFramework || (exports.APIFramework = {})); var CreativeAttribute; (function (CreativeAttribute) { CreativeAttribute[CreativeAttribute["AudioAdAutoPlay"] = 1] = "AudioAdAutoPlay"; CreativeAttribute[CreativeAttribute["AudioAdUserInitiated"] = 2] = "AudioAdUserInitiated"; CreativeAttribute[CreativeAttribute["ExpandableAutomatic"] = 3] = "ExpandableAutomatic"; CreativeAttribute[CreativeAttribute["ExpandableUserInitiatedClick"] = 4] = "ExpandableUserInitiatedClick"; CreativeAttribute[CreativeAttribute["ExpandableUserInitiatedRollover"] = 5] = "ExpandableUserInitiatedRollover"; CreativeAttribute[CreativeAttribute["InBannerVideoAdAutoPlay"] = 6] = "InBannerVideoAdAutoPlay"; CreativeAttribute[CreativeAttribute["InBannerVideoAdUserInitiated"] = 7] = "InBannerVideoAdUserInitiated"; CreativeAttribute[CreativeAttribute["Pop"] = 8] = "Pop"; CreativeAttribute[CreativeAttribute["ProvocativeOrSuggestiveImagery"] = 9] = "ProvocativeOrSuggestiveImagery"; CreativeAttribute[CreativeAttribute["ShakyFlashingFlickeringExtremeAnimationSmileys"] = 10] = "ShakyFlashingFlickeringExtremeAnimationSmileys"; CreativeAttribute[CreativeAttribute["Surveys"] = 11] = "Surveys"; CreativeAttribute[CreativeAttribute["TextOnly"] = 12] = "TextOnly"; CreativeAttribute[CreativeAttribute["UserInteractive"] = 13] = "UserInteractive"; CreativeAttribute[CreativeAttribute["WindowsDialogOrAlertStyle"] = 14] = "WindowsDialogOrAlertStyle"; CreativeAttribute[CreativeAttribute["HasAudioOnOffButton"] = 15] = "HasAudioOnOffButton"; CreativeAttribute[CreativeAttribute["AdProvidesSkipButton"] = 16] = "AdProvidesSkipButton"; CreativeAttribute[CreativeAttribute["AdobeFlash"] = 17] = "AdobeFlash"; })(CreativeAttribute = exports.CreativeAttribute || (exports.CreativeAttribute = {})); var AdPosition; (function (AdPosition) { AdPosition[AdPosition["Unknown"] = 0] = "Unknown"; AdPosition[AdPosition["AboveTheFold"] = 1] = "AboveTheFold"; AdPosition[AdPosition["MayOrMayNotBeInitiallyVisible"] = 2] = "MayOrMayNotBeInitiallyVisible"; AdPosition[AdPosition["BelowTheFold"] = 3] = "BelowTheFold"; AdPosition[AdPosition["Header"] = 4] = "Header"; AdPosition[AdPosition["Footer"] = 5] = "Footer"; AdPosition[AdPosition["Sidebar"] = 6] = "Sidebar"; AdPosition[AdPosition["FullScreen"] = 7] = "FullScreen"; })(AdPosition = exports.AdPosition || (exports.AdPosition = {})); var Protocol; (function (Protocol) { Protocol[Protocol["VAST10"] = 1] = "VAST10"; Protocol[Protocol["VAST20"] = 2] = "VAST20"; Protocol[Protocol["VAST30"] = 3] = "VAST30"; Protocol[Protocol["VAST10Wrapper"] = 4] = "VAST10Wrapper"; Protocol[Protocol["VAST20Wrapper"] = 5] = "VAST20Wrapper"; Protocol[Protocol["VAST30Wrapper"] = 6] = "VAST30Wrapper"; Protocol[Protocol["VAST40"] = 7] = "VAST40"; Protocol[Protocol["VAST40Wrapper"] = 8] = "VAST40Wrapper"; Protocol[Protocol["DAAST10"] = 9] = "DAAST10"; Protocol[Protocol["DAAST10Wrapper"] = 10] = "DAAST10Wrapper"; })(Protocol = exports.Protocol || (exports.Protocol = {})); var IQGMediaRating; (function (IQGMediaRating) { IQGMediaRating[IQGMediaRating["All"] = 1] = "All"; IQGMediaRating[IQGMediaRating["Over12"] = 2] = "Over12"; IQGMediaRating[IQGMediaRating["Mature"] = 3] = "Mature"; })(IQGMediaRating = exports.IQGMediaRating || (exports.IQGMediaRating = {})); var StartDelay; (function (StartDelay) { StartDelay[StartDelay["PreRoll"] = 0] = "PreRoll"; StartDelay[StartDelay["GenericMidRoll"] = -1] = "GenericMidRoll"; StartDelay[StartDelay["GenericPostRoll"] = -2] = "GenericPostRoll"; })(StartDelay = exports.StartDelay || (exports.StartDelay = {})); var AuctionType; (function (AuctionType) { AuctionType[AuctionType["FirstPrice"] = 1] = "FirstPrice"; AuctionType[AuctionType["SecondPrice"] = 2] = "SecondPrice"; AuctionType[AuctionType["AgreedPrice"] = 3] = "AgreedPrice"; })(AuctionType = exports.AuctionType || (exports.AuctionType = {})); var ContentDeliveryMethod; (function (ContentDeliveryMethod) { ContentDeliveryMethod[ContentDeliveryMethod["Streaming"] = 1] = "Streaming"; ContentDeliveryMethod[ContentDeliveryMethod["Progressive"] = 2] = "Progressive"; ContentDeliveryMethod[ContentDeliveryMethod["Download"] = 3] = "Download"; })(ContentDeliveryMethod = exports.ContentDeliveryMethod || (exports.ContentDeliveryMethod = {})); var CompanionType; (function (CompanionType) { CompanionType[CompanionType["Static"] = 1] = "Static"; CompanionType[CompanionType["HTML"] = 2] = "HTML"; CompanionType[CompanionType["Iframe"] = 3] = "Iframe"; })(CompanionType = exports.CompanionType || (exports.CompanionType = {}));