Skip to content

Commit

Permalink
EventsSDK: Fix doc comment for searchTerm in EventPayload (#140)
Browse files Browse the repository at this point in the history
Fix doc comment for searchTerm in EventPayload

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
ejaffee01 and github-actions[bot] committed Feb 29, 2024
1 parent 91095d7 commit 2e5c0fc
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/analytics.eventpayload.md
Expand Up @@ -36,7 +36,7 @@ export interface EventPayload
| [pageUrl?](./analytics.eventpayload.pageurl.md) | | string | <p>_(Optional)_ The URL of the page where the event occurred.</p><p>If not specified the system will automatically use the <code>Referrer</code> header from the autogenerated request headers.</p> |
| [referrerUrl?](./analytics.eventpayload.referrerurl.md) | | string | <p>_(Optional)_ The URL of the page which the visitor came from prior to the event.</p><p>If not specified the system will automatically use the <code>Referrer</code> header from the autogenerated request headers.</p> |
| [search?](./analytics.eventpayload.search.md) | | { searchId?: string; queryId?: string; verticalKey?: string; isDirectAnswer?: boolean; versionLabel?: [VersionLabel](./analytics.versionlabel.md)<!-- -->; versionNumber?: number; experienceKey: string; } | _(Optional)_ Fields specific to reporting Yext Search Analytics Events |
| [searchTerm?](./analytics.eventpayload.searchterm.md) | | string | _(Optional)_ |
| [searchTerm?](./analytics.eventpayload.searchterm.md) | | string | _(Optional)_ The query entered by the user. |
| [sessionId?](./analytics.eventpayload.sessionid.md) | | string \| null | _(Optional)_ Unique identifier to tie together events in a single browsing session |
| [timestamp?](./analytics.eventpayload.timestamp.md) | | Date \| string | <p>_(Optional)_ The timestamp at which the event occurred, in ISO format. For example, September 27, 2022 at 6 p.m. is represented as 2022-09-27 18:00:00.000. For more information, see https://www.iso.org/iso-8601-date-and-time-format.html.</p><p>If not specified the system will automatically use the time when the request was received in UTC as the event timestamp.</p> |
| [value?](./analytics.eventpayload.value.md) | | { amount: number; currency: string; } | _(Optional)_ The monetary value of the event. |
Expand Down
2 changes: 2 additions & 0 deletions docs/analytics.eventpayload.searchterm.md
Expand Up @@ -4,6 +4,8 @@

## EventPayload.searchTerm property

The query entered by the user.

**Signature:**

```typescript
Expand Down
1 change: 0 additions & 1 deletion etc/analytics.api.md
Expand Up @@ -81,7 +81,6 @@ export interface EventPayload {
versionNumber?: number;
experienceKey: string;
};
// (undocumented)
searchTerm?: string;
sessionId?: string | null;
timestamp?: Date | string;
Expand Down
2 changes: 1 addition & 1 deletion src/EventPayload.ts
Expand Up @@ -146,7 +146,7 @@ export interface EventPayload {
/** The identifier of the search experience. */
experienceKey: string;
};
/* The query entered by the user. */
/** The query entered by the user. */
searchTerm?: string;
/** Unique identifier to tie together events in a single browsing session */
sessionId?: string | null;
Expand Down

0 comments on commit 2e5c0fc

Please sign in to comment.