@mparticle/web-sdk 2.79.2 → 2.80.0

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.
@@ -43,7 +43,7 @@ export interface IGlobalStoreV2MinifiedKeys {
43
43
  export interface IPersistenceMinified extends Dictionary {
44
44
  cu: MPID; // Current User MPID
45
45
  gs: IGlobalStoreV2MinifiedKeys;
46
- l: boolean; // IsLoggedIn
46
+ l: boolean | 0 | 1; // IsLoggedIn
47
47
 
48
48
  // Persistence Minified can also store optional dictionaries with
49
49
  // an idex of MPID
@@ -99,8 +99,8 @@ export interface IPersistence {
99
99
  useLocalStorage(): boolean;
100
100
  initializeStorage(): void;
101
101
  update(): void;
102
- storeDataInMemory(obj: IPersistenceMinified, currentMPID: MPID): void;
103
- determineLocalStorageAvailability(storage: Storage): boolean;
102
+ storeDataInMemory(obj: IPersistenceMinified, currentMPID?: MPID): void;
103
+ determineLocalStorageAvailability(storage?: Storage): boolean;
104
104
  setLocalStorage(): void;
105
105
  getLocalStorage(): IPersistenceMinified | null;
106
106
  expireCookies(cookieName: string): void;
@@ -113,17 +113,17 @@ export interface IPersistence {
113
113
  maxCookieSize: number
114
114
  ): string;
115
115
  findPrevCookiesBasedOnUI(identityApiData: IdentityApiData): void;
116
- encodePersistence(persistence: IPersistenceMinified): string;
117
- decodePersistence(persistenceString: string): string;
116
+ encodePersistence(persistence: string): string;
117
+ decodePersistence(persistenceString: string | null): string | void;
118
118
  getCookieDomain(): string;
119
- getDomain(doc: string, locationHostname: string): string;
119
+ getDomain(doc: Document, locationHostname: string): string;
120
120
  saveUserCookieSyncDatesToPersistence(mpid: MPID, csd: CookieSyncDates): void;
121
121
  savePersistence(persistance: IPersistenceMinified): void;
122
- getPersistence(): IPersistenceMinified;
123
- getFirstSeenTime(mpid: MPID): string | null;
124
- setFirstSeenTime(mpid: MPID, time: number): void;
122
+ getPersistence(): IPersistenceMinified | null;
123
+ getFirstSeenTime(mpid: MPID): number | null;
124
+ setFirstSeenTime(mpid: MPID, time?: number): void;
125
125
  getLastSeenTime(mpid: MPID): number | null;
126
- setLastSeenTime(mpid: MPID, time: number): void;
126
+ setLastSeenTime(mpid: MPID, time?: number): void;
127
127
  getDeviceId(): string;
128
128
  setDeviceId(guid: string): void;
129
129
  resetPersistence(): void;