@mparticle/web-sdk 2.18.2 → 2.18.3

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.
@@ -8,7 +8,6 @@ import {
8
8
  BaseEvent,
9
9
  MParticleUser,
10
10
  MParticleWebSDK,
11
- SDKConsentState,
12
11
  SDKEvent,
13
12
  SDKGeoLocation,
14
13
  SDKProduct,
@@ -17,35 +16,16 @@ import {
17
16
  import { parseNumber, parseStringOrNumber, Dictionary } from './utils';
18
17
  import { ServerSettings } from './store';
19
18
  import { MPID } from '@mparticle/web-sdk';
19
+ import {
20
+ IConsentStateDTO,
21
+ IGDPRConsentStateDTO,
22
+ IPrivacyV2DTO,
23
+ SDKConsentState,
24
+ } from './consent.interfaces';
20
25
 
21
26
  const MessageType = Types.MessageType;
22
27
  const ApplicationTransitionType = Types.ApplicationTransitionType;
23
28
 
24
- // TODO: Move to Consent Module
25
- export interface IPrivacyV2DTO {
26
- c: boolean; // Consented
27
- ts: number; // Timestamp
28
- d: string; // Document
29
- l: string; // Location
30
- h: string; // HardwareID
31
- }
32
-
33
- // TODO: Move to Consent Module
34
- export interface IGDPRConsentStateDTO {
35
- [key: string]: IPrivacyV2DTO;
36
- }
37
-
38
- // TODO: Move to Consent Module
39
- export interface ICCPAConsentStateDTO {
40
- data_sale_opt_out: IPrivacyV2DTO;
41
- }
42
-
43
- // TODO: Break this up into GDPR and CCPA interfaces
44
- export interface IConsentStateDTO {
45
- gdpr?: IGDPRConsentStateDTO;
46
- ccpa?: ICCPAConsentStateDTO;
47
- }
48
-
49
29
  // TODO: Confirm which attributes are optional
50
30
  export interface IServerDTO {
51
31
  id: string | number;
package/src/store.ts CHANGED
@@ -16,7 +16,6 @@ import {
16
16
  LogLevelType,
17
17
  MParticleWebSDK,
18
18
  MPForwarder,
19
- SDKConsentState,
20
19
  SDKDataPlan,
21
20
  SDKEvent,
22
21
  SDKGeoLocation,
@@ -24,6 +23,7 @@ import {
24
23
  SDKProduct,
25
24
  } from './sdkRuntimeModels';
26
25
  import { isNumber, isDataPlanSlug, Dictionary } from './utils';
26
+ import { SDKConsentState } from './consent.interfaces';
27
27
 
28
28
  // This represents the runtime configuration of the SDK AFTER
29
29
  // initialization has been complete and all settings and