@blotoutio/edgetag-sdk-js 0.51.0 → 0.52.0

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.
Files changed (4) hide show
  1. package/index.cjs.js +601 -469
  2. package/index.d.ts +29 -6
  3. package/index.mjs +601 -469
  4. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -12,6 +12,15 @@ export {
12
12
  PersistType,
13
13
  ConfigOptions,
14
14
  ConsentOptions,
15
+ KeysCallback,
16
+ KeysOptions,
17
+ GetDataCallback,
18
+ Configs,
19
+ GetConsentCallback,
20
+ GetConsentOptions,
21
+ GetDataOptions,
22
+ IsNewUserOptions,
23
+ GetUserIdOptions,
15
24
  } from '@blotoutio/shared/utility-sdk'
16
25
 
17
26
  export type UserKey =
@@ -52,7 +61,7 @@ export declare const user: (
52
61
  key: UserKey,
53
62
  value: string,
54
63
  providers?: ProvidersConfig,
55
- options?: EventOptions
64
+ options?: UserOptions
56
65
  ) => void
57
66
 
58
67
  export declare const data: (
@@ -63,16 +72,30 @@ export declare const data: (
63
72
 
64
73
  export declare const getData: (
65
74
  keys: string[],
66
- callback: (data: Record<string, string>) => void
75
+ callback: GetDataCallback,
76
+ options?: GetDataOptions
67
77
  ) => void
68
78
 
69
- export declare const keys: (callback: (keys: string[]) => void) => void
79
+ export declare const keys: (
80
+ callback: KeysCallback,
81
+ options?: KeysOptions
82
+ ) => void
70
83
 
71
- export declare const getUserId: () => string
84
+ export declare const getUserId: (options?: GetUserIdOptions) => string
72
85
 
73
- export declare const isNewUser: () => boolean | undefined
86
+ export declare const isNewUser: (
87
+ options?: IsNewUserOptions
88
+ ) => boolean | undefined
74
89
 
75
- export declare const setConfig: (config: ConfigOptions) => void
90
+ export declare const setConfig: (
91
+ config: Configs,
92
+ options?: ConfigOptions
93
+ ) => void
94
+
95
+ export declare const getConsent: (
96
+ callback: GetConsentCallback,
97
+ options?: GetConsentOptions
98
+ ) => void
76
99
 
77
100
  export declare global {
78
101
  interface Window {