rudder-sdk-js 2.6.0 → 2.7.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.
- package/index.d.ts +18 -0
- package/index.js +2899 -3520
- 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
|
}
|