@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.
- package/index.cjs +429 -403
- package/index.d.ts +93 -8
- package/index.esm.js +569 -0
- package/{typings/internal.d.ts → internal.d.ts} +4 -15
- package/package.json +13 -12
- package/api/consent.d.ts +0 -3
- package/api/data.d.ts +0 -2
- package/api/getData.d.ts +0 -1
- package/api/init.d.ts +0 -2
- package/api/keys.d.ts +0 -1
- package/api/tag.d.ts +0 -2
- package/api/user.d.ts +0 -2
- package/common/constants.d.ts +0 -5
- package/common/init.d.ts +0 -3
- package/common/logUtil.d.ts +0 -3
- package/common/storage.d.ts +0 -7
- package/common/utils.d.ts +0 -3
- package/index.js +0 -544
- package/jest.config.d.ts +0 -10
- package/manifest/capture.d.ts +0 -2
- package/manifest/index.d.ts +0 -2
- package/network/endPoint.d.ts +0 -9
- package/network/utils.d.ts +0 -3
- package/typings/index.d.ts +0 -41
package/typings/index.d.ts
DELETED
|
@@ -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
|