@@ -29,7 +29,12 @@ import {
2929 IdentityCallback ,
3030 ISDKUserAttributes ,
3131} from './identity-user-interfaces' ;
32- import { IdentityType } from './types' ;
32+ import {
33+ CommerceEventType ,
34+ EventType ,
35+ IdentityType ,
36+ PromotionActionType ,
37+ } from './types' ;
3338import IntegrationCapture from './integrationCapture' ;
3439import { INativeSdkHelpers } from './nativeSdkHelpers.interfaces' ;
3540import { ICookieSyncManager , IPixelConfiguration } from './cookieSyncManager.interfaces' ;
@@ -155,6 +160,9 @@ export interface MParticleWebSDK {
155160 addForwarder ( mockForwarder : MPForwarder ) : void ;
156161 _IntegrationCapture : IntegrationCapture ;
157162 IdentityType : valueof < typeof IdentityType > ;
163+ CommerceEventType : valueof < typeof CommerceEventType > ;
164+ EventType : valueof < typeof EventType > ;
165+ PromotionType : valueof < typeof PromotionActionType > ;
158166 _Identity : IIdentity ;
159167 Identity : SDKIdentityApi ;
160168 Logger : SDKLoggerApi ;
@@ -189,7 +197,7 @@ export interface MParticleWebSDK {
189197 getDeviceId ( ) : string ;
190198 setDeviceId ( deviceId : string ) : void ;
191199 setSessionAttribute ( key : string , value : string ) : void ;
192- getInstance ( ) : MParticleWebSDK ; // TODO: Create a new type for MParticleWebSDKInstance
200+ getInstance ( instanceName ?: string ) : MParticleWebSDK ; // TODO: Create a new type for MParticleWebSDKInstance
193201 ServerModel ( ) ;
194202 upload ( ) ;
195203 setLogLevel ( logLevel : LogLevelType ) : void ;
@@ -207,6 +215,7 @@ export interface MParticleWebSDK {
207215 ProductActionType : SDKProductActionType ;
208216 generateHash ( value : string ) : string ;
209217 isIOS ?: boolean ;
218+ sessionManager : Pick < ISessionManager , 'getSession' > ;
210219}
211220
212221// Used in cases where server requires booleans as strings
0 commit comments