@bkper/bkper-api-types 5.32.3 → 5.34.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/.claude/settings.local.json +9 -0
- package/CLAUDE.md +24 -0
- package/index.d.ts +69 -20
- package/package.json +1 -1
package/CLAUDE.md
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Bkper API Types
|
|
2
|
+
|
|
3
|
+
## Auto-Generated Types
|
|
4
|
+
|
|
5
|
+
**DO NOT manually edit `index.d.ts`** - this file is auto-generated.
|
|
6
|
+
|
|
7
|
+
The types are generated from the Bkper [Open API spec](https://app.bkper.com/openapi.json) using the [dtsgenerator](https://github.com/horiuchi/dtsgenerator) tool.
|
|
8
|
+
|
|
9
|
+
## Regenerating Types
|
|
10
|
+
|
|
11
|
+
Types should be regenerated after `bkper-api` deployment:
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
bun run build
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
This fetches the latest OpenAPI spec from the production API and regenerates `index.d.ts`.
|
|
18
|
+
|
|
19
|
+
## Workflow
|
|
20
|
+
|
|
21
|
+
1. Make changes to the API in `bkper-api`
|
|
22
|
+
2. Deploy `bkper-api` to production
|
|
23
|
+
3. Run `bun run build` in this project to regenerate types
|
|
24
|
+
4. Publish the updated types package
|
package/index.d.ts
CHANGED
|
@@ -133,13 +133,9 @@ declare namespace bkper {
|
|
|
133
133
|
*/
|
|
134
134
|
description?: string;
|
|
135
135
|
/**
|
|
136
|
-
* The
|
|
136
|
+
* The developers (usernames and domain patterns), comma or space separated
|
|
137
137
|
*/
|
|
138
|
-
|
|
139
|
-
/**
|
|
140
|
-
* The developer emails, comma or space separated
|
|
141
|
-
*/
|
|
142
|
-
developerEmails?: string;
|
|
138
|
+
developers?: string;
|
|
143
139
|
/**
|
|
144
140
|
* Event types the App listen to
|
|
145
141
|
*/
|
|
@@ -189,9 +185,13 @@ declare namespace bkper {
|
|
|
189
185
|
*/
|
|
190
186
|
name?: string;
|
|
191
187
|
/**
|
|
192
|
-
* The owner email
|
|
188
|
+
* The owner user email
|
|
193
189
|
*/
|
|
194
190
|
ownerEmail?: string;
|
|
191
|
+
/**
|
|
192
|
+
* The owner user id
|
|
193
|
+
*/
|
|
194
|
+
ownerId?: string;
|
|
195
195
|
/**
|
|
196
196
|
* The owner company logo url
|
|
197
197
|
*/
|
|
@@ -226,9 +226,9 @@ declare namespace bkper {
|
|
|
226
226
|
*/
|
|
227
227
|
scopes?: string[];
|
|
228
228
|
/**
|
|
229
|
-
* The
|
|
229
|
+
* The users (usernames and domain patterns) to enable the App while not yet published
|
|
230
230
|
*/
|
|
231
|
-
|
|
231
|
+
users?: string;
|
|
232
232
|
/**
|
|
233
233
|
* The Webhook endpoint URL to listen for book events
|
|
234
234
|
*/
|
|
@@ -287,6 +287,40 @@ declare namespace bkper {
|
|
|
287
287
|
rangeBeginLabel?: string;
|
|
288
288
|
rangeEndLabel?: string;
|
|
289
289
|
}
|
|
290
|
+
export interface Billing {
|
|
291
|
+
/**
|
|
292
|
+
* The billing admin email for the user's billing account
|
|
293
|
+
*/
|
|
294
|
+
adminEmail?: string;
|
|
295
|
+
/**
|
|
296
|
+
* How many days the user has left in the trial period
|
|
297
|
+
*/
|
|
298
|
+
daysLeftInTrial?: number; // int32
|
|
299
|
+
/**
|
|
300
|
+
* True if billing is enabled for the user
|
|
301
|
+
*/
|
|
302
|
+
enabled?: boolean;
|
|
303
|
+
/**
|
|
304
|
+
* The user's current plan
|
|
305
|
+
*/
|
|
306
|
+
plan?: string;
|
|
307
|
+
/**
|
|
308
|
+
* True if subscription payment is overdue
|
|
309
|
+
*/
|
|
310
|
+
planOverdue?: boolean;
|
|
311
|
+
/**
|
|
312
|
+
* True if the user has started the trial period
|
|
313
|
+
*/
|
|
314
|
+
startedTrial?: boolean;
|
|
315
|
+
/**
|
|
316
|
+
* User-level total transactions this month
|
|
317
|
+
*/
|
|
318
|
+
totalTransactionsThisMonth?: number; // int64
|
|
319
|
+
/**
|
|
320
|
+
* User-level total transactions this year
|
|
321
|
+
*/
|
|
322
|
+
totalTransactionsThisYear?: number; // int64
|
|
323
|
+
}
|
|
290
324
|
export interface Book {
|
|
291
325
|
/**
|
|
292
326
|
* The book Accounts
|
|
@@ -911,6 +945,10 @@ declare namespace bkper {
|
|
|
911
945
|
* True if user already had any bank connection
|
|
912
946
|
*/
|
|
913
947
|
bankConnections?: boolean;
|
|
948
|
+
/**
|
|
949
|
+
* The billing admin email for this user's billing account
|
|
950
|
+
*/
|
|
951
|
+
billingAdminEmail?: string;
|
|
914
952
|
/**
|
|
915
953
|
* True if billing is enabled for the user
|
|
916
954
|
*/
|
|
@@ -955,10 +993,22 @@ declare namespace bkper {
|
|
|
955
993
|
* The user plan
|
|
956
994
|
*/
|
|
957
995
|
plan?: string;
|
|
996
|
+
/**
|
|
997
|
+
* True if subscription payment is overdue
|
|
998
|
+
*/
|
|
999
|
+
planOverdue?: boolean;
|
|
958
1000
|
/**
|
|
959
1001
|
* True if user started trial
|
|
960
1002
|
*/
|
|
961
1003
|
startedTrial?: boolean;
|
|
1004
|
+
/**
|
|
1005
|
+
* User-level total transactions this month
|
|
1006
|
+
*/
|
|
1007
|
+
totalTransactionsThisMonth?: number; // int64
|
|
1008
|
+
/**
|
|
1009
|
+
* User-level total transactions this year
|
|
1010
|
+
*/
|
|
1011
|
+
totalTransactionsThisYear?: number; // int64
|
|
962
1012
|
/**
|
|
963
1013
|
* The Bkper username of the user
|
|
964
1014
|
*/
|
|
@@ -1209,6 +1259,11 @@ declare namespace Paths {
|
|
|
1209
1259
|
export type $200 = bkper.Balances;
|
|
1210
1260
|
}
|
|
1211
1261
|
}
|
|
1262
|
+
namespace BkperV5GetBilling {
|
|
1263
|
+
namespace Responses {
|
|
1264
|
+
export type $200 = bkper.Billing;
|
|
1265
|
+
}
|
|
1266
|
+
}
|
|
1212
1267
|
namespace BkperV5GetBillingPortal {
|
|
1213
1268
|
namespace Responses {
|
|
1214
1269
|
export type $200 = bkper.Url;
|
|
@@ -1264,6 +1319,11 @@ declare namespace Paths {
|
|
|
1264
1319
|
export type $200 = bkper.AppList;
|
|
1265
1320
|
}
|
|
1266
1321
|
}
|
|
1322
|
+
namespace BkperV5ListBillingCounts {
|
|
1323
|
+
namespace Responses {
|
|
1324
|
+
export type $200 = bkper.Counts;
|
|
1325
|
+
}
|
|
1326
|
+
}
|
|
1267
1327
|
namespace BkperV5ListBookApps {
|
|
1268
1328
|
namespace Responses {
|
|
1269
1329
|
export type $200 = bkper.AppList;
|
|
@@ -1329,17 +1389,6 @@ declare namespace Paths {
|
|
|
1329
1389
|
export type $200 = bkper.TransactionList;
|
|
1330
1390
|
}
|
|
1331
1391
|
}
|
|
1332
|
-
namespace BkperV5PatchApp {
|
|
1333
|
-
export interface BodyParameters {
|
|
1334
|
-
App: Parameters.App;
|
|
1335
|
-
}
|
|
1336
|
-
namespace Parameters {
|
|
1337
|
-
export type App = bkper.App;
|
|
1338
|
-
}
|
|
1339
|
-
namespace Responses {
|
|
1340
|
-
export type $200 = bkper.App;
|
|
1341
|
-
}
|
|
1342
|
-
}
|
|
1343
1392
|
namespace BkperV5PostTransaction {
|
|
1344
1393
|
export interface BodyParameters {
|
|
1345
1394
|
Transaction: Parameters.Transaction;
|