@@ -2,8 +2,7 @@ import { v4 as uuid } from '@lukeed/uuid'
22import { ID , User } from '../user'
33import { Options , EventProperties , Traits , SegmentEvent } from './interfaces'
44import { addPageContext , PageContext } from '../page'
5- import { CoreEventFactory } from '@segment/analytics-core'
6- import type { BrowserIntegrationsOptions } from '../../browser/settings'
5+ import { CoreEventFactory , IntegrationsOptions } from '@segment/analytics-core'
76
87export * from './interfaces'
98
@@ -48,7 +47,7 @@ export class EventFactory extends CoreEventFactory {
4847 event : string ,
4948 properties ?: EventProperties ,
5049 options ?: Options ,
51- globalIntegrations ?: BrowserIntegrationsOptions ,
50+ globalIntegrations ?: IntegrationsOptions ,
5251 pageCtx ?: PageContext
5352 ) : SegmentEvent {
5453 const ev = super . track ( event , properties , options , globalIntegrations )
@@ -61,7 +60,7 @@ export class EventFactory extends CoreEventFactory {
6160 page : string | null ,
6261 properties ?: EventProperties ,
6362 options ?: Options ,
64- globalIntegrations ?: BrowserIntegrationsOptions ,
63+ globalIntegrations ?: IntegrationsOptions ,
6564 pageCtx ?: PageContext
6665 ) : SegmentEvent {
6766 const ev = super . page (
@@ -80,7 +79,7 @@ export class EventFactory extends CoreEventFactory {
8079 screen : string | null ,
8180 properties ?: EventProperties ,
8281 options ?: Options ,
83- globalIntegrations ?: BrowserIntegrationsOptions ,
82+ globalIntegrations ?: IntegrationsOptions ,
8483 pageCtx ?: PageContext
8584 ) : SegmentEvent {
8685 const ev = super . screen (
@@ -98,7 +97,7 @@ export class EventFactory extends CoreEventFactory {
9897 userId : ID ,
9998 traits ?: Traits ,
10099 options ?: Options ,
101- globalIntegrations ?: BrowserIntegrationsOptions ,
100+ globalIntegrations ?: IntegrationsOptions ,
102101 pageCtx ?: PageContext
103102 ) : SegmentEvent {
104103 const ev = super . identify ( userId , traits , options , globalIntegrations )
@@ -110,7 +109,7 @@ export class EventFactory extends CoreEventFactory {
110109 groupId : ID ,
111110 traits ?: Traits ,
112111 options ?: Options ,
113- globalIntegrations ?: BrowserIntegrationsOptions ,
112+ globalIntegrations ?: IntegrationsOptions ,
114113 pageCtx ?: PageContext
115114 ) : SegmentEvent {
116115 const ev = super . group ( groupId , traits , options , globalIntegrations )
@@ -122,7 +121,7 @@ export class EventFactory extends CoreEventFactory {
122121 to : string ,
123122 from : string | null ,
124123 options ?: Options ,
125- globalIntegrations ?: BrowserIntegrationsOptions ,
124+ globalIntegrations ?: IntegrationsOptions ,
126125 pageCtx ?: PageContext
127126 ) : SegmentEvent {
128127 const ev = super . alias ( to , from , options , globalIntegrations )
0 commit comments