@bkper/bkper-api-types 5.2.0 → 5.3.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 (2) hide show
  1. package/index.d.ts +53 -5
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -9,7 +9,7 @@ declare namespace bkper {
9
9
  */
10
10
  archived?: boolean;
11
11
  /**
12
- * The overall account balance
12
+ * The current account balance, when querying transactions.
13
13
  */
14
14
  balance?: string;
15
15
  /**
@@ -56,6 +56,7 @@ declare namespace bkper {
56
56
  type?: "ASSET" | "LIABILITY" | "INCOMING" | "OUTGOING";
57
57
  }
58
58
  export interface AccountBalances {
59
+ archived?: boolean;
59
60
  balances?: Balance[];
60
61
  checkedCumulativeBalance?: string;
61
62
  checkedPeriodBalance?: string;
@@ -63,6 +64,7 @@ declare namespace bkper {
63
64
  cumulativeBalance?: string;
64
65
  cumulativeCredit?: string;
65
66
  cumulativeDebit?: string;
67
+ empty?: boolean;
66
68
  name?: string;
67
69
  normalizedName?: string;
68
70
  periodBalance?: string;
@@ -216,6 +218,9 @@ declare namespace bkper {
216
218
  */
217
219
  website?: string;
218
220
  }
221
+ export interface AppList {
222
+ items?: App[];
223
+ }
219
224
  export interface AppPropertiesSchema {
220
225
  account?: AppPropertySchema;
221
226
  book?: AppPropertySchema;
@@ -361,6 +366,28 @@ declare namespace bkper {
361
366
  */
362
367
  items?: Book[];
363
368
  }
369
+ export interface Collaborator {
370
+ /**
371
+ * The id of agent that created the resource
372
+ */
373
+ agentId?: string;
374
+ /**
375
+ * The creation timestamp, in milliseconds
376
+ */
377
+ createdAt?: string;
378
+ /**
379
+ * The email of the Collaborator
380
+ */
381
+ email?: string;
382
+ /**
383
+ * The unique id that identifies the Collaborator in the Book
384
+ */
385
+ id?: string;
386
+ /**
387
+ * The permission the Collaborator has in the Book
388
+ */
389
+ permission?: "OWNER" | "EDITOR" | "POSTER" | "RECORDER" | "VIEWER" | "NONE";
390
+ }
364
391
  export interface Collection {
365
392
  /**
366
393
  * The id of agent that created the resource
@@ -683,6 +710,17 @@ declare namespace bkper {
683
710
  }
684
711
  }
685
712
  declare namespace Paths {
713
+ namespace BkperV5AddCollaborator {
714
+ export interface BodyParameters {
715
+ Collaborator: Parameters.Collaborator;
716
+ }
717
+ namespace Parameters {
718
+ export type Collaborator = bkper.Collaborator;
719
+ }
720
+ namespace Responses {
721
+ export type $200 = bkper.Collaborator;
722
+ }
723
+ }
686
724
  namespace BkperV5CheckTransaction {
687
725
  export interface BodyParameters {
688
726
  Transaction: Parameters.Transaction;
@@ -805,6 +843,11 @@ declare namespace Paths {
805
843
  export type $200 = bkper.Account;
806
844
  }
807
845
  }
846
+ namespace BkperV5GetBalances {
847
+ namespace Responses {
848
+ export type $200 = bkper.Balances;
849
+ }
850
+ }
808
851
  namespace BkperV5GetBook {
809
852
  namespace Responses {
810
853
  export type $200 = bkper.Book;
@@ -835,9 +878,9 @@ declare namespace Paths {
835
878
  export type $200 = bkper.AccountList;
836
879
  }
837
880
  }
838
- namespace BkperV5ListActivities {
881
+ namespace BkperV5ListBookApps {
839
882
  namespace Responses {
840
- export type $200 = bkper.EventList;
883
+ export type $200 = bkper.AppList;
841
884
  }
842
885
  }
843
886
  namespace BkperV5ListBooks {
@@ -845,6 +888,11 @@ declare namespace Paths {
845
888
  export type $200 = bkper.BookList;
846
889
  }
847
890
  }
891
+ namespace BkperV5ListEvents {
892
+ namespace Responses {
893
+ export type $200 = bkper.EventList;
894
+ }
895
+ }
848
896
  namespace BkperV5ListGroupAccounts {
849
897
  namespace Responses {
850
898
  export type $200 = bkper.AccountList;
@@ -887,9 +935,9 @@ declare namespace Paths {
887
935
  export type $200 = bkper.TransactionOperation;
888
936
  }
889
937
  }
890
- namespace BkperV5QueryBalances {
938
+ namespace BkperV5RemoveCollaborator {
891
939
  namespace Responses {
892
- export type $200 = bkper.Balances;
940
+ export type $200 = bkper.Collaborator;
893
941
  }
894
942
  }
895
943
  namespace BkperV5RemoveTransaction {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bkper/bkper-api-types",
3
- "version": "5.2.0",
3
+ "version": "5.3.0",
4
4
  "description": "Typescript definitions for Bkper REST API",
5
5
  "homepage": "https://api.bkper.com",
6
6
  "repository": {