@encatch/web-sdk 1.0.0-beta.2 → 1.0.0-beta.4
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/dist/index.d.ts +3 -3
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -34,11 +34,11 @@ export declare interface EncatchSDK {
|
|
|
34
34
|
init(apiKey: string, config?: EncatchConfig): void;
|
|
35
35
|
/**
|
|
36
36
|
* Identify the current user
|
|
37
|
-
* @param
|
|
37
|
+
* @param userName - User name or unique identifier (e.g. username, email) (required)
|
|
38
38
|
* @param traits - Optional user traits with nested operations ($set, $setOnce, $increment, $decrement, $unset)
|
|
39
39
|
* @param options - Optional settings like locale, country, and secure signature
|
|
40
40
|
*/
|
|
41
|
-
identifyUser(
|
|
41
|
+
identifyUser(userName: string, traits?: UserTraits, options?: IdentifyOptions): void;
|
|
42
42
|
/**
|
|
43
43
|
* Set the user's preferred locale
|
|
44
44
|
* @param locale - Comma-separated ISO 639-1 language codes (e.g., 'fr,en,es')
|
|
@@ -126,7 +126,7 @@ export declare interface EventPayload {
|
|
|
126
126
|
/**
|
|
127
127
|
* Event types that can be subscribed to
|
|
128
128
|
*/
|
|
129
|
-
export declare type EventType = 'form:show' | 'form:started' | 'form:submit' | 'form:complete' | 'form:close' | 'form:dismissed' | 'form:error' | 'form:section:change' | 'form:
|
|
129
|
+
export declare type EventType = 'form:show' | 'form:started' | 'form:submit' | 'form:complete' | 'form:close' | 'form:dismissed' | 'form:error' | 'form:section:change' | 'form:answered';
|
|
130
130
|
|
|
131
131
|
/**
|
|
132
132
|
* Options for the identifyUser method
|
package/package.json
CHANGED