diff --git a/src/__tests__/commands/__snapshots__/build.test.ts.snap b/src/__tests__/commands/__snapshots__/build.test.ts.snap index bf400cd8..092fe09e 100644 --- a/src/__tests__/commands/__snapshots__/build.test.ts.snap +++ b/src/__tests__/commands/__snapshots__/build.test.ts.snap @@ -6679,6 +6679,11 @@ export type TrackMessage = Options & Record & Ident * a timestamp. */ timestamp?: Date + /** + * MessageId which can be optionally set to override the default one generated by the library. + * This is useful when you want to deduplicate messages. + */ + messageId?: string } /** The callback exposed by analytics-node. */ @@ -8248,6 +8253,11 @@ export type TrackMessage = Options & Record & Ident * a timestamp. */ timestamp?: Date + /** + * MessageId which can be optionally set to override the default one generated by the library. + * This is useful when you want to deduplicate messages. + */ + messageId?: string } /** The callback exposed by analytics-node. */ @@ -9778,6 +9788,11 @@ export type TrackMessage = Options & Record & Ident * a timestamp. */ timestamp?: Date + /** + * MessageId which can be optionally set to override the default one generated by the library. + * This is useful when you want to deduplicate messages. + */ + messageId?: string } /** The callback exposed by analytics-node. */ diff --git a/src/__tests__/commands/__snapshots__/production.test.ts.snap b/src/__tests__/commands/__snapshots__/production.test.ts.snap index 14ecd118..6425c2e2 100644 --- a/src/__tests__/commands/__snapshots__/production.test.ts.snap +++ b/src/__tests__/commands/__snapshots__/production.test.ts.snap @@ -2125,6 +2125,11 @@ export type TrackMessage = Options & Record & Ident * a timestamp. */ timestamp?: Date + /** + * MessageId which can be optionally set to override the default one generated by the library. + * This is useful when you want to deduplicate messages. + */ + messageId?: string } /** The callback exposed by analytics-node. */ diff --git a/src/languages/templates/typescript/node.hbs b/src/languages/templates/typescript/node.hbs index f9495447..50ec8a2e 100644 --- a/src/languages/templates/typescript/node.hbs +++ b/src/languages/templates/typescript/node.hbs @@ -30,6 +30,11 @@ export type TrackMessage = Options & Record & Ident * a timestamp. */ timestamp?: Date + /** + * MessageId which can be optionally set to override the default one generated by the library. + * This is useful when you want to deduplicate messages. + */ + messageId?: string } /** The callback exposed by analytics-node. */