@bidspark/analytics 0.46.1 → 0.46.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -14
- package/dist/analytics.global.js +1 -1
- package/dist/index.d.mts +18 -1
- package/dist/index.d.ts +18 -1
- package/dist/index.js +419 -81
- package/dist/index.mjs +417 -81
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -100,6 +100,8 @@ interface MessageFns$1<T> {
|
|
|
100
100
|
* other identifiers travel as UTF-8. Exact round-trip: ingest formats 16 bytes
|
|
101
101
|
* back to lowercase UUID string and takes other byte lengths verbatim as text.
|
|
102
102
|
*/
|
|
103
|
+
/** Reports whether id is a canonical UUID string. */
|
|
104
|
+
declare function isCanonicalUuid(id: string | undefined): boolean;
|
|
103
105
|
/** Encodes ID to wire bytes: 16 bytes for canonical UUID, UTF-8 otherwise. */
|
|
104
106
|
declare function idToBytes(id: string | undefined): Uint8Array;
|
|
105
107
|
/** Decodes wire bytes to ID: 16 bytes format to canonical lowercase UUID. */
|
|
@@ -307,6 +309,12 @@ declare class BidsparkPrebidAnalytics {
|
|
|
307
309
|
private videoDetachCleanups;
|
|
308
310
|
private auctionBidderOutcomes;
|
|
309
311
|
private floorDecisions;
|
|
312
|
+
private syntheticAuctionByRawTs;
|
|
313
|
+
private syntheticAuctionByRawLatest;
|
|
314
|
+
private syntheticAuctionByBidId;
|
|
315
|
+
private syntheticAuctionByTxId;
|
|
316
|
+
private syntheticAuctionByAdId;
|
|
317
|
+
private syntheticToRawAuctionId;
|
|
310
318
|
private recordedConsentKeys;
|
|
311
319
|
private consentCount;
|
|
312
320
|
private cmpDetach;
|
|
@@ -317,6 +325,7 @@ declare class BidsparkPrebidAnalytics {
|
|
|
317
325
|
private configuredUserId;
|
|
318
326
|
private managesVisitorId;
|
|
319
327
|
private visitorKeyLocked;
|
|
328
|
+
private hasExplicitPbjsGlobalName;
|
|
320
329
|
constructor(config: AnalyticsConfig);
|
|
321
330
|
private applyStorageAllowed;
|
|
322
331
|
setLogLevel(level: LogLevel | string): void;
|
|
@@ -438,6 +447,12 @@ declare class BidsparkPrebidAnalytics {
|
|
|
438
447
|
continuePageview(previous: BidsparkPrebidAnalytics): void;
|
|
439
448
|
navigate(pageviewId: string, pageUrl?: string): void;
|
|
440
449
|
recordAuctionStart(auctionId: string, adUnitCode?: string, bidderCount?: number, mediaType?: string): void;
|
|
450
|
+
private collectHintBids;
|
|
451
|
+
private indexAuctionBids;
|
|
452
|
+
private lookupSyntheticFromHints;
|
|
453
|
+
private mintSyntheticAuction;
|
|
454
|
+
private startPrebidAuction;
|
|
455
|
+
private resolvePrebidAuctionId;
|
|
441
456
|
private handleAuctionInit;
|
|
442
457
|
private handleAuctionEnd;
|
|
443
458
|
/**
|
|
@@ -478,6 +493,8 @@ declare class BidsparkPrebidAnalytics {
|
|
|
478
493
|
private resendPersistedBatches;
|
|
479
494
|
private log;
|
|
480
495
|
}
|
|
496
|
+
/** Returns deduplicated Prebid global names listed in `window._pbjsGlobals`. */
|
|
497
|
+
declare function detectPrebidGlobals(win?: unknown): string[];
|
|
481
498
|
declare function registerPrebidAnalytics(pbjsGlobalName?: string, defaults?: Partial<AnalyticsConfig>): void;
|
|
482
499
|
|
|
483
500
|
/**
|
|
@@ -703,4 +720,4 @@ interface AdsGlobal {
|
|
|
703
720
|
*/
|
|
704
721
|
declare function getAdsGlobal(alias?: string): AdsGlobal;
|
|
705
722
|
|
|
706
|
-
export { type AdsGlobal, type AnalyticsConfig, type BeaconEvent, BidsparkPrebidAnalytics, CACHED_BID_TTL_MS, type CachedWinningBid, type ConsentRecord, DEFAULT_ALIAS, type FloorDecision, ImaAdsManagerStub, LogLevel, MAX_USAGE_BATCH_SIZE, type PageEventDetail, type PageEventHandler, type PageEventsConfig, PrebidEventDeduper, SAFE_CONTENT_TYPE, type SendEventsOptions, type SizeMapping, type SlotConfig, type SlotObserveOptions, type SlotSize, type SlotSizes, type SlotViewabilityState, USAGE_FLUSH_INTERVAL_MS, usage_event as UsageProto, UsageRecorder, type UsageRecorderOptions, type VideoPlayerOptions, attachImaAdsManager, attachVideoPlayer, clearStoredSession, clearStoredUserId, generateUUID, getAdsGlobal, getOrCreateSessionId, getOrCreateUserId, getPrebidEventKey, idToBytes, idToString, installImaAutoInterception, isAutomatedClient, isSessionActive, isTrustedEndpoint, isVisitorSampled, normalizeLogLevel, normalizeSampleRate, onSessionResume, parseBidDimensions, registerPrebidAnalytics, sendEvents, sessionStarted };
|
|
723
|
+
export { type AdsGlobal, type AnalyticsConfig, type BeaconEvent, BidsparkPrebidAnalytics, CACHED_BID_TTL_MS, type CachedWinningBid, type ConsentRecord, DEFAULT_ALIAS, type FloorDecision, ImaAdsManagerStub, LogLevel, MAX_USAGE_BATCH_SIZE, type PageEventDetail, type PageEventHandler, type PageEventsConfig, PrebidEventDeduper, SAFE_CONTENT_TYPE, type SendEventsOptions, type SizeMapping, type SlotConfig, type SlotObserveOptions, type SlotSize, type SlotSizes, type SlotViewabilityState, USAGE_FLUSH_INTERVAL_MS, usage_event as UsageProto, UsageRecorder, type UsageRecorderOptions, type VideoPlayerOptions, attachImaAdsManager, attachVideoPlayer, clearStoredSession, clearStoredUserId, detectPrebidGlobals, generateUUID, getAdsGlobal, getOrCreateSessionId, getOrCreateUserId, getPrebidEventKey, idToBytes, idToString, installImaAutoInterception, isAutomatedClient, isCanonicalUuid, isSessionActive, isTrustedEndpoint, isVisitorSampled, normalizeLogLevel, normalizeSampleRate, onSessionResume, parseBidDimensions, registerPrebidAnalytics, sendEvents, sessionStarted };
|
package/dist/index.d.ts
CHANGED
|
@@ -100,6 +100,8 @@ interface MessageFns$1<T> {
|
|
|
100
100
|
* other identifiers travel as UTF-8. Exact round-trip: ingest formats 16 bytes
|
|
101
101
|
* back to lowercase UUID string and takes other byte lengths verbatim as text.
|
|
102
102
|
*/
|
|
103
|
+
/** Reports whether id is a canonical UUID string. */
|
|
104
|
+
declare function isCanonicalUuid(id: string | undefined): boolean;
|
|
103
105
|
/** Encodes ID to wire bytes: 16 bytes for canonical UUID, UTF-8 otherwise. */
|
|
104
106
|
declare function idToBytes(id: string | undefined): Uint8Array;
|
|
105
107
|
/** Decodes wire bytes to ID: 16 bytes format to canonical lowercase UUID. */
|
|
@@ -307,6 +309,12 @@ declare class BidsparkPrebidAnalytics {
|
|
|
307
309
|
private videoDetachCleanups;
|
|
308
310
|
private auctionBidderOutcomes;
|
|
309
311
|
private floorDecisions;
|
|
312
|
+
private syntheticAuctionByRawTs;
|
|
313
|
+
private syntheticAuctionByRawLatest;
|
|
314
|
+
private syntheticAuctionByBidId;
|
|
315
|
+
private syntheticAuctionByTxId;
|
|
316
|
+
private syntheticAuctionByAdId;
|
|
317
|
+
private syntheticToRawAuctionId;
|
|
310
318
|
private recordedConsentKeys;
|
|
311
319
|
private consentCount;
|
|
312
320
|
private cmpDetach;
|
|
@@ -317,6 +325,7 @@ declare class BidsparkPrebidAnalytics {
|
|
|
317
325
|
private configuredUserId;
|
|
318
326
|
private managesVisitorId;
|
|
319
327
|
private visitorKeyLocked;
|
|
328
|
+
private hasExplicitPbjsGlobalName;
|
|
320
329
|
constructor(config: AnalyticsConfig);
|
|
321
330
|
private applyStorageAllowed;
|
|
322
331
|
setLogLevel(level: LogLevel | string): void;
|
|
@@ -438,6 +447,12 @@ declare class BidsparkPrebidAnalytics {
|
|
|
438
447
|
continuePageview(previous: BidsparkPrebidAnalytics): void;
|
|
439
448
|
navigate(pageviewId: string, pageUrl?: string): void;
|
|
440
449
|
recordAuctionStart(auctionId: string, adUnitCode?: string, bidderCount?: number, mediaType?: string): void;
|
|
450
|
+
private collectHintBids;
|
|
451
|
+
private indexAuctionBids;
|
|
452
|
+
private lookupSyntheticFromHints;
|
|
453
|
+
private mintSyntheticAuction;
|
|
454
|
+
private startPrebidAuction;
|
|
455
|
+
private resolvePrebidAuctionId;
|
|
441
456
|
private handleAuctionInit;
|
|
442
457
|
private handleAuctionEnd;
|
|
443
458
|
/**
|
|
@@ -478,6 +493,8 @@ declare class BidsparkPrebidAnalytics {
|
|
|
478
493
|
private resendPersistedBatches;
|
|
479
494
|
private log;
|
|
480
495
|
}
|
|
496
|
+
/** Returns deduplicated Prebid global names listed in `window._pbjsGlobals`. */
|
|
497
|
+
declare function detectPrebidGlobals(win?: unknown): string[];
|
|
481
498
|
declare function registerPrebidAnalytics(pbjsGlobalName?: string, defaults?: Partial<AnalyticsConfig>): void;
|
|
482
499
|
|
|
483
500
|
/**
|
|
@@ -703,4 +720,4 @@ interface AdsGlobal {
|
|
|
703
720
|
*/
|
|
704
721
|
declare function getAdsGlobal(alias?: string): AdsGlobal;
|
|
705
722
|
|
|
706
|
-
export { type AdsGlobal, type AnalyticsConfig, type BeaconEvent, BidsparkPrebidAnalytics, CACHED_BID_TTL_MS, type CachedWinningBid, type ConsentRecord, DEFAULT_ALIAS, type FloorDecision, ImaAdsManagerStub, LogLevel, MAX_USAGE_BATCH_SIZE, type PageEventDetail, type PageEventHandler, type PageEventsConfig, PrebidEventDeduper, SAFE_CONTENT_TYPE, type SendEventsOptions, type SizeMapping, type SlotConfig, type SlotObserveOptions, type SlotSize, type SlotSizes, type SlotViewabilityState, USAGE_FLUSH_INTERVAL_MS, usage_event as UsageProto, UsageRecorder, type UsageRecorderOptions, type VideoPlayerOptions, attachImaAdsManager, attachVideoPlayer, clearStoredSession, clearStoredUserId, generateUUID, getAdsGlobal, getOrCreateSessionId, getOrCreateUserId, getPrebidEventKey, idToBytes, idToString, installImaAutoInterception, isAutomatedClient, isSessionActive, isTrustedEndpoint, isVisitorSampled, normalizeLogLevel, normalizeSampleRate, onSessionResume, parseBidDimensions, registerPrebidAnalytics, sendEvents, sessionStarted };
|
|
723
|
+
export { type AdsGlobal, type AnalyticsConfig, type BeaconEvent, BidsparkPrebidAnalytics, CACHED_BID_TTL_MS, type CachedWinningBid, type ConsentRecord, DEFAULT_ALIAS, type FloorDecision, ImaAdsManagerStub, LogLevel, MAX_USAGE_BATCH_SIZE, type PageEventDetail, type PageEventHandler, type PageEventsConfig, PrebidEventDeduper, SAFE_CONTENT_TYPE, type SendEventsOptions, type SizeMapping, type SlotConfig, type SlotObserveOptions, type SlotSize, type SlotSizes, type SlotViewabilityState, USAGE_FLUSH_INTERVAL_MS, usage_event as UsageProto, UsageRecorder, type UsageRecorderOptions, type VideoPlayerOptions, attachImaAdsManager, attachVideoPlayer, clearStoredSession, clearStoredUserId, detectPrebidGlobals, generateUUID, getAdsGlobal, getOrCreateSessionId, getOrCreateUserId, getPrebidEventKey, idToBytes, idToString, installImaAutoInterception, isAutomatedClient, isCanonicalUuid, isSessionActive, isTrustedEndpoint, isVisitorSampled, normalizeLogLevel, normalizeSampleRate, onSessionResume, parseBidDimensions, registerPrebidAnalytics, sendEvents, sessionStarted };
|