@firela/api-types 0.0.0-canary.b3b7767b → 0.0.0-canary.c5520a90
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 +3229 -1112
- package/dist/index.d.ts +3229 -1112
- package/dist/index.js +158 -125
- package/dist/index.mjs +158 -125
- package/package.json +2 -3
- package/src/generated/schemas.gen.ts +3023 -449
- package/src/generated/services.gen.ts +1415 -882
- package/src/generated/types.gen.ts +3652 -1313
package/dist/index.mjs
CHANGED
|
@@ -638,6 +638,7 @@ var BeanTransactionsService = class {
|
|
|
638
638
|
* @param data.status Filter by transaction status
|
|
639
639
|
* @param data.search Search in narration and payee fields (max 200 chars)
|
|
640
640
|
* @param data.accountId Filter by account ID (transactions with postings to this account)
|
|
641
|
+
* @param data.category Filter by ADR-0075 functional category (Group segment); matches any posting to an Expenses/Income account whose derived Group segment equals this value
|
|
641
642
|
* @returns TransactionListResponseDto Transaction list
|
|
642
643
|
* @throws ApiError
|
|
643
644
|
*/
|
|
@@ -655,25 +656,93 @@ var BeanTransactionsService = class {
|
|
|
655
656
|
dateTo: data.dateTo,
|
|
656
657
|
status: data.status,
|
|
657
658
|
search: data.search,
|
|
658
|
-
accountId: data.accountId
|
|
659
|
+
accountId: data.accountId,
|
|
660
|
+
category: data.category
|
|
659
661
|
},
|
|
660
662
|
errors: {
|
|
663
|
+
400: "Validation failed",
|
|
661
664
|
401: "Authentication required"
|
|
662
665
|
}
|
|
663
666
|
});
|
|
664
667
|
}
|
|
665
668
|
/**
|
|
669
|
+
* @deprecated
|
|
670
|
+
* Batch create transactions (DEPRECATED)
|
|
671
|
+
* DEPRECATED: Use POST /:region/bean/import/provider/:name/sync instead. This endpoint skips dedup, rule matching, and review branching.
|
|
666
672
|
* @param data The data for the request.
|
|
667
673
|
* @param data.region Region code for tenant context
|
|
668
|
-
* @
|
|
674
|
+
* @param data.requestBody
|
|
675
|
+
* @returns BatchTransactionResponseDto Transactions processed
|
|
669
676
|
* @throws ApiError
|
|
670
677
|
*/
|
|
671
|
-
static
|
|
678
|
+
static transactionControllerCreateBatch(data) {
|
|
672
679
|
return request(OpenAPI, {
|
|
673
680
|
method: "POST",
|
|
674
681
|
url: "/api/v1/{region}/bean/transactions/batch",
|
|
675
682
|
path: {
|
|
676
683
|
region: data.region
|
|
684
|
+
},
|
|
685
|
+
body: data.requestBody,
|
|
686
|
+
mediaType: "application/json",
|
|
687
|
+
errors: {
|
|
688
|
+
400: "Invalid input",
|
|
689
|
+
401: "Authentication required"
|
|
690
|
+
}
|
|
691
|
+
});
|
|
692
|
+
}
|
|
693
|
+
/**
|
|
694
|
+
* Correct (supersede) a transaction
|
|
695
|
+
* Atomically voids the original (SUPERSEDED) and creates a replacement through the full validation pipeline.
|
|
696
|
+
* @param data The data for the request.
|
|
697
|
+
* @param data.id Original transaction ID to correct
|
|
698
|
+
* @param data.region Region code for tenant context
|
|
699
|
+
* @param data.requestBody
|
|
700
|
+
* @returns TransactionDetailDto Corrected transaction created
|
|
701
|
+
* @throws ApiError
|
|
702
|
+
*/
|
|
703
|
+
static transactionControllerCorrect(data) {
|
|
704
|
+
return request(OpenAPI, {
|
|
705
|
+
method: "POST",
|
|
706
|
+
url: "/api/v1/{region}/bean/transactions/{id}/correct",
|
|
707
|
+
path: {
|
|
708
|
+
id: data.id,
|
|
709
|
+
region: data.region
|
|
710
|
+
},
|
|
711
|
+
body: data.requestBody,
|
|
712
|
+
mediaType: "application/json",
|
|
713
|
+
errors: {
|
|
714
|
+
404: "Original transaction not found",
|
|
715
|
+
409: "Original no longer ACTIVE (concurrent modification)",
|
|
716
|
+
422: "Pipeline validation failed (does not balance, invalid accounts)"
|
|
717
|
+
}
|
|
718
|
+
});
|
|
719
|
+
}
|
|
720
|
+
/**
|
|
721
|
+
* Suggest transaction tags
|
|
722
|
+
* Returns distinct tags from the user ACTIVE transactions, sorted by usage, for autocomplete. Optional q performs a case-insensitive prefix match.
|
|
723
|
+
* @param data The data for the request.
|
|
724
|
+
* @param data.region Region code for tenant context
|
|
725
|
+
* @param data.q Prefix match, case-insensitive (max 50 chars)
|
|
726
|
+
* @param data.sort usage (default) or name
|
|
727
|
+
* @param data.limit Max suggestions (1-100, default 10)
|
|
728
|
+
* @returns TagSuggestionsResponseDto Tag suggestions
|
|
729
|
+
* @throws ApiError
|
|
730
|
+
*/
|
|
731
|
+
static transactionControllerSuggestTags(data) {
|
|
732
|
+
return request(OpenAPI, {
|
|
733
|
+
method: "GET",
|
|
734
|
+
url: "/api/v1/{region}/bean/transactions/tags",
|
|
735
|
+
path: {
|
|
736
|
+
region: data.region
|
|
737
|
+
},
|
|
738
|
+
query: {
|
|
739
|
+
q: data.q,
|
|
740
|
+
sort: data.sort,
|
|
741
|
+
limit: data.limit
|
|
742
|
+
},
|
|
743
|
+
errors: {
|
|
744
|
+
400: "Validation failed",
|
|
745
|
+
401: "Authentication required"
|
|
677
746
|
}
|
|
678
747
|
});
|
|
679
748
|
}
|
|
@@ -728,17 +797,26 @@ var BeanTransactionsService = class {
|
|
|
728
797
|
});
|
|
729
798
|
}
|
|
730
799
|
/**
|
|
800
|
+
* Void transaction
|
|
801
|
+
* Soft-deletes a transaction by marking it as VOIDED
|
|
731
802
|
* @param data The data for the request.
|
|
803
|
+
* @param data.id Transaction ID
|
|
732
804
|
* @param data.region Region code for tenant context
|
|
733
|
-
* @returns void
|
|
805
|
+
* @returns void Transaction voided successfully
|
|
734
806
|
* @throws ApiError
|
|
735
807
|
*/
|
|
736
|
-
static
|
|
808
|
+
static transactionControllerDelete(data) {
|
|
737
809
|
return request(OpenAPI, {
|
|
738
810
|
method: "DELETE",
|
|
739
811
|
url: "/api/v1/{region}/bean/transactions/{id}",
|
|
740
812
|
path: {
|
|
813
|
+
id: data.id,
|
|
741
814
|
region: data.region
|
|
815
|
+
},
|
|
816
|
+
errors: {
|
|
817
|
+
400: "Transaction already voided",
|
|
818
|
+
401: "Authentication required",
|
|
819
|
+
404: "Transaction not found"
|
|
742
820
|
}
|
|
743
821
|
});
|
|
744
822
|
}
|
|
@@ -749,7 +827,7 @@ var BeanBalancesService = class {
|
|
|
749
827
|
* Calculate account balance at a specific date for a single currency
|
|
750
828
|
* @param data The data for the request.
|
|
751
829
|
* @param data.account Account name (e.g., "Assets:Bank:Checking")
|
|
752
|
-
* @param data.region Region code
|
|
830
|
+
* @param data.region Region code for tenant context
|
|
753
831
|
* @param data.date Date to calculate balance at (ISO 8601 format)
|
|
754
832
|
* @param data.currency Currency to query (e.g., "USD", "CNY")
|
|
755
833
|
* @returns BalanceResponseDto Balance calculated successfully
|
|
@@ -777,7 +855,7 @@ var BeanBalancesService = class {
|
|
|
777
855
|
* Query multi-currency account balance
|
|
778
856
|
* Calculate account balances for all currencies at a specific date
|
|
779
857
|
* @param data The data for the request.
|
|
780
|
-
* @param data.region Region code
|
|
858
|
+
* @param data.region Region code for tenant context
|
|
781
859
|
* @returns MultiCurrencyBalanceResponseDto Balances calculated successfully
|
|
782
860
|
* @throws ApiError
|
|
783
861
|
*/
|
|
@@ -797,17 +875,26 @@ var BeanBalancesService = class {
|
|
|
797
875
|
};
|
|
798
876
|
var BeanCommoditiesService = class {
|
|
799
877
|
/**
|
|
878
|
+
* Create a new commodity
|
|
879
|
+
* Creates a new commodity definition for the authenticated user
|
|
800
880
|
* @param data The data for the request.
|
|
801
|
-
* @param data.region Region code
|
|
802
|
-
* @
|
|
881
|
+
* @param data.region Region code for tenant context
|
|
882
|
+
* @param data.requestBody
|
|
883
|
+
* @returns CommodityResponseDto Commodity created successfully
|
|
803
884
|
* @throws ApiError
|
|
804
885
|
*/
|
|
805
|
-
static
|
|
886
|
+
static commodityControllerCreate(data) {
|
|
806
887
|
return request(OpenAPI, {
|
|
807
888
|
method: "POST",
|
|
808
889
|
url: "/api/v1/{region}/bean/commodities",
|
|
809
890
|
path: {
|
|
810
891
|
region: data.region
|
|
892
|
+
},
|
|
893
|
+
body: data.requestBody,
|
|
894
|
+
mediaType: "application/json",
|
|
895
|
+
errors: {
|
|
896
|
+
400: "Invalid input data",
|
|
897
|
+
409: "Commodity already exists"
|
|
811
898
|
}
|
|
812
899
|
});
|
|
813
900
|
}
|
|
@@ -815,7 +902,7 @@ var BeanCommoditiesService = class {
|
|
|
815
902
|
* List user commodities
|
|
816
903
|
* Returns all commodity definitions for the authenticated user with optional filtering
|
|
817
904
|
* @param data The data for the request.
|
|
818
|
-
* @param data.region Region code
|
|
905
|
+
* @param data.region Region code for tenant context
|
|
819
906
|
* @param data.search Search term for symbol or metadata fields (partial match). Searches symbol and metadata.name.
|
|
820
907
|
* @param data.symbol Filter by exact symbol match
|
|
821
908
|
* @returns CommodityListResponseDto Commodities retrieved successfully
|
|
@@ -839,7 +926,7 @@ var BeanCommoditiesService = class {
|
|
|
839
926
|
* Returns a specific commodity definition by its symbol
|
|
840
927
|
* @param data The data for the request.
|
|
841
928
|
* @param data.symbol Commodity symbol
|
|
842
|
-
* @param data.region Region code
|
|
929
|
+
* @param data.region Region code for tenant context
|
|
843
930
|
* @returns CommodityResponseDto Commodity retrieved successfully
|
|
844
931
|
* @throws ApiError
|
|
845
932
|
*/
|
|
@@ -857,57 +944,81 @@ var BeanCommoditiesService = class {
|
|
|
857
944
|
});
|
|
858
945
|
}
|
|
859
946
|
/**
|
|
947
|
+
* Update commodity
|
|
948
|
+
* Updates an existing commodity definition. Symbol cannot be changed.
|
|
860
949
|
* @param data The data for the request.
|
|
861
|
-
* @param data.
|
|
862
|
-
* @
|
|
950
|
+
* @param data.symbol Commodity symbol
|
|
951
|
+
* @param data.region Region code for tenant context
|
|
952
|
+
* @param data.requestBody
|
|
953
|
+
* @returns CommodityResponseDto Commodity updated successfully
|
|
863
954
|
* @throws ApiError
|
|
864
955
|
*/
|
|
865
|
-
static
|
|
956
|
+
static commodityControllerUpdate(data) {
|
|
866
957
|
return request(OpenAPI, {
|
|
867
958
|
method: "PUT",
|
|
868
959
|
url: "/api/v1/{region}/bean/commodities/{symbol}",
|
|
869
960
|
path: {
|
|
961
|
+
symbol: data.symbol,
|
|
870
962
|
region: data.region
|
|
963
|
+
},
|
|
964
|
+
body: data.requestBody,
|
|
965
|
+
mediaType: "application/json",
|
|
966
|
+
errors: {
|
|
967
|
+
400: "Invalid input data",
|
|
968
|
+
404: "Commodity not found"
|
|
871
969
|
}
|
|
872
970
|
});
|
|
873
971
|
}
|
|
874
972
|
/**
|
|
973
|
+
* Delete commodity
|
|
974
|
+
* Deletes a commodity definition
|
|
875
975
|
* @param data The data for the request.
|
|
876
|
-
* @param data.
|
|
877
|
-
* @
|
|
976
|
+
* @param data.symbol Commodity symbol
|
|
977
|
+
* @param data.region Region code for tenant context
|
|
978
|
+
* @returns void Commodity deleted successfully
|
|
878
979
|
* @throws ApiError
|
|
879
980
|
*/
|
|
880
|
-
static
|
|
981
|
+
static commodityControllerDelete(data) {
|
|
881
982
|
return request(OpenAPI, {
|
|
882
983
|
method: "DELETE",
|
|
883
984
|
url: "/api/v1/{region}/bean/commodities/{symbol}",
|
|
884
985
|
path: {
|
|
986
|
+
symbol: data.symbol,
|
|
885
987
|
region: data.region
|
|
988
|
+
},
|
|
989
|
+
errors: {
|
|
990
|
+
404: "Commodity not found"
|
|
886
991
|
}
|
|
887
992
|
});
|
|
888
993
|
}
|
|
889
994
|
/**
|
|
995
|
+
* Ensure commodity exists
|
|
996
|
+
* Gets existing commodity or creates it with automatic initialization from OpenBB
|
|
890
997
|
* @param data The data for the request.
|
|
891
|
-
* @param data.
|
|
892
|
-
* @
|
|
998
|
+
* @param data.symbol Commodity symbol
|
|
999
|
+
* @param data.region Region code for tenant context
|
|
1000
|
+
* @returns CommodityResponseDto Commodity retrieved or created
|
|
893
1001
|
* @throws ApiError
|
|
894
1002
|
*/
|
|
895
|
-
static
|
|
1003
|
+
static commodityControllerGetOrCreate(data) {
|
|
896
1004
|
return request(OpenAPI, {
|
|
897
1005
|
method: "POST",
|
|
898
1006
|
url: "/api/v1/{region}/bean/commodities/{symbol}/ensure",
|
|
899
1007
|
path: {
|
|
1008
|
+
symbol: data.symbol,
|
|
900
1009
|
region: data.region
|
|
901
1010
|
}
|
|
902
1011
|
});
|
|
903
1012
|
}
|
|
904
1013
|
/**
|
|
1014
|
+
* Bulk create commodities
|
|
1015
|
+
* Creates multiple commodities from a list of symbols, useful for initialization
|
|
905
1016
|
* @param data The data for the request.
|
|
906
|
-
* @param data.region Region code
|
|
907
|
-
* @returns
|
|
1017
|
+
* @param data.region Region code for tenant context
|
|
1018
|
+
* @returns CommodityResponseDto Commodities created successfully
|
|
908
1019
|
* @throws ApiError
|
|
909
1020
|
*/
|
|
910
|
-
static
|
|
1021
|
+
static commodityControllerBulkCreate(data) {
|
|
911
1022
|
return request(OpenAPI, {
|
|
912
1023
|
method: "POST",
|
|
913
1024
|
url: "/api/v1/{region}/bean/commodities/bulk",
|
|
@@ -943,7 +1054,7 @@ var ProviderSyncService = class {
|
|
|
943
1054
|
*
|
|
944
1055
|
* @param data The data for the request.
|
|
945
1056
|
* @param data.providerName Provider name
|
|
946
|
-
* @param data.region Region code
|
|
1057
|
+
* @param data.region Region code for tenant context
|
|
947
1058
|
* @param data.requestBody
|
|
948
1059
|
* @returns ProviderSyncResponseDto Sync completed successfully
|
|
949
1060
|
* @throws ApiError
|
|
@@ -969,7 +1080,7 @@ var ProviderSyncService = class {
|
|
|
969
1080
|
* Get supported providers
|
|
970
1081
|
* Returns a list of all providers supported by the sync endpoint.
|
|
971
1082
|
* @param data The data for the request.
|
|
972
|
-
* @param data.region Region code
|
|
1083
|
+
* @param data.region Region code for tenant context
|
|
973
1084
|
* @returns SupportedProvidersResponseDto List of supported providers
|
|
974
1085
|
* @throws ApiError
|
|
975
1086
|
*/
|
|
@@ -990,7 +1101,7 @@ var ProviderSyncService = class {
|
|
|
990
1101
|
* Returns whether a specific provider is supported.
|
|
991
1102
|
* @param data The data for the request.
|
|
992
1103
|
* @param data.providerName Provider name to check
|
|
993
|
-
* @param data.region Region code
|
|
1104
|
+
* @param data.region Region code for tenant context
|
|
994
1105
|
* @returns unknown Provider support status
|
|
995
1106
|
* @throws ApiError
|
|
996
1107
|
*/
|
|
@@ -1011,18 +1122,13 @@ var ProviderSyncService = class {
|
|
|
1011
1122
|
var HealthService = class {
|
|
1012
1123
|
/**
|
|
1013
1124
|
* Basic health check for K8s/load balancer probes
|
|
1014
|
-
* @param data The data for the request.
|
|
1015
|
-
* @param data.region Region code (cn, us, de)
|
|
1016
1125
|
* @returns unknown Service is healthy
|
|
1017
1126
|
* @throws ApiError
|
|
1018
1127
|
*/
|
|
1019
|
-
static healthControllerGetHealth(
|
|
1128
|
+
static healthControllerGetHealth() {
|
|
1020
1129
|
return request(OpenAPI, {
|
|
1021
1130
|
method: "GET",
|
|
1022
1131
|
url: "/api/v1/health",
|
|
1023
|
-
path: {
|
|
1024
|
-
region: data.region
|
|
1025
|
-
},
|
|
1026
1132
|
errors: {
|
|
1027
1133
|
503: "Service unavailable"
|
|
1028
1134
|
}
|
|
@@ -1030,37 +1136,41 @@ var HealthService = class {
|
|
|
1030
1136
|
}
|
|
1031
1137
|
/**
|
|
1032
1138
|
* Check database connection health
|
|
1033
|
-
* @param data The data for the request.
|
|
1034
|
-
* @param data.region Region code (cn, us, de)
|
|
1035
1139
|
* @returns unknown Database is healthy
|
|
1036
1140
|
* @throws ApiError
|
|
1037
1141
|
*/
|
|
1038
|
-
static healthControllerCheckDatabase(
|
|
1142
|
+
static healthControllerCheckDatabase() {
|
|
1039
1143
|
return request(OpenAPI, {
|
|
1040
1144
|
method: "GET",
|
|
1041
1145
|
url: "/api/v1/health/database",
|
|
1042
|
-
path: {
|
|
1043
|
-
region: data.region
|
|
1044
|
-
},
|
|
1045
1146
|
errors: {
|
|
1046
1147
|
503: "Database unavailable"
|
|
1047
1148
|
}
|
|
1048
1149
|
});
|
|
1049
1150
|
}
|
|
1151
|
+
/**
|
|
1152
|
+
* Check OpenBB schema status
|
|
1153
|
+
* @returns unknown OpenBB status
|
|
1154
|
+
* @throws ApiError
|
|
1155
|
+
*/
|
|
1156
|
+
static healthControllerCheckOpenBb() {
|
|
1157
|
+
return request(OpenAPI, {
|
|
1158
|
+
method: "GET",
|
|
1159
|
+
url: "/api/v1/health/openbb",
|
|
1160
|
+
errors: {
|
|
1161
|
+
503: "OpenBB unavailable"
|
|
1162
|
+
}
|
|
1163
|
+
});
|
|
1164
|
+
}
|
|
1050
1165
|
/**
|
|
1051
1166
|
* Check Redis connection health
|
|
1052
|
-
* @param data The data for the request.
|
|
1053
|
-
* @param data.region Region code (cn, us, de)
|
|
1054
1167
|
* @returns unknown Redis is healthy
|
|
1055
1168
|
* @throws ApiError
|
|
1056
1169
|
*/
|
|
1057
|
-
static healthControllerCheckRedis(
|
|
1170
|
+
static healthControllerCheckRedis() {
|
|
1058
1171
|
return request(OpenAPI, {
|
|
1059
1172
|
method: "GET",
|
|
1060
1173
|
url: "/api/v1/health/redis",
|
|
1061
|
-
path: {
|
|
1062
|
-
region: data.region
|
|
1063
|
-
},
|
|
1064
1174
|
errors: {
|
|
1065
1175
|
503: "Redis unavailable"
|
|
1066
1176
|
}
|
|
@@ -1068,18 +1178,13 @@ var HealthService = class {
|
|
|
1068
1178
|
}
|
|
1069
1179
|
/**
|
|
1070
1180
|
* Get status of all circuit breakers
|
|
1071
|
-
* @param data The data for the request.
|
|
1072
|
-
* @param data.region Region code (cn, us, de)
|
|
1073
1181
|
* @returns unknown Circuit breaker status
|
|
1074
1182
|
* @throws ApiError
|
|
1075
1183
|
*/
|
|
1076
|
-
static healthControllerGetCircuitBreakersHealth(
|
|
1184
|
+
static healthControllerGetCircuitBreakersHealth() {
|
|
1077
1185
|
return request(OpenAPI, {
|
|
1078
1186
|
method: "GET",
|
|
1079
1187
|
url: "/api/v1/health/circuit-breakers",
|
|
1080
|
-
path: {
|
|
1081
|
-
region: data.region
|
|
1082
|
-
},
|
|
1083
1188
|
errors: {
|
|
1084
1189
|
401: "Unauthorized",
|
|
1085
1190
|
500: "Internal error"
|
|
@@ -1090,7 +1195,6 @@ var HealthService = class {
|
|
|
1090
1195
|
* Reset a circuit breaker to CLOSED state
|
|
1091
1196
|
* @param data The data for the request.
|
|
1092
1197
|
* @param data.name Circuit breaker name to reset
|
|
1093
|
-
* @param data.region Region code (cn, us, de)
|
|
1094
1198
|
* @returns unknown Circuit breaker reset successfully
|
|
1095
1199
|
* @throws ApiError
|
|
1096
1200
|
*/
|
|
@@ -1099,8 +1203,7 @@ var HealthService = class {
|
|
|
1099
1203
|
method: "POST",
|
|
1100
1204
|
url: "/api/v1/health/circuit-breakers/{name}/reset",
|
|
1101
1205
|
path: {
|
|
1102
|
-
name: data.name
|
|
1103
|
-
region: data.region
|
|
1206
|
+
name: data.name
|
|
1104
1207
|
},
|
|
1105
1208
|
errors: {
|
|
1106
1209
|
401: "Unauthorized",
|
|
@@ -1110,88 +1213,18 @@ var HealthService = class {
|
|
|
1110
1213
|
}
|
|
1111
1214
|
/**
|
|
1112
1215
|
* Get health check metrics and statistics
|
|
1113
|
-
* @param data The data for the request.
|
|
1114
|
-
* @param data.region Region code (cn, us, de)
|
|
1115
1216
|
* @returns unknown Health metrics
|
|
1116
1217
|
* @throws ApiError
|
|
1117
1218
|
*/
|
|
1118
|
-
static healthControllerGetMetrics(
|
|
1219
|
+
static healthControllerGetMetrics() {
|
|
1119
1220
|
return request(OpenAPI, {
|
|
1120
1221
|
method: "GET",
|
|
1121
1222
|
url: "/api/v1/health/metrics",
|
|
1122
|
-
path: {
|
|
1123
|
-
region: data.region
|
|
1124
|
-
},
|
|
1125
1223
|
errors: {
|
|
1126
1224
|
401: "Unauthorized"
|
|
1127
1225
|
}
|
|
1128
1226
|
});
|
|
1129
1227
|
}
|
|
1130
|
-
/**
|
|
1131
|
-
* Check health of a specific data enhancer
|
|
1132
|
-
* @param data The data for the request.
|
|
1133
|
-
* @param data.name Data enhancer name
|
|
1134
|
-
* @param data.region Region code (cn, us, de)
|
|
1135
|
-
* @returns unknown Data enhancer is healthy
|
|
1136
|
-
* @throws ApiError
|
|
1137
|
-
*/
|
|
1138
|
-
static healthControllerGetHealthOfDataEnhancer(data) {
|
|
1139
|
-
return request(OpenAPI, {
|
|
1140
|
-
method: "GET",
|
|
1141
|
-
url: "/api/v1/health/data-enhancer/{name}",
|
|
1142
|
-
path: {
|
|
1143
|
-
name: data.name,
|
|
1144
|
-
region: data.region
|
|
1145
|
-
},
|
|
1146
|
-
errors: {
|
|
1147
|
-
401: "Unauthorized",
|
|
1148
|
-
503: "Data enhancer unavailable"
|
|
1149
|
-
}
|
|
1150
|
-
});
|
|
1151
|
-
}
|
|
1152
|
-
/**
|
|
1153
|
-
* Check health of all data providers
|
|
1154
|
-
* @param data The data for the request.
|
|
1155
|
-
* @param data.region Region code (cn, us, de)
|
|
1156
|
-
* @returns unknown Data providers health status
|
|
1157
|
-
* @throws ApiError
|
|
1158
|
-
*/
|
|
1159
|
-
static healthControllerCheckDataProviders(data) {
|
|
1160
|
-
return request(OpenAPI, {
|
|
1161
|
-
method: "GET",
|
|
1162
|
-
url: "/api/v1/health/data-providers",
|
|
1163
|
-
path: {
|
|
1164
|
-
region: data.region
|
|
1165
|
-
},
|
|
1166
|
-
errors: {
|
|
1167
|
-
401: "Unauthorized",
|
|
1168
|
-
503: "Data providers check failed"
|
|
1169
|
-
}
|
|
1170
|
-
});
|
|
1171
|
-
}
|
|
1172
|
-
/**
|
|
1173
|
-
* Check health of a specific data provider
|
|
1174
|
-
* @param data The data for the request.
|
|
1175
|
-
* @param data.dataSource Data source identifier
|
|
1176
|
-
* @param data.region Region code (cn, us, de)
|
|
1177
|
-
* @returns unknown Data provider is healthy
|
|
1178
|
-
* @throws ApiError
|
|
1179
|
-
*/
|
|
1180
|
-
static healthControllerGetHealthOfDataProvider(data) {
|
|
1181
|
-
return request(OpenAPI, {
|
|
1182
|
-
method: "GET",
|
|
1183
|
-
url: "/api/v1/health/data-provider/{dataSource}",
|
|
1184
|
-
path: {
|
|
1185
|
-
dataSource: data.dataSource,
|
|
1186
|
-
region: data.region
|
|
1187
|
-
},
|
|
1188
|
-
errors: {
|
|
1189
|
-
400: "Invalid data source",
|
|
1190
|
-
401: "Unauthorized",
|
|
1191
|
-
503: "Data provider unavailable"
|
|
1192
|
-
}
|
|
1193
|
-
});
|
|
1194
|
-
}
|
|
1195
1228
|
};
|
|
1196
1229
|
export {
|
|
1197
1230
|
BeanAccountsService,
|
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.c5520a90",
|
|
4
4
|
"description": "TypeScript types generated from IGN OpenAPI specification",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "FireLa Team",
|
|
@@ -24,8 +24,7 @@
|
|
|
24
24
|
"src"
|
|
25
25
|
],
|
|
26
26
|
"scripts": {
|
|
27
|
-
"
|
|
28
|
-
"generate": "npm run sync && openapi-ts",
|
|
27
|
+
"generate": "openapi-ts",
|
|
29
28
|
"build": "tsup src/index.ts --format cjs,esm --dts --clean",
|
|
30
29
|
"lint": "spectral lint openapi.yaml",
|
|
31
30
|
"prepublishOnly": "npm run generate && npm run build"
|