Skip to content

Commit

Permalink
fix: Required fields on Interest
Browse files Browse the repository at this point in the history
  • Loading branch information
jlacivita committed May 22, 2024
1 parent 8034874 commit 88b556f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions requirements/specifications/discovery/user-interest.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,8 @@ The `Content.onUserInterest` event has a result type of `Interest`:
| property | type | description |
|---------|------|-------------|
| appId | string | The id of the app that pushed the user interest. |
| type | `InterestType` | the type of interest. |
| reason | `InterestReason` | the reason for the interest |
| entity | `EntityDetails` | The entity the user expressed interest in. |

An Aggregated Experience can register for the `Content.onUserInterest`
Expand Down Expand Up @@ -286,9 +288,10 @@ type InterestType = "interest" | "disinterest"
type InterestReason = "playlist" | "reaction" | "recording" | "share"

type Interest {
type: InterestType
reason: InterestReason
appId: string
entity: EntityDetails
type?: InterestType
reason?: InterestReason
}
```
Expand Down

0 comments on commit 88b556f

Please sign in to comment.