@@ -28,7 +28,12 @@ import {
2828 IdentityCallback ,
2929 ISDKUserAttributes ,
3030} from './identity-user-interfaces' ;
31- import { IdentityType } from './types' ;
31+ import {
32+ CommerceEventType ,
33+ EventType ,
34+ IdentityType ,
35+ PromotionActionType ,
36+ } from './types' ;
3237import IntegrationCapture from './integrationCapture' ;
3338import { INativeSdkHelpers } from './nativeSdkHelpers.interfaces' ;
3439import { ICookieSyncManager , IPixelConfiguration } from './cookieSyncManager.interfaces' ;
@@ -154,6 +159,9 @@ export interface MParticleWebSDK {
154159 addForwarder ( mockForwarder : MPForwarder ) : void ;
155160 _IntegrationCapture : IntegrationCapture ;
156161 IdentityType : valueof < typeof IdentityType > ;
162+ CommerceEventType : valueof < typeof CommerceEventType > ;
163+ EventType : valueof < typeof EventType > ;
164+ PromotionType : valueof < typeof PromotionActionType > ;
157165 _Identity : IIdentity ;
158166 Identity : SDKIdentityApi ;
159167 Logger : SDKLoggerApi ;
@@ -188,7 +196,7 @@ export interface MParticleWebSDK {
188196 getDeviceId ( ) : string ;
189197 setDeviceId ( deviceId : string ) : void ;
190198 setSessionAttribute ( key : string , value : string ) : void ;
191- getInstance ( ) : MParticleWebSDK ; // TODO: Create a new type for MParticleWebSDKInstance
199+ getInstance ( instanceName ?: string ) : MParticleWebSDK ; // TODO: Create a new type for MParticleWebSDKInstance
192200 ServerModel ( ) ;
193201 upload ( ) ;
194202 setLogLevel ( logLevel : LogLevelType ) : void ;
@@ -206,6 +214,7 @@ export interface MParticleWebSDK {
206214 ProductActionType : SDKProductActionType ;
207215 generateHash ( value : string ) : string ;
208216 isIOS ?: boolean ;
217+ sessionManager : Pick < ISessionManager , 'getSession' > ;
209218}
210219
211220// Used in cases where server requires booleans as strings
0 commit comments