Skip to content

Commit 7a52e45

Browse files
committed
Support for mailingLists in findContact()
1 parent 0e9c038 commit 7a52e45

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -492,6 +492,7 @@ If your account has no custom fields, an empty list will be returned.
492492

493493
## Version history
494494

495+
- `v3.2.0` (Aug 23, 2024) - Added support for a new `mailingLists` attribute in [`findContact()`](#findcontact).
495496
- `v3.1.1` (Aug 16, 2024) - Support for a new `isPublic` attribute in [`getMailingLists()`](#getmailinglists).
496497
- `v3.1.0` (Aug 12, 2024) - The SDK now accepts `null` as a value for contact properties in `createContact()`, `updateContact()` and `sendEvent()`, which allows you to reset/empty properties.
497498
- `v3.0.0` (Jul 2, 2024) - [`sendTransactionalEmail()`](#sendtransactionalemail) now accepts an object instead of separate parameters (breaking change).

src/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ type Contact = {
5353
* A unique user ID (for example, from an external application).
5454
*/
5555
userId: string | null;
56+
/**
57+
* Mailing lists the contact is subscribed to.
58+
*/
59+
mailingLists: Record<string, true>;
5660
} & Record<string, string | number | boolean | null>;
5761

5862
interface EventSuccessResponse {

0 commit comments

Comments
 (0)