|
8 | 8 | UserIdentities, |
9 | 9 | } from '@mparticle/web-sdk'; |
10 | 10 | import { IKitConfigs } from './configAPIClient'; |
11 | | -import Constants, { PrivacyControl, StoragePrivacyMap, StorageTypes } from './constants'; |
| 11 | +import Constants from './constants'; |
12 | 12 | import { |
13 | 13 | DataPlanResult, |
14 | 14 | KitBlockerOptions, |
@@ -153,8 +153,6 @@ export interface IFeatureFlags { |
153 | 153 | export interface IStore { |
154 | 154 | isEnabled: boolean; |
155 | 155 | isInitialized: boolean; |
156 | | - noFunctional: boolean; |
157 | | - noTargeting: boolean; |
158 | 156 |
|
159 | 157 | // Session Attributes are persistent attributes that are tied to the current session and |
160 | 158 | // are uploaded then cleared when the session ends. |
@@ -211,12 +209,6 @@ export interface IStore { |
211 | 209 | _getFromPersistence?<T>(mpid: MPID, key: string): T; |
212 | 210 | _setPersistence?<T>(mpid: MPID, key: string, value: T): void; |
213 | 211 |
|
214 | | - getNoFunctional?(): boolean; |
215 | | - setNoFunctional?(noFunctional: boolean): void; |
216 | | - getNoTargeting?(): boolean; |
217 | | - setNoTargeting?(noTargeting: boolean): void; |
218 | | - getPrivacyFlag?(storageType: StorageTypes): boolean; |
219 | | - |
220 | 212 | getDeviceId?(): string; |
221 | 213 | setDeviceId?(deviceId: string): void; |
222 | 214 | getFirstSeenTime?(mpid: MPID): number; |
@@ -252,8 +244,6 @@ export default function Store( |
252 | 244 |
|
253 | 245 | const defaultStore: Partial<IStore> = { |
254 | 246 | isEnabled: true, |
255 | | - noFunctional: false, |
256 | | - noTargeting: false, |
257 | 247 | sessionAttributes: {}, |
258 | 248 | localSessionAttributes: {}, |
259 | 249 | currentSessionMPIDs: [], |
@@ -596,27 +586,6 @@ export default function Store( |
596 | 586 | } |
597 | 587 | }; |
598 | 588 |
|
599 | | - this.getNoFunctional = (): boolean => this.noFunctional; |
600 | | - this.setNoFunctional = (noFunctional: boolean): void => { |
601 | | - this.noFunctional = noFunctional; |
602 | | - }; |
603 | | - |
604 | | - this.getNoTargeting = (): boolean => this.noTargeting; |
605 | | - this.setNoTargeting = (noTargeting: boolean): void => { |
606 | | - this.noTargeting = noTargeting; |
607 | | - }; |
608 | | - |
609 | | - this.getPrivacyFlag = (storageType: StorageTypes): boolean => { |
610 | | - const privacyControl: PrivacyControl = StoragePrivacyMap[storageType]; |
611 | | - if (privacyControl === 'functional') { |
612 | | - return this.getNoFunctional(); |
613 | | - } |
614 | | - if (privacyControl === 'targeting') { |
615 | | - return this.getNoTargeting(); |
616 | | - } |
617 | | - return false; |
618 | | - }; |
619 | | - |
620 | 589 | this.getDeviceId = () => this.deviceId; |
621 | 590 | this.setDeviceId = (deviceId: string) => { |
622 | 591 | this.deviceId = deviceId; |
@@ -737,16 +706,6 @@ export default function Store( |
737 | 706 | this.SDKConfig[baseUrlKeys] = baseUrls[baseUrlKeys]; |
738 | 707 | } |
739 | 708 |
|
740 | | - const { noFunctional, noTargeting } = config?.launcherOptions ?? {}; |
741 | | - |
742 | | - if (noFunctional != null) { |
743 | | - this.setNoFunctional(noFunctional); |
744 | | - } |
745 | | - |
746 | | - if (noTargeting != null) { |
747 | | - this.setNoTargeting(noTargeting); |
748 | | - } |
749 | | - |
750 | 709 | if (workspaceToken) { |
751 | 710 | this.SDKConfig.workspaceToken = workspaceToken; |
752 | 711 | mpInstance._timeOnSiteTimer = new ForegroundTimer(workspaceToken); |
|
0 commit comments