@encatch/web-sdk 1.0.0-beta.3 → 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.
Files changed (2) hide show
  1. package/dist/index.d.ts +2 -2
  2. 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 id - Unique user identifier (required)
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(id: string, traits?: UserTraits, options?: IdentifyOptions): void;
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')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@encatch/web-sdk",
3
- "version": "1.0.0-beta.3",
3
+ "version": "1.0.0-beta.4",
4
4
  "description": "A lightweight, type-safe JavaScript SDK for integrating Encatch forms and surveys",
5
5
  "type": "module",
6
6
  "main": "dist/encatch.es.js",