@bkper/bkper-api-types 5.9.0 → 5.11.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 +135 -20
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -58,8 +58,6 @@ declare namespace bkper {
58
58
  export interface AccountBalances {
59
59
  archived?: boolean;
60
60
  balances?: Balance[];
61
- checkedCumulativeBalance?: string;
62
- checkedPeriodBalance?: string;
63
61
  credit?: boolean;
64
62
  cumulativeBalance?: string;
65
63
  cumulativeCredit?: string;
@@ -74,8 +72,6 @@ declare namespace bkper {
74
72
  properties?: {
75
73
  [name: string]: string;
76
74
  };
77
- uncheckedCumulativeBalance?: string;
78
- uncheckedPeriodBalance?: string;
79
75
  }
80
76
  export interface AccountList {
81
77
  /**
@@ -116,10 +112,6 @@ declare namespace bkper {
116
112
  * Tell if this app is connectable by a user
117
113
  */
118
114
  connectable?: boolean;
119
- /**
120
- * The executable Google Apps Script deployment ID
121
- */
122
- deploymentId?: string;
123
115
  /**
124
116
  * Tell if the code app is deprecated
125
117
  */
@@ -213,10 +205,6 @@ declare namespace bkper {
213
205
  * The Google OAuth Scopes used by the app
214
206
  */
215
207
  scopes?: string[];
216
- /**
217
- * The executable Google Apps Script ID
218
- */
219
- scriptId?: string;
220
208
  /**
221
209
  * The user emails to enable the App while not yet published
222
210
  */
@@ -257,8 +245,6 @@ declare namespace bkper {
257
245
  count?: number; // int32
258
246
  }
259
247
  export interface Balance {
260
- checkedCumulativeBalance?: string;
261
- checkedPeriodBalance?: string;
262
248
  cumulativeBalance?: string;
263
249
  cumulativeCredit?: string;
264
250
  cumulativeDebit?: string;
@@ -268,8 +254,6 @@ declare namespace bkper {
268
254
  periodBalance?: string;
269
255
  periodCredit?: string;
270
256
  periodDebit?: string;
271
- uncheckedCumulativeBalance?: string;
272
- uncheckedPeriodBalance?: string;
273
257
  year?: number; // int32
274
258
  }
275
259
  export interface Balances {
@@ -378,6 +362,10 @@ declare namespace bkper {
378
362
  * The total transactions posted on current year
379
363
  */
380
364
  totalTransactionsCurrentYear?: number; // int64
365
+ /**
366
+ * The Visibility of the Book
367
+ */
368
+ visibility?: "PUBLIC" | "PRIVATE";
381
369
  }
382
370
  export interface BookList {
383
371
  /**
@@ -437,6 +425,17 @@ declare namespace bkper {
437
425
  * The username of the Collection owner
438
426
  */
439
427
  ownerUsername?: string;
428
+ permission?: "OWNER" | "EDITOR" | "POSTER" | "RECORDER" | "VIEWER" | "NONE";
429
+ /**
430
+ * The last update timestamp, in milliseconds
431
+ */
432
+ updatedAt?: string;
433
+ }
434
+ export interface CollectionList {
435
+ /**
436
+ * List items
437
+ */
438
+ items?: Collection[];
440
439
  }
441
440
  export interface Connection {
442
441
  /**
@@ -592,6 +591,10 @@ declare namespace bkper {
592
591
  * The unique id that identifies the Group in the Book
593
592
  */
594
593
  id?: string;
594
+ /**
595
+ * Tell if the group is locked by the Book owner
596
+ */
597
+ locked?: boolean;
595
598
  /**
596
599
  * Tell if has mixed type of accounts
597
600
  */
@@ -620,8 +623,6 @@ declare namespace bkper {
620
623
  export interface GroupBalances {
621
624
  accountBalances?: AccountBalances[];
622
625
  balances?: Balance[];
623
- checkedCumulativeBalance?: string;
624
- checkedPeriodBalance?: string;
625
626
  credit?: boolean;
626
627
  cumulativeBalance?: string;
627
628
  cumulativeCredit?: string;
@@ -636,8 +637,6 @@ declare namespace bkper {
636
637
  properties?: {
637
638
  [name: string]: string;
638
639
  };
639
- uncheckedCumulativeBalance?: string;
640
- uncheckedPeriodBalance?: string;
641
640
  }
642
641
  export interface GroupList {
643
642
  /**
@@ -702,11 +701,35 @@ declare namespace bkper {
702
701
  */
703
702
  items?: Query[];
704
703
  }
704
+ export interface Template {
705
+ bookId?: string;
706
+ bookLink?: string;
707
+ category?: string;
708
+ description?: string;
709
+ imageUrl?: string;
710
+ name?: string;
711
+ sheetsLink?: string;
712
+ timesUsed?: number; // int32
713
+ }
714
+ export interface TemplateList {
715
+ /**
716
+ * List items
717
+ */
718
+ items?: Template[];
719
+ }
705
720
  export interface Transaction {
706
721
  /**
707
722
  * The id of agent that created the resource
708
723
  */
709
724
  agentId?: string;
725
+ /**
726
+ * The agent logo that created the transaction
727
+ */
728
+ agentLogo?: string;
729
+ /**
730
+ * The agent name that created the transaction
731
+ */
732
+ agentName?: string;
710
733
  /**
711
734
  * The amount on format ####.##
712
735
  */
@@ -719,6 +742,10 @@ declare namespace bkper {
719
742
  * The creation timestamp, in milliseconds
720
743
  */
721
744
  createdAt?: string;
745
+ /**
746
+ * The actor username that created the transaction
747
+ */
748
+ createdBy?: string;
722
749
  creditAccount?: Account;
723
750
  /**
724
751
  * The date on ISO format yyyy-MM-dd
@@ -801,6 +828,10 @@ declare namespace bkper {
801
828
  * The user public avatar url
802
829
  */
803
830
  avatarUrl?: string;
831
+ /**
832
+ * True if user already had any bank connection
833
+ */
834
+ bankConnections?: boolean;
804
835
  /**
805
836
  * True if billing is enabled for the user
806
837
  */
@@ -852,6 +883,17 @@ declare namespace bkper {
852
883
  }
853
884
  }
854
885
  declare namespace Paths {
886
+ namespace BkperV5AddBooksToCollection {
887
+ export interface BodyParameters {
888
+ BookList: Parameters.BookList;
889
+ }
890
+ namespace Parameters {
891
+ export type BookList = bkper.BookList;
892
+ }
893
+ namespace Responses {
894
+ export type $200 = bkper.BookList;
895
+ }
896
+ }
855
897
  namespace BkperV5AddCollaborator {
856
898
  export interface BodyParameters {
857
899
  Collaborator: Parameters.Collaborator;
@@ -925,6 +967,17 @@ declare namespace Paths {
925
967
  export type $200 = bkper.App;
926
968
  }
927
969
  }
970
+ namespace BkperV5CreateCollection {
971
+ export interface BodyParameters {
972
+ Collection: Parameters.Collection;
973
+ }
974
+ namespace Parameters {
975
+ export type Collection = bkper.Collection;
976
+ }
977
+ namespace Responses {
978
+ export type $200 = bkper.Collection;
979
+ }
980
+ }
928
981
  namespace BkperV5CreateConnection {
929
982
  export interface BodyParameters {
930
983
  Connection: Parameters.Connection;
@@ -980,6 +1033,17 @@ declare namespace Paths {
980
1033
  export type $200 = bkper.Integration;
981
1034
  }
982
1035
  }
1036
+ namespace BkperV5CreateNewBook {
1037
+ export interface BodyParameters {
1038
+ Book: Parameters.Book;
1039
+ }
1040
+ namespace Parameters {
1041
+ export type Book = bkper.Book;
1042
+ }
1043
+ namespace Responses {
1044
+ export type $200 = bkper.Book;
1045
+ }
1046
+ }
983
1047
  namespace BkperV5CreateTransaction {
984
1048
  export interface BodyParameters {
985
1049
  Transaction: Parameters.Transaction;
@@ -1007,6 +1071,11 @@ declare namespace Paths {
1007
1071
  export type $200 = bkper.Account;
1008
1072
  }
1009
1073
  }
1074
+ namespace BkperV5DeleteCollection {
1075
+ namespace Responses {
1076
+ export type $200 = bkper.BookList;
1077
+ }
1078
+ }
1010
1079
  namespace BkperV5DeleteConnection {
1011
1080
  namespace Responses {
1012
1081
  export type $200 = bkper.Connection;
@@ -1102,6 +1171,11 @@ declare namespace Paths {
1102
1171
  export type $200 = bkper.BookList;
1103
1172
  }
1104
1173
  }
1174
+ namespace BkperV5ListCollections {
1175
+ namespace Responses {
1176
+ export type $200 = bkper.CollectionList;
1177
+ }
1178
+ }
1105
1179
  namespace BkperV5ListConnectionIntegrations {
1106
1180
  namespace Responses {
1107
1181
  export type $200 = bkper.IntegrationList;
@@ -1137,6 +1211,11 @@ declare namespace Paths {
1137
1211
  export type $200 = bkper.QueryList;
1138
1212
  }
1139
1213
  }
1214
+ namespace BkperV5ListTemplates {
1215
+ namespace Responses {
1216
+ export type $200 = bkper.TemplateList;
1217
+ }
1218
+ }
1140
1219
  namespace BkperV5ListTransactions {
1141
1220
  namespace Responses {
1142
1221
  export type $200 = bkper.TransactionList;
@@ -1164,6 +1243,17 @@ declare namespace Paths {
1164
1243
  export type $200 = bkper.TransactionOperation;
1165
1244
  }
1166
1245
  }
1246
+ namespace BkperV5RemoveBooksFromCollection {
1247
+ export interface BodyParameters {
1248
+ BookList: Parameters.BookList;
1249
+ }
1250
+ namespace Parameters {
1251
+ export type BookList = bkper.BookList;
1252
+ }
1253
+ namespace Responses {
1254
+ export type $200 = bkper.BookList;
1255
+ }
1256
+ }
1167
1257
  namespace BkperV5RemoveCollaborator {
1168
1258
  namespace Responses {
1169
1259
  export type $200 = bkper.Collaborator;
@@ -1281,6 +1371,28 @@ declare namespace Paths {
1281
1371
  export type $200 = bkper.Book;
1282
1372
  }
1283
1373
  }
1374
+ namespace BkperV5UpdateBookDeprecated {
1375
+ export interface BodyParameters {
1376
+ Book: Parameters.Book;
1377
+ }
1378
+ namespace Parameters {
1379
+ export type Book = bkper.Book;
1380
+ }
1381
+ namespace Responses {
1382
+ export type $200 = bkper.Book;
1383
+ }
1384
+ }
1385
+ namespace BkperV5UpdateCollection {
1386
+ export interface BodyParameters {
1387
+ Collection: Parameters.Collection;
1388
+ }
1389
+ namespace Parameters {
1390
+ export type Collection = bkper.Collection;
1391
+ }
1392
+ namespace Responses {
1393
+ export type $200 = bkper.Collection;
1394
+ }
1395
+ }
1284
1396
  namespace BkperV5UpdateConnection {
1285
1397
  export interface BodyParameters {
1286
1398
  Connection: Parameters.Connection;
@@ -1332,5 +1444,8 @@ declare namespace Paths {
1332
1444
  namespace Parameters {
1333
1445
  export type TransactionList = bkper.TransactionList;
1334
1446
  }
1447
+ namespace Responses {
1448
+ export type $200 = bkper.TransactionList;
1449
+ }
1335
1450
  }
1336
1451
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bkper/bkper-api-types",
3
- "version": "5.9.0",
3
+ "version": "5.11.0",
4
4
  "description": "Typescript definitions for Bkper REST API",
5
5
  "homepage": "https://api.bkper.com",
6
6
  "repository": {