88 SDKEventAttrs ,
99 Callback ,
1010} from '@mparticle/web-sdk' ;
11- import { IntegrationAttribute , IStore , WrapperSDKTypes } from './store' ;
11+ import { IntegrationAttribute , IntegrationAttributes , IStore , WrapperSDKTypes } from './store' ;
1212import Validators from './validators' ;
1313import { Dictionary , valueof } from './utils' ;
1414import { IKitConfigs } from './configAPIClient' ;
@@ -69,7 +69,7 @@ export interface SDKEvent {
6969 AppName ?: string ;
7070 Package ?: string ;
7171 ConsentState ?: SDKConsentState ;
72- IntegrationAttributes ?: { [ key : string ] : { [ key : string ] : string } } ;
72+ IntegrationAttributes ?: IntegrationAttributes ;
7373 ProductAction ?: SDKProductAction ;
7474 PromotionAction ?: SDKPromotionAction ;
7575 ProductImpressions ?: SDKProductImpression [ ] ;
@@ -205,15 +205,20 @@ export interface MParticleWebSDK {
205205 setOptOut ( isOptingOut : boolean ) : void ;
206206 eCommerce : SDKECommerceAPI ;
207207
208- // QUESTION: Is this still used?
209- // logLevel: string;
208+ isInitialized ( ) : boolean ;
209+
210+ ready ( f : Function ) : void ;
211+ reset ( instance : IMParticleWebSDKInstance ) : void ;
212+ setAppName ( name : string ) : void ;
213+ setAppVersion ( version : string ) : void ;
214+ setOptOut ( isOptingOut : boolean ) : void ;
215+ startTrackingLocation ( callback ?: Callback ) : void ;
216+ stopTrackingLocation ( ) : void ;
210217
211218 ProductActionType : valueof < typeof ProductActionType > ;
212219 generateHash ( value : string ) : string ;
213-
214- // QUESTION: Should integration ID be a number or a string?
215- setIntegrationAttribute ( integrationId : number , attrs : IntegrationAttribute ) : void ;
216- getIntegrationAttributes ( integrationId : number ) : IntegrationAttribute ;
220+ setIntegrationAttribute ( integrationModuleId : number , attrs : IntegrationAttribute ) : void ;
221+ getIntegrationAttributes ( integrationModuleId : number ) : IntegrationAttribute ;
217222}
218223
219224// https://go.mparticle.com/work/SQDSDKS-4805
@@ -240,17 +245,8 @@ export interface IMParticleInstanceManager extends MParticleWebSDK {
240245 getEnvironment ( ) : valueof < typeof Constants . Environment > ;
241246 getInstance ( instanceName ?: string ) : IMParticleWebSDKInstance ;
242247 getVersion ( ) : string ;
243- isInitialized ( ) : boolean ;
244-
245- ready ( f : Function ) : void ;
246- reset ( instance : IMParticleWebSDKInstance ) : void ;
247- setAppName ( name : string ) : void ;
248- setAppVersion ( version : string ) : void ;
249- setOptOut ( isOptingOut : boolean ) : void ;
250- startTrackingLocation ( callback ?: Callback ) : void ;
251- stopTrackingLocation ( ) : void ;
252248
253- // @deprecated
249+ // https://go.mparticle.com/work/SQDSDKS-7060
254250 sessionManager : Pick < ISessionManager , 'getSession' > ;
255251}
256252
0 commit comments