Skip to content

Commit adeff33

Browse files
feat: add eventType filter to events.list() operation (#174)
1 parent 969ad44 commit adeff33

File tree

4 files changed

+16
-2
lines changed

4 files changed

+16
-2
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,15 @@ in a response, this weakens the Typescript type but does not cause existing usag
2020
This means when upgrading minor versions of the SDK, you may notice type errors. You can safely ignore these or fix by
2121
adding additional type guards.
2222

23+
## 3.2.0 - 2025-08-01
24+
25+
### Added
26+
27+
- Added support for filtering events by `eventType` in `events.list()` operation,
28+
see [related changelog](https://developer.paddle.com/changelog/2025/filter-events-by-type?utm_source=dx&utm_medium=paddle-node-sdk).
29+
30+
---
31+
2332
## 3.1.0 - 2025-08-01
2433

2534
### Added

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@paddle/paddle-node-sdk",
3-
"version": "3.1.0",
3+
"version": "3.2.0",
44
"description": "A Node.js SDK that you can use to integrate Paddle Billing with applications written in server-side JavaScript.",
55
"main": "dist/cjs/index.cjs.node.js",
66
"module": "dist/esm/index.esm.node.js",

src/notifications/helpers/types.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,17 +185,20 @@ export type IEventName =
185185
| 'business.created'
186186
| 'business.updated'
187187
| 'business.imported'
188+
| 'client_token.created'
189+
| 'client_token.updated'
190+
| 'client_token.revoked'
188191
| 'customer.created'
189192
| 'customer.imported'
190193
| 'customer.updated'
191194
| 'discount.created'
192195
| 'discount.updated'
193196
| 'discount.imported'
194197
| 'discount_group.created'
198+
| 'discount_group.updated'
195199
| 'payment_method.saved'
196200
| 'payment_method.deleted'
197201
| 'payout.created'
198-
| 'payout.updated'
199202
| 'payout.paid'
200203
| 'price.updated'
201204
| 'price.created'

src/resources/events/operations/list-events-query-parameters.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@
33
* Do not make changes to this file.
44
* Changes may be overwritten as part of auto-generation.
55
*/
6+
import { IEventName } from '../../../notifications/index.js';
67

78
export interface ListEventsQueryParameters {
89
after?: string;
910
orderBy?: string;
1011
perPage?: number;
12+
eventType?: IEventName[];
1113
}

0 commit comments

Comments
 (0)