-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Add Type interfaces for cookie sync manager (#940)
- Loading branch information
1 parent
b8a1a8f
commit 6b15343
Showing
3 changed files
with
33 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { MPID } from "@mparticle/web-sdk"; | ||
import { Dictionary } from "./utils"; | ||
import { IConsentRules } from "./consent"; | ||
|
||
export interface ICookieSyncManager { | ||
attemptCookieSync: (previousMPID: MPID, mpid: MPID, mpidIsNotInCookies: boolean) => void; | ||
performCookieSync: ( | ||
url: string, | ||
moduleId: number, | ||
mpid: MPID, | ||
cookieSyncDates: Dictionary<number>, | ||
filteringConsentRuleValues: IConsentRules, | ||
mpidIsNotInCookies: boolean, | ||
requiresConsent: boolean | ||
) => void; | ||
replaceAmpWithAmpersand: (string: string) => string; | ||
replaceMPID: (string: string, mpid: MPID) => string; | ||
|
||
/** | ||
* @deprecated replaceAmp has been deprecated, use replaceAmpersandWithAmp instead | ||
*/ | ||
replaceAmp: (string: string) => string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters