@mparticle/web-sdk 2.79.3 → 2.80.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/mparticle.common.js +220 -574
- package/dist/mparticle.esm.js +220 -574
- package/dist/mparticle.js +1489 -1793
- package/dist/types/src/configAPIClient.d.ts +1 -0
- package/dist/types/src/ecommerce.d.ts +3 -53
- package/dist/types/src/ecommerce.interfaces.d.ts +11 -12
- package/dist/types/src/events.interfaces.d.ts +1 -1
- package/dist/types/src/forwarders.d.ts +4 -26
- package/dist/types/src/forwarders.interfaces.d.ts +41 -10
- package/dist/types/src/identity-utils.d.ts +3 -3
- package/dist/types/src/identity.d.ts +3 -0
- package/dist/types/src/identity.interfaces.d.ts +45 -11
- package/dist/types/src/identityApiClient.d.ts +5 -4
- package/dist/types/src/mp-instance.d.ts +2 -2
- package/dist/types/src/pageViewTracker.d.ts +12 -5
- package/dist/types/src/persistence.d.ts +3 -44
- package/dist/types/src/persistence.interfaces.d.ts +12 -13
- package/dist/types/src/sdkRuntimeModels.d.ts +3 -2
- package/dist/types/src/store.d.ts +5 -3
- package/package.json +1 -1
- package/src/configAPIClient.ts +1 -0
- package/src/ecommerce.interfaces.ts +12 -21
- package/src/{ecommerce.js → ecommerce.ts} +144 -73
- package/src/events.interfaces.ts +1 -1
- package/src/events.ts +10 -2
- package/src/forwarders.interfaces.ts +73 -10
- package/src/{forwarders.js → forwarders.ts} +214 -176
- package/src/helpers.ts +7 -3
- package/src/identity-utils.ts +2 -2
- package/src/identity.interfaces.ts +58 -14
- package/src/{identity.js → identity.ts} +237 -192
- package/src/identityApiClient.ts +9 -9
- package/src/mp-instance.ts +2 -2
- package/src/pageViewTracker.ts +176 -42
- package/src/persistence.interfaces.ts +12 -13
- package/src/persistence.ts +1210 -0
- package/src/sdkRuntimeModels.ts +3 -1
- package/src/store.ts +5 -3
- package/src/persistence.js +0 -985
package/src/sdkRuntimeModels.ts
CHANGED
|
@@ -6,6 +6,7 @@ import {
|
|
|
6
6
|
SDKEventOptions,
|
|
7
7
|
SDKEventAttrs,
|
|
8
8
|
Callback,
|
|
9
|
+
UserIdentities,
|
|
9
10
|
} from '@mparticle/web-sdk';
|
|
10
11
|
import {
|
|
11
12
|
IntegrationAttribute,
|
|
@@ -285,6 +286,7 @@ export interface IMParticleInstanceManager extends MParticleWebSDK {
|
|
|
285
286
|
_BatchValidator: _BatchValidator;
|
|
286
287
|
_instances: Dictionary<IMParticleWebSDKInstance>;
|
|
287
288
|
_isTestEnv?: boolean;
|
|
289
|
+
_forceNoLocalStorage?: boolean;
|
|
288
290
|
|
|
289
291
|
// Public Properties
|
|
290
292
|
config: SDKInitConfig;
|
|
@@ -392,7 +394,7 @@ export interface SDKHelpersApi {
|
|
|
392
394
|
filterList: number[]
|
|
393
395
|
): Dictionary;
|
|
394
396
|
filterUserIdentities?(
|
|
395
|
-
userIdentitiesObject: Dictionary<string>,
|
|
397
|
+
userIdentitiesObject: UserIdentities | Dictionary<string>,
|
|
396
398
|
filterList: number[]
|
|
397
399
|
): ISDKUserIdentity[];
|
|
398
400
|
invokeAliasCallback(
|
package/src/store.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Batch
|
|
1
|
+
import { Batch } from '@mparticle/event-models';
|
|
2
2
|
import {
|
|
3
3
|
DataPlanConfig,
|
|
4
4
|
MPID,
|
|
@@ -69,6 +69,7 @@ export interface SDKConfig {
|
|
|
69
69
|
kits: Dictionary<UnregisteredKit>;
|
|
70
70
|
logLevel?: LogLevelType;
|
|
71
71
|
cookieDomain?: string;
|
|
72
|
+
cookieExpiration?: number;
|
|
72
73
|
maxCookieSize?: number | undefined;
|
|
73
74
|
minWebviewBridgeVersion: 1 | 2 | undefined;
|
|
74
75
|
identifyRequest: IdentifyRequest;
|
|
@@ -159,6 +160,7 @@ export interface IFeatureFlags {
|
|
|
159
160
|
export interface IStore {
|
|
160
161
|
isEnabled: boolean;
|
|
161
162
|
isInitialized: boolean;
|
|
163
|
+
mpid: MPID;
|
|
162
164
|
|
|
163
165
|
// Session Attributes are persistent attributes that are tied to the current session and
|
|
164
166
|
// are uploaded then cleared when the session ends.
|
|
@@ -185,7 +187,7 @@ export interface IStore {
|
|
|
185
187
|
eventQueue: SDKEvent[];
|
|
186
188
|
currencyCode: string | null;
|
|
187
189
|
globalTimer: number | null;
|
|
188
|
-
context:
|
|
190
|
+
context: string | null;
|
|
189
191
|
configurationLoaded: boolean;
|
|
190
192
|
identityCallInFlight: boolean;
|
|
191
193
|
identityCallFailed: boolean;
|
|
@@ -203,7 +205,7 @@ export interface IStore {
|
|
|
203
205
|
activeForwarders: ConfiguredKit[];
|
|
204
206
|
kits: Dictionary<MPForwarder>;
|
|
205
207
|
sideloadedKits: MPForwarder[];
|
|
206
|
-
configuredForwarders:
|
|
208
|
+
configuredForwarders: ConfiguredKit[];
|
|
207
209
|
pixelConfigurations: IPixelConfiguration[];
|
|
208
210
|
integrationDelayTimeoutStart: number; // UNIX Timestamp
|
|
209
211
|
webviewBridgeEnabled?: boolean;
|