We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 03d85fe commit 542c93fCopy full SHA for 542c93f
packages/logging/src/analytics-helpers.ts
@@ -2,18 +2,15 @@ import fs from 'fs';
2
import path from 'path';
3
import type { IdentifyParams as SegmentIndetifyParams } from '@segment/analytics-node';
4
5
-export type MongoshAnalyticsIdentity = Pick<
6
- SegmentIndetifyParams,
7
- 'userId' | 'anonymousId'
8
->;
+export type MongoshAnalyticsIdentity = SegmentIndetifyParams;
9
10
export type AnalyticsIdentifyMessage = MongoshAnalyticsIdentity & {
11
traits: {
12
platform: string;
13
session_id: string;
14
device_id: string;
15
- };
16
- timestamp?: Date;
+ } & SegmentIndetifyParams['traits'];
+ timestamp?: Date & SegmentIndetifyParams['timestamp'];
17
};
18
19
export type AnalyticsTrackMessage = MongoshAnalyticsIdentity & {
0 commit comments