bkper-js 2.43.3 → 2.45.0
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/dist/bkper.min.js +1 -1
- package/dist/bkper.min.js.map +2 -2
- package/lib/index.d.ts +16 -0
- package/lib/model/Billing.js +16 -0
- package/lib/model/Enums.js +4 -0
- package/package.json +2 -2
package/lib/index.d.ts
CHANGED
|
@@ -1340,6 +1340,18 @@ export declare class Billing extends Resource<bkper.Billing> {
|
|
|
1340
1340
|
* @returns The number of total transactions this year
|
|
1341
1341
|
*/
|
|
1342
1342
|
getTotalTransactionsThisYear(): number | undefined;
|
|
1343
|
+
/**
|
|
1344
|
+
* Gets the authoritative rolling monthly average of posted transactions.
|
|
1345
|
+
*
|
|
1346
|
+
* @returns The transaction average, or undefined when unavailable for the current plan
|
|
1347
|
+
*/
|
|
1348
|
+
getTransactionsAverage(): number | undefined;
|
|
1349
|
+
/**
|
|
1350
|
+
* Gets the confirmed average monthly transaction capacity.
|
|
1351
|
+
*
|
|
1352
|
+
* @returns The transaction capacity, or undefined when unavailable for the current plan
|
|
1353
|
+
*/
|
|
1354
|
+
getTransactionsCapacity(): number | undefined;
|
|
1343
1355
|
/**
|
|
1344
1356
|
* Gets the transaction counts associated to the User's billing account.
|
|
1345
1357
|
*
|
|
@@ -2808,6 +2820,10 @@ export declare enum EventType {
|
|
|
2808
2820
|
INTEGRATION_UPDATED = "INTEGRATION_UPDATED",
|
|
2809
2821
|
INTEGRATION_DELETED = "INTEGRATION_DELETED",
|
|
2810
2822
|
BOOK_AUDITED = "BOOK_AUDITED",
|
|
2823
|
+
/**
|
|
2824
|
+
* Daily per-Book event for Apps subscribed to it, delivered at or after 01:00 in the Book's time zone.
|
|
2825
|
+
*/
|
|
2826
|
+
BOOK_OVERNIGHT = "BOOK_OVERNIGHT",
|
|
2811
2827
|
BOOK_CREATED = "BOOK_CREATED",
|
|
2812
2828
|
BOOK_UPDATED = "BOOK_UPDATED",
|
|
2813
2829
|
BOOK_DELETED = "BOOK_DELETED"
|
package/lib/model/Billing.js
CHANGED
|
@@ -106,6 +106,22 @@ export class Billing extends Resource {
|
|
|
106
106
|
getTotalTransactionsThisYear() {
|
|
107
107
|
return this.payload.totalTransactionsThisYear;
|
|
108
108
|
}
|
|
109
|
+
/**
|
|
110
|
+
* Gets the authoritative rolling monthly average of posted transactions.
|
|
111
|
+
*
|
|
112
|
+
* @returns The transaction average, or undefined when unavailable for the current plan
|
|
113
|
+
*/
|
|
114
|
+
getTransactionsAverage() {
|
|
115
|
+
return this.payload.transactionsAverage;
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Gets the confirmed average monthly transaction capacity.
|
|
119
|
+
*
|
|
120
|
+
* @returns The transaction capacity, or undefined when unavailable for the current plan
|
|
121
|
+
*/
|
|
122
|
+
getTransactionsCapacity() {
|
|
123
|
+
return this.payload.transactionsCapacity;
|
|
124
|
+
}
|
|
109
125
|
/**
|
|
110
126
|
* Gets the transaction counts associated to the User's billing account.
|
|
111
127
|
*
|
package/lib/model/Enums.js
CHANGED
|
@@ -265,6 +265,10 @@ export var EventType;
|
|
|
265
265
|
EventType["INTEGRATION_UPDATED"] = "INTEGRATION_UPDATED";
|
|
266
266
|
EventType["INTEGRATION_DELETED"] = "INTEGRATION_DELETED";
|
|
267
267
|
EventType["BOOK_AUDITED"] = "BOOK_AUDITED";
|
|
268
|
+
/**
|
|
269
|
+
* Daily per-Book event for Apps subscribed to it, delivered at or after 01:00 in the Book's time zone.
|
|
270
|
+
*/
|
|
271
|
+
EventType["BOOK_OVERNIGHT"] = "BOOK_OVERNIGHT";
|
|
268
272
|
EventType["BOOK_CREATED"] = "BOOK_CREATED";
|
|
269
273
|
EventType["BOOK_UPDATED"] = "BOOK_UPDATED";
|
|
270
274
|
EventType["BOOK_DELETED"] = "BOOK_DELETED";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bkper-js",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.45.0",
|
|
4
4
|
"description": "Javascript client for Bkper REST API",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"module": "./lib/index.js",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"release:major": "npm version major -m \"chore(release): v%s\""
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@bkper/bkper-api-types": "^5.
|
|
41
|
+
"@bkper/bkper-api-types": "^5.45.0",
|
|
42
42
|
"big.js": "^6.0.3",
|
|
43
43
|
"dayjs": "^1.10.3",
|
|
44
44
|
"luxon": "^1.25.0",
|