Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 27 additions & 21 deletions types/mparticle__web-sdk/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down Expand Up @@ -515,27 +521,27 @@ export interface User {
export type UserAttributesValue = string | number | boolean | null;
export type AllUserAttributes = Record<string, UserAttributesValue | UserAttributesValue[]>;
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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ const identifyRequest: mParticle.IdentifyRequest = {
facebookcustomaudienceid: "test",
google: "test",
twitter: "test",
microsoft: "test",
yahoo: "test",
microsoft: null,
yahoo: null,
},
};

Expand Down Expand Up @@ -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();
Expand Down
10 changes: 8 additions & 2 deletions types/mparticle__web-sdk/test/mparticle__web-sdk-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ const identifyRequest: mParticle.IdentifyRequest = {
facebookcustomaudienceid: "test",
google: "test",
twitter: "test",
microsoft: "test",
yahoo: "test",
microsoft: null,
yahoo: null,
},
};

Expand Down Expand Up @@ -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();
Expand Down