rudder-sdk-js 2.6.0 → 2.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. package/index.d.ts +18 -0
  2. package/index.js +2899 -3520
  3. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -433,6 +433,21 @@ declare module "rudder-sdk-js" {
433
433
  */
434
434
  function getUserId(): string;
435
435
 
436
+ /**
437
+ * To get user traits set in the SDK
438
+ */
439
+ function getUserTraits(): apiObject;
440
+
441
+ /**
442
+ * To get groupId set in the SDK
443
+ */
444
+ function getGroupId(): string;
445
+
446
+ /**
447
+ * To get group traits set in the SDK
448
+ */
449
+ function getGroupTraits(): apiObject;
450
+
436
451
  export {
437
452
  integrationOptions,
438
453
  loadOptions,
@@ -452,5 +467,8 @@ declare module "rudder-sdk-js" {
452
467
  setAnonymousId,
453
468
  getAnonymousId,
454
469
  getUserId,
470
+ getUserTraits,
471
+ getGroupId,
472
+ getGroupTraits,
455
473
  };
456
474
  }