diff --git a/types/mparticle__web-sdk/index.d.ts b/types/mparticle__web-sdk/index.d.ts index 827232a30e0fe3..c4e6945381f910 100644 --- a/types/mparticle__web-sdk/index.d.ts +++ b/types/mparticle__web-sdk/index.d.ts @@ -23,6 +23,12 @@ export interface MPConfiguration { cookieDomain?: string | undefined; customFlags?: SDKEventCustomFlags | undefined; sideloadedKits?: MPForwarder[]; + v1SecureServiceUrl?: string | undefined; + v2SecureServiceUrl?: string | undefined; + v3SecureServiceUrl?: string | undefined; + configUrl?: string | undefined; + identityUrl?: string | undefined; + aliasUrl?: string | undefined; /** * @warning only change workspaceToken if you are absolutely sure you know what you are doing */ @@ -515,27 +521,27 @@ export interface User { export type UserAttributesValue = string | number | boolean | null; export type AllUserAttributes = Record; export interface UserIdentities { - customerid?: string | undefined; - email?: string | undefined; - other?: string | undefined; - other2?: string | undefined; - other3?: string | undefined; - other4?: string | undefined; - other5?: string | undefined; - other6?: string | undefined; - other7?: string | undefined; - other8?: string | undefined; - other9?: string | undefined; - other10?: string | undefined; - mobile_number?: string | undefined; - phone_number_2?: string | undefined; - phone_number_3?: string | undefined; - facebook?: string | undefined; - facebookcustomaudienceid?: string | undefined; - google?: string | undefined; - twitter?: string | undefined; - microsoft?: string | undefined; - yahoo?: string | undefined; + customerid?: string | null; + email?: string | null; + other?: string | null; + other2?: string | null; + other3?: string | null; + other4?: string | null; + other5?: string | null; + other6?: string | null; + other7?: string | null; + other8?: string | null; + other9?: string | null; + other10?: string | null; + mobile_number?: string | null; + phone_number_2?: string | null; + phone_number_3?: string | null; + facebook?: string | null; + facebookcustomaudienceid?: string | null; + google?: string | null; + twitter?: string | null; + microsoft?: string | null; + yahoo?: string | null; } interface Cart { diff --git a/types/mparticle__web-sdk/test/mparticle__web-sdk-instance-tests.ts b/types/mparticle__web-sdk/test/mparticle__web-sdk-instance-tests.ts index 91ae9e1b28daf4..872343d0e7d0e7 100644 --- a/types/mparticle__web-sdk/test/mparticle__web-sdk-instance-tests.ts +++ b/types/mparticle__web-sdk/test/mparticle__web-sdk-instance-tests.ts @@ -49,8 +49,8 @@ const identifyRequest: mParticle.IdentifyRequest = { facebookcustomaudienceid: "test", google: "test", twitter: "test", - microsoft: "test", - yahoo: "test", + microsoft: null, + yahoo: null, }, }; @@ -122,6 +122,12 @@ const config: mParticle.MPConfiguration = { anotherFlag: "bar", }, sideloadedKits: [{}, {}], + v1SecureServiceUrl: "mp.mydomain.com/webevents/v1/JS/", + v2SecureServiceUrl: "mp.mydomain.com/webevents/v2/JS/", + v3SecureServiceUrl: "mp.mydomain.com/webevents/v3/JS/", + configUrl: "mp.mydomain.com/tags/JS/v2/", + identityUrl: "mp.mydomain.com/identity/v1/", + aliasUrl: "mp.mydomain.com/webevents/v1/identity/", }; instance.endSession(); diff --git a/types/mparticle__web-sdk/test/mparticle__web-sdk-tests.ts b/types/mparticle__web-sdk/test/mparticle__web-sdk-tests.ts index b77b5660d1ad02..dcbe8511e96ce6 100644 --- a/types/mparticle__web-sdk/test/mparticle__web-sdk-tests.ts +++ b/types/mparticle__web-sdk/test/mparticle__web-sdk-tests.ts @@ -47,8 +47,8 @@ const identifyRequest: mParticle.IdentifyRequest = { facebookcustomaudienceid: "test", google: "test", twitter: "test", - microsoft: "test", - yahoo: "test", + microsoft: null, + yahoo: null, }, }; @@ -120,6 +120,12 @@ const config: mParticle.MPConfiguration = { anotherFlag: "bar", }, sideloadedKits: [{}, {}], + v1SecureServiceUrl: "mp.mydomain.com/webevents/v1/JS/", + v2SecureServiceUrl: "mp.mydomain.com/webevents/v2/JS/", + v3SecureServiceUrl: "mp.mydomain.com/webevents/v3/JS/", + configUrl: "mp.mydomain.com/tags/JS/v2/", + identityUrl: "mp.mydomain.com/identity/v1/", + aliasUrl: "mp.mydomain.com/webevents/v1/identity/", }; mParticle.endSession();