@firela/api-types 0.0.0-canary.209967 → 0.0.0-canary.7cd70834
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/dist/index.d.mts +101 -461
- package/dist/index.d.ts +101 -461
- package/dist/index.js +23 -73
- package/dist/index.mjs +23 -73
- package/package.json +1 -6
- package/src/generated/schemas.gen.ts +33 -8
- package/src/generated/services.gen.ts +148 -497
- package/src/generated/types.gen.ts +87 -453
package/dist/index.js
CHANGED
|
@@ -632,8 +632,9 @@ var BeanAccountsService = class {
|
|
|
632
632
|
};
|
|
633
633
|
var BeanTransactionsService = class {
|
|
634
634
|
/**
|
|
635
|
-
*
|
|
636
|
-
*
|
|
635
|
+
* @deprecated
|
|
636
|
+
* Create transaction (DEPRECATED)
|
|
637
|
+
* DEPRECATED: Use POST /:region/bean/import/provider/:name/sync instead. This endpoint skips dedup, rule matching, and review branching.
|
|
637
638
|
* @param data The data for the request.
|
|
638
639
|
* @param data.region Region code for tenant context
|
|
639
640
|
* @param data.requestBody Transaction data with postings
|
|
@@ -780,7 +781,6 @@ var BeanBalancesService = class {
|
|
|
780
781
|
* Calculate account balance at a specific date for a single currency
|
|
781
782
|
* @param data The data for the request.
|
|
782
783
|
* @param data.account Account name (e.g., "Assets:Bank:Checking")
|
|
783
|
-
* @param data.region Region code (cn, us, de)
|
|
784
784
|
* @param data.date Date to calculate balance at (ISO 8601 format)
|
|
785
785
|
* @param data.currency Currency to query (e.g., "USD", "CNY")
|
|
786
786
|
* @returns BalanceResponseDto Balance calculated successfully
|
|
@@ -790,9 +790,6 @@ var BeanBalancesService = class {
|
|
|
790
790
|
return request(OpenAPI, {
|
|
791
791
|
method: "GET",
|
|
792
792
|
url: "/api/v1/{region}/bean/balances",
|
|
793
|
-
path: {
|
|
794
|
-
region: data.region
|
|
795
|
-
},
|
|
796
793
|
query: {
|
|
797
794
|
account: data.account,
|
|
798
795
|
date: data.date,
|
|
@@ -807,18 +804,13 @@ var BeanBalancesService = class {
|
|
|
807
804
|
/**
|
|
808
805
|
* Query multi-currency account balance
|
|
809
806
|
* Calculate account balances for all currencies at a specific date
|
|
810
|
-
* @param data The data for the request.
|
|
811
|
-
* @param data.region Region code (cn, us, de)
|
|
812
807
|
* @returns MultiCurrencyBalanceResponseDto Balances calculated successfully
|
|
813
808
|
* @throws ApiError
|
|
814
809
|
*/
|
|
815
|
-
static balanceControllerGetMultiCurrencyBalance(
|
|
810
|
+
static balanceControllerGetMultiCurrencyBalance() {
|
|
816
811
|
return request(OpenAPI, {
|
|
817
812
|
method: "GET",
|
|
818
813
|
url: "/api/v1/{region}/bean/balances/multi-currency",
|
|
819
|
-
path: {
|
|
820
|
-
region: data.region
|
|
821
|
-
},
|
|
822
814
|
errors: {
|
|
823
815
|
400: "Invalid query parameters",
|
|
824
816
|
401: "User not authenticated"
|
|
@@ -829,7 +821,7 @@ var BeanBalancesService = class {
|
|
|
829
821
|
var BeanCommoditiesService = class {
|
|
830
822
|
/**
|
|
831
823
|
* @param data The data for the request.
|
|
832
|
-
* @param data.region Region code
|
|
824
|
+
* @param data.region Region code for tenant context
|
|
833
825
|
* @returns unknown
|
|
834
826
|
* @throws ApiError
|
|
835
827
|
*/
|
|
@@ -846,7 +838,7 @@ var BeanCommoditiesService = class {
|
|
|
846
838
|
* List user commodities
|
|
847
839
|
* Returns all commodity definitions for the authenticated user with optional filtering
|
|
848
840
|
* @param data The data for the request.
|
|
849
|
-
* @param data.region Region code
|
|
841
|
+
* @param data.region Region code for tenant context
|
|
850
842
|
* @param data.search Search term for symbol or metadata fields (partial match). Searches symbol and metadata.name.
|
|
851
843
|
* @param data.symbol Filter by exact symbol match
|
|
852
844
|
* @returns CommodityListResponseDto Commodities retrieved successfully
|
|
@@ -870,7 +862,7 @@ var BeanCommoditiesService = class {
|
|
|
870
862
|
* Returns a specific commodity definition by its symbol
|
|
871
863
|
* @param data The data for the request.
|
|
872
864
|
* @param data.symbol Commodity symbol
|
|
873
|
-
* @param data.region Region code
|
|
865
|
+
* @param data.region Region code for tenant context
|
|
874
866
|
* @returns CommodityResponseDto Commodity retrieved successfully
|
|
875
867
|
* @throws ApiError
|
|
876
868
|
*/
|
|
@@ -889,7 +881,7 @@ var BeanCommoditiesService = class {
|
|
|
889
881
|
}
|
|
890
882
|
/**
|
|
891
883
|
* @param data The data for the request.
|
|
892
|
-
* @param data.region Region code
|
|
884
|
+
* @param data.region Region code for tenant context
|
|
893
885
|
* @returns unknown
|
|
894
886
|
* @throws ApiError
|
|
895
887
|
*/
|
|
@@ -904,7 +896,7 @@ var BeanCommoditiesService = class {
|
|
|
904
896
|
}
|
|
905
897
|
/**
|
|
906
898
|
* @param data The data for the request.
|
|
907
|
-
* @param data.region Region code
|
|
899
|
+
* @param data.region Region code for tenant context
|
|
908
900
|
* @returns void
|
|
909
901
|
* @throws ApiError
|
|
910
902
|
*/
|
|
@@ -919,7 +911,7 @@ var BeanCommoditiesService = class {
|
|
|
919
911
|
}
|
|
920
912
|
/**
|
|
921
913
|
* @param data The data for the request.
|
|
922
|
-
* @param data.region Region code
|
|
914
|
+
* @param data.region Region code for tenant context
|
|
923
915
|
* @returns unknown
|
|
924
916
|
* @throws ApiError
|
|
925
917
|
*/
|
|
@@ -934,7 +926,7 @@ var BeanCommoditiesService = class {
|
|
|
934
926
|
}
|
|
935
927
|
/**
|
|
936
928
|
* @param data The data for the request.
|
|
937
|
-
* @param data.region Region code
|
|
929
|
+
* @param data.region Region code for tenant context
|
|
938
930
|
* @returns unknown
|
|
939
931
|
* @throws ApiError
|
|
940
932
|
*/
|
|
@@ -962,6 +954,7 @@ var ProviderSyncService = class {
|
|
|
962
954
|
* - **simplefin**: SimpleFIN (Self-hosted)
|
|
963
955
|
* - **yodlee**: Yodlee (Global)
|
|
964
956
|
* - **beancount-direct**: Beancount format transactions
|
|
957
|
+
* - **parsed-bill**: Client-side parsed bill transactions
|
|
965
958
|
*
|
|
966
959
|
* **Processing Flow:**
|
|
967
960
|
* 1. Transform raw data via provider adapter
|
|
@@ -998,18 +991,13 @@ var ProviderSyncService = class {
|
|
|
998
991
|
/**
|
|
999
992
|
* Get supported providers
|
|
1000
993
|
* Returns a list of all providers supported by the sync endpoint.
|
|
1001
|
-
* @param data The data for the request.
|
|
1002
|
-
* @param data.region Region code (cn, us, de)
|
|
1003
994
|
* @returns SupportedProvidersResponseDto List of supported providers
|
|
1004
995
|
* @throws ApiError
|
|
1005
996
|
*/
|
|
1006
|
-
static providerSyncControllerGetSupportedProviders(
|
|
997
|
+
static providerSyncControllerGetSupportedProviders() {
|
|
1007
998
|
return request(OpenAPI, {
|
|
1008
999
|
method: "GET",
|
|
1009
1000
|
url: "/api/v1/{region}/bean/import/provider/supported",
|
|
1010
|
-
path: {
|
|
1011
|
-
region: data.region
|
|
1012
|
-
},
|
|
1013
1001
|
errors: {
|
|
1014
1002
|
401: "Missing or invalid authentication"
|
|
1015
1003
|
}
|
|
@@ -1020,7 +1008,6 @@ var ProviderSyncService = class {
|
|
|
1020
1008
|
* Returns whether a specific provider is supported.
|
|
1021
1009
|
* @param data The data for the request.
|
|
1022
1010
|
* @param data.providerName Provider name to check
|
|
1023
|
-
* @param data.region Region code (cn, us, de)
|
|
1024
1011
|
* @returns unknown Provider support status
|
|
1025
1012
|
* @throws ApiError
|
|
1026
1013
|
*/
|
|
@@ -1029,8 +1016,7 @@ var ProviderSyncService = class {
|
|
|
1029
1016
|
method: "GET",
|
|
1030
1017
|
url: "/api/v1/{region}/bean/import/provider/{providerName}/supported",
|
|
1031
1018
|
path: {
|
|
1032
|
-
providerName: data.providerName
|
|
1033
|
-
region: data.region
|
|
1019
|
+
providerName: data.providerName
|
|
1034
1020
|
},
|
|
1035
1021
|
errors: {
|
|
1036
1022
|
401: "Missing or invalid authentication"
|
|
@@ -1041,18 +1027,13 @@ var ProviderSyncService = class {
|
|
|
1041
1027
|
var HealthService = class {
|
|
1042
1028
|
/**
|
|
1043
1029
|
* Basic health check for K8s/load balancer probes
|
|
1044
|
-
* @param data The data for the request.
|
|
1045
|
-
* @param data.region Region code (cn, us, de)
|
|
1046
1030
|
* @returns unknown Service is healthy
|
|
1047
1031
|
* @throws ApiError
|
|
1048
1032
|
*/
|
|
1049
|
-
static healthControllerGetHealth(
|
|
1033
|
+
static healthControllerGetHealth() {
|
|
1050
1034
|
return request(OpenAPI, {
|
|
1051
1035
|
method: "GET",
|
|
1052
1036
|
url: "/api/v1/health",
|
|
1053
|
-
path: {
|
|
1054
|
-
region: data.region
|
|
1055
|
-
},
|
|
1056
1037
|
errors: {
|
|
1057
1038
|
503: "Service unavailable"
|
|
1058
1039
|
}
|
|
@@ -1060,18 +1041,13 @@ var HealthService = class {
|
|
|
1060
1041
|
}
|
|
1061
1042
|
/**
|
|
1062
1043
|
* Check database connection health
|
|
1063
|
-
* @param data The data for the request.
|
|
1064
|
-
* @param data.region Region code (cn, us, de)
|
|
1065
1044
|
* @returns unknown Database is healthy
|
|
1066
1045
|
* @throws ApiError
|
|
1067
1046
|
*/
|
|
1068
|
-
static healthControllerCheckDatabase(
|
|
1047
|
+
static healthControllerCheckDatabase() {
|
|
1069
1048
|
return request(OpenAPI, {
|
|
1070
1049
|
method: "GET",
|
|
1071
1050
|
url: "/api/v1/health/database",
|
|
1072
|
-
path: {
|
|
1073
|
-
region: data.region
|
|
1074
|
-
},
|
|
1075
1051
|
errors: {
|
|
1076
1052
|
503: "Database unavailable"
|
|
1077
1053
|
}
|
|
@@ -1079,18 +1055,13 @@ var HealthService = class {
|
|
|
1079
1055
|
}
|
|
1080
1056
|
/**
|
|
1081
1057
|
* Check Redis connection health
|
|
1082
|
-
* @param data The data for the request.
|
|
1083
|
-
* @param data.region Region code (cn, us, de)
|
|
1084
1058
|
* @returns unknown Redis is healthy
|
|
1085
1059
|
* @throws ApiError
|
|
1086
1060
|
*/
|
|
1087
|
-
static healthControllerCheckRedis(
|
|
1061
|
+
static healthControllerCheckRedis() {
|
|
1088
1062
|
return request(OpenAPI, {
|
|
1089
1063
|
method: "GET",
|
|
1090
1064
|
url: "/api/v1/health/redis",
|
|
1091
|
-
path: {
|
|
1092
|
-
region: data.region
|
|
1093
|
-
},
|
|
1094
1065
|
errors: {
|
|
1095
1066
|
503: "Redis unavailable"
|
|
1096
1067
|
}
|
|
@@ -1098,18 +1069,13 @@ var HealthService = class {
|
|
|
1098
1069
|
}
|
|
1099
1070
|
/**
|
|
1100
1071
|
* Get status of all circuit breakers
|
|
1101
|
-
* @param data The data for the request.
|
|
1102
|
-
* @param data.region Region code (cn, us, de)
|
|
1103
1072
|
* @returns unknown Circuit breaker status
|
|
1104
1073
|
* @throws ApiError
|
|
1105
1074
|
*/
|
|
1106
|
-
static healthControllerGetCircuitBreakersHealth(
|
|
1075
|
+
static healthControllerGetCircuitBreakersHealth() {
|
|
1107
1076
|
return request(OpenAPI, {
|
|
1108
1077
|
method: "GET",
|
|
1109
1078
|
url: "/api/v1/health/circuit-breakers",
|
|
1110
|
-
path: {
|
|
1111
|
-
region: data.region
|
|
1112
|
-
},
|
|
1113
1079
|
errors: {
|
|
1114
1080
|
401: "Unauthorized",
|
|
1115
1081
|
500: "Internal error"
|
|
@@ -1120,7 +1086,6 @@ var HealthService = class {
|
|
|
1120
1086
|
* Reset a circuit breaker to CLOSED state
|
|
1121
1087
|
* @param data The data for the request.
|
|
1122
1088
|
* @param data.name Circuit breaker name to reset
|
|
1123
|
-
* @param data.region Region code (cn, us, de)
|
|
1124
1089
|
* @returns unknown Circuit breaker reset successfully
|
|
1125
1090
|
* @throws ApiError
|
|
1126
1091
|
*/
|
|
@@ -1129,8 +1094,7 @@ var HealthService = class {
|
|
|
1129
1094
|
method: "POST",
|
|
1130
1095
|
url: "/api/v1/health/circuit-breakers/{name}/reset",
|
|
1131
1096
|
path: {
|
|
1132
|
-
name: data.name
|
|
1133
|
-
region: data.region
|
|
1097
|
+
name: data.name
|
|
1134
1098
|
},
|
|
1135
1099
|
errors: {
|
|
1136
1100
|
401: "Unauthorized",
|
|
@@ -1140,18 +1104,13 @@ var HealthService = class {
|
|
|
1140
1104
|
}
|
|
1141
1105
|
/**
|
|
1142
1106
|
* Get health check metrics and statistics
|
|
1143
|
-
* @param data The data for the request.
|
|
1144
|
-
* @param data.region Region code (cn, us, de)
|
|
1145
1107
|
* @returns unknown Health metrics
|
|
1146
1108
|
* @throws ApiError
|
|
1147
1109
|
*/
|
|
1148
|
-
static healthControllerGetMetrics(
|
|
1110
|
+
static healthControllerGetMetrics() {
|
|
1149
1111
|
return request(OpenAPI, {
|
|
1150
1112
|
method: "GET",
|
|
1151
1113
|
url: "/api/v1/health/metrics",
|
|
1152
|
-
path: {
|
|
1153
|
-
region: data.region
|
|
1154
|
-
},
|
|
1155
1114
|
errors: {
|
|
1156
1115
|
401: "Unauthorized"
|
|
1157
1116
|
}
|
|
@@ -1161,7 +1120,6 @@ var HealthService = class {
|
|
|
1161
1120
|
* Check health of a specific data enhancer
|
|
1162
1121
|
* @param data The data for the request.
|
|
1163
1122
|
* @param data.name Data enhancer name
|
|
1164
|
-
* @param data.region Region code (cn, us, de)
|
|
1165
1123
|
* @returns unknown Data enhancer is healthy
|
|
1166
1124
|
* @throws ApiError
|
|
1167
1125
|
*/
|
|
@@ -1170,8 +1128,7 @@ var HealthService = class {
|
|
|
1170
1128
|
method: "GET",
|
|
1171
1129
|
url: "/api/v1/health/data-enhancer/{name}",
|
|
1172
1130
|
path: {
|
|
1173
|
-
name: data.name
|
|
1174
|
-
region: data.region
|
|
1131
|
+
name: data.name
|
|
1175
1132
|
},
|
|
1176
1133
|
errors: {
|
|
1177
1134
|
401: "Unauthorized",
|
|
@@ -1181,18 +1138,13 @@ var HealthService = class {
|
|
|
1181
1138
|
}
|
|
1182
1139
|
/**
|
|
1183
1140
|
* Check health of all data providers
|
|
1184
|
-
* @param data The data for the request.
|
|
1185
|
-
* @param data.region Region code (cn, us, de)
|
|
1186
1141
|
* @returns unknown Data providers health status
|
|
1187
1142
|
* @throws ApiError
|
|
1188
1143
|
*/
|
|
1189
|
-
static healthControllerCheckDataProviders(
|
|
1144
|
+
static healthControllerCheckDataProviders() {
|
|
1190
1145
|
return request(OpenAPI, {
|
|
1191
1146
|
method: "GET",
|
|
1192
1147
|
url: "/api/v1/health/data-providers",
|
|
1193
|
-
path: {
|
|
1194
|
-
region: data.region
|
|
1195
|
-
},
|
|
1196
1148
|
errors: {
|
|
1197
1149
|
401: "Unauthorized",
|
|
1198
1150
|
503: "Data providers check failed"
|
|
@@ -1203,7 +1155,6 @@ var HealthService = class {
|
|
|
1203
1155
|
* Check health of a specific data provider
|
|
1204
1156
|
* @param data The data for the request.
|
|
1205
1157
|
* @param data.dataSource Data source identifier
|
|
1206
|
-
* @param data.region Region code (cn, us, de)
|
|
1207
1158
|
* @returns unknown Data provider is healthy
|
|
1208
1159
|
* @throws ApiError
|
|
1209
1160
|
*/
|
|
@@ -1212,8 +1163,7 @@ var HealthService = class {
|
|
|
1212
1163
|
method: "GET",
|
|
1213
1164
|
url: "/api/v1/health/data-provider/{dataSource}",
|
|
1214
1165
|
path: {
|
|
1215
|
-
dataSource: data.dataSource
|
|
1216
|
-
region: data.region
|
|
1166
|
+
dataSource: data.dataSource
|
|
1217
1167
|
},
|
|
1218
1168
|
errors: {
|
|
1219
1169
|
400: "Invalid data source",
|
package/dist/index.mjs
CHANGED
|
@@ -600,8 +600,9 @@ var BeanAccountsService = class {
|
|
|
600
600
|
};
|
|
601
601
|
var BeanTransactionsService = class {
|
|
602
602
|
/**
|
|
603
|
-
*
|
|
604
|
-
*
|
|
603
|
+
* @deprecated
|
|
604
|
+
* Create transaction (DEPRECATED)
|
|
605
|
+
* DEPRECATED: Use POST /:region/bean/import/provider/:name/sync instead. This endpoint skips dedup, rule matching, and review branching.
|
|
605
606
|
* @param data The data for the request.
|
|
606
607
|
* @param data.region Region code for tenant context
|
|
607
608
|
* @param data.requestBody Transaction data with postings
|
|
@@ -748,7 +749,6 @@ var BeanBalancesService = class {
|
|
|
748
749
|
* Calculate account balance at a specific date for a single currency
|
|
749
750
|
* @param data The data for the request.
|
|
750
751
|
* @param data.account Account name (e.g., "Assets:Bank:Checking")
|
|
751
|
-
* @param data.region Region code (cn, us, de)
|
|
752
752
|
* @param data.date Date to calculate balance at (ISO 8601 format)
|
|
753
753
|
* @param data.currency Currency to query (e.g., "USD", "CNY")
|
|
754
754
|
* @returns BalanceResponseDto Balance calculated successfully
|
|
@@ -758,9 +758,6 @@ var BeanBalancesService = class {
|
|
|
758
758
|
return request(OpenAPI, {
|
|
759
759
|
method: "GET",
|
|
760
760
|
url: "/api/v1/{region}/bean/balances",
|
|
761
|
-
path: {
|
|
762
|
-
region: data.region
|
|
763
|
-
},
|
|
764
761
|
query: {
|
|
765
762
|
account: data.account,
|
|
766
763
|
date: data.date,
|
|
@@ -775,18 +772,13 @@ var BeanBalancesService = class {
|
|
|
775
772
|
/**
|
|
776
773
|
* Query multi-currency account balance
|
|
777
774
|
* Calculate account balances for all currencies at a specific date
|
|
778
|
-
* @param data The data for the request.
|
|
779
|
-
* @param data.region Region code (cn, us, de)
|
|
780
775
|
* @returns MultiCurrencyBalanceResponseDto Balances calculated successfully
|
|
781
776
|
* @throws ApiError
|
|
782
777
|
*/
|
|
783
|
-
static balanceControllerGetMultiCurrencyBalance(
|
|
778
|
+
static balanceControllerGetMultiCurrencyBalance() {
|
|
784
779
|
return request(OpenAPI, {
|
|
785
780
|
method: "GET",
|
|
786
781
|
url: "/api/v1/{region}/bean/balances/multi-currency",
|
|
787
|
-
path: {
|
|
788
|
-
region: data.region
|
|
789
|
-
},
|
|
790
782
|
errors: {
|
|
791
783
|
400: "Invalid query parameters",
|
|
792
784
|
401: "User not authenticated"
|
|
@@ -797,7 +789,7 @@ var BeanBalancesService = class {
|
|
|
797
789
|
var BeanCommoditiesService = class {
|
|
798
790
|
/**
|
|
799
791
|
* @param data The data for the request.
|
|
800
|
-
* @param data.region Region code
|
|
792
|
+
* @param data.region Region code for tenant context
|
|
801
793
|
* @returns unknown
|
|
802
794
|
* @throws ApiError
|
|
803
795
|
*/
|
|
@@ -814,7 +806,7 @@ var BeanCommoditiesService = class {
|
|
|
814
806
|
* List user commodities
|
|
815
807
|
* Returns all commodity definitions for the authenticated user with optional filtering
|
|
816
808
|
* @param data The data for the request.
|
|
817
|
-
* @param data.region Region code
|
|
809
|
+
* @param data.region Region code for tenant context
|
|
818
810
|
* @param data.search Search term for symbol or metadata fields (partial match). Searches symbol and metadata.name.
|
|
819
811
|
* @param data.symbol Filter by exact symbol match
|
|
820
812
|
* @returns CommodityListResponseDto Commodities retrieved successfully
|
|
@@ -838,7 +830,7 @@ var BeanCommoditiesService = class {
|
|
|
838
830
|
* Returns a specific commodity definition by its symbol
|
|
839
831
|
* @param data The data for the request.
|
|
840
832
|
* @param data.symbol Commodity symbol
|
|
841
|
-
* @param data.region Region code
|
|
833
|
+
* @param data.region Region code for tenant context
|
|
842
834
|
* @returns CommodityResponseDto Commodity retrieved successfully
|
|
843
835
|
* @throws ApiError
|
|
844
836
|
*/
|
|
@@ -857,7 +849,7 @@ var BeanCommoditiesService = class {
|
|
|
857
849
|
}
|
|
858
850
|
/**
|
|
859
851
|
* @param data The data for the request.
|
|
860
|
-
* @param data.region Region code
|
|
852
|
+
* @param data.region Region code for tenant context
|
|
861
853
|
* @returns unknown
|
|
862
854
|
* @throws ApiError
|
|
863
855
|
*/
|
|
@@ -872,7 +864,7 @@ var BeanCommoditiesService = class {
|
|
|
872
864
|
}
|
|
873
865
|
/**
|
|
874
866
|
* @param data The data for the request.
|
|
875
|
-
* @param data.region Region code
|
|
867
|
+
* @param data.region Region code for tenant context
|
|
876
868
|
* @returns void
|
|
877
869
|
* @throws ApiError
|
|
878
870
|
*/
|
|
@@ -887,7 +879,7 @@ var BeanCommoditiesService = class {
|
|
|
887
879
|
}
|
|
888
880
|
/**
|
|
889
881
|
* @param data The data for the request.
|
|
890
|
-
* @param data.region Region code
|
|
882
|
+
* @param data.region Region code for tenant context
|
|
891
883
|
* @returns unknown
|
|
892
884
|
* @throws ApiError
|
|
893
885
|
*/
|
|
@@ -902,7 +894,7 @@ var BeanCommoditiesService = class {
|
|
|
902
894
|
}
|
|
903
895
|
/**
|
|
904
896
|
* @param data The data for the request.
|
|
905
|
-
* @param data.region Region code
|
|
897
|
+
* @param data.region Region code for tenant context
|
|
906
898
|
* @returns unknown
|
|
907
899
|
* @throws ApiError
|
|
908
900
|
*/
|
|
@@ -930,6 +922,7 @@ var ProviderSyncService = class {
|
|
|
930
922
|
* - **simplefin**: SimpleFIN (Self-hosted)
|
|
931
923
|
* - **yodlee**: Yodlee (Global)
|
|
932
924
|
* - **beancount-direct**: Beancount format transactions
|
|
925
|
+
* - **parsed-bill**: Client-side parsed bill transactions
|
|
933
926
|
*
|
|
934
927
|
* **Processing Flow:**
|
|
935
928
|
* 1. Transform raw data via provider adapter
|
|
@@ -966,18 +959,13 @@ var ProviderSyncService = class {
|
|
|
966
959
|
/**
|
|
967
960
|
* Get supported providers
|
|
968
961
|
* Returns a list of all providers supported by the sync endpoint.
|
|
969
|
-
* @param data The data for the request.
|
|
970
|
-
* @param data.region Region code (cn, us, de)
|
|
971
962
|
* @returns SupportedProvidersResponseDto List of supported providers
|
|
972
963
|
* @throws ApiError
|
|
973
964
|
*/
|
|
974
|
-
static providerSyncControllerGetSupportedProviders(
|
|
965
|
+
static providerSyncControllerGetSupportedProviders() {
|
|
975
966
|
return request(OpenAPI, {
|
|
976
967
|
method: "GET",
|
|
977
968
|
url: "/api/v1/{region}/bean/import/provider/supported",
|
|
978
|
-
path: {
|
|
979
|
-
region: data.region
|
|
980
|
-
},
|
|
981
969
|
errors: {
|
|
982
970
|
401: "Missing or invalid authentication"
|
|
983
971
|
}
|
|
@@ -988,7 +976,6 @@ var ProviderSyncService = class {
|
|
|
988
976
|
* Returns whether a specific provider is supported.
|
|
989
977
|
* @param data The data for the request.
|
|
990
978
|
* @param data.providerName Provider name to check
|
|
991
|
-
* @param data.region Region code (cn, us, de)
|
|
992
979
|
* @returns unknown Provider support status
|
|
993
980
|
* @throws ApiError
|
|
994
981
|
*/
|
|
@@ -997,8 +984,7 @@ var ProviderSyncService = class {
|
|
|
997
984
|
method: "GET",
|
|
998
985
|
url: "/api/v1/{region}/bean/import/provider/{providerName}/supported",
|
|
999
986
|
path: {
|
|
1000
|
-
providerName: data.providerName
|
|
1001
|
-
region: data.region
|
|
987
|
+
providerName: data.providerName
|
|
1002
988
|
},
|
|
1003
989
|
errors: {
|
|
1004
990
|
401: "Missing or invalid authentication"
|
|
@@ -1009,18 +995,13 @@ var ProviderSyncService = class {
|
|
|
1009
995
|
var HealthService = class {
|
|
1010
996
|
/**
|
|
1011
997
|
* Basic health check for K8s/load balancer probes
|
|
1012
|
-
* @param data The data for the request.
|
|
1013
|
-
* @param data.region Region code (cn, us, de)
|
|
1014
998
|
* @returns unknown Service is healthy
|
|
1015
999
|
* @throws ApiError
|
|
1016
1000
|
*/
|
|
1017
|
-
static healthControllerGetHealth(
|
|
1001
|
+
static healthControllerGetHealth() {
|
|
1018
1002
|
return request(OpenAPI, {
|
|
1019
1003
|
method: "GET",
|
|
1020
1004
|
url: "/api/v1/health",
|
|
1021
|
-
path: {
|
|
1022
|
-
region: data.region
|
|
1023
|
-
},
|
|
1024
1005
|
errors: {
|
|
1025
1006
|
503: "Service unavailable"
|
|
1026
1007
|
}
|
|
@@ -1028,18 +1009,13 @@ var HealthService = class {
|
|
|
1028
1009
|
}
|
|
1029
1010
|
/**
|
|
1030
1011
|
* Check database connection health
|
|
1031
|
-
* @param data The data for the request.
|
|
1032
|
-
* @param data.region Region code (cn, us, de)
|
|
1033
1012
|
* @returns unknown Database is healthy
|
|
1034
1013
|
* @throws ApiError
|
|
1035
1014
|
*/
|
|
1036
|
-
static healthControllerCheckDatabase(
|
|
1015
|
+
static healthControllerCheckDatabase() {
|
|
1037
1016
|
return request(OpenAPI, {
|
|
1038
1017
|
method: "GET",
|
|
1039
1018
|
url: "/api/v1/health/database",
|
|
1040
|
-
path: {
|
|
1041
|
-
region: data.region
|
|
1042
|
-
},
|
|
1043
1019
|
errors: {
|
|
1044
1020
|
503: "Database unavailable"
|
|
1045
1021
|
}
|
|
@@ -1047,18 +1023,13 @@ var HealthService = class {
|
|
|
1047
1023
|
}
|
|
1048
1024
|
/**
|
|
1049
1025
|
* Check Redis connection health
|
|
1050
|
-
* @param data The data for the request.
|
|
1051
|
-
* @param data.region Region code (cn, us, de)
|
|
1052
1026
|
* @returns unknown Redis is healthy
|
|
1053
1027
|
* @throws ApiError
|
|
1054
1028
|
*/
|
|
1055
|
-
static healthControllerCheckRedis(
|
|
1029
|
+
static healthControllerCheckRedis() {
|
|
1056
1030
|
return request(OpenAPI, {
|
|
1057
1031
|
method: "GET",
|
|
1058
1032
|
url: "/api/v1/health/redis",
|
|
1059
|
-
path: {
|
|
1060
|
-
region: data.region
|
|
1061
|
-
},
|
|
1062
1033
|
errors: {
|
|
1063
1034
|
503: "Redis unavailable"
|
|
1064
1035
|
}
|
|
@@ -1066,18 +1037,13 @@ var HealthService = class {
|
|
|
1066
1037
|
}
|
|
1067
1038
|
/**
|
|
1068
1039
|
* Get status of all circuit breakers
|
|
1069
|
-
* @param data The data for the request.
|
|
1070
|
-
* @param data.region Region code (cn, us, de)
|
|
1071
1040
|
* @returns unknown Circuit breaker status
|
|
1072
1041
|
* @throws ApiError
|
|
1073
1042
|
*/
|
|
1074
|
-
static healthControllerGetCircuitBreakersHealth(
|
|
1043
|
+
static healthControllerGetCircuitBreakersHealth() {
|
|
1075
1044
|
return request(OpenAPI, {
|
|
1076
1045
|
method: "GET",
|
|
1077
1046
|
url: "/api/v1/health/circuit-breakers",
|
|
1078
|
-
path: {
|
|
1079
|
-
region: data.region
|
|
1080
|
-
},
|
|
1081
1047
|
errors: {
|
|
1082
1048
|
401: "Unauthorized",
|
|
1083
1049
|
500: "Internal error"
|
|
@@ -1088,7 +1054,6 @@ var HealthService = class {
|
|
|
1088
1054
|
* Reset a circuit breaker to CLOSED state
|
|
1089
1055
|
* @param data The data for the request.
|
|
1090
1056
|
* @param data.name Circuit breaker name to reset
|
|
1091
|
-
* @param data.region Region code (cn, us, de)
|
|
1092
1057
|
* @returns unknown Circuit breaker reset successfully
|
|
1093
1058
|
* @throws ApiError
|
|
1094
1059
|
*/
|
|
@@ -1097,8 +1062,7 @@ var HealthService = class {
|
|
|
1097
1062
|
method: "POST",
|
|
1098
1063
|
url: "/api/v1/health/circuit-breakers/{name}/reset",
|
|
1099
1064
|
path: {
|
|
1100
|
-
name: data.name
|
|
1101
|
-
region: data.region
|
|
1065
|
+
name: data.name
|
|
1102
1066
|
},
|
|
1103
1067
|
errors: {
|
|
1104
1068
|
401: "Unauthorized",
|
|
@@ -1108,18 +1072,13 @@ var HealthService = class {
|
|
|
1108
1072
|
}
|
|
1109
1073
|
/**
|
|
1110
1074
|
* Get health check metrics and statistics
|
|
1111
|
-
* @param data The data for the request.
|
|
1112
|
-
* @param data.region Region code (cn, us, de)
|
|
1113
1075
|
* @returns unknown Health metrics
|
|
1114
1076
|
* @throws ApiError
|
|
1115
1077
|
*/
|
|
1116
|
-
static healthControllerGetMetrics(
|
|
1078
|
+
static healthControllerGetMetrics() {
|
|
1117
1079
|
return request(OpenAPI, {
|
|
1118
1080
|
method: "GET",
|
|
1119
1081
|
url: "/api/v1/health/metrics",
|
|
1120
|
-
path: {
|
|
1121
|
-
region: data.region
|
|
1122
|
-
},
|
|
1123
1082
|
errors: {
|
|
1124
1083
|
401: "Unauthorized"
|
|
1125
1084
|
}
|
|
@@ -1129,7 +1088,6 @@ var HealthService = class {
|
|
|
1129
1088
|
* Check health of a specific data enhancer
|
|
1130
1089
|
* @param data The data for the request.
|
|
1131
1090
|
* @param data.name Data enhancer name
|
|
1132
|
-
* @param data.region Region code (cn, us, de)
|
|
1133
1091
|
* @returns unknown Data enhancer is healthy
|
|
1134
1092
|
* @throws ApiError
|
|
1135
1093
|
*/
|
|
@@ -1138,8 +1096,7 @@ var HealthService = class {
|
|
|
1138
1096
|
method: "GET",
|
|
1139
1097
|
url: "/api/v1/health/data-enhancer/{name}",
|
|
1140
1098
|
path: {
|
|
1141
|
-
name: data.name
|
|
1142
|
-
region: data.region
|
|
1099
|
+
name: data.name
|
|
1143
1100
|
},
|
|
1144
1101
|
errors: {
|
|
1145
1102
|
401: "Unauthorized",
|
|
@@ -1149,18 +1106,13 @@ var HealthService = class {
|
|
|
1149
1106
|
}
|
|
1150
1107
|
/**
|
|
1151
1108
|
* Check health of all data providers
|
|
1152
|
-
* @param data The data for the request.
|
|
1153
|
-
* @param data.region Region code (cn, us, de)
|
|
1154
1109
|
* @returns unknown Data providers health status
|
|
1155
1110
|
* @throws ApiError
|
|
1156
1111
|
*/
|
|
1157
|
-
static healthControllerCheckDataProviders(
|
|
1112
|
+
static healthControllerCheckDataProviders() {
|
|
1158
1113
|
return request(OpenAPI, {
|
|
1159
1114
|
method: "GET",
|
|
1160
1115
|
url: "/api/v1/health/data-providers",
|
|
1161
|
-
path: {
|
|
1162
|
-
region: data.region
|
|
1163
|
-
},
|
|
1164
1116
|
errors: {
|
|
1165
1117
|
401: "Unauthorized",
|
|
1166
1118
|
503: "Data providers check failed"
|
|
@@ -1171,7 +1123,6 @@ var HealthService = class {
|
|
|
1171
1123
|
* Check health of a specific data provider
|
|
1172
1124
|
* @param data The data for the request.
|
|
1173
1125
|
* @param data.dataSource Data source identifier
|
|
1174
|
-
* @param data.region Region code (cn, us, de)
|
|
1175
1126
|
* @returns unknown Data provider is healthy
|
|
1176
1127
|
* @throws ApiError
|
|
1177
1128
|
*/
|
|
@@ -1180,8 +1131,7 @@ var HealthService = class {
|
|
|
1180
1131
|
method: "GET",
|
|
1181
1132
|
url: "/api/v1/health/data-provider/{dataSource}",
|
|
1182
1133
|
path: {
|
|
1183
|
-
dataSource: data.dataSource
|
|
1184
|
-
region: data.region
|
|
1134
|
+
dataSource: data.dataSource
|
|
1185
1135
|
},
|
|
1186
1136
|
errors: {
|
|
1187
1137
|
400: "Invalid data source",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@firela/api-types",
|
|
3
|
-
"version": "0.0.0-canary.
|
|
3
|
+
"version": "0.0.0-canary.7cd70834",
|
|
4
4
|
"description": "TypeScript types generated from IGN OpenAPI specification",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "FireLa Team",
|
|
@@ -17,11 +17,6 @@
|
|
|
17
17
|
"import": "./dist/index.mjs",
|
|
18
18
|
"require": "./dist/index.js",
|
|
19
19
|
"types": "./dist/index.d.ts"
|
|
20
|
-
},
|
|
21
|
-
"./client": {
|
|
22
|
-
"types": "./dist/generated/sdk.gen.d.ts",
|
|
23
|
-
"import": "./dist/generated/sdk.gen.mjs",
|
|
24
|
-
"default": "./dist/generated/sdk.gen.js"
|
|
25
20
|
}
|
|
26
21
|
},
|
|
27
22
|
"files": [
|