bkper-js 2.34.2 → 2.35.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.d.ts CHANGED
@@ -2033,14 +2033,14 @@ export declare class Book extends ResourceProperty<bkper.Book> {
2033
2033
  *
2034
2034
  * @param afterDate - The start date (inclusive) for the events search range, in [RFC3339](https://en.wikipedia.org/wiki/ISO_8601#RFC_3339) format. Can be null
2035
2035
  * @param beforeDate - The end date (exclusive) for the events search range, in [RFC3339](https://en.wikipedia.org/wiki/ISO_8601#RFC_3339) format. Can be null
2036
- * @param onError - True to search only for events on error
2037
- * @param resourceId - The ID of the event's resource (Transaction, Account, or Group). Can be null
2036
+ * @param onError - Filter by error state: `true` = only errors, `false` = only non-errors, `null` = all. Ignored when `resourceId` is set.
2037
+ * @param resourceId - The ID of the event's resource (Transaction, Account, or Group). Can be null. When set, `onError` is ignored.
2038
2038
  * @param limit - The maximum number of events to return
2039
2039
  * @param cursor - The cursor for pagination. Can be null
2040
2040
  *
2041
2041
  * @returns An [[EventList]] object containing the list of events
2042
2042
  */
2043
- listEvents(afterDate: string | null, beforeDate: string | null, onError: boolean, resourceId: string | null, limit: number, cursor?: string): Promise<EventList>;
2043
+ listEvents(afterDate: string | null, beforeDate: string | null, onError: boolean | null, resourceId: string | null, limit: number, cursor?: string): Promise<EventList>;
2044
2044
  /**
2045
2045
  * Retrieve a transaction by id.
2046
2046
  *
@@ -2747,6 +2747,8 @@ export declare enum EventType {
2747
2747
  INTEGRATION_CREATED = "INTEGRATION_CREATED",
2748
2748
  INTEGRATION_UPDATED = "INTEGRATION_UPDATED",
2749
2749
  INTEGRATION_DELETED = "INTEGRATION_DELETED",
2750
+ BOOK_AUDITED = "BOOK_AUDITED",
2751
+ BOOK_CREATED = "BOOK_CREATED",
2750
2752
  BOOK_UPDATED = "BOOK_UPDATED",
2751
2753
  BOOK_DELETED = "BOOK_DELETED"
2752
2754
  }
package/lib/model/Book.js CHANGED
@@ -1168,8 +1168,8 @@ export class Book extends ResourceProperty {
1168
1168
  *
1169
1169
  * @param afterDate - The start date (inclusive) for the events search range, in [RFC3339](https://en.wikipedia.org/wiki/ISO_8601#RFC_3339) format. Can be null
1170
1170
  * @param beforeDate - The end date (exclusive) for the events search range, in [RFC3339](https://en.wikipedia.org/wiki/ISO_8601#RFC_3339) format. Can be null
1171
- * @param onError - True to search only for events on error
1172
- * @param resourceId - The ID of the event's resource (Transaction, Account, or Group). Can be null
1171
+ * @param onError - Filter by error state: `true` = only errors, `false` = only non-errors, `null` = all. Ignored when `resourceId` is set.
1172
+ * @param resourceId - The ID of the event's resource (Transaction, Account, or Group). Can be null. When set, `onError` is ignored.
1173
1173
  * @param limit - The maximum number of events to return
1174
1174
  * @param cursor - The cursor for pagination. Can be null
1175
1175
  *
@@ -263,6 +263,8 @@ export var EventType;
263
263
  EventType["INTEGRATION_CREATED"] = "INTEGRATION_CREATED";
264
264
  EventType["INTEGRATION_UPDATED"] = "INTEGRATION_UPDATED";
265
265
  EventType["INTEGRATION_DELETED"] = "INTEGRATION_DELETED";
266
+ EventType["BOOK_AUDITED"] = "BOOK_AUDITED";
267
+ EventType["BOOK_CREATED"] = "BOOK_CREATED";
266
268
  EventType["BOOK_UPDATED"] = "BOOK_UPDATED";
267
269
  EventType["BOOK_DELETED"] = "BOOK_DELETED";
268
270
  })(EventType || (EventType = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bkper-js",
3
- "version": "2.34.2",
3
+ "version": "2.35.1",
4
4
  "description": "Javascript client for Bkper REST API",
5
5
  "main": "./lib/index.js",
6
6
  "module": "./lib/index.js",