@tracelog/lib 2.7.3 → 2.8.0-rc.100.11
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/dist/browser/tracelog.esm.js +1158 -1095
- package/dist/browser/tracelog.esm.js.map +1 -1
- package/dist/browser/tracelog.js +2 -2
- package/dist/browser/tracelog.js.map +1 -1
- package/dist/public-api.cjs +2 -2
- package/dist/public-api.cjs.map +1 -1
- package/dist/public-api.d.mts +11 -1
- package/dist/public-api.d.ts +11 -1
- package/dist/public-api.js +2 -2
- package/dist/public-api.js.map +1 -1
- package/package.json +3 -1
package/dist/public-api.d.mts
CHANGED
|
@@ -455,6 +455,8 @@ interface Config {
|
|
|
455
455
|
tracelog?: {
|
|
456
456
|
/** Required project ID TraceLog SaaS integration. */
|
|
457
457
|
projectId: string;
|
|
458
|
+
/** Enable Shopify cart attribute linking for webhook revenue attribution. */
|
|
459
|
+
shopify?: boolean;
|
|
458
460
|
};
|
|
459
461
|
/** Custom integration options. */
|
|
460
462
|
custom?: {
|
|
@@ -529,6 +531,12 @@ interface DeviceInfo {
|
|
|
529
531
|
browser: string;
|
|
530
532
|
}
|
|
531
533
|
|
|
534
|
+
interface QueueMetadata {
|
|
535
|
+
referer?: string;
|
|
536
|
+
timestamp?: number;
|
|
537
|
+
client_version?: string;
|
|
538
|
+
idempotency_token?: string;
|
|
539
|
+
}
|
|
532
540
|
/**
|
|
533
541
|
* Visitor identity data from identify() call.
|
|
534
542
|
*
|
|
@@ -557,6 +565,8 @@ interface EventsQueue {
|
|
|
557
565
|
events: EventData[];
|
|
558
566
|
/** Optional metadata attached to all events in this batch */
|
|
559
567
|
global_metadata?: Record<string, MetadataType>;
|
|
568
|
+
/** Internal metadata used for transport guarantees */
|
|
569
|
+
_metadata?: QueueMetadata;
|
|
560
570
|
/** Visitor identity from identify() call — included in every batch */
|
|
561
571
|
identify?: IdentifyData;
|
|
562
572
|
}
|
|
@@ -2570,4 +2580,4 @@ declare const tracelog: {
|
|
|
2570
2580
|
resetIdentity: () => Promise<void>;
|
|
2571
2581
|
};
|
|
2572
2582
|
|
|
2573
|
-
export { AppConfigValidationError, type BeforeBatchTransformer, type BeforeSendTransformer, type ClickCoordinates, type ClickData, type ClickTrackingElementData, type Config, type CustomEventData, type CustomHeadersProvider, DEFAULT_SESSION_TIMEOUT, DEFAULT_WEB_VITALS_MODE, type DeviceInfo, DeviceType, type EmitterCallback, EmitterEvent, type EmitterMap, type ErrorData, ErrorType, type EventData, EventType, type EventTypeName, type EventsQueue, type IdentifyData, type InitResult, InitializationTimeoutError, IntegrationValidationError, MAX_ARRAY_LENGTH, MAX_CUSTOM_EVENT_ARRAY_SIZE, MAX_CUSTOM_EVENT_KEYS, MAX_CUSTOM_EVENT_NAME_LENGTH, MAX_CUSTOM_EVENT_STRING_SIZE, MAX_NESTED_OBJECT_KEYS, MAX_STRING_LENGTH, MAX_STRING_LENGTH_IN_ARRAY, type MetadataType, Mode, PII_PATTERNS, type PageViewData, PermanentError, type PersistedEventsQueue, type PrimaryScrollEvent, RateLimitError, SamplingRateValidationError, type ScrollData, ScrollDirection, type SecondaryScrollEvent, type SessionEventCounts, SessionTimeoutValidationError, SpecialApiUrl, type State, TimeoutError, type TraceLogTestBridge, TraceLogValidationError, type TransformerHook, type TransformerMap, type UTM, type ViewportConfig, type ViewportElement, type ViewportEventData, WEB_VITALS_GOOD_THRESHOLDS, WEB_VITALS_NEEDS_IMPROVEMENT_THRESHOLDS, WEB_VITALS_POOR_THRESHOLDS, type WebVitalType, type WebVitalsData, type WebVitalsMode, getWebVitalsThresholds, isPrimaryScrollEvent, isSecondaryScrollEvent, tracelog };
|
|
2583
|
+
export { AppConfigValidationError, type BeforeBatchTransformer, type BeforeSendTransformer, type ClickCoordinates, type ClickData, type ClickTrackingElementData, type Config, type CustomEventData, type CustomHeadersProvider, DEFAULT_SESSION_TIMEOUT, DEFAULT_WEB_VITALS_MODE, type DeviceInfo, DeviceType, type EmitterCallback, EmitterEvent, type EmitterMap, type ErrorData, ErrorType, type EventData, EventType, type EventTypeName, type EventsQueue, type IdentifyData, type InitResult, InitializationTimeoutError, IntegrationValidationError, MAX_ARRAY_LENGTH, MAX_CUSTOM_EVENT_ARRAY_SIZE, MAX_CUSTOM_EVENT_KEYS, MAX_CUSTOM_EVENT_NAME_LENGTH, MAX_CUSTOM_EVENT_STRING_SIZE, MAX_NESTED_OBJECT_KEYS, MAX_STRING_LENGTH, MAX_STRING_LENGTH_IN_ARRAY, type MetadataType, Mode, PII_PATTERNS, type PageViewData, PermanentError, type PersistedEventsQueue, type PrimaryScrollEvent, type QueueMetadata, RateLimitError, SamplingRateValidationError, type ScrollData, ScrollDirection, type SecondaryScrollEvent, type SessionEventCounts, SessionTimeoutValidationError, SpecialApiUrl, type State, TimeoutError, type TraceLogTestBridge, TraceLogValidationError, type TransformerHook, type TransformerMap, type UTM, type ViewportConfig, type ViewportElement, type ViewportEventData, WEB_VITALS_GOOD_THRESHOLDS, WEB_VITALS_NEEDS_IMPROVEMENT_THRESHOLDS, WEB_VITALS_POOR_THRESHOLDS, type WebVitalType, type WebVitalsData, type WebVitalsMode, getWebVitalsThresholds, isPrimaryScrollEvent, isSecondaryScrollEvent, tracelog };
|
package/dist/public-api.d.ts
CHANGED
|
@@ -455,6 +455,8 @@ interface Config {
|
|
|
455
455
|
tracelog?: {
|
|
456
456
|
/** Required project ID TraceLog SaaS integration. */
|
|
457
457
|
projectId: string;
|
|
458
|
+
/** Enable Shopify cart attribute linking for webhook revenue attribution. */
|
|
459
|
+
shopify?: boolean;
|
|
458
460
|
};
|
|
459
461
|
/** Custom integration options. */
|
|
460
462
|
custom?: {
|
|
@@ -529,6 +531,12 @@ interface DeviceInfo {
|
|
|
529
531
|
browser: string;
|
|
530
532
|
}
|
|
531
533
|
|
|
534
|
+
interface QueueMetadata {
|
|
535
|
+
referer?: string;
|
|
536
|
+
timestamp?: number;
|
|
537
|
+
client_version?: string;
|
|
538
|
+
idempotency_token?: string;
|
|
539
|
+
}
|
|
532
540
|
/**
|
|
533
541
|
* Visitor identity data from identify() call.
|
|
534
542
|
*
|
|
@@ -557,6 +565,8 @@ interface EventsQueue {
|
|
|
557
565
|
events: EventData[];
|
|
558
566
|
/** Optional metadata attached to all events in this batch */
|
|
559
567
|
global_metadata?: Record<string, MetadataType>;
|
|
568
|
+
/** Internal metadata used for transport guarantees */
|
|
569
|
+
_metadata?: QueueMetadata;
|
|
560
570
|
/** Visitor identity from identify() call — included in every batch */
|
|
561
571
|
identify?: IdentifyData;
|
|
562
572
|
}
|
|
@@ -2570,4 +2580,4 @@ declare const tracelog: {
|
|
|
2570
2580
|
resetIdentity: () => Promise<void>;
|
|
2571
2581
|
};
|
|
2572
2582
|
|
|
2573
|
-
export { AppConfigValidationError, type BeforeBatchTransformer, type BeforeSendTransformer, type ClickCoordinates, type ClickData, type ClickTrackingElementData, type Config, type CustomEventData, type CustomHeadersProvider, DEFAULT_SESSION_TIMEOUT, DEFAULT_WEB_VITALS_MODE, type DeviceInfo, DeviceType, type EmitterCallback, EmitterEvent, type EmitterMap, type ErrorData, ErrorType, type EventData, EventType, type EventTypeName, type EventsQueue, type IdentifyData, type InitResult, InitializationTimeoutError, IntegrationValidationError, MAX_ARRAY_LENGTH, MAX_CUSTOM_EVENT_ARRAY_SIZE, MAX_CUSTOM_EVENT_KEYS, MAX_CUSTOM_EVENT_NAME_LENGTH, MAX_CUSTOM_EVENT_STRING_SIZE, MAX_NESTED_OBJECT_KEYS, MAX_STRING_LENGTH, MAX_STRING_LENGTH_IN_ARRAY, type MetadataType, Mode, PII_PATTERNS, type PageViewData, PermanentError, type PersistedEventsQueue, type PrimaryScrollEvent, RateLimitError, SamplingRateValidationError, type ScrollData, ScrollDirection, type SecondaryScrollEvent, type SessionEventCounts, SessionTimeoutValidationError, SpecialApiUrl, type State, TimeoutError, type TraceLogTestBridge, TraceLogValidationError, type TransformerHook, type TransformerMap, type UTM, type ViewportConfig, type ViewportElement, type ViewportEventData, WEB_VITALS_GOOD_THRESHOLDS, WEB_VITALS_NEEDS_IMPROVEMENT_THRESHOLDS, WEB_VITALS_POOR_THRESHOLDS, type WebVitalType, type WebVitalsData, type WebVitalsMode, getWebVitalsThresholds, isPrimaryScrollEvent, isSecondaryScrollEvent, tracelog };
|
|
2583
|
+
export { AppConfigValidationError, type BeforeBatchTransformer, type BeforeSendTransformer, type ClickCoordinates, type ClickData, type ClickTrackingElementData, type Config, type CustomEventData, type CustomHeadersProvider, DEFAULT_SESSION_TIMEOUT, DEFAULT_WEB_VITALS_MODE, type DeviceInfo, DeviceType, type EmitterCallback, EmitterEvent, type EmitterMap, type ErrorData, ErrorType, type EventData, EventType, type EventTypeName, type EventsQueue, type IdentifyData, type InitResult, InitializationTimeoutError, IntegrationValidationError, MAX_ARRAY_LENGTH, MAX_CUSTOM_EVENT_ARRAY_SIZE, MAX_CUSTOM_EVENT_KEYS, MAX_CUSTOM_EVENT_NAME_LENGTH, MAX_CUSTOM_EVENT_STRING_SIZE, MAX_NESTED_OBJECT_KEYS, MAX_STRING_LENGTH, MAX_STRING_LENGTH_IN_ARRAY, type MetadataType, Mode, PII_PATTERNS, type PageViewData, PermanentError, type PersistedEventsQueue, type PrimaryScrollEvent, type QueueMetadata, RateLimitError, SamplingRateValidationError, type ScrollData, ScrollDirection, type SecondaryScrollEvent, type SessionEventCounts, SessionTimeoutValidationError, SpecialApiUrl, type State, TimeoutError, type TraceLogTestBridge, TraceLogValidationError, type TransformerHook, type TransformerMap, type UTM, type ViewportConfig, type ViewportElement, type ViewportEventData, WEB_VITALS_GOOD_THRESHOLDS, WEB_VITALS_NEEDS_IMPROVEMENT_THRESHOLDS, WEB_VITALS_POOR_THRESHOLDS, type WebVitalType, type WebVitalsData, type WebVitalsMode, getWebVitalsThresholds, isPrimaryScrollEvent, isSecondaryScrollEvent, tracelog };
|