dce-reactkit 4.1.6 → 4.1.8

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.
@@ -22,6 +22,8 @@ declare enum LogAction {
22
22
  Resume = "Resume",
23
23
  Jump = "Jump",
24
24
  Post = "Post",
25
+ Like = "Like",
26
+ Dislike = "Dislike",
25
27
  Unknown = "Unknown"
26
28
  }
27
29
  export default LogAction;
@@ -15,6 +15,9 @@ type LogFunction = (opts: ({
15
15
  [k: string]: any;
16
16
  };
17
17
  level?: LogLevel;
18
+ userId?: number;
19
+ userFirstName?: string;
20
+ userLastName?: string;
18
21
  } & ({
19
22
  error: any;
20
23
  } | {
package/dist/esm/index.js CHANGED
@@ -1717,6 +1717,11 @@ const logClientEvent = (opts) => __awaiter(void 0, void 0, void 0, function* ()
1717
1717
  action: (opts.action
1718
1718
  ? opts.action
1719
1719
  : undefined),
1720
+ overriddenUserInfo: {
1721
+ userId: opts.userId,
1722
+ userFirstName: opts.userFirstName,
1723
+ userLastName: opts.userLastName,
1724
+ },
1720
1725
  },
1721
1726
  });
1722
1727
  });
@@ -3848,6 +3853,10 @@ var LogAction;
3848
3853
  LogAction["Jump"] = "Jump";
3849
3854
  // Post a submission/message/etc. into the target
3850
3855
  LogAction["Post"] = "Post";
3856
+ // Like something
3857
+ LogAction["Like"] = "Like";
3858
+ // Dislike something
3859
+ LogAction["Dislike"] = "Dislike";
3851
3860
  // Unknown action
3852
3861
  LogAction["Unknown"] = "Unknown";
3853
3862
  })(LogAction || (LogAction = {}));