@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.js
CHANGED
|
@@ -670,6 +670,7 @@ var BeanTransactionsService = class {
|
|
|
670
670
|
* @param data.status Filter by transaction status
|
|
671
671
|
* @param data.search Search in narration and payee fields (max 200 chars)
|
|
672
672
|
* @param data.accountId Filter by account ID (transactions with postings to this account)
|
|
673
|
+
* @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
|
|
673
674
|
* @returns TransactionListResponseDto Transaction list
|
|
674
675
|
* @throws ApiError
|
|
675
676
|
*/
|
|
@@ -687,25 +688,93 @@ var BeanTransactionsService = class {
|
|
|
687
688
|
dateTo: data.dateTo,
|
|
688
689
|
status: data.status,
|
|
689
690
|
search: data.search,
|
|
690
|
-
accountId: data.accountId
|
|
691
|
+
accountId: data.accountId,
|
|
692
|
+
category: data.category
|
|
691
693
|
},
|
|
692
694
|
errors: {
|
|
695
|
+
400: "Validation failed",
|
|
693
696
|
401: "Authentication required"
|
|
694
697
|
}
|
|
695
698
|
});
|
|
696
699
|
}
|
|
697
700
|
/**
|
|
701
|
+
* @deprecated
|
|
702
|
+
* Batch create transactions (DEPRECATED)
|
|
703
|
+
* DEPRECATED: Use POST /:region/bean/import/provider/:name/sync instead. This endpoint skips dedup, rule matching, and review branching.
|
|
698
704
|
* @param data The data for the request.
|
|
699
705
|
* @param data.region Region code for tenant context
|
|
700
|
-
* @
|
|
706
|
+
* @param data.requestBody
|
|
707
|
+
* @returns BatchTransactionResponseDto Transactions processed
|
|
701
708
|
* @throws ApiError
|
|
702
709
|
*/
|
|
703
|
-
static
|
|
710
|
+
static transactionControllerCreateBatch(data) {
|
|
704
711
|
return request(OpenAPI, {
|
|
705
712
|
method: "POST",
|
|
706
713
|
url: "/api/v1/{region}/bean/transactions/batch",
|
|
707
714
|
path: {
|
|
708
715
|
region: data.region
|
|
716
|
+
},
|
|
717
|
+
body: data.requestBody,
|
|
718
|
+
mediaType: "application/json",
|
|
719
|
+
errors: {
|
|
720
|
+
400: "Invalid input",
|
|
721
|
+
401: "Authentication required"
|
|
722
|
+
}
|
|
723
|
+
});
|
|
724
|
+
}
|
|
725
|
+
/**
|
|
726
|
+
* Correct (supersede) a transaction
|
|
727
|
+
* Atomically voids the original (SUPERSEDED) and creates a replacement through the full validation pipeline.
|
|
728
|
+
* @param data The data for the request.
|
|
729
|
+
* @param data.id Original transaction ID to correct
|
|
730
|
+
* @param data.region Region code for tenant context
|
|
731
|
+
* @param data.requestBody
|
|
732
|
+
* @returns TransactionDetailDto Corrected transaction created
|
|
733
|
+
* @throws ApiError
|
|
734
|
+
*/
|
|
735
|
+
static transactionControllerCorrect(data) {
|
|
736
|
+
return request(OpenAPI, {
|
|
737
|
+
method: "POST",
|
|
738
|
+
url: "/api/v1/{region}/bean/transactions/{id}/correct",
|
|
739
|
+
path: {
|
|
740
|
+
id: data.id,
|
|
741
|
+
region: data.region
|
|
742
|
+
},
|
|
743
|
+
body: data.requestBody,
|
|
744
|
+
mediaType: "application/json",
|
|
745
|
+
errors: {
|
|
746
|
+
404: "Original transaction not found",
|
|
747
|
+
409: "Original no longer ACTIVE (concurrent modification)",
|
|
748
|
+
422: "Pipeline validation failed (does not balance, invalid accounts)"
|
|
749
|
+
}
|
|
750
|
+
});
|
|
751
|
+
}
|
|
752
|
+
/**
|
|
753
|
+
* Suggest transaction tags
|
|
754
|
+
* Returns distinct tags from the user ACTIVE transactions, sorted by usage, for autocomplete. Optional q performs a case-insensitive prefix match.
|
|
755
|
+
* @param data The data for the request.
|
|
756
|
+
* @param data.region Region code for tenant context
|
|
757
|
+
* @param data.q Prefix match, case-insensitive (max 50 chars)
|
|
758
|
+
* @param data.sort usage (default) or name
|
|
759
|
+
* @param data.limit Max suggestions (1-100, default 10)
|
|
760
|
+
* @returns TagSuggestionsResponseDto Tag suggestions
|
|
761
|
+
* @throws ApiError
|
|
762
|
+
*/
|
|
763
|
+
static transactionControllerSuggestTags(data) {
|
|
764
|
+
return request(OpenAPI, {
|
|
765
|
+
method: "GET",
|
|
766
|
+
url: "/api/v1/{region}/bean/transactions/tags",
|
|
767
|
+
path: {
|
|
768
|
+
region: data.region
|
|
769
|
+
},
|
|
770
|
+
query: {
|
|
771
|
+
q: data.q,
|
|
772
|
+
sort: data.sort,
|
|
773
|
+
limit: data.limit
|
|
774
|
+
},
|
|
775
|
+
errors: {
|
|
776
|
+
400: "Validation failed",
|
|
777
|
+
401: "Authentication required"
|
|
709
778
|
}
|
|
710
779
|
});
|
|
711
780
|
}
|
|
@@ -760,17 +829,26 @@ var BeanTransactionsService = class {
|
|
|
760
829
|
});
|
|
761
830
|
}
|
|
762
831
|
/**
|
|
832
|
+
* Void transaction
|
|
833
|
+
* Soft-deletes a transaction by marking it as VOIDED
|
|
763
834
|
* @param data The data for the request.
|
|
835
|
+
* @param data.id Transaction ID
|
|
764
836
|
* @param data.region Region code for tenant context
|
|
765
|
-
* @returns void
|
|
837
|
+
* @returns void Transaction voided successfully
|
|
766
838
|
* @throws ApiError
|
|
767
839
|
*/
|
|
768
|
-
static
|
|
840
|
+
static transactionControllerDelete(data) {
|
|
769
841
|
return request(OpenAPI, {
|
|
770
842
|
method: "DELETE",
|
|
771
843
|
url: "/api/v1/{region}/bean/transactions/{id}",
|
|
772
844
|
path: {
|
|
845
|
+
id: data.id,
|
|
773
846
|
region: data.region
|
|
847
|
+
},
|
|
848
|
+
errors: {
|
|
849
|
+
400: "Transaction already voided",
|
|
850
|
+
401: "Authentication required",
|
|
851
|
+
404: "Transaction not found"
|
|
774
852
|
}
|
|
775
853
|
});
|
|
776
854
|
}
|
|
@@ -781,7 +859,7 @@ var BeanBalancesService = class {
|
|
|
781
859
|
* Calculate account balance at a specific date for a single currency
|
|
782
860
|
* @param data The data for the request.
|
|
783
861
|
* @param data.account Account name (e.g., "Assets:Bank:Checking")
|
|
784
|
-
* @param data.region Region code
|
|
862
|
+
* @param data.region Region code for tenant context
|
|
785
863
|
* @param data.date Date to calculate balance at (ISO 8601 format)
|
|
786
864
|
* @param data.currency Currency to query (e.g., "USD", "CNY")
|
|
787
865
|
* @returns BalanceResponseDto Balance calculated successfully
|
|
@@ -809,7 +887,7 @@ var BeanBalancesService = class {
|
|
|
809
887
|
* Query multi-currency account balance
|
|
810
888
|
* Calculate account balances for all currencies at a specific date
|
|
811
889
|
* @param data The data for the request.
|
|
812
|
-
* @param data.region Region code
|
|
890
|
+
* @param data.region Region code for tenant context
|
|
813
891
|
* @returns MultiCurrencyBalanceResponseDto Balances calculated successfully
|
|
814
892
|
* @throws ApiError
|
|
815
893
|
*/
|
|
@@ -829,17 +907,26 @@ var BeanBalancesService = class {
|
|
|
829
907
|
};
|
|
830
908
|
var BeanCommoditiesService = class {
|
|
831
909
|
/**
|
|
910
|
+
* Create a new commodity
|
|
911
|
+
* Creates a new commodity definition for the authenticated user
|
|
832
912
|
* @param data The data for the request.
|
|
833
|
-
* @param data.region Region code
|
|
834
|
-
* @
|
|
913
|
+
* @param data.region Region code for tenant context
|
|
914
|
+
* @param data.requestBody
|
|
915
|
+
* @returns CommodityResponseDto Commodity created successfully
|
|
835
916
|
* @throws ApiError
|
|
836
917
|
*/
|
|
837
|
-
static
|
|
918
|
+
static commodityControllerCreate(data) {
|
|
838
919
|
return request(OpenAPI, {
|
|
839
920
|
method: "POST",
|
|
840
921
|
url: "/api/v1/{region}/bean/commodities",
|
|
841
922
|
path: {
|
|
842
923
|
region: data.region
|
|
924
|
+
},
|
|
925
|
+
body: data.requestBody,
|
|
926
|
+
mediaType: "application/json",
|
|
927
|
+
errors: {
|
|
928
|
+
400: "Invalid input data",
|
|
929
|
+
409: "Commodity already exists"
|
|
843
930
|
}
|
|
844
931
|
});
|
|
845
932
|
}
|
|
@@ -847,7 +934,7 @@ var BeanCommoditiesService = class {
|
|
|
847
934
|
* List user commodities
|
|
848
935
|
* Returns all commodity definitions for the authenticated user with optional filtering
|
|
849
936
|
* @param data The data for the request.
|
|
850
|
-
* @param data.region Region code
|
|
937
|
+
* @param data.region Region code for tenant context
|
|
851
938
|
* @param data.search Search term for symbol or metadata fields (partial match). Searches symbol and metadata.name.
|
|
852
939
|
* @param data.symbol Filter by exact symbol match
|
|
853
940
|
* @returns CommodityListResponseDto Commodities retrieved successfully
|
|
@@ -871,7 +958,7 @@ var BeanCommoditiesService = class {
|
|
|
871
958
|
* Returns a specific commodity definition by its symbol
|
|
872
959
|
* @param data The data for the request.
|
|
873
960
|
* @param data.symbol Commodity symbol
|
|
874
|
-
* @param data.region Region code
|
|
961
|
+
* @param data.region Region code for tenant context
|
|
875
962
|
* @returns CommodityResponseDto Commodity retrieved successfully
|
|
876
963
|
* @throws ApiError
|
|
877
964
|
*/
|
|
@@ -889,57 +976,81 @@ var BeanCommoditiesService = class {
|
|
|
889
976
|
});
|
|
890
977
|
}
|
|
891
978
|
/**
|
|
979
|
+
* Update commodity
|
|
980
|
+
* Updates an existing commodity definition. Symbol cannot be changed.
|
|
892
981
|
* @param data The data for the request.
|
|
893
|
-
* @param data.
|
|
894
|
-
* @
|
|
982
|
+
* @param data.symbol Commodity symbol
|
|
983
|
+
* @param data.region Region code for tenant context
|
|
984
|
+
* @param data.requestBody
|
|
985
|
+
* @returns CommodityResponseDto Commodity updated successfully
|
|
895
986
|
* @throws ApiError
|
|
896
987
|
*/
|
|
897
|
-
static
|
|
988
|
+
static commodityControllerUpdate(data) {
|
|
898
989
|
return request(OpenAPI, {
|
|
899
990
|
method: "PUT",
|
|
900
991
|
url: "/api/v1/{region}/bean/commodities/{symbol}",
|
|
901
992
|
path: {
|
|
993
|
+
symbol: data.symbol,
|
|
902
994
|
region: data.region
|
|
995
|
+
},
|
|
996
|
+
body: data.requestBody,
|
|
997
|
+
mediaType: "application/json",
|
|
998
|
+
errors: {
|
|
999
|
+
400: "Invalid input data",
|
|
1000
|
+
404: "Commodity not found"
|
|
903
1001
|
}
|
|
904
1002
|
});
|
|
905
1003
|
}
|
|
906
1004
|
/**
|
|
1005
|
+
* Delete commodity
|
|
1006
|
+
* Deletes a commodity definition
|
|
907
1007
|
* @param data The data for the request.
|
|
908
|
-
* @param data.
|
|
909
|
-
* @
|
|
1008
|
+
* @param data.symbol Commodity symbol
|
|
1009
|
+
* @param data.region Region code for tenant context
|
|
1010
|
+
* @returns void Commodity deleted successfully
|
|
910
1011
|
* @throws ApiError
|
|
911
1012
|
*/
|
|
912
|
-
static
|
|
1013
|
+
static commodityControllerDelete(data) {
|
|
913
1014
|
return request(OpenAPI, {
|
|
914
1015
|
method: "DELETE",
|
|
915
1016
|
url: "/api/v1/{region}/bean/commodities/{symbol}",
|
|
916
1017
|
path: {
|
|
1018
|
+
symbol: data.symbol,
|
|
917
1019
|
region: data.region
|
|
1020
|
+
},
|
|
1021
|
+
errors: {
|
|
1022
|
+
404: "Commodity not found"
|
|
918
1023
|
}
|
|
919
1024
|
});
|
|
920
1025
|
}
|
|
921
1026
|
/**
|
|
1027
|
+
* Ensure commodity exists
|
|
1028
|
+
* Gets existing commodity or creates it with automatic initialization from OpenBB
|
|
922
1029
|
* @param data The data for the request.
|
|
923
|
-
* @param data.
|
|
924
|
-
* @
|
|
1030
|
+
* @param data.symbol Commodity symbol
|
|
1031
|
+
* @param data.region Region code for tenant context
|
|
1032
|
+
* @returns CommodityResponseDto Commodity retrieved or created
|
|
925
1033
|
* @throws ApiError
|
|
926
1034
|
*/
|
|
927
|
-
static
|
|
1035
|
+
static commodityControllerGetOrCreate(data) {
|
|
928
1036
|
return request(OpenAPI, {
|
|
929
1037
|
method: "POST",
|
|
930
1038
|
url: "/api/v1/{region}/bean/commodities/{symbol}/ensure",
|
|
931
1039
|
path: {
|
|
1040
|
+
symbol: data.symbol,
|
|
932
1041
|
region: data.region
|
|
933
1042
|
}
|
|
934
1043
|
});
|
|
935
1044
|
}
|
|
936
1045
|
/**
|
|
1046
|
+
* Bulk create commodities
|
|
1047
|
+
* Creates multiple commodities from a list of symbols, useful for initialization
|
|
937
1048
|
* @param data The data for the request.
|
|
938
|
-
* @param data.region Region code
|
|
939
|
-
* @returns
|
|
1049
|
+
* @param data.region Region code for tenant context
|
|
1050
|
+
* @returns CommodityResponseDto Commodities created successfully
|
|
940
1051
|
* @throws ApiError
|
|
941
1052
|
*/
|
|
942
|
-
static
|
|
1053
|
+
static commodityControllerBulkCreate(data) {
|
|
943
1054
|
return request(OpenAPI, {
|
|
944
1055
|
method: "POST",
|
|
945
1056
|
url: "/api/v1/{region}/bean/commodities/bulk",
|
|
@@ -975,7 +1086,7 @@ var ProviderSyncService = class {
|
|
|
975
1086
|
*
|
|
976
1087
|
* @param data The data for the request.
|
|
977
1088
|
* @param data.providerName Provider name
|
|
978
|
-
* @param data.region Region code
|
|
1089
|
+
* @param data.region Region code for tenant context
|
|
979
1090
|
* @param data.requestBody
|
|
980
1091
|
* @returns ProviderSyncResponseDto Sync completed successfully
|
|
981
1092
|
* @throws ApiError
|
|
@@ -1001,7 +1112,7 @@ var ProviderSyncService = class {
|
|
|
1001
1112
|
* Get supported providers
|
|
1002
1113
|
* Returns a list of all providers supported by the sync endpoint.
|
|
1003
1114
|
* @param data The data for the request.
|
|
1004
|
-
* @param data.region Region code
|
|
1115
|
+
* @param data.region Region code for tenant context
|
|
1005
1116
|
* @returns SupportedProvidersResponseDto List of supported providers
|
|
1006
1117
|
* @throws ApiError
|
|
1007
1118
|
*/
|
|
@@ -1022,7 +1133,7 @@ var ProviderSyncService = class {
|
|
|
1022
1133
|
* Returns whether a specific provider is supported.
|
|
1023
1134
|
* @param data The data for the request.
|
|
1024
1135
|
* @param data.providerName Provider name to check
|
|
1025
|
-
* @param data.region Region code
|
|
1136
|
+
* @param data.region Region code for tenant context
|
|
1026
1137
|
* @returns unknown Provider support status
|
|
1027
1138
|
* @throws ApiError
|
|
1028
1139
|
*/
|
|
@@ -1043,18 +1154,13 @@ var ProviderSyncService = class {
|
|
|
1043
1154
|
var HealthService = class {
|
|
1044
1155
|
/**
|
|
1045
1156
|
* Basic health check for K8s/load balancer probes
|
|
1046
|
-
* @param data The data for the request.
|
|
1047
|
-
* @param data.region Region code (cn, us, de)
|
|
1048
1157
|
* @returns unknown Service is healthy
|
|
1049
1158
|
* @throws ApiError
|
|
1050
1159
|
*/
|
|
1051
|
-
static healthControllerGetHealth(
|
|
1160
|
+
static healthControllerGetHealth() {
|
|
1052
1161
|
return request(OpenAPI, {
|
|
1053
1162
|
method: "GET",
|
|
1054
1163
|
url: "/api/v1/health",
|
|
1055
|
-
path: {
|
|
1056
|
-
region: data.region
|
|
1057
|
-
},
|
|
1058
1164
|
errors: {
|
|
1059
1165
|
503: "Service unavailable"
|
|
1060
1166
|
}
|
|
@@ -1062,37 +1168,41 @@ var HealthService = class {
|
|
|
1062
1168
|
}
|
|
1063
1169
|
/**
|
|
1064
1170
|
* Check database connection health
|
|
1065
|
-
* @param data The data for the request.
|
|
1066
|
-
* @param data.region Region code (cn, us, de)
|
|
1067
1171
|
* @returns unknown Database is healthy
|
|
1068
1172
|
* @throws ApiError
|
|
1069
1173
|
*/
|
|
1070
|
-
static healthControllerCheckDatabase(
|
|
1174
|
+
static healthControllerCheckDatabase() {
|
|
1071
1175
|
return request(OpenAPI, {
|
|
1072
1176
|
method: "GET",
|
|
1073
1177
|
url: "/api/v1/health/database",
|
|
1074
|
-
path: {
|
|
1075
|
-
region: data.region
|
|
1076
|
-
},
|
|
1077
1178
|
errors: {
|
|
1078
1179
|
503: "Database unavailable"
|
|
1079
1180
|
}
|
|
1080
1181
|
});
|
|
1081
1182
|
}
|
|
1183
|
+
/**
|
|
1184
|
+
* Check OpenBB schema status
|
|
1185
|
+
* @returns unknown OpenBB status
|
|
1186
|
+
* @throws ApiError
|
|
1187
|
+
*/
|
|
1188
|
+
static healthControllerCheckOpenBb() {
|
|
1189
|
+
return request(OpenAPI, {
|
|
1190
|
+
method: "GET",
|
|
1191
|
+
url: "/api/v1/health/openbb",
|
|
1192
|
+
errors: {
|
|
1193
|
+
503: "OpenBB unavailable"
|
|
1194
|
+
}
|
|
1195
|
+
});
|
|
1196
|
+
}
|
|
1082
1197
|
/**
|
|
1083
1198
|
* Check Redis connection health
|
|
1084
|
-
* @param data The data for the request.
|
|
1085
|
-
* @param data.region Region code (cn, us, de)
|
|
1086
1199
|
* @returns unknown Redis is healthy
|
|
1087
1200
|
* @throws ApiError
|
|
1088
1201
|
*/
|
|
1089
|
-
static healthControllerCheckRedis(
|
|
1202
|
+
static healthControllerCheckRedis() {
|
|
1090
1203
|
return request(OpenAPI, {
|
|
1091
1204
|
method: "GET",
|
|
1092
1205
|
url: "/api/v1/health/redis",
|
|
1093
|
-
path: {
|
|
1094
|
-
region: data.region
|
|
1095
|
-
},
|
|
1096
1206
|
errors: {
|
|
1097
1207
|
503: "Redis unavailable"
|
|
1098
1208
|
}
|
|
@@ -1100,18 +1210,13 @@ var HealthService = class {
|
|
|
1100
1210
|
}
|
|
1101
1211
|
/**
|
|
1102
1212
|
* Get status of all circuit breakers
|
|
1103
|
-
* @param data The data for the request.
|
|
1104
|
-
* @param data.region Region code (cn, us, de)
|
|
1105
1213
|
* @returns unknown Circuit breaker status
|
|
1106
1214
|
* @throws ApiError
|
|
1107
1215
|
*/
|
|
1108
|
-
static healthControllerGetCircuitBreakersHealth(
|
|
1216
|
+
static healthControllerGetCircuitBreakersHealth() {
|
|
1109
1217
|
return request(OpenAPI, {
|
|
1110
1218
|
method: "GET",
|
|
1111
1219
|
url: "/api/v1/health/circuit-breakers",
|
|
1112
|
-
path: {
|
|
1113
|
-
region: data.region
|
|
1114
|
-
},
|
|
1115
1220
|
errors: {
|
|
1116
1221
|
401: "Unauthorized",
|
|
1117
1222
|
500: "Internal error"
|
|
@@ -1122,7 +1227,6 @@ var HealthService = class {
|
|
|
1122
1227
|
* Reset a circuit breaker to CLOSED state
|
|
1123
1228
|
* @param data The data for the request.
|
|
1124
1229
|
* @param data.name Circuit breaker name to reset
|
|
1125
|
-
* @param data.region Region code (cn, us, de)
|
|
1126
1230
|
* @returns unknown Circuit breaker reset successfully
|
|
1127
1231
|
* @throws ApiError
|
|
1128
1232
|
*/
|
|
@@ -1131,8 +1235,7 @@ var HealthService = class {
|
|
|
1131
1235
|
method: "POST",
|
|
1132
1236
|
url: "/api/v1/health/circuit-breakers/{name}/reset",
|
|
1133
1237
|
path: {
|
|
1134
|
-
name: data.name
|
|
1135
|
-
region: data.region
|
|
1238
|
+
name: data.name
|
|
1136
1239
|
},
|
|
1137
1240
|
errors: {
|
|
1138
1241
|
401: "Unauthorized",
|
|
@@ -1142,88 +1245,18 @@ var HealthService = class {
|
|
|
1142
1245
|
}
|
|
1143
1246
|
/**
|
|
1144
1247
|
* Get health check metrics and statistics
|
|
1145
|
-
* @param data The data for the request.
|
|
1146
|
-
* @param data.region Region code (cn, us, de)
|
|
1147
1248
|
* @returns unknown Health metrics
|
|
1148
1249
|
* @throws ApiError
|
|
1149
1250
|
*/
|
|
1150
|
-
static healthControllerGetMetrics(
|
|
1251
|
+
static healthControllerGetMetrics() {
|
|
1151
1252
|
return request(OpenAPI, {
|
|
1152
1253
|
method: "GET",
|
|
1153
1254
|
url: "/api/v1/health/metrics",
|
|
1154
|
-
path: {
|
|
1155
|
-
region: data.region
|
|
1156
|
-
},
|
|
1157
1255
|
errors: {
|
|
1158
1256
|
401: "Unauthorized"
|
|
1159
1257
|
}
|
|
1160
1258
|
});
|
|
1161
1259
|
}
|
|
1162
|
-
/**
|
|
1163
|
-
* Check health of a specific data enhancer
|
|
1164
|
-
* @param data The data for the request.
|
|
1165
|
-
* @param data.name Data enhancer name
|
|
1166
|
-
* @param data.region Region code (cn, us, de)
|
|
1167
|
-
* @returns unknown Data enhancer is healthy
|
|
1168
|
-
* @throws ApiError
|
|
1169
|
-
*/
|
|
1170
|
-
static healthControllerGetHealthOfDataEnhancer(data) {
|
|
1171
|
-
return request(OpenAPI, {
|
|
1172
|
-
method: "GET",
|
|
1173
|
-
url: "/api/v1/health/data-enhancer/{name}",
|
|
1174
|
-
path: {
|
|
1175
|
-
name: data.name,
|
|
1176
|
-
region: data.region
|
|
1177
|
-
},
|
|
1178
|
-
errors: {
|
|
1179
|
-
401: "Unauthorized",
|
|
1180
|
-
503: "Data enhancer unavailable"
|
|
1181
|
-
}
|
|
1182
|
-
});
|
|
1183
|
-
}
|
|
1184
|
-
/**
|
|
1185
|
-
* Check health of all data providers
|
|
1186
|
-
* @param data The data for the request.
|
|
1187
|
-
* @param data.region Region code (cn, us, de)
|
|
1188
|
-
* @returns unknown Data providers health status
|
|
1189
|
-
* @throws ApiError
|
|
1190
|
-
*/
|
|
1191
|
-
static healthControllerCheckDataProviders(data) {
|
|
1192
|
-
return request(OpenAPI, {
|
|
1193
|
-
method: "GET",
|
|
1194
|
-
url: "/api/v1/health/data-providers",
|
|
1195
|
-
path: {
|
|
1196
|
-
region: data.region
|
|
1197
|
-
},
|
|
1198
|
-
errors: {
|
|
1199
|
-
401: "Unauthorized",
|
|
1200
|
-
503: "Data providers check failed"
|
|
1201
|
-
}
|
|
1202
|
-
});
|
|
1203
|
-
}
|
|
1204
|
-
/**
|
|
1205
|
-
* Check health of a specific data provider
|
|
1206
|
-
* @param data The data for the request.
|
|
1207
|
-
* @param data.dataSource Data source identifier
|
|
1208
|
-
* @param data.region Region code (cn, us, de)
|
|
1209
|
-
* @returns unknown Data provider is healthy
|
|
1210
|
-
* @throws ApiError
|
|
1211
|
-
*/
|
|
1212
|
-
static healthControllerGetHealthOfDataProvider(data) {
|
|
1213
|
-
return request(OpenAPI, {
|
|
1214
|
-
method: "GET",
|
|
1215
|
-
url: "/api/v1/health/data-provider/{dataSource}",
|
|
1216
|
-
path: {
|
|
1217
|
-
dataSource: data.dataSource,
|
|
1218
|
-
region: data.region
|
|
1219
|
-
},
|
|
1220
|
-
errors: {
|
|
1221
|
-
400: "Invalid data source",
|
|
1222
|
-
401: "Unauthorized",
|
|
1223
|
-
503: "Data provider unavailable"
|
|
1224
|
-
}
|
|
1225
|
-
});
|
|
1226
|
-
}
|
|
1227
1260
|
};
|
|
1228
1261
|
// Annotate the CommonJS export names for ESM import in node:
|
|
1229
1262
|
0 && (module.exports = {
|