@objectiv/schema
Advanced tools
Comparing version 0.0.27-experimental.4 to 0.0.27-experimental.5
@@ -1,2 +0,1 @@ | ||
var l=(i=>(i.AbstractContext="AbstractContext",i.AbstractGlobalContext="AbstractGlobalContext",i.AbstractLocationContext="AbstractLocationContext",i))(l||{}),c=(a=>(a.ApplicationContext="ApplicationContext",a.CookieIdContext="CookieIdContext",a.HttpContext="HttpContext",a.IdentityContext="IdentityContext",a.InputValueContext="InputValueContext",a.LocaleContext="LocaleContext",a.MarketingContext="MarketingContext",a.PathContext="PathContext",a.SessionContext="SessionContext",a))(c||{}),_=(a=>(a.ContentContext="ContentContext",a.ExpandableContext="ExpandableContext",a.InputContext="InputContext",a.LinkContext="LinkContext",a.MediaPlayerContext="MediaPlayerContext",a.NavigationContext="NavigationContext",a.OverlayContext="OverlayContext",a.PressableContext="PressableContext",a.RootLocationContext="RootLocationContext",a))(_||{}),q=new Set([...Object.keys(_),...Object.keys(c)]),x=(n=>(n.AbstractEvent="AbstractEvent",n))(x||{}),r=(o=>(o.ApplicationLoadedEvent="ApplicationLoadedEvent",o.FailureEvent="FailureEvent",o.HiddenEvent="HiddenEvent",o.InputChangeEvent="InputChangeEvent",o.InteractiveEvent="InteractiveEvent",o.MediaEvent="MediaEvent",o.MediaLoadEvent="MediaLoadEvent",o.MediaPauseEvent="MediaPauseEvent",o.MediaStartEvent="MediaStartEvent",o.MediaStopEvent="MediaStopEvent",o.NonInteractiveEvent="NonInteractiveEvent",o.PressEvent="PressEvent",o.SuccessEvent="SuccessEvent",o.VisibleEvent="VisibleEvent",o))(r||{});function e(){let t=globalThis.crypto;if(t){if(typeof t.randomUUID=="function")return e.crypto_RandomUUID();if(typeof t.getRandomValues=="function")return e.crypto_GetRandomValues()}return e.dateNow_MathRandom()}e.crypto_RandomUUID=()=>globalThis.crypto.randomUUID();e.crypto_GetRandomValues=()=>`${1e7}-${1e3}-${4e3}-${8e3}-${1e11}`.replace(/[018]/g,t=>{let n=parseInt(t);return(n^globalThis.crypto.getRandomValues(new Uint8Array(1))[0]&15>>n/4).toString(16)});e.dateNow_MathRandom=()=>{let t=Date.now().toString(16)+Math.random().toString(16)+"0".repeat(16);return[t.substring(0,8),t.substring(8,12),"4000-8"+t.substring(13,16),t.substring(16,28)].join("-")};var s=t=>({__instance_id:e(),__global_context:!0,_types:["AbstractContext","AbstractGlobalContext","ApplicationContext"],id:t.id,_type:"ApplicationContext"}),d=t=>({__instance_id:e(),__location_context:!0,_types:["AbstractContext","AbstractLocationContext","ContentContext"],id:t.id,_type:"ContentContext"}),C=t=>({__instance_id:e(),__global_context:!0,_types:["AbstractContext","AbstractGlobalContext","CookieIdContext"],id:t.id,_type:"CookieIdContext",cookie_id:t.cookie_id}),v=t=>({__instance_id:e(),__location_context:!0,_types:["AbstractContext","AbstractLocationContext","ExpandableContext"],id:t.id,_type:"ExpandableContext"}),u=t=>({__instance_id:e(),__global_context:!0,_types:["AbstractContext","AbstractGlobalContext","HttpContext"],id:t.id,_type:"HttpContext",referrer:t.referrer,user_agent:t.user_agent,remote_address:t.remote_address??null}),g=t=>({__instance_id:e(),__global_context:!0,_types:["AbstractContext","AbstractGlobalContext","IdentityContext"],id:t.id,_type:"IdentityContext",value:t.value}),b=t=>({__instance_id:e(),__location_context:!0,_types:["AbstractContext","AbstractLocationContext","InputContext"],id:t.id,_type:"InputContext"}),m=t=>({__instance_id:e(),__global_context:!0,_types:["AbstractContext","AbstractGlobalContext","InputValueContext"],id:t.id,_type:"InputValueContext",value:t.value}),E=t=>({__instance_id:e(),__pressable_context:!0,__location_context:!0,_types:["AbstractContext","AbstractLocationContext","PressableContext","LinkContext"],id:t.id,_type:"LinkContext",href:t.href}),k=t=>({__instance_id:e(),__global_context:!0,_types:["AbstractContext","AbstractGlobalContext","LocaleContext"],id:t.id,_type:"LocaleContext",language_code:t.language_code??null,country_code:t.country_code??null}),y=t=>({__instance_id:e(),__global_context:!0,_types:["AbstractContext","AbstractGlobalContext","MarketingContext"],id:t.id,_type:"MarketingContext",source:t.source,medium:t.medium,campaign:t.campaign,term:t.term??null,content:t.content??null,source_platform:t.source_platform??null,creative_format:t.creative_format??null,marketing_tactic:t.marketing_tactic??null}),I=t=>({__instance_id:e(),__location_context:!0,_types:["AbstractContext","AbstractLocationContext","MediaPlayerContext"],id:t.id,_type:"MediaPlayerContext"}),A=t=>({__instance_id:e(),__location_context:!0,_types:["AbstractContext","AbstractLocationContext","NavigationContext"],id:t.id,_type:"NavigationContext"}),L=t=>({__instance_id:e(),__location_context:!0,_types:["AbstractContext","AbstractLocationContext","OverlayContext"],id:t.id,_type:"OverlayContext"}),M=t=>({__instance_id:e(),__global_context:!0,_types:["AbstractContext","AbstractGlobalContext","PathContext"],id:t.id,_type:"PathContext"}),S=t=>({__instance_id:e(),__pressable_context:!0,__location_context:!0,_types:["AbstractContext","AbstractLocationContext","PressableContext"],id:t.id,_type:"PressableContext"}),f=t=>({__instance_id:e(),__location_context:!0,_types:["AbstractContext","AbstractLocationContext","RootLocationContext"],id:t.id,_type:"RootLocationContext"}),P=t=>({__instance_id:e(),__global_context:!0,_types:["AbstractContext","AbstractGlobalContext","SessionContext"],id:t.id,_type:"SessionContext",hit_number:t.hit_number});function Q({_type:t,...n}){switch(t){case"ApplicationContext":return s(n);case"ContentContext":return d(n);case"CookieIdContext":return C(n);case"ExpandableContext":return v(n);case"HttpContext":return u(n);case"IdentityContext":return g(n);case"InputContext":return b(n);case"InputValueContext":return m(n);case"LinkContext":return E(n);case"LocaleContext":return k(n);case"MarketingContext":return y(n);case"MediaPlayerContext":return I(n);case"NavigationContext":return A(n);case"OverlayContext":return L(n);case"PathContext":return M(n);case"PressableContext":return S(n);case"RootLocationContext":return f(n);case"SessionContext":return P(n);default:throw new Error(`Unknown entity ${t}`)}}var h=t=>({__instance_id:e(),__non_interactive_event:!0,_schema_version:"1.0.0",_types:["AbstractEvent","NonInteractiveEvent","ApplicationLoadedEvent"],location_stack:(t==null?void 0:t.location_stack)??[],global_contexts:(t==null?void 0:t.global_contexts)??[],_type:"ApplicationLoadedEvent",id:(t==null?void 0:t.id)??e(),time:(t==null?void 0:t.time)??Date.now()}),G=t=>({__instance_id:e(),__non_interactive_event:!0,_schema_version:"1.0.0",_types:["AbstractEvent","NonInteractiveEvent","FailureEvent"],location_stack:t.location_stack??[],global_contexts:t.global_contexts??[],_type:"FailureEvent",id:t.id??e(),time:t.time??Date.now(),message:t.message}),w=t=>({__instance_id:e(),__non_interactive_event:!0,_schema_version:"1.0.0",_types:["AbstractEvent","NonInteractiveEvent","HiddenEvent"],location_stack:(t==null?void 0:t.location_stack)??[],global_contexts:(t==null?void 0:t.global_contexts)??[],_type:"HiddenEvent",id:(t==null?void 0:t.id)??e(),time:(t==null?void 0:t.time)??Date.now()}),V=t=>({__instance_id:e(),__interactive_event:!0,_schema_version:"1.0.0",_types:["AbstractEvent","InteractiveEvent","InputChangeEvent"],location_stack:(t==null?void 0:t.location_stack)??[],global_contexts:(t==null?void 0:t.global_contexts)??[],_type:"InputChangeEvent",id:(t==null?void 0:t.id)??e(),time:(t==null?void 0:t.time)??Date.now()}),H=t=>({__instance_id:e(),__interactive_event:!0,_schema_version:"1.0.0",_types:["AbstractEvent","InteractiveEvent"],location_stack:(t==null?void 0:t.location_stack)??[],global_contexts:(t==null?void 0:t.global_contexts)??[],_type:"InteractiveEvent",id:(t==null?void 0:t.id)??e(),time:(t==null?void 0:t.time)??Date.now()}),D=t=>({__instance_id:e(),__media_event:!0,__non_interactive_event:!0,_schema_version:"1.0.0",_types:["AbstractEvent","NonInteractiveEvent","MediaEvent"],location_stack:(t==null?void 0:t.location_stack)??[],global_contexts:(t==null?void 0:t.global_contexts)??[],_type:"MediaEvent",id:(t==null?void 0:t.id)??e(),time:(t==null?void 0:t.time)??Date.now()}),R=t=>({__instance_id:e(),__non_interactive_event:!0,__media_event:!0,_schema_version:"1.0.0",_types:["AbstractEvent","NonInteractiveEvent","MediaEvent","MediaLoadEvent"],location_stack:(t==null?void 0:t.location_stack)??[],global_contexts:(t==null?void 0:t.global_contexts)??[],_type:"MediaLoadEvent",id:(t==null?void 0:t.id)??e(),time:(t==null?void 0:t.time)??Date.now()}),O=t=>({__instance_id:e(),__non_interactive_event:!0,__media_event:!0,_schema_version:"1.0.0",_types:["AbstractEvent","NonInteractiveEvent","MediaEvent","MediaPauseEvent"],location_stack:(t==null?void 0:t.location_stack)??[],global_contexts:(t==null?void 0:t.global_contexts)??[],_type:"MediaPauseEvent",id:(t==null?void 0:t.id)??e(),time:(t==null?void 0:t.time)??Date.now()}),F=t=>({__instance_id:e(),__non_interactive_event:!0,__media_event:!0,_schema_version:"1.0.0",_types:["AbstractEvent","NonInteractiveEvent","MediaEvent","MediaStartEvent"],location_stack:(t==null?void 0:t.location_stack)??[],global_contexts:(t==null?void 0:t.global_contexts)??[],_type:"MediaStartEvent",id:(t==null?void 0:t.id)??e(),time:(t==null?void 0:t.time)??Date.now()}),U=t=>({__instance_id:e(),__non_interactive_event:!0,__media_event:!0,_schema_version:"1.0.0",_types:["AbstractEvent","NonInteractiveEvent","MediaEvent","MediaStopEvent"],location_stack:(t==null?void 0:t.location_stack)??[],global_contexts:(t==null?void 0:t.global_contexts)??[],_type:"MediaStopEvent",id:(t==null?void 0:t.id)??e(),time:(t==null?void 0:t.time)??Date.now()}),N=t=>({__instance_id:e(),__non_interactive_event:!0,_schema_version:"1.0.0",_types:["AbstractEvent","NonInteractiveEvent"],location_stack:(t==null?void 0:t.location_stack)??[],global_contexts:(t==null?void 0:t.global_contexts)??[],_type:"NonInteractiveEvent",id:(t==null?void 0:t.id)??e(),time:(t==null?void 0:t.time)??Date.now()}),$=t=>({__instance_id:e(),__interactive_event:!0,_schema_version:"1.0.0",_types:["AbstractEvent","InteractiveEvent","PressEvent"],location_stack:(t==null?void 0:t.location_stack)??[],global_contexts:(t==null?void 0:t.global_contexts)??[],_type:"PressEvent",id:(t==null?void 0:t.id)??e(),time:(t==null?void 0:t.time)??Date.now()}),j=t=>({__instance_id:e(),__non_interactive_event:!0,_schema_version:"1.0.0",_types:["AbstractEvent","NonInteractiveEvent","SuccessEvent"],location_stack:t.location_stack??[],global_contexts:t.global_contexts??[],_type:"SuccessEvent",id:t.id??e(),time:t.time??Date.now(),message:t.message}),T=t=>({__instance_id:e(),__non_interactive_event:!0,_schema_version:"1.0.0",_types:["AbstractEvent","NonInteractiveEvent","VisibleEvent"],location_stack:(t==null?void 0:t.location_stack)??[],global_contexts:(t==null?void 0:t.global_contexts)??[],_type:"VisibleEvent",id:(t==null?void 0:t.id)??e(),time:(t==null?void 0:t.time)??Date.now()});function W({_type:t,...n}){switch(t){case"ApplicationLoadedEvent":return h(n);case"FailureEvent":return G(n);case"HiddenEvent":return w(n);case"InputChangeEvent":return V(n);case"InteractiveEvent":return H(n);case"MediaEvent":return D(n);case"MediaLoadEvent":return R(n);case"MediaPauseEvent":return O(n);case"MediaStartEvent":return F(n);case"MediaStopEvent":return U(n);case"NonInteractiveEvent":return N(n);case"PressEvent":return $(n);case"SuccessEvent":return j(n);case"VisibleEvent":return T(n);default:throw new Error(`Unknown entity ${t}`)}}export{l as AbstractContextName,x as AbstractEventName,q as ContextNames,r as EventName,c as GlobalContextName,_ as LocationContextName,s as makeApplicationContext,h as makeApplicationLoadedEvent,d as makeContentContext,Q as makeContext,C as makeCookieIdContext,W as makeEvent,v as makeExpandableContext,G as makeFailureEvent,w as makeHiddenEvent,u as makeHttpContext,g as makeIdentityContext,V as makeInputChangeEvent,b as makeInputContext,m as makeInputValueContext,H as makeInteractiveEvent,E as makeLinkContext,k as makeLocaleContext,y as makeMarketingContext,D as makeMediaEvent,R as makeMediaLoadEvent,O as makeMediaPauseEvent,I as makeMediaPlayerContext,F as makeMediaStartEvent,U as makeMediaStopEvent,A as makeNavigationContext,N as makeNonInteractiveEvent,L as makeOverlayContext,M as makePathContext,$ as makePressEvent,S as makePressableContext,f as makeRootLocationContext,P as makeSessionContext,j as makeSuccessEvent,T as makeVisibleEvent,e as uuidv4}; | ||
//# sourceMappingURL=index.js.map | ||
function t(t,e){if(e==null||e>t.length)e=t.length;for(var n=0,o=new Array(e);n<e;n++)o[n]=t[n];return o}function e(e){if(Array.isArray(e))return t(e)}function n(t){if(typeof Symbol!=="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function o(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function i(t,e){if(t==null)return{};var n=a(t,e);var o,i;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(t);for(i=0;i<l.length;i++){o=l[i];if(e.indexOf(o)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(t,o))continue;n[o]=t[o]}}return n}function a(t,e){if(t==null)return{};var n={};var o=Object.keys(t);var i,a;for(a=0;a<o.length;a++){i=o[a];if(e.indexOf(i)>=0)continue;n[i]=t[i]}return n}function l(t){return e(t)||n(t)||r(t)||o()}function r(e,n){if(!e)return;if(typeof e==="string")return t(e,n);var o=Object.prototype.toString.call(e).slice(8,-1);if(o==="Object"&&e.constructor)o=e.constructor.name;if(o==="Map"||o==="Set")return Array.from(o);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return t(e,n)}var c=function(t){return t.AbstractContext="AbstractContext",t.AbstractGlobalContext="AbstractGlobalContext",t.AbstractLocationContext="AbstractLocationContext",t}(c||{}),s=function(t){return t.ApplicationContext="ApplicationContext",t.CookieIdContext="CookieIdContext",t.HttpContext="HttpContext",t.IdentityContext="IdentityContext",t.InputValueContext="InputValueContext",t.LocaleContext="LocaleContext",t.MarketingContext="MarketingContext",t.PathContext="PathContext",t.SessionContext="SessionContext",t}(s||{}),_=function(t){return t.ContentContext="ContentContext",t.ExpandableContext="ExpandableContext",t.InputContext="InputContext",t.LinkContext="LinkContext",t.MediaPlayerContext="MediaPlayerContext",t.NavigationContext="NavigationContext",t.OverlayContext="OverlayContext",t.PressableContext="PressableContext",t.RootLocationContext="RootLocationContext",t}(_||{}),v=new Set(l(Object.keys(_)).concat(l(Object.keys(s)))),d=function(t){return t.AbstractEvent="AbstractEvent",t}(d||{}),u=function(t){return t.ApplicationLoadedEvent="ApplicationLoadedEvent",t.FailureEvent="FailureEvent",t.HiddenEvent="HiddenEvent",t.InputChangeEvent="InputChangeEvent",t.InteractiveEvent="InteractiveEvent",t.MediaEvent="MediaEvent",t.MediaLoadEvent="MediaLoadEvent",t.MediaPauseEvent="MediaPauseEvent",t.MediaStartEvent="MediaStartEvent",t.MediaStopEvent="MediaStopEvent",t.NonInteractiveEvent="NonInteractiveEvent",t.PressEvent="PressEvent",t.SuccessEvent="SuccessEvent",t.VisibleEvent="VisibleEvent",t}(u||{});function x(){var t=globalThis.crypto;if(t){if(typeof t.randomUUID=="function")return x.crypto_RandomUUID();if(typeof t.getRandomValues=="function")return x.crypto_GetRandomValues()}return x.dateNow_MathRandom()}x.crypto_RandomUUID=function(){return globalThis.crypto.randomUUID()};x.crypto_GetRandomValues=function(){return"".concat(1e7,"-",1e3,"-",4e3,"-",8e3,"-",1e11).replace(/[018]/g,function(t){var e=parseInt(t);return(e^globalThis.crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16)})};x.dateNow_MathRandom=function(){var t=Date.now().toString(16)+Math.random().toString(16)+"0".repeat(16);return[t.substring(0,8),t.substring(8,12),"4000-8"+t.substring(13,16),t.substring(16,28)].join("-")};var C,p,b,m,E,y,f,g;var k=function(t){return{__instance_id:x(),__global_context:!0,_types:["AbstractContext","AbstractGlobalContext","ApplicationContext"],id:t.id,_type:"ApplicationContext"}},A=function(t){return{__instance_id:x(),__location_context:!0,_types:["AbstractContext","AbstractLocationContext","ContentContext"],id:t.id,_type:"ContentContext"}},I=function(t){return{__instance_id:x(),__global_context:!0,_types:["AbstractContext","AbstractGlobalContext","CookieIdContext"],id:t.id,_type:"CookieIdContext",cookie_id:t.cookie_id}},M=function(t){return{__instance_id:x(),__location_context:!0,_types:["AbstractContext","AbstractLocationContext","ExpandableContext"],id:t.id,_type:"ExpandableContext"}},h=function(t){return{__instance_id:x(),__global_context:!0,_types:["AbstractContext","AbstractGlobalContext","HttpContext"],id:t.id,_type:"HttpContext",referrer:t.referrer,user_agent:t.user_agent,remote_address:(C=t.remote_address)!==null&&C!==void 0?C:null}},L=function(t){return{__instance_id:x(),__global_context:!0,_types:["AbstractContext","AbstractGlobalContext","IdentityContext"],id:t.id,_type:"IdentityContext",value:t.value}},P=function(t){return{__instance_id:x(),__location_context:!0,_types:["AbstractContext","AbstractLocationContext","InputContext"],id:t.id,_type:"InputContext"}},S=function(t){return{__instance_id:x(),__global_context:!0,_types:["AbstractContext","AbstractGlobalContext","InputValueContext"],id:t.id,_type:"InputValueContext",value:t.value}},w=function(t){return{__instance_id:x(),__pressable_context:!0,__location_context:!0,_types:["AbstractContext","AbstractLocationContext","PressableContext","LinkContext"],id:t.id,_type:"LinkContext",href:t.href}},N=function(t){return{__instance_id:x(),__global_context:!0,_types:["AbstractContext","AbstractGlobalContext","LocaleContext"],id:t.id,_type:"LocaleContext",language_code:(p=t.language_code)!==null&&p!==void 0?p:null,country_code:(b=t.country_code)!==null&&b!==void 0?b:null}},D=function(t){return{__instance_id:x(),__global_context:!0,_types:["AbstractContext","AbstractGlobalContext","MarketingContext"],id:t.id,_type:"MarketingContext",source:t.source,medium:t.medium,campaign:t.campaign,term:(m=t.term)!==null&&m!==void 0?m:null,content:(E=t.content)!==null&&E!==void 0?E:null,source_platform:(y=t.source_platform)!==null&&y!==void 0?y:null,creative_format:(f=t.creative_format)!==null&&f!==void 0?f:null,marketing_tactic:(g=t.marketing_tactic)!==null&&g!==void 0?g:null}},V=function(t){return{__instance_id:x(),__location_context:!0,_types:["AbstractContext","AbstractLocationContext","MediaPlayerContext"],id:t.id,_type:"MediaPlayerContext"}},G=function(t){return{__instance_id:x(),__location_context:!0,_types:["AbstractContext","AbstractLocationContext","NavigationContext"],id:t.id,_type:"NavigationContext"}},R=function(t){return{__instance_id:x(),__location_context:!0,_types:["AbstractContext","AbstractLocationContext","OverlayContext"],id:t.id,_type:"OverlayContext"}},O=function(t){return{__instance_id:x(),__global_context:!0,_types:["AbstractContext","AbstractGlobalContext","PathContext"],id:t.id,_type:"PathContext"}},H=function(t){return{__instance_id:x(),__pressable_context:!0,__location_context:!0,_types:["AbstractContext","AbstractLocationContext","PressableContext"],id:t.id,_type:"PressableContext"}},U=function(t){return{__instance_id:x(),__location_context:!0,_types:["AbstractContext","AbstractLocationContext","RootLocationContext"],id:t.id,_type:"RootLocationContext"}},F=function(t){return{__instance_id:x(),__global_context:!0,_types:["AbstractContext","AbstractGlobalContext","SessionContext"],id:t.id,_type:"SessionContext",hit_number:t.hit_number}};function j(t){var e=t._type,n=i(t,["_type"]);switch(e){case"ApplicationContext":return k(n);case"ContentContext":return A(n);case"CookieIdContext":return I(n);case"ExpandableContext":return M(n);case"HttpContext":return h(n);case"IdentityContext":return L(n);case"InputContext":return P(n);case"InputValueContext":return S(n);case"LinkContext":return w(n);case"LocaleContext":return N(n);case"MarketingContext":return D(n);case"MediaPlayerContext":return V(n);case"NavigationContext":return G(n);case"OverlayContext":return R(n);case"PathContext":return O(n);case"PressableContext":return H(n);case"RootLocationContext":return U(n);case"SessionContext":return F(n);default:throw new Error("Unknown entity ".concat(e))}}var T,$,K,Q,q,z,B,J,W,X,Y,Z,tt,te,tn,to,ti,ta,tl,tr,tc,ts,t_,tv,td,tu,tx,tC,tp,tb,tm,tE,ty,tf,tg,tk,tA,tI,tM,th,tL,tP,tS,tw,tN,tD,tV,tG,tR,tO,tH,tU,tF,tj,tT,t$;var tK=function(t){return{__instance_id:x(),__non_interactive_event:!0,_schema_version:"1.0.0",_types:["AbstractEvent","NonInteractiveEvent","ApplicationLoadedEvent"],location_stack:(T=t===null||t===void 0?void 0:t.location_stack)!==null&&T!==void 0?T:[],global_contexts:($=t===null||t===void 0?void 0:t.global_contexts)!==null&&$!==void 0?$:[],_type:"ApplicationLoadedEvent",id:(K=t===null||t===void 0?void 0:t.id)!==null&&K!==void 0?K:x(),time:(Q=t===null||t===void 0?void 0:t.time)!==null&&Q!==void 0?Q:Date.now()}},tQ=function(t){return{__instance_id:x(),__non_interactive_event:!0,_schema_version:"1.0.0",_types:["AbstractEvent","NonInteractiveEvent","FailureEvent"],location_stack:(q=t.location_stack)!==null&&q!==void 0?q:[],global_contexts:(z=t.global_contexts)!==null&&z!==void 0?z:[],_type:"FailureEvent",id:(B=t.id)!==null&&B!==void 0?B:x(),time:(J=t.time)!==null&&J!==void 0?J:Date.now(),message:t.message}},tq=function(t){return{__instance_id:x(),__non_interactive_event:!0,_schema_version:"1.0.0",_types:["AbstractEvent","NonInteractiveEvent","HiddenEvent"],location_stack:(W=t===null||t===void 0?void 0:t.location_stack)!==null&&W!==void 0?W:[],global_contexts:(X=t===null||t===void 0?void 0:t.global_contexts)!==null&&X!==void 0?X:[],_type:"HiddenEvent",id:(Y=t===null||t===void 0?void 0:t.id)!==null&&Y!==void 0?Y:x(),time:(Z=t===null||t===void 0?void 0:t.time)!==null&&Z!==void 0?Z:Date.now()}},tz=function(t){return{__instance_id:x(),__interactive_event:!0,_schema_version:"1.0.0",_types:["AbstractEvent","InteractiveEvent","InputChangeEvent"],location_stack:(tt=t===null||t===void 0?void 0:t.location_stack)!==null&&tt!==void 0?tt:[],global_contexts:(te=t===null||t===void 0?void 0:t.global_contexts)!==null&&te!==void 0?te:[],_type:"InputChangeEvent",id:(tn=t===null||t===void 0?void 0:t.id)!==null&&tn!==void 0?tn:x(),time:(to=t===null||t===void 0?void 0:t.time)!==null&&to!==void 0?to:Date.now()}},tB=function(t){return{__instance_id:x(),__interactive_event:!0,_schema_version:"1.0.0",_types:["AbstractEvent","InteractiveEvent"],location_stack:(ti=t===null||t===void 0?void 0:t.location_stack)!==null&&ti!==void 0?ti:[],global_contexts:(ta=t===null||t===void 0?void 0:t.global_contexts)!==null&&ta!==void 0?ta:[],_type:"InteractiveEvent",id:(tl=t===null||t===void 0?void 0:t.id)!==null&&tl!==void 0?tl:x(),time:(tr=t===null||t===void 0?void 0:t.time)!==null&&tr!==void 0?tr:Date.now()}},tJ=function(t){return{__instance_id:x(),__media_event:!0,__non_interactive_event:!0,_schema_version:"1.0.0",_types:["AbstractEvent","NonInteractiveEvent","MediaEvent"],location_stack:(tc=t===null||t===void 0?void 0:t.location_stack)!==null&&tc!==void 0?tc:[],global_contexts:(ts=t===null||t===void 0?void 0:t.global_contexts)!==null&&ts!==void 0?ts:[],_type:"MediaEvent",id:(t_=t===null||t===void 0?void 0:t.id)!==null&&t_!==void 0?t_:x(),time:(tv=t===null||t===void 0?void 0:t.time)!==null&&tv!==void 0?tv:Date.now()}},tW=function(t){return{__instance_id:x(),__non_interactive_event:!0,__media_event:!0,_schema_version:"1.0.0",_types:["AbstractEvent","NonInteractiveEvent","MediaEvent","MediaLoadEvent"],location_stack:(td=t===null||t===void 0?void 0:t.location_stack)!==null&&td!==void 0?td:[],global_contexts:(tu=t===null||t===void 0?void 0:t.global_contexts)!==null&&tu!==void 0?tu:[],_type:"MediaLoadEvent",id:(tx=t===null||t===void 0?void 0:t.id)!==null&&tx!==void 0?tx:x(),time:(tC=t===null||t===void 0?void 0:t.time)!==null&&tC!==void 0?tC:Date.now()}},tX=function(t){return{__instance_id:x(),__non_interactive_event:!0,__media_event:!0,_schema_version:"1.0.0",_types:["AbstractEvent","NonInteractiveEvent","MediaEvent","MediaPauseEvent"],location_stack:(tp=t===null||t===void 0?void 0:t.location_stack)!==null&&tp!==void 0?tp:[],global_contexts:(tb=t===null||t===void 0?void 0:t.global_contexts)!==null&&tb!==void 0?tb:[],_type:"MediaPauseEvent",id:(tm=t===null||t===void 0?void 0:t.id)!==null&&tm!==void 0?tm:x(),time:(tE=t===null||t===void 0?void 0:t.time)!==null&&tE!==void 0?tE:Date.now()}},tY=function(t){return{__instance_id:x(),__non_interactive_event:!0,__media_event:!0,_schema_version:"1.0.0",_types:["AbstractEvent","NonInteractiveEvent","MediaEvent","MediaStartEvent"],location_stack:(ty=t===null||t===void 0?void 0:t.location_stack)!==null&&ty!==void 0?ty:[],global_contexts:(tf=t===null||t===void 0?void 0:t.global_contexts)!==null&&tf!==void 0?tf:[],_type:"MediaStartEvent",id:(tg=t===null||t===void 0?void 0:t.id)!==null&&tg!==void 0?tg:x(),time:(tk=t===null||t===void 0?void 0:t.time)!==null&&tk!==void 0?tk:Date.now()}},tZ=function(t){return{__instance_id:x(),__non_interactive_event:!0,__media_event:!0,_schema_version:"1.0.0",_types:["AbstractEvent","NonInteractiveEvent","MediaEvent","MediaStopEvent"],location_stack:(tA=t===null||t===void 0?void 0:t.location_stack)!==null&&tA!==void 0?tA:[],global_contexts:(tI=t===null||t===void 0?void 0:t.global_contexts)!==null&&tI!==void 0?tI:[],_type:"MediaStopEvent",id:(tM=t===null||t===void 0?void 0:t.id)!==null&&tM!==void 0?tM:x(),time:(th=t===null||t===void 0?void 0:t.time)!==null&&th!==void 0?th:Date.now()}},t0=function(t){return{__instance_id:x(),__non_interactive_event:!0,_schema_version:"1.0.0",_types:["AbstractEvent","NonInteractiveEvent"],location_stack:(tL=t===null||t===void 0?void 0:t.location_stack)!==null&&tL!==void 0?tL:[],global_contexts:(tP=t===null||t===void 0?void 0:t.global_contexts)!==null&&tP!==void 0?tP:[],_type:"NonInteractiveEvent",id:(tS=t===null||t===void 0?void 0:t.id)!==null&&tS!==void 0?tS:x(),time:(tw=t===null||t===void 0?void 0:t.time)!==null&&tw!==void 0?tw:Date.now()}},t1=function(t){return{__instance_id:x(),__interactive_event:!0,_schema_version:"1.0.0",_types:["AbstractEvent","InteractiveEvent","PressEvent"],location_stack:(tN=t===null||t===void 0?void 0:t.location_stack)!==null&&tN!==void 0?tN:[],global_contexts:(tD=t===null||t===void 0?void 0:t.global_contexts)!==null&&tD!==void 0?tD:[],_type:"PressEvent",id:(tV=t===null||t===void 0?void 0:t.id)!==null&&tV!==void 0?tV:x(),time:(tG=t===null||t===void 0?void 0:t.time)!==null&&tG!==void 0?tG:Date.now()}},t8=function(t){return{__instance_id:x(),__non_interactive_event:!0,_schema_version:"1.0.0",_types:["AbstractEvent","NonInteractiveEvent","SuccessEvent"],location_stack:(tR=t.location_stack)!==null&&tR!==void 0?tR:[],global_contexts:(tO=t.global_contexts)!==null&&tO!==void 0?tO:[],_type:"SuccessEvent",id:(tH=t.id)!==null&&tH!==void 0?tH:x(),time:(tU=t.time)!==null&&tU!==void 0?tU:Date.now(),message:t.message}},t6=function(t){return{__instance_id:x(),__non_interactive_event:!0,_schema_version:"1.0.0",_types:["AbstractEvent","NonInteractiveEvent","VisibleEvent"],location_stack:(tF=t===null||t===void 0?void 0:t.location_stack)!==null&&tF!==void 0?tF:[],global_contexts:(tj=t===null||t===void 0?void 0:t.global_contexts)!==null&&tj!==void 0?tj:[],_type:"VisibleEvent",id:(tT=t===null||t===void 0?void 0:t.id)!==null&&tT!==void 0?tT:x(),time:(t$=t===null||t===void 0?void 0:t.time)!==null&&t$!==void 0?t$:Date.now()}};function t3(t){var e=t._type,n=i(t,["_type"]);switch(e){case"ApplicationLoadedEvent":return tK(n);case"FailureEvent":return tQ(n);case"HiddenEvent":return tq(n);case"InputChangeEvent":return tz(n);case"InteractiveEvent":return tB(n);case"MediaEvent":return tJ(n);case"MediaLoadEvent":return tW(n);case"MediaPauseEvent":return tX(n);case"MediaStartEvent":return tY(n);case"MediaStopEvent":return tZ(n);case"NonInteractiveEvent":return t0(n);case"PressEvent":return t1(n);case"SuccessEvent":return t8(n);case"VisibleEvent":return t6(n);default:throw new Error("Unknown entity ".concat(e))}}export{c as AbstractContextName,d as AbstractEventName,v as ContextNames,u as EventName,s as GlobalContextName,_ as LocationContextName,k as makeApplicationContext,tK as makeApplicationLoadedEvent,A as makeContentContext,j as makeContext,I as makeCookieIdContext,t3 as makeEvent,M as makeExpandableContext,tQ as makeFailureEvent,tq as makeHiddenEvent,h as makeHttpContext,L as makeIdentityContext,tz as makeInputChangeEvent,P as makeInputContext,S as makeInputValueContext,tB as makeInteractiveEvent,w as makeLinkContext,N as makeLocaleContext,D as makeMarketingContext,tJ as makeMediaEvent,tW as makeMediaLoadEvent,tX as makeMediaPauseEvent,V as makeMediaPlayerContext,tY as makeMediaStartEvent,tZ as makeMediaStopEvent,G as makeNavigationContext,t0 as makeNonInteractiveEvent,R as makeOverlayContext,O as makePathContext,t1 as makePressEvent,H as makePressableContext,U as makeRootLocationContext,F as makeSessionContext,t8 as makeSuccessEvent,t6 as makeVisibleEvent,x as uuidv4};//# sourceMappingURL=index.js.map |
@@ -1,2 +0,1 @@ | ||
"use strict";var r=Object.defineProperty;var J=Object.getOwnPropertyDescriptor;var K=Object.getOwnPropertyNames;var Q=Object.prototype.hasOwnProperty;var W=(t,n)=>{for(var _ in n)r(t,_,{get:n[_],enumerable:!0})},X=(t,n,_,i)=>{if(n&&typeof n=="object"||typeof n=="function")for(let c of K(n))!Q.call(t,c)&&c!==_&&r(t,c,{get:()=>n[c],enumerable:!(i=J(n,c))||i.enumerable});return t};var Y=t=>X(r({},"__esModule",{value:!0}),t);var et={};W(et,{AbstractContextName:()=>s,AbstractEventName:()=>d,ContextNames:()=>Z,EventName:()=>C,GlobalContextName:()=>l,LocationContextName:()=>x,makeApplicationContext:()=>v,makeApplicationLoadedEvent:()=>V,makeContentContext:()=>u,makeContext:()=>p,makeCookieIdContext:()=>g,makeEvent:()=>tt,makeExpandableContext:()=>b,makeFailureEvent:()=>H,makeHiddenEvent:()=>D,makeHttpContext:()=>m,makeIdentityContext:()=>E,makeInputChangeEvent:()=>R,makeInputContext:()=>k,makeInputValueContext:()=>y,makeInteractiveEvent:()=>O,makeLinkContext:()=>I,makeLocaleContext:()=>A,makeMarketingContext:()=>L,makeMediaEvent:()=>F,makeMediaLoadEvent:()=>U,makeMediaPauseEvent:()=>N,makeMediaPlayerContext:()=>M,makeMediaStartEvent:()=>$,makeMediaStopEvent:()=>j,makeNavigationContext:()=>S,makeNonInteractiveEvent:()=>T,makeOverlayContext:()=>f,makePathContext:()=>P,makePressEvent:()=>q,makePressableContext:()=>h,makeRootLocationContext:()=>G,makeSessionContext:()=>w,makeSuccessEvent:()=>z,makeVisibleEvent:()=>B,uuidv4:()=>e});module.exports=Y(et);var s=(i=>(i.AbstractContext="AbstractContext",i.AbstractGlobalContext="AbstractGlobalContext",i.AbstractLocationContext="AbstractLocationContext",i))(s||{}),l=(a=>(a.ApplicationContext="ApplicationContext",a.CookieIdContext="CookieIdContext",a.HttpContext="HttpContext",a.IdentityContext="IdentityContext",a.InputValueContext="InputValueContext",a.LocaleContext="LocaleContext",a.MarketingContext="MarketingContext",a.PathContext="PathContext",a.SessionContext="SessionContext",a))(l||{}),x=(a=>(a.ContentContext="ContentContext",a.ExpandableContext="ExpandableContext",a.InputContext="InputContext",a.LinkContext="LinkContext",a.MediaPlayerContext="MediaPlayerContext",a.NavigationContext="NavigationContext",a.OverlayContext="OverlayContext",a.PressableContext="PressableContext",a.RootLocationContext="RootLocationContext",a))(x||{}),Z=new Set([...Object.keys(x),...Object.keys(l)]),d=(n=>(n.AbstractEvent="AbstractEvent",n))(d||{}),C=(o=>(o.ApplicationLoadedEvent="ApplicationLoadedEvent",o.FailureEvent="FailureEvent",o.HiddenEvent="HiddenEvent",o.InputChangeEvent="InputChangeEvent",o.InteractiveEvent="InteractiveEvent",o.MediaEvent="MediaEvent",o.MediaLoadEvent="MediaLoadEvent",o.MediaPauseEvent="MediaPauseEvent",o.MediaStartEvent="MediaStartEvent",o.MediaStopEvent="MediaStopEvent",o.NonInteractiveEvent="NonInteractiveEvent",o.PressEvent="PressEvent",o.SuccessEvent="SuccessEvent",o.VisibleEvent="VisibleEvent",o))(C||{});function e(){let t=globalThis.crypto;if(t){if(typeof t.randomUUID=="function")return e.crypto_RandomUUID();if(typeof t.getRandomValues=="function")return e.crypto_GetRandomValues()}return e.dateNow_MathRandom()}e.crypto_RandomUUID=()=>globalThis.crypto.randomUUID();e.crypto_GetRandomValues=()=>`${1e7}-${1e3}-${4e3}-${8e3}-${1e11}`.replace(/[018]/g,t=>{let n=parseInt(t);return(n^globalThis.crypto.getRandomValues(new Uint8Array(1))[0]&15>>n/4).toString(16)});e.dateNow_MathRandom=()=>{let t=Date.now().toString(16)+Math.random().toString(16)+"0".repeat(16);return[t.substring(0,8),t.substring(8,12),"4000-8"+t.substring(13,16),t.substring(16,28)].join("-")};var v=t=>({__instance_id:e(),__global_context:!0,_types:["AbstractContext","AbstractGlobalContext","ApplicationContext"],id:t.id,_type:"ApplicationContext"}),u=t=>({__instance_id:e(),__location_context:!0,_types:["AbstractContext","AbstractLocationContext","ContentContext"],id:t.id,_type:"ContentContext"}),g=t=>({__instance_id:e(),__global_context:!0,_types:["AbstractContext","AbstractGlobalContext","CookieIdContext"],id:t.id,_type:"CookieIdContext",cookie_id:t.cookie_id}),b=t=>({__instance_id:e(),__location_context:!0,_types:["AbstractContext","AbstractLocationContext","ExpandableContext"],id:t.id,_type:"ExpandableContext"}),m=t=>({__instance_id:e(),__global_context:!0,_types:["AbstractContext","AbstractGlobalContext","HttpContext"],id:t.id,_type:"HttpContext",referrer:t.referrer,user_agent:t.user_agent,remote_address:t.remote_address??null}),E=t=>({__instance_id:e(),__global_context:!0,_types:["AbstractContext","AbstractGlobalContext","IdentityContext"],id:t.id,_type:"IdentityContext",value:t.value}),k=t=>({__instance_id:e(),__location_context:!0,_types:["AbstractContext","AbstractLocationContext","InputContext"],id:t.id,_type:"InputContext"}),y=t=>({__instance_id:e(),__global_context:!0,_types:["AbstractContext","AbstractGlobalContext","InputValueContext"],id:t.id,_type:"InputValueContext",value:t.value}),I=t=>({__instance_id:e(),__pressable_context:!0,__location_context:!0,_types:["AbstractContext","AbstractLocationContext","PressableContext","LinkContext"],id:t.id,_type:"LinkContext",href:t.href}),A=t=>({__instance_id:e(),__global_context:!0,_types:["AbstractContext","AbstractGlobalContext","LocaleContext"],id:t.id,_type:"LocaleContext",language_code:t.language_code??null,country_code:t.country_code??null}),L=t=>({__instance_id:e(),__global_context:!0,_types:["AbstractContext","AbstractGlobalContext","MarketingContext"],id:t.id,_type:"MarketingContext",source:t.source,medium:t.medium,campaign:t.campaign,term:t.term??null,content:t.content??null,source_platform:t.source_platform??null,creative_format:t.creative_format??null,marketing_tactic:t.marketing_tactic??null}),M=t=>({__instance_id:e(),__location_context:!0,_types:["AbstractContext","AbstractLocationContext","MediaPlayerContext"],id:t.id,_type:"MediaPlayerContext"}),S=t=>({__instance_id:e(),__location_context:!0,_types:["AbstractContext","AbstractLocationContext","NavigationContext"],id:t.id,_type:"NavigationContext"}),f=t=>({__instance_id:e(),__location_context:!0,_types:["AbstractContext","AbstractLocationContext","OverlayContext"],id:t.id,_type:"OverlayContext"}),P=t=>({__instance_id:e(),__global_context:!0,_types:["AbstractContext","AbstractGlobalContext","PathContext"],id:t.id,_type:"PathContext"}),h=t=>({__instance_id:e(),__pressable_context:!0,__location_context:!0,_types:["AbstractContext","AbstractLocationContext","PressableContext"],id:t.id,_type:"PressableContext"}),G=t=>({__instance_id:e(),__location_context:!0,_types:["AbstractContext","AbstractLocationContext","RootLocationContext"],id:t.id,_type:"RootLocationContext"}),w=t=>({__instance_id:e(),__global_context:!0,_types:["AbstractContext","AbstractGlobalContext","SessionContext"],id:t.id,_type:"SessionContext",hit_number:t.hit_number});function p({_type:t,...n}){switch(t){case"ApplicationContext":return v(n);case"ContentContext":return u(n);case"CookieIdContext":return g(n);case"ExpandableContext":return b(n);case"HttpContext":return m(n);case"IdentityContext":return E(n);case"InputContext":return k(n);case"InputValueContext":return y(n);case"LinkContext":return I(n);case"LocaleContext":return A(n);case"MarketingContext":return L(n);case"MediaPlayerContext":return M(n);case"NavigationContext":return S(n);case"OverlayContext":return f(n);case"PathContext":return P(n);case"PressableContext":return h(n);case"RootLocationContext":return G(n);case"SessionContext":return w(n);default:throw new Error(`Unknown entity ${t}`)}}var V=t=>({__instance_id:e(),__non_interactive_event:!0,_schema_version:"1.0.0",_types:["AbstractEvent","NonInteractiveEvent","ApplicationLoadedEvent"],location_stack:(t==null?void 0:t.location_stack)??[],global_contexts:(t==null?void 0:t.global_contexts)??[],_type:"ApplicationLoadedEvent",id:(t==null?void 0:t.id)??e(),time:(t==null?void 0:t.time)??Date.now()}),H=t=>({__instance_id:e(),__non_interactive_event:!0,_schema_version:"1.0.0",_types:["AbstractEvent","NonInteractiveEvent","FailureEvent"],location_stack:t.location_stack??[],global_contexts:t.global_contexts??[],_type:"FailureEvent",id:t.id??e(),time:t.time??Date.now(),message:t.message}),D=t=>({__instance_id:e(),__non_interactive_event:!0,_schema_version:"1.0.0",_types:["AbstractEvent","NonInteractiveEvent","HiddenEvent"],location_stack:(t==null?void 0:t.location_stack)??[],global_contexts:(t==null?void 0:t.global_contexts)??[],_type:"HiddenEvent",id:(t==null?void 0:t.id)??e(),time:(t==null?void 0:t.time)??Date.now()}),R=t=>({__instance_id:e(),__interactive_event:!0,_schema_version:"1.0.0",_types:["AbstractEvent","InteractiveEvent","InputChangeEvent"],location_stack:(t==null?void 0:t.location_stack)??[],global_contexts:(t==null?void 0:t.global_contexts)??[],_type:"InputChangeEvent",id:(t==null?void 0:t.id)??e(),time:(t==null?void 0:t.time)??Date.now()}),O=t=>({__instance_id:e(),__interactive_event:!0,_schema_version:"1.0.0",_types:["AbstractEvent","InteractiveEvent"],location_stack:(t==null?void 0:t.location_stack)??[],global_contexts:(t==null?void 0:t.global_contexts)??[],_type:"InteractiveEvent",id:(t==null?void 0:t.id)??e(),time:(t==null?void 0:t.time)??Date.now()}),F=t=>({__instance_id:e(),__media_event:!0,__non_interactive_event:!0,_schema_version:"1.0.0",_types:["AbstractEvent","NonInteractiveEvent","MediaEvent"],location_stack:(t==null?void 0:t.location_stack)??[],global_contexts:(t==null?void 0:t.global_contexts)??[],_type:"MediaEvent",id:(t==null?void 0:t.id)??e(),time:(t==null?void 0:t.time)??Date.now()}),U=t=>({__instance_id:e(),__non_interactive_event:!0,__media_event:!0,_schema_version:"1.0.0",_types:["AbstractEvent","NonInteractiveEvent","MediaEvent","MediaLoadEvent"],location_stack:(t==null?void 0:t.location_stack)??[],global_contexts:(t==null?void 0:t.global_contexts)??[],_type:"MediaLoadEvent",id:(t==null?void 0:t.id)??e(),time:(t==null?void 0:t.time)??Date.now()}),N=t=>({__instance_id:e(),__non_interactive_event:!0,__media_event:!0,_schema_version:"1.0.0",_types:["AbstractEvent","NonInteractiveEvent","MediaEvent","MediaPauseEvent"],location_stack:(t==null?void 0:t.location_stack)??[],global_contexts:(t==null?void 0:t.global_contexts)??[],_type:"MediaPauseEvent",id:(t==null?void 0:t.id)??e(),time:(t==null?void 0:t.time)??Date.now()}),$=t=>({__instance_id:e(),__non_interactive_event:!0,__media_event:!0,_schema_version:"1.0.0",_types:["AbstractEvent","NonInteractiveEvent","MediaEvent","MediaStartEvent"],location_stack:(t==null?void 0:t.location_stack)??[],global_contexts:(t==null?void 0:t.global_contexts)??[],_type:"MediaStartEvent",id:(t==null?void 0:t.id)??e(),time:(t==null?void 0:t.time)??Date.now()}),j=t=>({__instance_id:e(),__non_interactive_event:!0,__media_event:!0,_schema_version:"1.0.0",_types:["AbstractEvent","NonInteractiveEvent","MediaEvent","MediaStopEvent"],location_stack:(t==null?void 0:t.location_stack)??[],global_contexts:(t==null?void 0:t.global_contexts)??[],_type:"MediaStopEvent",id:(t==null?void 0:t.id)??e(),time:(t==null?void 0:t.time)??Date.now()}),T=t=>({__instance_id:e(),__non_interactive_event:!0,_schema_version:"1.0.0",_types:["AbstractEvent","NonInteractiveEvent"],location_stack:(t==null?void 0:t.location_stack)??[],global_contexts:(t==null?void 0:t.global_contexts)??[],_type:"NonInteractiveEvent",id:(t==null?void 0:t.id)??e(),time:(t==null?void 0:t.time)??Date.now()}),q=t=>({__instance_id:e(),__interactive_event:!0,_schema_version:"1.0.0",_types:["AbstractEvent","InteractiveEvent","PressEvent"],location_stack:(t==null?void 0:t.location_stack)??[],global_contexts:(t==null?void 0:t.global_contexts)??[],_type:"PressEvent",id:(t==null?void 0:t.id)??e(),time:(t==null?void 0:t.time)??Date.now()}),z=t=>({__instance_id:e(),__non_interactive_event:!0,_schema_version:"1.0.0",_types:["AbstractEvent","NonInteractiveEvent","SuccessEvent"],location_stack:t.location_stack??[],global_contexts:t.global_contexts??[],_type:"SuccessEvent",id:t.id??e(),time:t.time??Date.now(),message:t.message}),B=t=>({__instance_id:e(),__non_interactive_event:!0,_schema_version:"1.0.0",_types:["AbstractEvent","NonInteractiveEvent","VisibleEvent"],location_stack:(t==null?void 0:t.location_stack)??[],global_contexts:(t==null?void 0:t.global_contexts)??[],_type:"VisibleEvent",id:(t==null?void 0:t.id)??e(),time:(t==null?void 0:t.time)??Date.now()});function tt({_type:t,...n}){switch(t){case"ApplicationLoadedEvent":return V(n);case"FailureEvent":return H(n);case"HiddenEvent":return D(n);case"InputChangeEvent":return R(n);case"InteractiveEvent":return O(n);case"MediaEvent":return F(n);case"MediaLoadEvent":return U(n);case"MediaPauseEvent":return N(n);case"MediaStartEvent":return $(n);case"MediaStopEvent":return j(n);case"NonInteractiveEvent":return T(n);case"PressEvent":return q(n);case"SuccessEvent":return z(n);case"VisibleEvent":return B(n);default:throw new Error(`Unknown entity ${t}`)}}0&&(module.exports={AbstractContextName,AbstractEventName,ContextNames,EventName,GlobalContextName,LocationContextName,makeApplicationContext,makeApplicationLoadedEvent,makeContentContext,makeContext,makeCookieIdContext,makeEvent,makeExpandableContext,makeFailureEvent,makeHiddenEvent,makeHttpContext,makeIdentityContext,makeInputChangeEvent,makeInputContext,makeInputValueContext,makeInteractiveEvent,makeLinkContext,makeLocaleContext,makeMarketingContext,makeMediaEvent,makeMediaLoadEvent,makeMediaPauseEvent,makeMediaPlayerContext,makeMediaStartEvent,makeMediaStopEvent,makeNavigationContext,makeNonInteractiveEvent,makeOverlayContext,makePathContext,makePressEvent,makePressableContext,makeRootLocationContext,makeSessionContext,makeSuccessEvent,makeVisibleEvent,uuidv4}); | ||
//# sourceMappingURL=index.js.map | ||
"use strict";function t(t,e){if(e==null||e>t.length)e=t.length;for(var n=0,o=new Array(e);n<e;n++)o[n]=t[n];return o}function e(e){if(Array.isArray(e))return t(e)}function n(t){if(typeof Symbol!=="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function o(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function i(t,e){if(t==null)return{};var n=a(t,e);var o,i;if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);for(i=0;i<r.length;i++){o=r[i];if(e.indexOf(o)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(t,o))continue;n[o]=t[o]}}return n}function a(t,e){if(t==null)return{};var n={};var o=Object.keys(t);var i,a;for(a=0;a<o.length;a++){i=o[a];if(e.indexOf(i)>=0)continue;n[i]=t[i]}return n}function r(t){return e(t)||n(t)||l(t)||o()}function l(e,n){if(!e)return;if(typeof e==="string")return t(e,n);var o=Object.prototype.toString.call(e).slice(8,-1);if(o==="Object"&&e.constructor)o=e.constructor.name;if(o==="Map"||o==="Set")return Array.from(o);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return t(e,n)}var c=Object.defineProperty;var u=Object.getOwnPropertyDescriptor;var v=Object.getOwnPropertyNames;var d=Object.prototype.hasOwnProperty;var _=function(t,e){for(var n in e)c(t,n,{get:e[n],enumerable:!0})},s=function(t,e,n,o){var i=true,a=false,r=undefined;if(e&&typeof e=="object"||typeof e=="function")try{var l=function(){var i=s.value;!d.call(t,i)&&i!==n&&c(t,i,{get:function(){return e[i]},enumerable:!(o=u(e,i))||o.enumerable})};for(var _=v(e)[Symbol.iterator](),s;!(i=(s=_.next()).done);i=true)l()}catch(x){a=true;r=x}finally{try{if(!i&&_.return!=null){_.return()}}finally{if(a){throw r}}}return t};var x=function(t){return s(c({},"__esModule",{value:!0}),t)};var C={};_(C,{AbstractContextName:function(){return m},AbstractEventName:function(){return k},ContextNames:function(){return E},EventName:function(){return f},GlobalContextName:function(){return p},LocationContextName:function(){return b},makeApplicationContext:function(){return S},makeApplicationLoadedEvent:function(){return tY},makeContentContext:function(){return w},makeContext:function(){return Q},makeCookieIdContext:function(){return O},makeEvent:function(){return en},makeExpandableContext:function(){return D},makeFailureEvent:function(){return tZ},makeHiddenEvent:function(){return t0},makeHttpContext:function(){return V},makeIdentityContext:function(){return G},makeInputChangeEvent:function(){return t1},makeInputContext:function(){return H},makeInputValueContext:function(){return R},makeInteractiveEvent:function(){return t8},makeLinkContext:function(){return U},makeLocaleContext:function(){return j},makeMarketingContext:function(){return F},makeMediaEvent:function(){return t6},makeMediaLoadEvent:function(){return t4},makeMediaPauseEvent:function(){return t3},makeMediaPlayerContext:function(){return T},makeMediaStartEvent:function(){return t2},makeMediaStopEvent:function(){return t5},makeNavigationContext:function(){return $},makeNonInteractiveEvent:function(){return t7},makeOverlayContext:function(){return q},makePathContext:function(){return z},makePressEvent:function(){return t9},makePressableContext:function(){return B},makeRootLocationContext:function(){return J},makeSessionContext:function(){return K},makeSuccessEvent:function(){return et},makeVisibleEvent:function(){return ee},uuidv4:function(){return y}});module.exports=x(C);var m=function(t){return t.AbstractContext="AbstractContext",t.AbstractGlobalContext="AbstractGlobalContext",t.AbstractLocationContext="AbstractLocationContext",t}(m||{}),p=function(t){return t.ApplicationContext="ApplicationContext",t.CookieIdContext="CookieIdContext",t.HttpContext="HttpContext",t.IdentityContext="IdentityContext",t.InputValueContext="InputValueContext",t.LocaleContext="LocaleContext",t.MarketingContext="MarketingContext",t.PathContext="PathContext",t.SessionContext="SessionContext",t}(p||{}),b=function(t){return t.ContentContext="ContentContext",t.ExpandableContext="ExpandableContext",t.InputContext="InputContext",t.LinkContext="LinkContext",t.MediaPlayerContext="MediaPlayerContext",t.NavigationContext="NavigationContext",t.OverlayContext="OverlayContext",t.PressableContext="PressableContext",t.RootLocationContext="RootLocationContext",t}(b||{}),E=new Set(r(Object.keys(b)).concat(r(Object.keys(p)))),k=function(t){return t.AbstractEvent="AbstractEvent",t}(k||{}),f=function(t){return t.ApplicationLoadedEvent="ApplicationLoadedEvent",t.FailureEvent="FailureEvent",t.HiddenEvent="HiddenEvent",t.InputChangeEvent="InputChangeEvent",t.InteractiveEvent="InteractiveEvent",t.MediaEvent="MediaEvent",t.MediaLoadEvent="MediaLoadEvent",t.MediaPauseEvent="MediaPauseEvent",t.MediaStartEvent="MediaStartEvent",t.MediaStopEvent="MediaStopEvent",t.NonInteractiveEvent="NonInteractiveEvent",t.PressEvent="PressEvent",t.SuccessEvent="SuccessEvent",t.VisibleEvent="VisibleEvent",t}(f||{});function y(){var t=globalThis.crypto;if(t){if(typeof t.randomUUID=="function")return y.crypto_RandomUUID();if(typeof t.getRandomValues=="function")return y.crypto_GetRandomValues()}return y.dateNow_MathRandom()}y.crypto_RandomUUID=function(){return globalThis.crypto.randomUUID()};y.crypto_GetRandomValues=function(){return"".concat(1e7,"-",1e3,"-",4e3,"-",8e3,"-",1e11).replace(/[018]/g,function(t){var e=parseInt(t);return(e^globalThis.crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16)})};y.dateNow_MathRandom=function(){var t=Date.now().toString(16)+Math.random().toString(16)+"0".repeat(16);return[t.substring(0,8),t.substring(8,12),"4000-8"+t.substring(13,16),t.substring(16,28)].join("-")};var g,A,I,M,h,L,N,P;var S=function(t){return{__instance_id:y(),__global_context:!0,_types:["AbstractContext","AbstractGlobalContext","ApplicationContext"],id:t.id,_type:"ApplicationContext"}},w=function(t){return{__instance_id:y(),__location_context:!0,_types:["AbstractContext","AbstractLocationContext","ContentContext"],id:t.id,_type:"ContentContext"}},O=function(t){return{__instance_id:y(),__global_context:!0,_types:["AbstractContext","AbstractGlobalContext","CookieIdContext"],id:t.id,_type:"CookieIdContext",cookie_id:t.cookie_id}},D=function(t){return{__instance_id:y(),__location_context:!0,_types:["AbstractContext","AbstractLocationContext","ExpandableContext"],id:t.id,_type:"ExpandableContext"}},V=function(t){return{__instance_id:y(),__global_context:!0,_types:["AbstractContext","AbstractGlobalContext","HttpContext"],id:t.id,_type:"HttpContext",referrer:t.referrer,user_agent:t.user_agent,remote_address:(g=t.remote_address)!==null&&g!==void 0?g:null}},G=function(t){return{__instance_id:y(),__global_context:!0,_types:["AbstractContext","AbstractGlobalContext","IdentityContext"],id:t.id,_type:"IdentityContext",value:t.value}},H=function(t){return{__instance_id:y(),__location_context:!0,_types:["AbstractContext","AbstractLocationContext","InputContext"],id:t.id,_type:"InputContext"}},R=function(t){return{__instance_id:y(),__global_context:!0,_types:["AbstractContext","AbstractGlobalContext","InputValueContext"],id:t.id,_type:"InputValueContext",value:t.value}},U=function(t){return{__instance_id:y(),__pressable_context:!0,__location_context:!0,_types:["AbstractContext","AbstractLocationContext","PressableContext","LinkContext"],id:t.id,_type:"LinkContext",href:t.href}},j=function(t){return{__instance_id:y(),__global_context:!0,_types:["AbstractContext","AbstractGlobalContext","LocaleContext"],id:t.id,_type:"LocaleContext",language_code:(A=t.language_code)!==null&&A!==void 0?A:null,country_code:(I=t.country_code)!==null&&I!==void 0?I:null}},F=function(t){return{__instance_id:y(),__global_context:!0,_types:["AbstractContext","AbstractGlobalContext","MarketingContext"],id:t.id,_type:"MarketingContext",source:t.source,medium:t.medium,campaign:t.campaign,term:(M=t.term)!==null&&M!==void 0?M:null,content:(h=t.content)!==null&&h!==void 0?h:null,source_platform:(L=t.source_platform)!==null&&L!==void 0?L:null,creative_format:(N=t.creative_format)!==null&&N!==void 0?N:null,marketing_tactic:(P=t.marketing_tactic)!==null&&P!==void 0?P:null}},T=function(t){return{__instance_id:y(),__location_context:!0,_types:["AbstractContext","AbstractLocationContext","MediaPlayerContext"],id:t.id,_type:"MediaPlayerContext"}},$=function(t){return{__instance_id:y(),__location_context:!0,_types:["AbstractContext","AbstractLocationContext","NavigationContext"],id:t.id,_type:"NavigationContext"}},q=function(t){return{__instance_id:y(),__location_context:!0,_types:["AbstractContext","AbstractLocationContext","OverlayContext"],id:t.id,_type:"OverlayContext"}},z=function(t){return{__instance_id:y(),__global_context:!0,_types:["AbstractContext","AbstractGlobalContext","PathContext"],id:t.id,_type:"PathContext"}},B=function(t){return{__instance_id:y(),__pressable_context:!0,__location_context:!0,_types:["AbstractContext","AbstractLocationContext","PressableContext"],id:t.id,_type:"PressableContext"}},J=function(t){return{__instance_id:y(),__location_context:!0,_types:["AbstractContext","AbstractLocationContext","RootLocationContext"],id:t.id,_type:"RootLocationContext"}},K=function(t){return{__instance_id:y(),__global_context:!0,_types:["AbstractContext","AbstractGlobalContext","SessionContext"],id:t.id,_type:"SessionContext",hit_number:t.hit_number}};function Q(t){var e=t._type,n=i(t,["_type"]);switch(e){case"ApplicationContext":return S(n);case"ContentContext":return w(n);case"CookieIdContext":return O(n);case"ExpandableContext":return D(n);case"HttpContext":return V(n);case"IdentityContext":return G(n);case"InputContext":return H(n);case"InputValueContext":return R(n);case"LinkContext":return U(n);case"LocaleContext":return j(n);case"MarketingContext":return F(n);case"MediaPlayerContext":return T(n);case"NavigationContext":return $(n);case"OverlayContext":return q(n);case"PathContext":return z(n);case"PressableContext":return B(n);case"RootLocationContext":return J(n);case"SessionContext":return K(n);default:throw new Error("Unknown entity ".concat(e))}}var W,X,Y,Z,tt,te,tn,to,ti,ta,tr,tl,tc,tu,tv,td,t_,ts,tx,tC,tm,tp,tb,tE,tk,tf,ty,tg,tA,tI,tM,th,tL,tN,tP,tS,tw,tO,tD,tV,tG,tH,tR,tU,tj,tF,tT,t$,tq,tz,tB,tJ,tK,tQ,tW,tX;var tY=function(t){return{__instance_id:y(),__non_interactive_event:!0,_schema_version:"1.0.0",_types:["AbstractEvent","NonInteractiveEvent","ApplicationLoadedEvent"],location_stack:(W=t===null||t===void 0?void 0:t.location_stack)!==null&&W!==void 0?W:[],global_contexts:(X=t===null||t===void 0?void 0:t.global_contexts)!==null&&X!==void 0?X:[],_type:"ApplicationLoadedEvent",id:(Y=t===null||t===void 0?void 0:t.id)!==null&&Y!==void 0?Y:y(),time:(Z=t===null||t===void 0?void 0:t.time)!==null&&Z!==void 0?Z:Date.now()}},tZ=function(t){return{__instance_id:y(),__non_interactive_event:!0,_schema_version:"1.0.0",_types:["AbstractEvent","NonInteractiveEvent","FailureEvent"],location_stack:(tt=t.location_stack)!==null&&tt!==void 0?tt:[],global_contexts:(te=t.global_contexts)!==null&&te!==void 0?te:[],_type:"FailureEvent",id:(tn=t.id)!==null&&tn!==void 0?tn:y(),time:(to=t.time)!==null&&to!==void 0?to:Date.now(),message:t.message}},t0=function(t){return{__instance_id:y(),__non_interactive_event:!0,_schema_version:"1.0.0",_types:["AbstractEvent","NonInteractiveEvent","HiddenEvent"],location_stack:(ti=t===null||t===void 0?void 0:t.location_stack)!==null&&ti!==void 0?ti:[],global_contexts:(ta=t===null||t===void 0?void 0:t.global_contexts)!==null&&ta!==void 0?ta:[],_type:"HiddenEvent",id:(tr=t===null||t===void 0?void 0:t.id)!==null&&tr!==void 0?tr:y(),time:(tl=t===null||t===void 0?void 0:t.time)!==null&&tl!==void 0?tl:Date.now()}},t1=function(t){return{__instance_id:y(),__interactive_event:!0,_schema_version:"1.0.0",_types:["AbstractEvent","InteractiveEvent","InputChangeEvent"],location_stack:(tc=t===null||t===void 0?void 0:t.location_stack)!==null&&tc!==void 0?tc:[],global_contexts:(tu=t===null||t===void 0?void 0:t.global_contexts)!==null&&tu!==void 0?tu:[],_type:"InputChangeEvent",id:(tv=t===null||t===void 0?void 0:t.id)!==null&&tv!==void 0?tv:y(),time:(td=t===null||t===void 0?void 0:t.time)!==null&&td!==void 0?td:Date.now()}},t8=function(t){return{__instance_id:y(),__interactive_event:!0,_schema_version:"1.0.0",_types:["AbstractEvent","InteractiveEvent"],location_stack:(t_=t===null||t===void 0?void 0:t.location_stack)!==null&&t_!==void 0?t_:[],global_contexts:(ts=t===null||t===void 0?void 0:t.global_contexts)!==null&&ts!==void 0?ts:[],_type:"InteractiveEvent",id:(tx=t===null||t===void 0?void 0:t.id)!==null&&tx!==void 0?tx:y(),time:(tC=t===null||t===void 0?void 0:t.time)!==null&&tC!==void 0?tC:Date.now()}},t6=function(t){return{__instance_id:y(),__media_event:!0,__non_interactive_event:!0,_schema_version:"1.0.0",_types:["AbstractEvent","NonInteractiveEvent","MediaEvent"],location_stack:(tm=t===null||t===void 0?void 0:t.location_stack)!==null&&tm!==void 0?tm:[],global_contexts:(tp=t===null||t===void 0?void 0:t.global_contexts)!==null&&tp!==void 0?tp:[],_type:"MediaEvent",id:(tb=t===null||t===void 0?void 0:t.id)!==null&&tb!==void 0?tb:y(),time:(tE=t===null||t===void 0?void 0:t.time)!==null&&tE!==void 0?tE:Date.now()}},t4=function(t){return{__instance_id:y(),__non_interactive_event:!0,__media_event:!0,_schema_version:"1.0.0",_types:["AbstractEvent","NonInteractiveEvent","MediaEvent","MediaLoadEvent"],location_stack:(tk=t===null||t===void 0?void 0:t.location_stack)!==null&&tk!==void 0?tk:[],global_contexts:(tf=t===null||t===void 0?void 0:t.global_contexts)!==null&&tf!==void 0?tf:[],_type:"MediaLoadEvent",id:(ty=t===null||t===void 0?void 0:t.id)!==null&&ty!==void 0?ty:y(),time:(tg=t===null||t===void 0?void 0:t.time)!==null&&tg!==void 0?tg:Date.now()}},t3=function(t){return{__instance_id:y(),__non_interactive_event:!0,__media_event:!0,_schema_version:"1.0.0",_types:["AbstractEvent","NonInteractiveEvent","MediaEvent","MediaPauseEvent"],location_stack:(tA=t===null||t===void 0?void 0:t.location_stack)!==null&&tA!==void 0?tA:[],global_contexts:(tI=t===null||t===void 0?void 0:t.global_contexts)!==null&&tI!==void 0?tI:[],_type:"MediaPauseEvent",id:(tM=t===null||t===void 0?void 0:t.id)!==null&&tM!==void 0?tM:y(),time:(th=t===null||t===void 0?void 0:t.time)!==null&&th!==void 0?th:Date.now()}},t2=function(t){return{__instance_id:y(),__non_interactive_event:!0,__media_event:!0,_schema_version:"1.0.0",_types:["AbstractEvent","NonInteractiveEvent","MediaEvent","MediaStartEvent"],location_stack:(tL=t===null||t===void 0?void 0:t.location_stack)!==null&&tL!==void 0?tL:[],global_contexts:(tN=t===null||t===void 0?void 0:t.global_contexts)!==null&&tN!==void 0?tN:[],_type:"MediaStartEvent",id:(tP=t===null||t===void 0?void 0:t.id)!==null&&tP!==void 0?tP:y(),time:(tS=t===null||t===void 0?void 0:t.time)!==null&&tS!==void 0?tS:Date.now()}},t5=function(t){return{__instance_id:y(),__non_interactive_event:!0,__media_event:!0,_schema_version:"1.0.0",_types:["AbstractEvent","NonInteractiveEvent","MediaEvent","MediaStopEvent"],location_stack:(tw=t===null||t===void 0?void 0:t.location_stack)!==null&&tw!==void 0?tw:[],global_contexts:(tO=t===null||t===void 0?void 0:t.global_contexts)!==null&&tO!==void 0?tO:[],_type:"MediaStopEvent",id:(tD=t===null||t===void 0?void 0:t.id)!==null&&tD!==void 0?tD:y(),time:(tV=t===null||t===void 0?void 0:t.time)!==null&&tV!==void 0?tV:Date.now()}},t7=function(t){return{__instance_id:y(),__non_interactive_event:!0,_schema_version:"1.0.0",_types:["AbstractEvent","NonInteractiveEvent"],location_stack:(tG=t===null||t===void 0?void 0:t.location_stack)!==null&&tG!==void 0?tG:[],global_contexts:(tH=t===null||t===void 0?void 0:t.global_contexts)!==null&&tH!==void 0?tH:[],_type:"NonInteractiveEvent",id:(tR=t===null||t===void 0?void 0:t.id)!==null&&tR!==void 0?tR:y(),time:(tU=t===null||t===void 0?void 0:t.time)!==null&&tU!==void 0?tU:Date.now()}},t9=function(t){return{__instance_id:y(),__interactive_event:!0,_schema_version:"1.0.0",_types:["AbstractEvent","InteractiveEvent","PressEvent"],location_stack:(tj=t===null||t===void 0?void 0:t.location_stack)!==null&&tj!==void 0?tj:[],global_contexts:(tF=t===null||t===void 0?void 0:t.global_contexts)!==null&&tF!==void 0?tF:[],_type:"PressEvent",id:(tT=t===null||t===void 0?void 0:t.id)!==null&&tT!==void 0?tT:y(),time:(t$=t===null||t===void 0?void 0:t.time)!==null&&t$!==void 0?t$:Date.now()}},et=function(t){return{__instance_id:y(),__non_interactive_event:!0,_schema_version:"1.0.0",_types:["AbstractEvent","NonInteractiveEvent","SuccessEvent"],location_stack:(tq=t.location_stack)!==null&&tq!==void 0?tq:[],global_contexts:(tz=t.global_contexts)!==null&&tz!==void 0?tz:[],_type:"SuccessEvent",id:(tB=t.id)!==null&&tB!==void 0?tB:y(),time:(tJ=t.time)!==null&&tJ!==void 0?tJ:Date.now(),message:t.message}},ee=function(t){return{__instance_id:y(),__non_interactive_event:!0,_schema_version:"1.0.0",_types:["AbstractEvent","NonInteractiveEvent","VisibleEvent"],location_stack:(tK=t===null||t===void 0?void 0:t.location_stack)!==null&&tK!==void 0?tK:[],global_contexts:(tQ=t===null||t===void 0?void 0:t.global_contexts)!==null&&tQ!==void 0?tQ:[],_type:"VisibleEvent",id:(tW=t===null||t===void 0?void 0:t.id)!==null&&tW!==void 0?tW:y(),time:(tX=t===null||t===void 0?void 0:t.time)!==null&&tX!==void 0?tX:Date.now()}};function en(t){var e=t._type,n=i(t,["_type"]);switch(e){case"ApplicationLoadedEvent":return tY(n);case"FailureEvent":return tZ(n);case"HiddenEvent":return t0(n);case"InputChangeEvent":return t1(n);case"InteractiveEvent":return t8(n);case"MediaEvent":return t6(n);case"MediaLoadEvent":return t4(n);case"MediaPauseEvent":return t3(n);case"MediaStartEvent":return t2(n);case"MediaStopEvent":return t5(n);case"NonInteractiveEvent":return t7(n);case"PressEvent":return t9(n);case"SuccessEvent":return et(n);case"VisibleEvent":return ee(n);default:throw new Error("Unknown entity ".concat(e))}}0&&(module.exports={AbstractContextName:AbstractContextName,AbstractEventName:AbstractEventName,ContextNames:ContextNames,EventName:EventName,GlobalContextName:GlobalContextName,LocationContextName:LocationContextName,makeApplicationContext:makeApplicationContext,makeApplicationLoadedEvent:makeApplicationLoadedEvent,makeContentContext:makeContentContext,makeContext:makeContext,makeCookieIdContext:makeCookieIdContext,makeEvent:makeEvent,makeExpandableContext:makeExpandableContext,makeFailureEvent:makeFailureEvent,makeHiddenEvent:makeHiddenEvent,makeHttpContext:makeHttpContext,makeIdentityContext:makeIdentityContext,makeInputChangeEvent:makeInputChangeEvent,makeInputContext:makeInputContext,makeInputValueContext:makeInputValueContext,makeInteractiveEvent:makeInteractiveEvent,makeLinkContext:makeLinkContext,makeLocaleContext:makeLocaleContext,makeMarketingContext:makeMarketingContext,makeMediaEvent:makeMediaEvent,makeMediaLoadEvent:makeMediaLoadEvent,makeMediaPauseEvent:makeMediaPauseEvent,makeMediaPlayerContext:makeMediaPlayerContext,makeMediaStartEvent:makeMediaStartEvent,makeMediaStopEvent:makeMediaStopEvent,makeNavigationContext:makeNavigationContext,makeNonInteractiveEvent:makeNonInteractiveEvent,makeOverlayContext:makeOverlayContext,makePathContext:makePathContext,makePressEvent:makePressEvent,makePressableContext:makePressableContext,makeRootLocationContext:makeRootLocationContext,makeSessionContext:makeSessionContext,makeSuccessEvent:makeSuccessEvent,makeVisibleEvent:makeVisibleEvent,uuidv4:uuidv4});//# sourceMappingURL=index.js.map |
{ | ||
"name": "@objectiv/schema", | ||
"version": "0.0.27-experimental.4", | ||
"version": "0.0.27-experimental.5", | ||
"description": "Objectiv TypeScript implementation of the open analytics taxonomy", | ||
@@ -42,3 +42,3 @@ "license": "Apache-2.0", | ||
"scripts": { | ||
"build": "tsup src/index.ts --format cjs,esm --legacy-output --minify --dts --sourcemap --clean", | ||
"build": "tsup src/index.ts --target es5 --format cjs,esm --legacy-output --minify --dts --sourcemap --clean", | ||
"deploy:verdaccio": "npm publish", | ||
@@ -54,3 +54,3 @@ "prettify": "prettier --write .", | ||
"devDependencies": { | ||
"@objectiv/testing-tools": "^0.0.27-experimental.4", | ||
"@objectiv/testing-tools": "^0.0.27-experimental.5", | ||
"@swc/core": "^1.3.14", | ||
@@ -57,0 +57,0 @@ "jest": "^28.1.3", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
158710
1054