@bkper/bkper-api-types 5.36.0 → 5.37.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/README.md +11 -4
- package/index.d.ts +41 -24
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -8,15 +8,23 @@ The types are generated based on the Bkper [Open API spec](https://bkper.com/ope
|
|
|
8
8
|
|
|
9
9
|
More information at the [Bkper Developer Documentation](http://bkper.com/docs/#rest-api)
|
|
10
10
|
|
|
11
|
-
#
|
|
11
|
+
# Installation
|
|
12
12
|
|
|
13
13
|
### 1) Add the package:
|
|
14
14
|
|
|
15
|
-
```
|
|
15
|
+
```bash tab="npm"
|
|
16
16
|
npm i -S @bkper/bkper-api-types
|
|
17
17
|
```
|
|
18
|
-
|
|
18
|
+
|
|
19
|
+
```bash tab="bun"
|
|
20
|
+
bun add -d @bkper/bkper-api-types
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
```bash tab="pnpm"
|
|
24
|
+
pnpm add -D @bkper/bkper-api-types
|
|
19
25
|
```
|
|
26
|
+
|
|
27
|
+
```bash tab="yarn"
|
|
20
28
|
yarn add --dev @bkper/bkper-api-types
|
|
21
29
|
```
|
|
22
30
|
|
|
@@ -31,4 +39,3 @@ yarn add --dev @bkper/bkper-api-types
|
|
|
31
39
|
```
|
|
32
40
|
|
|
33
41
|
[Learn more](https://www.typescriptlang.org/docs/handbook/tsconfig-json.html#types-typeroots-and-types) about **@types**, **typeRoots** and **types**
|
|
34
|
-
|
package/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ declare namespace bkper {
|
|
|
9
9
|
*/
|
|
10
10
|
archived?: boolean;
|
|
11
11
|
/**
|
|
12
|
-
* The current account balance,
|
|
12
|
+
* The running balance of the account at the transaction date. Only present when the account is part of a transaction response filtered by account. NOT the current account balance. To get current balances, use the Balances endpoint: GET /books/{bookId}/balances
|
|
13
13
|
*/
|
|
14
14
|
balance?: string;
|
|
15
15
|
/**
|
|
@@ -29,7 +29,7 @@ declare namespace bkper {
|
|
|
29
29
|
*/
|
|
30
30
|
groups?: Group[];
|
|
31
31
|
/**
|
|
32
|
-
*
|
|
32
|
+
* Whether the account has any transactions posted
|
|
33
33
|
*/
|
|
34
34
|
hasTransactionPosted?: boolean;
|
|
35
35
|
/**
|
|
@@ -121,11 +121,11 @@ declare namespace bkper {
|
|
|
121
121
|
*/
|
|
122
122
|
clientSecret?: string;
|
|
123
123
|
/**
|
|
124
|
-
*
|
|
124
|
+
* Whether this app is connectable by a user
|
|
125
125
|
*/
|
|
126
126
|
connectable?: boolean;
|
|
127
127
|
/**
|
|
128
|
-
*
|
|
128
|
+
* Whether the app is deprecated
|
|
129
129
|
*/
|
|
130
130
|
deprecated?: boolean;
|
|
131
131
|
/**
|
|
@@ -141,7 +141,7 @@ declare namespace bkper {
|
|
|
141
141
|
*/
|
|
142
142
|
events?: ("FILE_CREATED" | "FILE_UPDATED" | "TRANSACTION_CREATED" | "TRANSACTION_UPDATED" | "TRANSACTION_DELETED" | "TRANSACTION_POSTED" | "TRANSACTION_CHECKED" | "TRANSACTION_UNCHECKED" | "TRANSACTION_RESTORED" | "ACCOUNT_CREATED" | "ACCOUNT_UPDATED" | "ACCOUNT_DELETED" | "QUERY_CREATED" | "QUERY_UPDATED" | "QUERY_DELETED" | "GROUP_CREATED" | "GROUP_UPDATED" | "GROUP_DELETED" | "COMMENT_CREATED" | "COMMENT_DELETED" | "COLLABORATOR_ADDED" | "COLLABORATOR_UPDATED" | "COLLABORATOR_REMOVED" | "INTEGRATION_CREATED" | "INTEGRATION_UPDATED" | "INTEGRATION_DELETED" | "BOOK_CREATED" | "BOOK_AUDITED" | "BOOK_UPDATED" | "BOOK_DELETED")[];
|
|
143
143
|
/**
|
|
144
|
-
* File
|
|
144
|
+
* File patterns the App handles - wildcard accepted. E.g. *.pdf, *-bank.csv
|
|
145
145
|
*/
|
|
146
146
|
filePatterns?: string[];
|
|
147
147
|
/**
|
|
@@ -149,7 +149,7 @@ declare namespace bkper {
|
|
|
149
149
|
*/
|
|
150
150
|
id?: string;
|
|
151
151
|
/**
|
|
152
|
-
*
|
|
152
|
+
* Whether this app is installable in a book
|
|
153
153
|
*/
|
|
154
154
|
installable?: boolean;
|
|
155
155
|
/**
|
|
@@ -206,7 +206,7 @@ declare namespace bkper {
|
|
|
206
206
|
ownerWebsite?: string;
|
|
207
207
|
propertiesSchema?: AppPropertiesSchema;
|
|
208
208
|
/**
|
|
209
|
-
*
|
|
209
|
+
* Whether this app is already published
|
|
210
210
|
*/
|
|
211
211
|
published?: boolean;
|
|
212
212
|
/**
|
|
@@ -218,7 +218,7 @@ declare namespace bkper {
|
|
|
218
218
|
*/
|
|
219
219
|
readmeMd?: string;
|
|
220
220
|
/**
|
|
221
|
-
*
|
|
221
|
+
* Whether the code repository is private
|
|
222
222
|
*/
|
|
223
223
|
repoPrivate?: boolean;
|
|
224
224
|
/**
|
|
@@ -347,7 +347,7 @@ declare namespace bkper {
|
|
|
347
347
|
*/
|
|
348
348
|
autoPost?: boolean;
|
|
349
349
|
/**
|
|
350
|
-
* The book closing date
|
|
350
|
+
* The book closing date, in ISO format yyyy-MM-dd. Transactions on or before this date are closed for the period
|
|
351
351
|
*/
|
|
352
352
|
closingDate?: string;
|
|
353
353
|
collection?: Collection;
|
|
@@ -364,7 +364,7 @@ declare namespace bkper {
|
|
|
364
364
|
*/
|
|
365
365
|
decimalSeparator?: "DOT" | "COMMA";
|
|
366
366
|
/**
|
|
367
|
-
* The number of fraction digits (decimal places) of the Book
|
|
367
|
+
* The number of fraction digits (decimal places) of the Book. E.g. 2 for ####.##, 4 for ####.####
|
|
368
368
|
*/
|
|
369
369
|
fractionDigits?: number; // int32
|
|
370
370
|
/**
|
|
@@ -376,11 +376,11 @@ declare namespace bkper {
|
|
|
376
376
|
*/
|
|
377
377
|
id?: string;
|
|
378
378
|
/**
|
|
379
|
-
* The last update date of the Book, in
|
|
379
|
+
* The last update date of the Book, in milliseconds
|
|
380
380
|
*/
|
|
381
381
|
lastUpdateMs?: string;
|
|
382
382
|
/**
|
|
383
|
-
* The book lock date
|
|
383
|
+
* The book lock date, in ISO format yyyy-MM-dd. Transactions on or before this date are locked
|
|
384
384
|
*/
|
|
385
385
|
lockDate?: string;
|
|
386
386
|
/**
|
|
@@ -414,7 +414,7 @@ declare namespace bkper {
|
|
|
414
414
|
[name: string]: string;
|
|
415
415
|
};
|
|
416
416
|
/**
|
|
417
|
-
* The time zone of the Book
|
|
417
|
+
* The time zone of the Book, in IANA format. E.g. America/New_York, Europe/London
|
|
418
418
|
*/
|
|
419
419
|
timeZone?: string;
|
|
420
420
|
/**
|
|
@@ -511,6 +511,9 @@ declare namespace bkper {
|
|
|
511
511
|
* The username of the Collection owner
|
|
512
512
|
*/
|
|
513
513
|
ownerUsername?: string;
|
|
514
|
+
/**
|
|
515
|
+
* The permission the current user has in the Collection. E.g. OWNER, EDITOR, NONE
|
|
516
|
+
*/
|
|
514
517
|
permission?: "OWNER" | "EDITOR" | "POSTER" | "RECORDER" | "VIEWER" | "NONE";
|
|
515
518
|
/**
|
|
516
519
|
* The last update timestamp, in milliseconds
|
|
@@ -672,19 +675,19 @@ declare namespace bkper {
|
|
|
672
675
|
*/
|
|
673
676
|
createdAt?: string;
|
|
674
677
|
/**
|
|
675
|
-
*
|
|
678
|
+
* Whether the group has credit nature
|
|
676
679
|
*/
|
|
677
680
|
credit?: boolean;
|
|
678
681
|
/**
|
|
679
|
-
*
|
|
682
|
+
* Whether the group has any accounts
|
|
680
683
|
*/
|
|
681
684
|
hasAccounts?: boolean;
|
|
682
685
|
/**
|
|
683
|
-
*
|
|
686
|
+
* Whether the group has any children groups
|
|
684
687
|
*/
|
|
685
688
|
hasGroups?: boolean;
|
|
686
689
|
/**
|
|
687
|
-
*
|
|
690
|
+
* Whether the group is hidden on the transactions main menu
|
|
688
691
|
*/
|
|
689
692
|
hidden?: boolean;
|
|
690
693
|
/**
|
|
@@ -692,11 +695,11 @@ declare namespace bkper {
|
|
|
692
695
|
*/
|
|
693
696
|
id?: string;
|
|
694
697
|
/**
|
|
695
|
-
*
|
|
698
|
+
* Whether the group is locked by the Book owner
|
|
696
699
|
*/
|
|
697
700
|
locked?: boolean;
|
|
698
701
|
/**
|
|
699
|
-
*
|
|
702
|
+
* Whether the group has mixed types of accounts
|
|
700
703
|
*/
|
|
701
704
|
mixed?: boolean;
|
|
702
705
|
/**
|
|
@@ -709,7 +712,7 @@ declare namespace bkper {
|
|
|
709
712
|
normalizedName?: string;
|
|
710
713
|
parent?: Group;
|
|
711
714
|
/**
|
|
712
|
-
*
|
|
715
|
+
* Whether the group is permanent
|
|
713
716
|
*/
|
|
714
717
|
permanent?: boolean;
|
|
715
718
|
/**
|
|
@@ -718,6 +721,9 @@ declare namespace bkper {
|
|
|
718
721
|
properties?: {
|
|
719
722
|
[name: string]: string;
|
|
720
723
|
};
|
|
724
|
+
/**
|
|
725
|
+
* The type of the accounts in the group. E.g. ASSET, LIABILITY, INCOMING, OUTGOING
|
|
726
|
+
*/
|
|
721
727
|
type?: "ASSET" | "LIABILITY" | "INCOMING" | "OUTGOING";
|
|
722
728
|
/**
|
|
723
729
|
* The last update timestamp, in milliseconds
|
|
@@ -852,7 +858,7 @@ declare namespace bkper {
|
|
|
852
858
|
*/
|
|
853
859
|
amount?: string;
|
|
854
860
|
/**
|
|
855
|
-
*
|
|
861
|
+
* Whether the transaction is checked
|
|
856
862
|
*/
|
|
857
863
|
checked?: boolean;
|
|
858
864
|
/**
|
|
@@ -882,7 +888,7 @@ declare namespace bkper {
|
|
|
882
888
|
*/
|
|
883
889
|
description?: string;
|
|
884
890
|
/**
|
|
885
|
-
*
|
|
891
|
+
* Whether the transaction is a draft
|
|
886
892
|
*/
|
|
887
893
|
draft?: boolean;
|
|
888
894
|
/**
|
|
@@ -894,7 +900,7 @@ declare namespace bkper {
|
|
|
894
900
|
*/
|
|
895
901
|
id?: string;
|
|
896
902
|
/**
|
|
897
|
-
*
|
|
903
|
+
* Whether the transaction is already posted on accounts, otherwise is a draft
|
|
898
904
|
*/
|
|
899
905
|
posted?: boolean;
|
|
900
906
|
/**
|
|
@@ -912,7 +918,7 @@ declare namespace bkper {
|
|
|
912
918
|
*/
|
|
913
919
|
tags?: string[];
|
|
914
920
|
/**
|
|
915
|
-
*
|
|
921
|
+
* Whether the transaction is trashed
|
|
916
922
|
*/
|
|
917
923
|
trashed?: boolean;
|
|
918
924
|
/**
|
|
@@ -1221,6 +1227,17 @@ declare namespace Paths {
|
|
|
1221
1227
|
export type $200 = bkper.Account;
|
|
1222
1228
|
}
|
|
1223
1229
|
}
|
|
1230
|
+
namespace BkperV5DeleteAccountsBatch {
|
|
1231
|
+
export interface BodyParameters {
|
|
1232
|
+
AccountList: Parameters.AccountList;
|
|
1233
|
+
}
|
|
1234
|
+
namespace Parameters {
|
|
1235
|
+
export type AccountList = bkper.AccountList;
|
|
1236
|
+
}
|
|
1237
|
+
namespace Responses {
|
|
1238
|
+
export type $200 = bkper.AccountList;
|
|
1239
|
+
}
|
|
1240
|
+
}
|
|
1224
1241
|
namespace BkperV5DeleteBook {
|
|
1225
1242
|
namespace Responses {
|
|
1226
1243
|
export type $200 = bkper.Book;
|