@blotoutio/edgetag-sdk-js 0.5.2 → 0.6.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.
@@ -1,41 +0,0 @@
1
- type UserKey =
2
- | 'email'
3
- | 'phone'
4
- | 'firstName'
5
- | 'lastName'
6
- | 'gender'
7
- | 'dateOfBirth'
8
- | 'country'
9
- | 'state'
10
- | 'city'
11
- | 'zip'
12
- | 'address'
13
-
14
- type Data = Record<string, unknown>
15
-
16
- interface InitPreferences {
17
- edgeURL: string
18
- disableConsentCheck?: boolean
19
- userId?: string
20
- }
21
-
22
- interface EventOptions {
23
- method?: 'beacon'
24
- }
25
-
26
- export declare const init: (preferences: InitPreferences) => void
27
-
28
- export declare const tag: (name: string, data?: Data) => void
29
-
30
- export declare const consent: (consent: Data) => void
31
-
32
- export declare const user: (key: UserKey, value: string) => void
33
-
34
- export declare const data: (data: Record<string, string>) => void
35
-
36
- export declare const getData: (
37
- keys: string[],
38
- callback: (data: Record<string, string>) => void
39
- ) => void
40
-
41
- export declare const keys: (callback: (keys: string[]) => void) => void