@jctrans-materials/shared 1.0.37-beta.3 → 1.0.37-beta.5
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.cjs.js +4 -4
- package/dist/index.d.ts +12 -1
- package/dist/index.esm.js +700 -672
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -532,6 +532,7 @@ export declare interface GioPageProps {
|
|
|
532
532
|
export declare type GioTimerId = string;
|
|
533
533
|
|
|
534
534
|
declare class GioTracker {
|
|
535
|
+
private hasInitCalled;
|
|
535
536
|
private get shouldValidateAttributes();
|
|
536
537
|
/**
|
|
537
538
|
* 获取 window.gdp 方法
|
|
@@ -612,10 +613,20 @@ declare class GioTracker {
|
|
|
612
613
|
/**
|
|
613
614
|
* 设置登录用户 ID
|
|
614
615
|
* 需要在初始化时设置 idMapping: true
|
|
616
|
+
* 调用方式:
|
|
617
|
+
* - setUserId(userId, callback?)
|
|
618
|
+
* - setUserId(userId, userKey, callback?)
|
|
615
619
|
* @param userId 用户 ID,长度 0 < length ≤ 1000
|
|
620
|
+
*/
|
|
621
|
+
/**
|
|
622
|
+
* 设置登录用户 ID(无 userKey 场景)
|
|
623
|
+
*/
|
|
624
|
+
setUserId(userId: string | number, callback?: GioCallback): void;
|
|
625
|
+
/**
|
|
626
|
+
* 设置登录用户 ID(ID-MAPPING 场景)
|
|
616
627
|
* @param userKey 用户 ID 类型标识(用于 ID-MAPPING)
|
|
617
628
|
*/
|
|
618
|
-
setUserId(userId: string | number, userKey
|
|
629
|
+
setUserId(userId: string | number, userKey: string | number, callback?: GioCallback): void;
|
|
619
630
|
/**
|
|
620
631
|
* 清除登录用户 ID(登出时调用)
|
|
621
632
|
*/
|