@bkper/bkper-api-types 5.3.0 → 5.4.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/index.d.ts +207 -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,34 @@ 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
|
+
error?: string;
|
|
445
|
+
id?: string;
|
|
446
|
+
logo?: string;
|
|
447
|
+
name?: string;
|
|
448
|
+
properties?: {
|
|
449
|
+
[name: string]: string;
|
|
450
|
+
};
|
|
451
|
+
status?: "CONNECTED" | "DISCONNECTED";
|
|
452
|
+
userId?: string;
|
|
453
|
+
uuid?: string;
|
|
454
|
+
}
|
|
455
|
+
export interface ConnectionList {
|
|
456
|
+
/**
|
|
457
|
+
* List items
|
|
458
|
+
*/
|
|
459
|
+
items?: Connection[];
|
|
460
|
+
}
|
|
417
461
|
export interface Event {
|
|
418
462
|
agent?: Agent;
|
|
419
463
|
book?: Book;
|
|
@@ -437,7 +481,7 @@ declare namespace bkper {
|
|
|
437
481
|
/**
|
|
438
482
|
* The type of the Event
|
|
439
483
|
*/
|
|
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";
|
|
484
|
+
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
485
|
user?: User;
|
|
442
486
|
}
|
|
443
487
|
export interface EventData {
|
|
@@ -575,6 +619,35 @@ declare namespace bkper {
|
|
|
575
619
|
*/
|
|
576
620
|
items?: Group[];
|
|
577
621
|
}
|
|
622
|
+
export interface Integration {
|
|
623
|
+
addedBy?: string;
|
|
624
|
+
/**
|
|
625
|
+
* The id of agent that created the resource
|
|
626
|
+
*/
|
|
627
|
+
agentId?: string;
|
|
628
|
+
bookId?: string;
|
|
629
|
+
connectionId?: string;
|
|
630
|
+
/**
|
|
631
|
+
* The creation timestamp, in milliseconds
|
|
632
|
+
*/
|
|
633
|
+
createdAt?: string;
|
|
634
|
+
dateAddedMs?: string;
|
|
635
|
+
id?: string;
|
|
636
|
+
lastUpdateMs?: string;
|
|
637
|
+
logo?: string;
|
|
638
|
+
name?: string;
|
|
639
|
+
normalizedName?: string;
|
|
640
|
+
properties?: {
|
|
641
|
+
[name: string]: string;
|
|
642
|
+
};
|
|
643
|
+
userId?: string;
|
|
644
|
+
}
|
|
645
|
+
export interface IntegrationList {
|
|
646
|
+
/**
|
|
647
|
+
* List items
|
|
648
|
+
*/
|
|
649
|
+
items?: Integration[];
|
|
650
|
+
}
|
|
578
651
|
export interface Query {
|
|
579
652
|
/**
|
|
580
653
|
* The id of agent that created the resource
|
|
@@ -694,15 +767,58 @@ declare namespace bkper {
|
|
|
694
767
|
accounts?: Account[];
|
|
695
768
|
transaction?: Transaction;
|
|
696
769
|
}
|
|
770
|
+
export interface Url {
|
|
771
|
+
url?: string;
|
|
772
|
+
}
|
|
697
773
|
export interface User {
|
|
698
774
|
/**
|
|
699
775
|
* The user public avatar url
|
|
700
776
|
*/
|
|
701
777
|
avatarUrl?: string;
|
|
778
|
+
/**
|
|
779
|
+
* True if billing is enabled for the user
|
|
780
|
+
*/
|
|
781
|
+
billingEnabled?: boolean;
|
|
782
|
+
/**
|
|
783
|
+
* How many days left in trial
|
|
784
|
+
*/
|
|
785
|
+
daysLeftInTrial?: number; // int32
|
|
786
|
+
/**
|
|
787
|
+
* The user email
|
|
788
|
+
*/
|
|
789
|
+
email?: string;
|
|
790
|
+
/**
|
|
791
|
+
* True if user is in the free plan
|
|
792
|
+
*/
|
|
793
|
+
free?: boolean;
|
|
794
|
+
/**
|
|
795
|
+
* The user full name
|
|
796
|
+
*/
|
|
797
|
+
fullName?: string;
|
|
798
|
+
/**
|
|
799
|
+
* The user given name
|
|
800
|
+
*/
|
|
801
|
+
givenName?: string;
|
|
802
|
+
/**
|
|
803
|
+
* The user hash
|
|
804
|
+
*/
|
|
805
|
+
hash?: string;
|
|
806
|
+
/**
|
|
807
|
+
* The user hosted domain
|
|
808
|
+
*/
|
|
809
|
+
hostedDomain?: string;
|
|
810
|
+
/**
|
|
811
|
+
* The user unique id
|
|
812
|
+
*/
|
|
813
|
+
id?: string;
|
|
702
814
|
/**
|
|
703
815
|
* The user display name
|
|
704
816
|
*/
|
|
705
817
|
name?: string;
|
|
818
|
+
/**
|
|
819
|
+
* True if user started trial
|
|
820
|
+
*/
|
|
821
|
+
startedTrial?: boolean;
|
|
706
822
|
/**
|
|
707
823
|
* The Bkper username of the user
|
|
708
824
|
*/
|
|
@@ -773,6 +889,17 @@ declare namespace Paths {
|
|
|
773
889
|
export type $200 = bkper.App;
|
|
774
890
|
}
|
|
775
891
|
}
|
|
892
|
+
namespace BkperV5CreateConnection {
|
|
893
|
+
export interface BodyParameters {
|
|
894
|
+
Connection: Parameters.Connection;
|
|
895
|
+
}
|
|
896
|
+
namespace Parameters {
|
|
897
|
+
export type Connection = bkper.Connection;
|
|
898
|
+
}
|
|
899
|
+
namespace Responses {
|
|
900
|
+
export type $200 = bkper.Connection;
|
|
901
|
+
}
|
|
902
|
+
}
|
|
776
903
|
namespace BkperV5CreateFile {
|
|
777
904
|
export interface BodyParameters {
|
|
778
905
|
File: Parameters.File;
|
|
@@ -806,6 +933,17 @@ declare namespace Paths {
|
|
|
806
933
|
export type $200 = bkper.GroupList;
|
|
807
934
|
}
|
|
808
935
|
}
|
|
936
|
+
namespace BkperV5CreateIntegration {
|
|
937
|
+
export interface BodyParameters {
|
|
938
|
+
Integration: Parameters.Integration;
|
|
939
|
+
}
|
|
940
|
+
namespace Parameters {
|
|
941
|
+
export type Integration = bkper.Integration;
|
|
942
|
+
}
|
|
943
|
+
namespace Responses {
|
|
944
|
+
export type $200 = bkper.Integration;
|
|
945
|
+
}
|
|
946
|
+
}
|
|
809
947
|
namespace BkperV5CreateTransaction {
|
|
810
948
|
export interface BodyParameters {
|
|
811
949
|
Transaction: Parameters.Transaction;
|
|
@@ -833,21 +971,41 @@ declare namespace Paths {
|
|
|
833
971
|
export type $200 = bkper.Account;
|
|
834
972
|
}
|
|
835
973
|
}
|
|
974
|
+
namespace BkperV5DeleteConnection {
|
|
975
|
+
namespace Responses {
|
|
976
|
+
export type $200 = bkper.Connection;
|
|
977
|
+
}
|
|
978
|
+
}
|
|
836
979
|
namespace BkperV5DeleteGroup {
|
|
837
980
|
namespace Responses {
|
|
838
981
|
export type $200 = bkper.Group;
|
|
839
982
|
}
|
|
840
983
|
}
|
|
984
|
+
namespace BkperV5DeleteIntegration {
|
|
985
|
+
namespace Responses {
|
|
986
|
+
export type $200 = bkper.Integration;
|
|
987
|
+
}
|
|
988
|
+
}
|
|
841
989
|
namespace BkperV5GetAccount {
|
|
842
990
|
namespace Responses {
|
|
843
991
|
export type $200 = bkper.Account;
|
|
844
992
|
}
|
|
845
993
|
}
|
|
994
|
+
namespace BkperV5GetApp {
|
|
995
|
+
namespace Responses {
|
|
996
|
+
export type $200 = bkper.App;
|
|
997
|
+
}
|
|
998
|
+
}
|
|
846
999
|
namespace BkperV5GetBalances {
|
|
847
1000
|
namespace Responses {
|
|
848
1001
|
export type $200 = bkper.Balances;
|
|
849
1002
|
}
|
|
850
1003
|
}
|
|
1004
|
+
namespace BkperV5GetBillingPortal {
|
|
1005
|
+
namespace Responses {
|
|
1006
|
+
export type $200 = bkper.Url;
|
|
1007
|
+
}
|
|
1008
|
+
}
|
|
851
1009
|
namespace BkperV5GetBook {
|
|
852
1010
|
namespace Responses {
|
|
853
1011
|
export type $200 = bkper.Book;
|
|
@@ -868,6 +1026,16 @@ declare namespace Paths {
|
|
|
868
1026
|
export type $200 = bkper.Transaction;
|
|
869
1027
|
}
|
|
870
1028
|
}
|
|
1029
|
+
namespace BkperV5GetUser {
|
|
1030
|
+
namespace Responses {
|
|
1031
|
+
export type $200 = bkper.User;
|
|
1032
|
+
}
|
|
1033
|
+
}
|
|
1034
|
+
namespace BkperV5GetUserCredentials {
|
|
1035
|
+
namespace Responses {
|
|
1036
|
+
export type $200 = bkper.Connection;
|
|
1037
|
+
}
|
|
1038
|
+
}
|
|
871
1039
|
namespace BkperV5ListAccountGroups {
|
|
872
1040
|
namespace Responses {
|
|
873
1041
|
export type $200 = bkper.GroupList;
|
|
@@ -878,6 +1046,11 @@ declare namespace Paths {
|
|
|
878
1046
|
export type $200 = bkper.AccountList;
|
|
879
1047
|
}
|
|
880
1048
|
}
|
|
1049
|
+
namespace BkperV5ListApps {
|
|
1050
|
+
namespace Responses {
|
|
1051
|
+
export type $200 = bkper.AppList;
|
|
1052
|
+
}
|
|
1053
|
+
}
|
|
881
1054
|
namespace BkperV5ListBookApps {
|
|
882
1055
|
namespace Responses {
|
|
883
1056
|
export type $200 = bkper.AppList;
|
|
@@ -888,6 +1061,11 @@ declare namespace Paths {
|
|
|
888
1061
|
export type $200 = bkper.BookList;
|
|
889
1062
|
}
|
|
890
1063
|
}
|
|
1064
|
+
namespace BkperV5ListConnections {
|
|
1065
|
+
namespace Responses {
|
|
1066
|
+
export type $200 = bkper.ConnectionList;
|
|
1067
|
+
}
|
|
1068
|
+
}
|
|
891
1069
|
namespace BkperV5ListEvents {
|
|
892
1070
|
namespace Responses {
|
|
893
1071
|
export type $200 = bkper.EventList;
|
|
@@ -903,6 +1081,11 @@ declare namespace Paths {
|
|
|
903
1081
|
export type $200 = bkper.GroupList;
|
|
904
1082
|
}
|
|
905
1083
|
}
|
|
1084
|
+
namespace BkperV5ListIntegrations {
|
|
1085
|
+
namespace Responses {
|
|
1086
|
+
export type $200 = bkper.IntegrationList;
|
|
1087
|
+
}
|
|
1088
|
+
}
|
|
906
1089
|
namespace BkperV5ListQueries {
|
|
907
1090
|
namespace Responses {
|
|
908
1091
|
export type $200 = bkper.QueryList;
|
|
@@ -1044,6 +1227,17 @@ declare namespace Paths {
|
|
|
1044
1227
|
export type $200 = bkper.Book;
|
|
1045
1228
|
}
|
|
1046
1229
|
}
|
|
1230
|
+
namespace BkperV5UpdateConnection {
|
|
1231
|
+
export interface BodyParameters {
|
|
1232
|
+
Connection: Parameters.Connection;
|
|
1233
|
+
}
|
|
1234
|
+
namespace Parameters {
|
|
1235
|
+
export type Connection = bkper.Connection;
|
|
1236
|
+
}
|
|
1237
|
+
namespace Responses {
|
|
1238
|
+
export type $200 = bkper.Connection;
|
|
1239
|
+
}
|
|
1240
|
+
}
|
|
1047
1241
|
namespace BkperV5UpdateGroup {
|
|
1048
1242
|
export interface BodyParameters {
|
|
1049
1243
|
Group: Parameters.Group;
|
|
@@ -1055,6 +1249,17 @@ declare namespace Paths {
|
|
|
1055
1249
|
export type $200 = bkper.Group;
|
|
1056
1250
|
}
|
|
1057
1251
|
}
|
|
1252
|
+
namespace BkperV5UpdateIntegration {
|
|
1253
|
+
export interface BodyParameters {
|
|
1254
|
+
Integration: Parameters.Integration;
|
|
1255
|
+
}
|
|
1256
|
+
namespace Parameters {
|
|
1257
|
+
export type Integration = bkper.Integration;
|
|
1258
|
+
}
|
|
1259
|
+
namespace Responses {
|
|
1260
|
+
export type $200 = bkper.Integration;
|
|
1261
|
+
}
|
|
1262
|
+
}
|
|
1058
1263
|
namespace BkperV5UpdateTransaction {
|
|
1059
1264
|
export interface BodyParameters {
|
|
1060
1265
|
Transaction: Parameters.Transaction;
|