@bkper/bkper-api-types 5.3.0 → 5.5.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 +211 -2
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -112,6 +112,10 @@ declare namespace bkper {
112
112
  * The Google OAuth Client Secret
113
113
  */
114
114
  clientSecret?: string;
115
+ /**
116
+ * Tell if this app is connectable by a user
117
+ */
118
+ connectable?: boolean;
115
119
  /**
116
120
  * The executable Google Apps Script deployment ID
117
121
  */
@@ -131,7 +135,7 @@ declare namespace bkper {
131
135
  /**
132
136
  * Event types the App listen to
133
137
  */
134
- events?: ("FILE_CREATED" | "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" | "BOOK_UPDATED" | "BOOK_DELETED")[];
138
+ events?: ("FILE_CREATED" | "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_UPDATED" | "BOOK_DELETED")[];
135
139
  /**
136
140
  * File patters the App handles - wildcard accepted - E.g *.pdf *-bank.csv
137
141
  */
@@ -140,6 +144,10 @@ declare namespace bkper {
140
144
  * The unique agent id of the App - this can't be changed after created
141
145
  */
142
146
  id?: string;
147
+ /**
148
+ * Tell if this app is installable in a book
149
+ */
150
+ installable?: boolean;
143
151
  /**
144
152
  * The App logo url
145
153
  */
@@ -168,6 +176,10 @@ declare namespace bkper {
168
176
  * The App name
169
177
  */
170
178
  name?: string;
179
+ /**
180
+ * The owner email
181
+ */
182
+ ownerEmail?: string;
171
183
  /**
172
184
  * The owner company logo url
173
185
  */
@@ -181,6 +193,10 @@ declare namespace bkper {
181
193
  */
182
194
  ownerWebsite?: string;
183
195
  propertiesSchema?: AppPropertiesSchema;
196
+ /**
197
+ * Tell if this app already published
198
+ */
199
+ published?: boolean;
184
200
  /**
185
201
  * The readme.md file as string
186
202
  */
@@ -414,6 +430,33 @@ declare namespace bkper {
414
430
  */
415
431
  ownerUsername?: string;
416
432
  }
433
+ export interface Connection {
434
+ /**
435
+ * The id of agent that created the resource
436
+ */
437
+ agentId?: string;
438
+ /**
439
+ * The creation timestamp, in milliseconds
440
+ */
441
+ createdAt?: string;
442
+ dateAddedMs?: string;
443
+ email?: string;
444
+ id?: string;
445
+ logo?: string;
446
+ name?: string;
447
+ properties?: {
448
+ [name: string]: string;
449
+ };
450
+ type?: "APP" | "BANK";
451
+ userId?: string;
452
+ uuid?: string;
453
+ }
454
+ export interface ConnectionList {
455
+ /**
456
+ * List items
457
+ */
458
+ items?: Connection[];
459
+ }
417
460
  export interface Event {
418
461
  agent?: Agent;
419
462
  book?: Book;
@@ -437,7 +480,7 @@ declare namespace bkper {
437
480
  /**
438
481
  * The type of the Event
439
482
  */
440
- type?: "FILE_CREATED" | "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" | "BOOK_UPDATED" | "BOOK_DELETED";
483
+ type?: "FILE_CREATED" | "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_UPDATED" | "BOOK_DELETED";
441
484
  user?: User;
442
485
  }
443
486
  export interface EventData {
@@ -575,6 +618,35 @@ declare namespace bkper {
575
618
  */
576
619
  items?: Group[];
577
620
  }
621
+ export interface Integration {
622
+ addedBy?: string;
623
+ /**
624
+ * The id of agent that created the resource
625
+ */
626
+ agentId?: string;
627
+ bookId?: string;
628
+ connectionId?: string;
629
+ /**
630
+ * The creation timestamp, in milliseconds
631
+ */
632
+ createdAt?: string;
633
+ dateAddedMs?: string;
634
+ id?: string;
635
+ lastUpdateMs?: string;
636
+ logo?: string;
637
+ name?: string;
638
+ normalizedName?: string;
639
+ properties?: {
640
+ [name: string]: string;
641
+ };
642
+ userId?: string;
643
+ }
644
+ export interface IntegrationList {
645
+ /**
646
+ * List items
647
+ */
648
+ items?: Integration[];
649
+ }
578
650
  export interface Query {
579
651
  /**
580
652
  * The id of agent that created the resource
@@ -694,15 +766,58 @@ declare namespace bkper {
694
766
  accounts?: Account[];
695
767
  transaction?: Transaction;
696
768
  }
769
+ export interface Url {
770
+ url?: string;
771
+ }
697
772
  export interface User {
698
773
  /**
699
774
  * The user public avatar url
700
775
  */
701
776
  avatarUrl?: string;
777
+ /**
778
+ * True if billing is enabled for the user
779
+ */
780
+ billingEnabled?: boolean;
781
+ /**
782
+ * How many days left in trial
783
+ */
784
+ daysLeftInTrial?: number; // int32
785
+ /**
786
+ * The user email
787
+ */
788
+ email?: string;
789
+ /**
790
+ * True if user is in the free plan
791
+ */
792
+ free?: boolean;
793
+ /**
794
+ * The user full name
795
+ */
796
+ fullName?: string;
797
+ /**
798
+ * The user given name
799
+ */
800
+ givenName?: string;
801
+ /**
802
+ * The user hash
803
+ */
804
+ hash?: string;
805
+ /**
806
+ * The user hosted domain
807
+ */
808
+ hostedDomain?: string;
809
+ /**
810
+ * The user unique id
811
+ */
812
+ id?: string;
702
813
  /**
703
814
  * The user display name
704
815
  */
705
816
  name?: string;
817
+ /**
818
+ * True if user started trial
819
+ */
820
+ startedTrial?: boolean;
706
821
  /**
707
822
  * The Bkper username of the user
708
823
  */
@@ -773,6 +888,17 @@ declare namespace Paths {
773
888
  export type $200 = bkper.App;
774
889
  }
775
890
  }
891
+ namespace BkperV5CreateConnection {
892
+ export interface BodyParameters {
893
+ Connection: Parameters.Connection;
894
+ }
895
+ namespace Parameters {
896
+ export type Connection = bkper.Connection;
897
+ }
898
+ namespace Responses {
899
+ export type $200 = bkper.Connection;
900
+ }
901
+ }
776
902
  namespace BkperV5CreateFile {
777
903
  export interface BodyParameters {
778
904
  File: Parameters.File;
@@ -806,6 +932,17 @@ declare namespace Paths {
806
932
  export type $200 = bkper.GroupList;
807
933
  }
808
934
  }
935
+ namespace BkperV5CreateIntegration {
936
+ export interface BodyParameters {
937
+ Integration: Parameters.Integration;
938
+ }
939
+ namespace Parameters {
940
+ export type Integration = bkper.Integration;
941
+ }
942
+ namespace Responses {
943
+ export type $200 = bkper.Integration;
944
+ }
945
+ }
809
946
  namespace BkperV5CreateTransaction {
810
947
  export interface BodyParameters {
811
948
  Transaction: Parameters.Transaction;
@@ -833,26 +970,51 @@ declare namespace Paths {
833
970
  export type $200 = bkper.Account;
834
971
  }
835
972
  }
973
+ namespace BkperV5DeleteConnection {
974
+ namespace Responses {
975
+ export type $200 = bkper.Connection;
976
+ }
977
+ }
836
978
  namespace BkperV5DeleteGroup {
837
979
  namespace Responses {
838
980
  export type $200 = bkper.Group;
839
981
  }
840
982
  }
983
+ namespace BkperV5DeleteIntegration {
984
+ namespace Responses {
985
+ export type $200 = bkper.Integration;
986
+ }
987
+ }
841
988
  namespace BkperV5GetAccount {
842
989
  namespace Responses {
843
990
  export type $200 = bkper.Account;
844
991
  }
845
992
  }
993
+ namespace BkperV5GetApp {
994
+ namespace Responses {
995
+ export type $200 = bkper.App;
996
+ }
997
+ }
846
998
  namespace BkperV5GetBalances {
847
999
  namespace Responses {
848
1000
  export type $200 = bkper.Balances;
849
1001
  }
850
1002
  }
1003
+ namespace BkperV5GetBillingPortal {
1004
+ namespace Responses {
1005
+ export type $200 = bkper.Url;
1006
+ }
1007
+ }
851
1008
  namespace BkperV5GetBook {
852
1009
  namespace Responses {
853
1010
  export type $200 = bkper.Book;
854
1011
  }
855
1012
  }
1013
+ namespace BkperV5GetConnection {
1014
+ namespace Responses {
1015
+ export type $200 = bkper.Connection;
1016
+ }
1017
+ }
856
1018
  namespace BkperV5GetFile {
857
1019
  namespace Responses {
858
1020
  export type $200 = bkper.File;
@@ -868,6 +1030,11 @@ declare namespace Paths {
868
1030
  export type $200 = bkper.Transaction;
869
1031
  }
870
1032
  }
1033
+ namespace BkperV5GetUser {
1034
+ namespace Responses {
1035
+ export type $200 = bkper.User;
1036
+ }
1037
+ }
871
1038
  namespace BkperV5ListAccountGroups {
872
1039
  namespace Responses {
873
1040
  export type $200 = bkper.GroupList;
@@ -878,6 +1045,11 @@ declare namespace Paths {
878
1045
  export type $200 = bkper.AccountList;
879
1046
  }
880
1047
  }
1048
+ namespace BkperV5ListApps {
1049
+ namespace Responses {
1050
+ export type $200 = bkper.AppList;
1051
+ }
1052
+ }
881
1053
  namespace BkperV5ListBookApps {
882
1054
  namespace Responses {
883
1055
  export type $200 = bkper.AppList;
@@ -888,6 +1060,16 @@ declare namespace Paths {
888
1060
  export type $200 = bkper.BookList;
889
1061
  }
890
1062
  }
1063
+ namespace BkperV5ListConnectionIntegrations {
1064
+ namespace Responses {
1065
+ export type $200 = bkper.IntegrationList;
1066
+ }
1067
+ }
1068
+ namespace BkperV5ListConnections {
1069
+ namespace Responses {
1070
+ export type $200 = bkper.ConnectionList;
1071
+ }
1072
+ }
891
1073
  namespace BkperV5ListEvents {
892
1074
  namespace Responses {
893
1075
  export type $200 = bkper.EventList;
@@ -903,6 +1085,11 @@ declare namespace Paths {
903
1085
  export type $200 = bkper.GroupList;
904
1086
  }
905
1087
  }
1088
+ namespace BkperV5ListIntegrations {
1089
+ namespace Responses {
1090
+ export type $200 = bkper.IntegrationList;
1091
+ }
1092
+ }
906
1093
  namespace BkperV5ListQueries {
907
1094
  namespace Responses {
908
1095
  export type $200 = bkper.QueryList;
@@ -1044,6 +1231,17 @@ declare namespace Paths {
1044
1231
  export type $200 = bkper.Book;
1045
1232
  }
1046
1233
  }
1234
+ namespace BkperV5UpdateConnection {
1235
+ export interface BodyParameters {
1236
+ Connection: Parameters.Connection;
1237
+ }
1238
+ namespace Parameters {
1239
+ export type Connection = bkper.Connection;
1240
+ }
1241
+ namespace Responses {
1242
+ export type $200 = bkper.Connection;
1243
+ }
1244
+ }
1047
1245
  namespace BkperV5UpdateGroup {
1048
1246
  export interface BodyParameters {
1049
1247
  Group: Parameters.Group;
@@ -1055,6 +1253,17 @@ declare namespace Paths {
1055
1253
  export type $200 = bkper.Group;
1056
1254
  }
1057
1255
  }
1256
+ namespace BkperV5UpdateIntegration {
1257
+ export interface BodyParameters {
1258
+ Integration: Parameters.Integration;
1259
+ }
1260
+ namespace Parameters {
1261
+ export type Integration = bkper.Integration;
1262
+ }
1263
+ namespace Responses {
1264
+ export type $200 = bkper.Integration;
1265
+ }
1266
+ }
1058
1267
  namespace BkperV5UpdateTransaction {
1059
1268
  export interface BodyParameters {
1060
1269
  Transaction: Parameters.Transaction;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bkper/bkper-api-types",
3
- "version": "5.3.0",
3
+ "version": "5.5.0",
4
4
  "description": "Typescript definitions for Bkper REST API",
5
5
  "homepage": "https://api.bkper.com",
6
6
  "repository": {