@bkper/bkper-api-types 5.32.3 → 5.33.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.md +24 -0
- package/index.d.ts +25 -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
|
*/
|
|
@@ -911,6 +911,10 @@ declare namespace bkper {
|
|
|
911
911
|
* True if user already had any bank connection
|
|
912
912
|
*/
|
|
913
913
|
bankConnections?: boolean;
|
|
914
|
+
/**
|
|
915
|
+
* The billing admin email for this user's billing account
|
|
916
|
+
*/
|
|
917
|
+
billingAdminEmail?: string;
|
|
914
918
|
/**
|
|
915
919
|
* True if billing is enabled for the user
|
|
916
920
|
*/
|
|
@@ -955,10 +959,22 @@ declare namespace bkper {
|
|
|
955
959
|
* The user plan
|
|
956
960
|
*/
|
|
957
961
|
plan?: string;
|
|
962
|
+
/**
|
|
963
|
+
* True if subscription payment is overdue
|
|
964
|
+
*/
|
|
965
|
+
planOverdue?: boolean;
|
|
958
966
|
/**
|
|
959
967
|
* True if user started trial
|
|
960
968
|
*/
|
|
961
969
|
startedTrial?: boolean;
|
|
970
|
+
/**
|
|
971
|
+
* User-level total transactions this month
|
|
972
|
+
*/
|
|
973
|
+
totalTransactionsThisMonth?: number; // int64
|
|
974
|
+
/**
|
|
975
|
+
* User-level total transactions this year
|
|
976
|
+
*/
|
|
977
|
+
totalTransactionsThisYear?: number; // int64
|
|
962
978
|
/**
|
|
963
979
|
* The Bkper username of the user
|
|
964
980
|
*/
|
|
@@ -1329,17 +1345,6 @@ declare namespace Paths {
|
|
|
1329
1345
|
export type $200 = bkper.TransactionList;
|
|
1330
1346
|
}
|
|
1331
1347
|
}
|
|
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
1348
|
namespace BkperV5PostTransaction {
|
|
1344
1349
|
export interface BodyParameters {
|
|
1345
1350
|
Transaction: Parameters.Transaction;
|