@bkper/bkper-api-types 5.35.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.
Files changed (3) hide show
  1. package/README.md +11 -4
  2. package/index.d.ts +45 -24
  3. 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
- # Instalation
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
- or
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, when querying transactions.
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
- * Tell if the account has transaction posted
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
- * Tell if this app is connectable by a user
124
+ * Whether this app is connectable by a user
125
125
  */
126
126
  connectable?: boolean;
127
127
  /**
128
- * Tell if the code app is deprecated
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 patters the App handles - wildcard accepted - E.g *.pdf *-bank.csv
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
- * Tell if this app is installable in a book
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
- * Tell if this app already published
209
+ * Whether this app is already published
210
210
  */
211
211
  published?: boolean;
212
212
  /**
@@ -214,7 +214,11 @@ declare namespace bkper {
214
214
  */
215
215
  readme?: string;
216
216
  /**
217
- * Tell if the code repository is private
217
+ * The readme.md file as raw markdown string
218
+ */
219
+ readmeMd?: string;
220
+ /**
221
+ * Whether the code repository is private
218
222
  */
219
223
  repoPrivate?: boolean;
220
224
  /**
@@ -343,7 +347,7 @@ declare namespace bkper {
343
347
  */
344
348
  autoPost?: boolean;
345
349
  /**
346
- * 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
347
351
  */
348
352
  closingDate?: string;
349
353
  collection?: Collection;
@@ -360,7 +364,7 @@ declare namespace bkper {
360
364
  */
361
365
  decimalSeparator?: "DOT" | "COMMA";
362
366
  /**
363
- * 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 ####.####
364
368
  */
365
369
  fractionDigits?: number; // int32
366
370
  /**
@@ -372,11 +376,11 @@ declare namespace bkper {
372
376
  */
373
377
  id?: string;
374
378
  /**
375
- * The last update date of the Book, in in milliseconds
379
+ * The last update date of the Book, in milliseconds
376
380
  */
377
381
  lastUpdateMs?: string;
378
382
  /**
379
- * The book lock date
383
+ * The book lock date, in ISO format yyyy-MM-dd. Transactions on or before this date are locked
380
384
  */
381
385
  lockDate?: string;
382
386
  /**
@@ -410,7 +414,7 @@ declare namespace bkper {
410
414
  [name: string]: string;
411
415
  };
412
416
  /**
413
- * The time zone of the Book
417
+ * The time zone of the Book, in IANA format. E.g. America/New_York, Europe/London
414
418
  */
415
419
  timeZone?: string;
416
420
  /**
@@ -507,6 +511,9 @@ declare namespace bkper {
507
511
  * The username of the Collection owner
508
512
  */
509
513
  ownerUsername?: string;
514
+ /**
515
+ * The permission the current user has in the Collection. E.g. OWNER, EDITOR, NONE
516
+ */
510
517
  permission?: "OWNER" | "EDITOR" | "POSTER" | "RECORDER" | "VIEWER" | "NONE";
511
518
  /**
512
519
  * The last update timestamp, in milliseconds
@@ -668,19 +675,19 @@ declare namespace bkper {
668
675
  */
669
676
  createdAt?: string;
670
677
  /**
671
- * Tell if the group is credit
678
+ * Whether the group has credit nature
672
679
  */
673
680
  credit?: boolean;
674
681
  /**
675
- * Tell if the group is has any accounts
682
+ * Whether the group has any accounts
676
683
  */
677
684
  hasAccounts?: boolean;
678
685
  /**
679
- * Tell if the group is has any children groups
686
+ * Whether the group has any children groups
680
687
  */
681
688
  hasGroups?: boolean;
682
689
  /**
683
- * Tell if the group is hidden on transactions main menu
690
+ * Whether the group is hidden on the transactions main menu
684
691
  */
685
692
  hidden?: boolean;
686
693
  /**
@@ -688,11 +695,11 @@ declare namespace bkper {
688
695
  */
689
696
  id?: string;
690
697
  /**
691
- * Tell if the group is locked by the Book owner
698
+ * Whether the group is locked by the Book owner
692
699
  */
693
700
  locked?: boolean;
694
701
  /**
695
- * Tell if has mixed type of accounts
702
+ * Whether the group has mixed types of accounts
696
703
  */
697
704
  mixed?: boolean;
698
705
  /**
@@ -705,7 +712,7 @@ declare namespace bkper {
705
712
  normalizedName?: string;
706
713
  parent?: Group;
707
714
  /**
708
- * Tell if the group is permanent
715
+ * Whether the group is permanent
709
716
  */
710
717
  permanent?: boolean;
711
718
  /**
@@ -714,6 +721,9 @@ declare namespace bkper {
714
721
  properties?: {
715
722
  [name: string]: string;
716
723
  };
724
+ /**
725
+ * The type of the accounts in the group. E.g. ASSET, LIABILITY, INCOMING, OUTGOING
726
+ */
717
727
  type?: "ASSET" | "LIABILITY" | "INCOMING" | "OUTGOING";
718
728
  /**
719
729
  * The last update timestamp, in milliseconds
@@ -848,7 +858,7 @@ declare namespace bkper {
848
858
  */
849
859
  amount?: string;
850
860
  /**
851
- * Tell if the transaction is a checked
861
+ * Whether the transaction is checked
852
862
  */
853
863
  checked?: boolean;
854
864
  /**
@@ -878,7 +888,7 @@ declare namespace bkper {
878
888
  */
879
889
  description?: string;
880
890
  /**
881
- * Tell if its a draft transaction
891
+ * Whether the transaction is a draft
882
892
  */
883
893
  draft?: boolean;
884
894
  /**
@@ -890,7 +900,7 @@ declare namespace bkper {
890
900
  */
891
901
  id?: string;
892
902
  /**
893
- * Tell if the transaction is already posted on accounts, otherwise is a draft
903
+ * Whether the transaction is already posted on accounts, otherwise is a draft
894
904
  */
895
905
  posted?: boolean;
896
906
  /**
@@ -908,7 +918,7 @@ declare namespace bkper {
908
918
  */
909
919
  tags?: string[];
910
920
  /**
911
- * Tell if transaction is trashed
921
+ * Whether the transaction is trashed
912
922
  */
913
923
  trashed?: boolean;
914
924
  /**
@@ -1217,6 +1227,17 @@ declare namespace Paths {
1217
1227
  export type $200 = bkper.Account;
1218
1228
  }
1219
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
+ }
1220
1241
  namespace BkperV5DeleteBook {
1221
1242
  namespace Responses {
1222
1243
  export type $200 = bkper.Book;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bkper/bkper-api-types",
3
- "version": "5.35.0",
3
+ "version": "5.37.0",
4
4
  "description": "Typescript definitions for Bkper REST API",
5
5
  "homepage": "https://api.bkper.com",
6
6
  "repository": {