@firela/api-types 0.0.0-canary.5639ea2d → 0.0.0-canary.6feee68d
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 +1917 -725
- package/dist/index.d.ts +1917 -725
- package/dist/index.js +100 -73
- package/dist/index.mjs +100 -73
- package/package.json +1 -1
- package/src/generated/schemas.gen.ts +1608 -280
- package/src/generated/services.gen.ts +918 -601
- package/src/generated/types.gen.ts +2052 -764
package/dist/index.js
CHANGED
|
@@ -690,22 +690,33 @@ var BeanTransactionsService = class {
|
|
|
690
690
|
accountId: data.accountId
|
|
691
691
|
},
|
|
692
692
|
errors: {
|
|
693
|
+
400: "Validation failed",
|
|
693
694
|
401: "Authentication required"
|
|
694
695
|
}
|
|
695
696
|
});
|
|
696
697
|
}
|
|
697
698
|
/**
|
|
699
|
+
* @deprecated
|
|
700
|
+
* Batch create transactions (DEPRECATED)
|
|
701
|
+
* DEPRECATED: Use POST /:region/bean/import/provider/:name/sync instead. This endpoint skips dedup, rule matching, and review branching.
|
|
698
702
|
* @param data The data for the request.
|
|
699
703
|
* @param data.region Region code for tenant context
|
|
700
|
-
* @
|
|
704
|
+
* @param data.requestBody
|
|
705
|
+
* @returns BatchTransactionResponseDto Transactions processed
|
|
701
706
|
* @throws ApiError
|
|
702
707
|
*/
|
|
703
|
-
static
|
|
708
|
+
static transactionControllerCreateBatch(data) {
|
|
704
709
|
return request(OpenAPI, {
|
|
705
710
|
method: "POST",
|
|
706
711
|
url: "/api/v1/{region}/bean/transactions/batch",
|
|
707
712
|
path: {
|
|
708
713
|
region: data.region
|
|
714
|
+
},
|
|
715
|
+
body: data.requestBody,
|
|
716
|
+
mediaType: "application/json",
|
|
717
|
+
errors: {
|
|
718
|
+
400: "Invalid input",
|
|
719
|
+
401: "Authentication required"
|
|
709
720
|
}
|
|
710
721
|
});
|
|
711
722
|
}
|
|
@@ -760,17 +771,26 @@ var BeanTransactionsService = class {
|
|
|
760
771
|
});
|
|
761
772
|
}
|
|
762
773
|
/**
|
|
774
|
+
* Void transaction
|
|
775
|
+
* Soft-deletes a transaction by marking it as VOIDED
|
|
763
776
|
* @param data The data for the request.
|
|
777
|
+
* @param data.id Transaction ID
|
|
764
778
|
* @param data.region Region code for tenant context
|
|
765
|
-
* @returns void
|
|
779
|
+
* @returns void Transaction voided successfully
|
|
766
780
|
* @throws ApiError
|
|
767
781
|
*/
|
|
768
|
-
static
|
|
782
|
+
static transactionControllerDelete(data) {
|
|
769
783
|
return request(OpenAPI, {
|
|
770
784
|
method: "DELETE",
|
|
771
785
|
url: "/api/v1/{region}/bean/transactions/{id}",
|
|
772
786
|
path: {
|
|
787
|
+
id: data.id,
|
|
773
788
|
region: data.region
|
|
789
|
+
},
|
|
790
|
+
errors: {
|
|
791
|
+
400: "Transaction already voided",
|
|
792
|
+
401: "Authentication required",
|
|
793
|
+
404: "Transaction not found"
|
|
774
794
|
}
|
|
775
795
|
});
|
|
776
796
|
}
|
|
@@ -781,6 +801,7 @@ var BeanBalancesService = class {
|
|
|
781
801
|
* Calculate account balance at a specific date for a single currency
|
|
782
802
|
* @param data The data for the request.
|
|
783
803
|
* @param data.account Account name (e.g., "Assets:Bank:Checking")
|
|
804
|
+
* @param data.region Region code for tenant context
|
|
784
805
|
* @param data.date Date to calculate balance at (ISO 8601 format)
|
|
785
806
|
* @param data.currency Currency to query (e.g., "USD", "CNY")
|
|
786
807
|
* @returns BalanceResponseDto Balance calculated successfully
|
|
@@ -790,6 +811,9 @@ var BeanBalancesService = class {
|
|
|
790
811
|
return request(OpenAPI, {
|
|
791
812
|
method: "GET",
|
|
792
813
|
url: "/api/v1/{region}/bean/balances",
|
|
814
|
+
path: {
|
|
815
|
+
region: data.region
|
|
816
|
+
},
|
|
793
817
|
query: {
|
|
794
818
|
account: data.account,
|
|
795
819
|
date: data.date,
|
|
@@ -804,13 +828,18 @@ var BeanBalancesService = class {
|
|
|
804
828
|
/**
|
|
805
829
|
* Query multi-currency account balance
|
|
806
830
|
* Calculate account balances for all currencies at a specific date
|
|
831
|
+
* @param data The data for the request.
|
|
832
|
+
* @param data.region Region code for tenant context
|
|
807
833
|
* @returns MultiCurrencyBalanceResponseDto Balances calculated successfully
|
|
808
834
|
* @throws ApiError
|
|
809
835
|
*/
|
|
810
|
-
static balanceControllerGetMultiCurrencyBalance() {
|
|
836
|
+
static balanceControllerGetMultiCurrencyBalance(data) {
|
|
811
837
|
return request(OpenAPI, {
|
|
812
838
|
method: "GET",
|
|
813
839
|
url: "/api/v1/{region}/bean/balances/multi-currency",
|
|
840
|
+
path: {
|
|
841
|
+
region: data.region
|
|
842
|
+
},
|
|
814
843
|
errors: {
|
|
815
844
|
400: "Invalid query parameters",
|
|
816
845
|
401: "User not authenticated"
|
|
@@ -820,17 +849,26 @@ var BeanBalancesService = class {
|
|
|
820
849
|
};
|
|
821
850
|
var BeanCommoditiesService = class {
|
|
822
851
|
/**
|
|
852
|
+
* Create a new commodity
|
|
853
|
+
* Creates a new commodity definition for the authenticated user
|
|
823
854
|
* @param data The data for the request.
|
|
824
855
|
* @param data.region Region code for tenant context
|
|
825
|
-
* @
|
|
856
|
+
* @param data.requestBody
|
|
857
|
+
* @returns CommodityResponseDto Commodity created successfully
|
|
826
858
|
* @throws ApiError
|
|
827
859
|
*/
|
|
828
|
-
static
|
|
860
|
+
static commodityControllerCreate(data) {
|
|
829
861
|
return request(OpenAPI, {
|
|
830
862
|
method: "POST",
|
|
831
863
|
url: "/api/v1/{region}/bean/commodities",
|
|
832
864
|
path: {
|
|
833
865
|
region: data.region
|
|
866
|
+
},
|
|
867
|
+
body: data.requestBody,
|
|
868
|
+
mediaType: "application/json",
|
|
869
|
+
errors: {
|
|
870
|
+
400: "Invalid input data",
|
|
871
|
+
409: "Commodity already exists"
|
|
834
872
|
}
|
|
835
873
|
});
|
|
836
874
|
}
|
|
@@ -880,57 +918,81 @@ var BeanCommoditiesService = class {
|
|
|
880
918
|
});
|
|
881
919
|
}
|
|
882
920
|
/**
|
|
921
|
+
* Update commodity
|
|
922
|
+
* Updates an existing commodity definition. Symbol cannot be changed.
|
|
883
923
|
* @param data The data for the request.
|
|
924
|
+
* @param data.symbol Commodity symbol
|
|
884
925
|
* @param data.region Region code for tenant context
|
|
885
|
-
* @
|
|
926
|
+
* @param data.requestBody
|
|
927
|
+
* @returns CommodityResponseDto Commodity updated successfully
|
|
886
928
|
* @throws ApiError
|
|
887
929
|
*/
|
|
888
|
-
static
|
|
930
|
+
static commodityControllerUpdate(data) {
|
|
889
931
|
return request(OpenAPI, {
|
|
890
932
|
method: "PUT",
|
|
891
933
|
url: "/api/v1/{region}/bean/commodities/{symbol}",
|
|
892
934
|
path: {
|
|
935
|
+
symbol: data.symbol,
|
|
893
936
|
region: data.region
|
|
937
|
+
},
|
|
938
|
+
body: data.requestBody,
|
|
939
|
+
mediaType: "application/json",
|
|
940
|
+
errors: {
|
|
941
|
+
400: "Invalid input data",
|
|
942
|
+
404: "Commodity not found"
|
|
894
943
|
}
|
|
895
944
|
});
|
|
896
945
|
}
|
|
897
946
|
/**
|
|
947
|
+
* Delete commodity
|
|
948
|
+
* Deletes a commodity definition
|
|
898
949
|
* @param data The data for the request.
|
|
950
|
+
* @param data.symbol Commodity symbol
|
|
899
951
|
* @param data.region Region code for tenant context
|
|
900
|
-
* @returns void
|
|
952
|
+
* @returns void Commodity deleted successfully
|
|
901
953
|
* @throws ApiError
|
|
902
954
|
*/
|
|
903
|
-
static
|
|
955
|
+
static commodityControllerDelete(data) {
|
|
904
956
|
return request(OpenAPI, {
|
|
905
957
|
method: "DELETE",
|
|
906
958
|
url: "/api/v1/{region}/bean/commodities/{symbol}",
|
|
907
959
|
path: {
|
|
960
|
+
symbol: data.symbol,
|
|
908
961
|
region: data.region
|
|
962
|
+
},
|
|
963
|
+
errors: {
|
|
964
|
+
404: "Commodity not found"
|
|
909
965
|
}
|
|
910
966
|
});
|
|
911
967
|
}
|
|
912
968
|
/**
|
|
969
|
+
* Ensure commodity exists
|
|
970
|
+
* Gets existing commodity or creates it with automatic initialization from OpenBB
|
|
913
971
|
* @param data The data for the request.
|
|
972
|
+
* @param data.symbol Commodity symbol
|
|
914
973
|
* @param data.region Region code for tenant context
|
|
915
|
-
* @returns
|
|
974
|
+
* @returns CommodityResponseDto Commodity retrieved or created
|
|
916
975
|
* @throws ApiError
|
|
917
976
|
*/
|
|
918
|
-
static
|
|
977
|
+
static commodityControllerGetOrCreate(data) {
|
|
919
978
|
return request(OpenAPI, {
|
|
920
979
|
method: "POST",
|
|
921
980
|
url: "/api/v1/{region}/bean/commodities/{symbol}/ensure",
|
|
922
981
|
path: {
|
|
982
|
+
symbol: data.symbol,
|
|
923
983
|
region: data.region
|
|
924
984
|
}
|
|
925
985
|
});
|
|
926
986
|
}
|
|
927
987
|
/**
|
|
988
|
+
* Bulk create commodities
|
|
989
|
+
* Creates multiple commodities from a list of symbols, useful for initialization
|
|
928
990
|
* @param data The data for the request.
|
|
929
991
|
* @param data.region Region code for tenant context
|
|
930
|
-
* @returns
|
|
992
|
+
* @returns CommodityResponseDto Commodities created successfully
|
|
931
993
|
* @throws ApiError
|
|
932
994
|
*/
|
|
933
|
-
static
|
|
995
|
+
static commodityControllerBulkCreate(data) {
|
|
934
996
|
return request(OpenAPI, {
|
|
935
997
|
method: "POST",
|
|
936
998
|
url: "/api/v1/{region}/bean/commodities/bulk",
|
|
@@ -991,13 +1053,18 @@ var ProviderSyncService = class {
|
|
|
991
1053
|
/**
|
|
992
1054
|
* Get supported providers
|
|
993
1055
|
* Returns a list of all providers supported by the sync endpoint.
|
|
1056
|
+
* @param data The data for the request.
|
|
1057
|
+
* @param data.region Region code for tenant context
|
|
994
1058
|
* @returns SupportedProvidersResponseDto List of supported providers
|
|
995
1059
|
* @throws ApiError
|
|
996
1060
|
*/
|
|
997
|
-
static providerSyncControllerGetSupportedProviders() {
|
|
1061
|
+
static providerSyncControllerGetSupportedProviders(data) {
|
|
998
1062
|
return request(OpenAPI, {
|
|
999
1063
|
method: "GET",
|
|
1000
1064
|
url: "/api/v1/{region}/bean/import/provider/supported",
|
|
1065
|
+
path: {
|
|
1066
|
+
region: data.region
|
|
1067
|
+
},
|
|
1001
1068
|
errors: {
|
|
1002
1069
|
401: "Missing or invalid authentication"
|
|
1003
1070
|
}
|
|
@@ -1008,6 +1075,7 @@ var ProviderSyncService = class {
|
|
|
1008
1075
|
* Returns whether a specific provider is supported.
|
|
1009
1076
|
* @param data The data for the request.
|
|
1010
1077
|
* @param data.providerName Provider name to check
|
|
1078
|
+
* @param data.region Region code for tenant context
|
|
1011
1079
|
* @returns unknown Provider support status
|
|
1012
1080
|
* @throws ApiError
|
|
1013
1081
|
*/
|
|
@@ -1016,7 +1084,8 @@ var ProviderSyncService = class {
|
|
|
1016
1084
|
method: "GET",
|
|
1017
1085
|
url: "/api/v1/{region}/bean/import/provider/{providerName}/supported",
|
|
1018
1086
|
path: {
|
|
1019
|
-
providerName: data.providerName
|
|
1087
|
+
providerName: data.providerName,
|
|
1088
|
+
region: data.region
|
|
1020
1089
|
},
|
|
1021
1090
|
errors: {
|
|
1022
1091
|
401: "Missing or invalid authentication"
|
|
@@ -1053,6 +1122,20 @@ var HealthService = class {
|
|
|
1053
1122
|
}
|
|
1054
1123
|
});
|
|
1055
1124
|
}
|
|
1125
|
+
/**
|
|
1126
|
+
* Check OpenBB schema status
|
|
1127
|
+
* @returns unknown OpenBB status
|
|
1128
|
+
* @throws ApiError
|
|
1129
|
+
*/
|
|
1130
|
+
static healthControllerCheckOpenBb() {
|
|
1131
|
+
return request(OpenAPI, {
|
|
1132
|
+
method: "GET",
|
|
1133
|
+
url: "/api/v1/health/openbb",
|
|
1134
|
+
errors: {
|
|
1135
|
+
503: "OpenBB unavailable"
|
|
1136
|
+
}
|
|
1137
|
+
});
|
|
1138
|
+
}
|
|
1056
1139
|
/**
|
|
1057
1140
|
* Check Redis connection health
|
|
1058
1141
|
* @returns unknown Redis is healthy
|
|
@@ -1116,62 +1199,6 @@ var HealthService = class {
|
|
|
1116
1199
|
}
|
|
1117
1200
|
});
|
|
1118
1201
|
}
|
|
1119
|
-
/**
|
|
1120
|
-
* Check health of a specific data enhancer
|
|
1121
|
-
* @param data The data for the request.
|
|
1122
|
-
* @param data.name Data enhancer name
|
|
1123
|
-
* @returns unknown Data enhancer is healthy
|
|
1124
|
-
* @throws ApiError
|
|
1125
|
-
*/
|
|
1126
|
-
static healthControllerGetHealthOfDataEnhancer(data) {
|
|
1127
|
-
return request(OpenAPI, {
|
|
1128
|
-
method: "GET",
|
|
1129
|
-
url: "/api/v1/health/data-enhancer/{name}",
|
|
1130
|
-
path: {
|
|
1131
|
-
name: data.name
|
|
1132
|
-
},
|
|
1133
|
-
errors: {
|
|
1134
|
-
401: "Unauthorized",
|
|
1135
|
-
503: "Data enhancer unavailable"
|
|
1136
|
-
}
|
|
1137
|
-
});
|
|
1138
|
-
}
|
|
1139
|
-
/**
|
|
1140
|
-
* Check health of all data providers
|
|
1141
|
-
* @returns unknown Data providers health status
|
|
1142
|
-
* @throws ApiError
|
|
1143
|
-
*/
|
|
1144
|
-
static healthControllerCheckDataProviders() {
|
|
1145
|
-
return request(OpenAPI, {
|
|
1146
|
-
method: "GET",
|
|
1147
|
-
url: "/api/v1/health/data-providers",
|
|
1148
|
-
errors: {
|
|
1149
|
-
401: "Unauthorized",
|
|
1150
|
-
503: "Data providers check failed"
|
|
1151
|
-
}
|
|
1152
|
-
});
|
|
1153
|
-
}
|
|
1154
|
-
/**
|
|
1155
|
-
* Check health of a specific data provider
|
|
1156
|
-
* @param data The data for the request.
|
|
1157
|
-
* @param data.dataSource Data source identifier
|
|
1158
|
-
* @returns unknown Data provider is healthy
|
|
1159
|
-
* @throws ApiError
|
|
1160
|
-
*/
|
|
1161
|
-
static healthControllerGetHealthOfDataProvider(data) {
|
|
1162
|
-
return request(OpenAPI, {
|
|
1163
|
-
method: "GET",
|
|
1164
|
-
url: "/api/v1/health/data-provider/{dataSource}",
|
|
1165
|
-
path: {
|
|
1166
|
-
dataSource: data.dataSource
|
|
1167
|
-
},
|
|
1168
|
-
errors: {
|
|
1169
|
-
400: "Invalid data source",
|
|
1170
|
-
401: "Unauthorized",
|
|
1171
|
-
503: "Data provider unavailable"
|
|
1172
|
-
}
|
|
1173
|
-
});
|
|
1174
|
-
}
|
|
1175
1202
|
};
|
|
1176
1203
|
// Annotate the CommonJS export names for ESM import in node:
|
|
1177
1204
|
0 && (module.exports = {
|
package/dist/index.mjs
CHANGED
|
@@ -658,22 +658,33 @@ var BeanTransactionsService = class {
|
|
|
658
658
|
accountId: data.accountId
|
|
659
659
|
},
|
|
660
660
|
errors: {
|
|
661
|
+
400: "Validation failed",
|
|
661
662
|
401: "Authentication required"
|
|
662
663
|
}
|
|
663
664
|
});
|
|
664
665
|
}
|
|
665
666
|
/**
|
|
667
|
+
* @deprecated
|
|
668
|
+
* Batch create transactions (DEPRECATED)
|
|
669
|
+
* DEPRECATED: Use POST /:region/bean/import/provider/:name/sync instead. This endpoint skips dedup, rule matching, and review branching.
|
|
666
670
|
* @param data The data for the request.
|
|
667
671
|
* @param data.region Region code for tenant context
|
|
668
|
-
* @
|
|
672
|
+
* @param data.requestBody
|
|
673
|
+
* @returns BatchTransactionResponseDto Transactions processed
|
|
669
674
|
* @throws ApiError
|
|
670
675
|
*/
|
|
671
|
-
static
|
|
676
|
+
static transactionControllerCreateBatch(data) {
|
|
672
677
|
return request(OpenAPI, {
|
|
673
678
|
method: "POST",
|
|
674
679
|
url: "/api/v1/{region}/bean/transactions/batch",
|
|
675
680
|
path: {
|
|
676
681
|
region: data.region
|
|
682
|
+
},
|
|
683
|
+
body: data.requestBody,
|
|
684
|
+
mediaType: "application/json",
|
|
685
|
+
errors: {
|
|
686
|
+
400: "Invalid input",
|
|
687
|
+
401: "Authentication required"
|
|
677
688
|
}
|
|
678
689
|
});
|
|
679
690
|
}
|
|
@@ -728,17 +739,26 @@ var BeanTransactionsService = class {
|
|
|
728
739
|
});
|
|
729
740
|
}
|
|
730
741
|
/**
|
|
742
|
+
* Void transaction
|
|
743
|
+
* Soft-deletes a transaction by marking it as VOIDED
|
|
731
744
|
* @param data The data for the request.
|
|
745
|
+
* @param data.id Transaction ID
|
|
732
746
|
* @param data.region Region code for tenant context
|
|
733
|
-
* @returns void
|
|
747
|
+
* @returns void Transaction voided successfully
|
|
734
748
|
* @throws ApiError
|
|
735
749
|
*/
|
|
736
|
-
static
|
|
750
|
+
static transactionControllerDelete(data) {
|
|
737
751
|
return request(OpenAPI, {
|
|
738
752
|
method: "DELETE",
|
|
739
753
|
url: "/api/v1/{region}/bean/transactions/{id}",
|
|
740
754
|
path: {
|
|
755
|
+
id: data.id,
|
|
741
756
|
region: data.region
|
|
757
|
+
},
|
|
758
|
+
errors: {
|
|
759
|
+
400: "Transaction already voided",
|
|
760
|
+
401: "Authentication required",
|
|
761
|
+
404: "Transaction not found"
|
|
742
762
|
}
|
|
743
763
|
});
|
|
744
764
|
}
|
|
@@ -749,6 +769,7 @@ var BeanBalancesService = class {
|
|
|
749
769
|
* Calculate account balance at a specific date for a single currency
|
|
750
770
|
* @param data The data for the request.
|
|
751
771
|
* @param data.account Account name (e.g., "Assets:Bank:Checking")
|
|
772
|
+
* @param data.region Region code for tenant context
|
|
752
773
|
* @param data.date Date to calculate balance at (ISO 8601 format)
|
|
753
774
|
* @param data.currency Currency to query (e.g., "USD", "CNY")
|
|
754
775
|
* @returns BalanceResponseDto Balance calculated successfully
|
|
@@ -758,6 +779,9 @@ var BeanBalancesService = class {
|
|
|
758
779
|
return request(OpenAPI, {
|
|
759
780
|
method: "GET",
|
|
760
781
|
url: "/api/v1/{region}/bean/balances",
|
|
782
|
+
path: {
|
|
783
|
+
region: data.region
|
|
784
|
+
},
|
|
761
785
|
query: {
|
|
762
786
|
account: data.account,
|
|
763
787
|
date: data.date,
|
|
@@ -772,13 +796,18 @@ var BeanBalancesService = class {
|
|
|
772
796
|
/**
|
|
773
797
|
* Query multi-currency account balance
|
|
774
798
|
* Calculate account balances for all currencies at a specific date
|
|
799
|
+
* @param data The data for the request.
|
|
800
|
+
* @param data.region Region code for tenant context
|
|
775
801
|
* @returns MultiCurrencyBalanceResponseDto Balances calculated successfully
|
|
776
802
|
* @throws ApiError
|
|
777
803
|
*/
|
|
778
|
-
static balanceControllerGetMultiCurrencyBalance() {
|
|
804
|
+
static balanceControllerGetMultiCurrencyBalance(data) {
|
|
779
805
|
return request(OpenAPI, {
|
|
780
806
|
method: "GET",
|
|
781
807
|
url: "/api/v1/{region}/bean/balances/multi-currency",
|
|
808
|
+
path: {
|
|
809
|
+
region: data.region
|
|
810
|
+
},
|
|
782
811
|
errors: {
|
|
783
812
|
400: "Invalid query parameters",
|
|
784
813
|
401: "User not authenticated"
|
|
@@ -788,17 +817,26 @@ var BeanBalancesService = class {
|
|
|
788
817
|
};
|
|
789
818
|
var BeanCommoditiesService = class {
|
|
790
819
|
/**
|
|
820
|
+
* Create a new commodity
|
|
821
|
+
* Creates a new commodity definition for the authenticated user
|
|
791
822
|
* @param data The data for the request.
|
|
792
823
|
* @param data.region Region code for tenant context
|
|
793
|
-
* @
|
|
824
|
+
* @param data.requestBody
|
|
825
|
+
* @returns CommodityResponseDto Commodity created successfully
|
|
794
826
|
* @throws ApiError
|
|
795
827
|
*/
|
|
796
|
-
static
|
|
828
|
+
static commodityControllerCreate(data) {
|
|
797
829
|
return request(OpenAPI, {
|
|
798
830
|
method: "POST",
|
|
799
831
|
url: "/api/v1/{region}/bean/commodities",
|
|
800
832
|
path: {
|
|
801
833
|
region: data.region
|
|
834
|
+
},
|
|
835
|
+
body: data.requestBody,
|
|
836
|
+
mediaType: "application/json",
|
|
837
|
+
errors: {
|
|
838
|
+
400: "Invalid input data",
|
|
839
|
+
409: "Commodity already exists"
|
|
802
840
|
}
|
|
803
841
|
});
|
|
804
842
|
}
|
|
@@ -848,57 +886,81 @@ var BeanCommoditiesService = class {
|
|
|
848
886
|
});
|
|
849
887
|
}
|
|
850
888
|
/**
|
|
889
|
+
* Update commodity
|
|
890
|
+
* Updates an existing commodity definition. Symbol cannot be changed.
|
|
851
891
|
* @param data The data for the request.
|
|
892
|
+
* @param data.symbol Commodity symbol
|
|
852
893
|
* @param data.region Region code for tenant context
|
|
853
|
-
* @
|
|
894
|
+
* @param data.requestBody
|
|
895
|
+
* @returns CommodityResponseDto Commodity updated successfully
|
|
854
896
|
* @throws ApiError
|
|
855
897
|
*/
|
|
856
|
-
static
|
|
898
|
+
static commodityControllerUpdate(data) {
|
|
857
899
|
return request(OpenAPI, {
|
|
858
900
|
method: "PUT",
|
|
859
901
|
url: "/api/v1/{region}/bean/commodities/{symbol}",
|
|
860
902
|
path: {
|
|
903
|
+
symbol: data.symbol,
|
|
861
904
|
region: data.region
|
|
905
|
+
},
|
|
906
|
+
body: data.requestBody,
|
|
907
|
+
mediaType: "application/json",
|
|
908
|
+
errors: {
|
|
909
|
+
400: "Invalid input data",
|
|
910
|
+
404: "Commodity not found"
|
|
862
911
|
}
|
|
863
912
|
});
|
|
864
913
|
}
|
|
865
914
|
/**
|
|
915
|
+
* Delete commodity
|
|
916
|
+
* Deletes a commodity definition
|
|
866
917
|
* @param data The data for the request.
|
|
918
|
+
* @param data.symbol Commodity symbol
|
|
867
919
|
* @param data.region Region code for tenant context
|
|
868
|
-
* @returns void
|
|
920
|
+
* @returns void Commodity deleted successfully
|
|
869
921
|
* @throws ApiError
|
|
870
922
|
*/
|
|
871
|
-
static
|
|
923
|
+
static commodityControllerDelete(data) {
|
|
872
924
|
return request(OpenAPI, {
|
|
873
925
|
method: "DELETE",
|
|
874
926
|
url: "/api/v1/{region}/bean/commodities/{symbol}",
|
|
875
927
|
path: {
|
|
928
|
+
symbol: data.symbol,
|
|
876
929
|
region: data.region
|
|
930
|
+
},
|
|
931
|
+
errors: {
|
|
932
|
+
404: "Commodity not found"
|
|
877
933
|
}
|
|
878
934
|
});
|
|
879
935
|
}
|
|
880
936
|
/**
|
|
937
|
+
* Ensure commodity exists
|
|
938
|
+
* Gets existing commodity or creates it with automatic initialization from OpenBB
|
|
881
939
|
* @param data The data for the request.
|
|
940
|
+
* @param data.symbol Commodity symbol
|
|
882
941
|
* @param data.region Region code for tenant context
|
|
883
|
-
* @returns
|
|
942
|
+
* @returns CommodityResponseDto Commodity retrieved or created
|
|
884
943
|
* @throws ApiError
|
|
885
944
|
*/
|
|
886
|
-
static
|
|
945
|
+
static commodityControllerGetOrCreate(data) {
|
|
887
946
|
return request(OpenAPI, {
|
|
888
947
|
method: "POST",
|
|
889
948
|
url: "/api/v1/{region}/bean/commodities/{symbol}/ensure",
|
|
890
949
|
path: {
|
|
950
|
+
symbol: data.symbol,
|
|
891
951
|
region: data.region
|
|
892
952
|
}
|
|
893
953
|
});
|
|
894
954
|
}
|
|
895
955
|
/**
|
|
956
|
+
* Bulk create commodities
|
|
957
|
+
* Creates multiple commodities from a list of symbols, useful for initialization
|
|
896
958
|
* @param data The data for the request.
|
|
897
959
|
* @param data.region Region code for tenant context
|
|
898
|
-
* @returns
|
|
960
|
+
* @returns CommodityResponseDto Commodities created successfully
|
|
899
961
|
* @throws ApiError
|
|
900
962
|
*/
|
|
901
|
-
static
|
|
963
|
+
static commodityControllerBulkCreate(data) {
|
|
902
964
|
return request(OpenAPI, {
|
|
903
965
|
method: "POST",
|
|
904
966
|
url: "/api/v1/{region}/bean/commodities/bulk",
|
|
@@ -959,13 +1021,18 @@ var ProviderSyncService = class {
|
|
|
959
1021
|
/**
|
|
960
1022
|
* Get supported providers
|
|
961
1023
|
* Returns a list of all providers supported by the sync endpoint.
|
|
1024
|
+
* @param data The data for the request.
|
|
1025
|
+
* @param data.region Region code for tenant context
|
|
962
1026
|
* @returns SupportedProvidersResponseDto List of supported providers
|
|
963
1027
|
* @throws ApiError
|
|
964
1028
|
*/
|
|
965
|
-
static providerSyncControllerGetSupportedProviders() {
|
|
1029
|
+
static providerSyncControllerGetSupportedProviders(data) {
|
|
966
1030
|
return request(OpenAPI, {
|
|
967
1031
|
method: "GET",
|
|
968
1032
|
url: "/api/v1/{region}/bean/import/provider/supported",
|
|
1033
|
+
path: {
|
|
1034
|
+
region: data.region
|
|
1035
|
+
},
|
|
969
1036
|
errors: {
|
|
970
1037
|
401: "Missing or invalid authentication"
|
|
971
1038
|
}
|
|
@@ -976,6 +1043,7 @@ var ProviderSyncService = class {
|
|
|
976
1043
|
* Returns whether a specific provider is supported.
|
|
977
1044
|
* @param data The data for the request.
|
|
978
1045
|
* @param data.providerName Provider name to check
|
|
1046
|
+
* @param data.region Region code for tenant context
|
|
979
1047
|
* @returns unknown Provider support status
|
|
980
1048
|
* @throws ApiError
|
|
981
1049
|
*/
|
|
@@ -984,7 +1052,8 @@ var ProviderSyncService = class {
|
|
|
984
1052
|
method: "GET",
|
|
985
1053
|
url: "/api/v1/{region}/bean/import/provider/{providerName}/supported",
|
|
986
1054
|
path: {
|
|
987
|
-
providerName: data.providerName
|
|
1055
|
+
providerName: data.providerName,
|
|
1056
|
+
region: data.region
|
|
988
1057
|
},
|
|
989
1058
|
errors: {
|
|
990
1059
|
401: "Missing or invalid authentication"
|
|
@@ -1021,6 +1090,20 @@ var HealthService = class {
|
|
|
1021
1090
|
}
|
|
1022
1091
|
});
|
|
1023
1092
|
}
|
|
1093
|
+
/**
|
|
1094
|
+
* Check OpenBB schema status
|
|
1095
|
+
* @returns unknown OpenBB status
|
|
1096
|
+
* @throws ApiError
|
|
1097
|
+
*/
|
|
1098
|
+
static healthControllerCheckOpenBb() {
|
|
1099
|
+
return request(OpenAPI, {
|
|
1100
|
+
method: "GET",
|
|
1101
|
+
url: "/api/v1/health/openbb",
|
|
1102
|
+
errors: {
|
|
1103
|
+
503: "OpenBB unavailable"
|
|
1104
|
+
}
|
|
1105
|
+
});
|
|
1106
|
+
}
|
|
1024
1107
|
/**
|
|
1025
1108
|
* Check Redis connection health
|
|
1026
1109
|
* @returns unknown Redis is healthy
|
|
@@ -1084,62 +1167,6 @@ var HealthService = class {
|
|
|
1084
1167
|
}
|
|
1085
1168
|
});
|
|
1086
1169
|
}
|
|
1087
|
-
/**
|
|
1088
|
-
* Check health of a specific data enhancer
|
|
1089
|
-
* @param data The data for the request.
|
|
1090
|
-
* @param data.name Data enhancer name
|
|
1091
|
-
* @returns unknown Data enhancer is healthy
|
|
1092
|
-
* @throws ApiError
|
|
1093
|
-
*/
|
|
1094
|
-
static healthControllerGetHealthOfDataEnhancer(data) {
|
|
1095
|
-
return request(OpenAPI, {
|
|
1096
|
-
method: "GET",
|
|
1097
|
-
url: "/api/v1/health/data-enhancer/{name}",
|
|
1098
|
-
path: {
|
|
1099
|
-
name: data.name
|
|
1100
|
-
},
|
|
1101
|
-
errors: {
|
|
1102
|
-
401: "Unauthorized",
|
|
1103
|
-
503: "Data enhancer unavailable"
|
|
1104
|
-
}
|
|
1105
|
-
});
|
|
1106
|
-
}
|
|
1107
|
-
/**
|
|
1108
|
-
* Check health of all data providers
|
|
1109
|
-
* @returns unknown Data providers health status
|
|
1110
|
-
* @throws ApiError
|
|
1111
|
-
*/
|
|
1112
|
-
static healthControllerCheckDataProviders() {
|
|
1113
|
-
return request(OpenAPI, {
|
|
1114
|
-
method: "GET",
|
|
1115
|
-
url: "/api/v1/health/data-providers",
|
|
1116
|
-
errors: {
|
|
1117
|
-
401: "Unauthorized",
|
|
1118
|
-
503: "Data providers check failed"
|
|
1119
|
-
}
|
|
1120
|
-
});
|
|
1121
|
-
}
|
|
1122
|
-
/**
|
|
1123
|
-
* Check health of a specific data provider
|
|
1124
|
-
* @param data The data for the request.
|
|
1125
|
-
* @param data.dataSource Data source identifier
|
|
1126
|
-
* @returns unknown Data provider is healthy
|
|
1127
|
-
* @throws ApiError
|
|
1128
|
-
*/
|
|
1129
|
-
static healthControllerGetHealthOfDataProvider(data) {
|
|
1130
|
-
return request(OpenAPI, {
|
|
1131
|
-
method: "GET",
|
|
1132
|
-
url: "/api/v1/health/data-provider/{dataSource}",
|
|
1133
|
-
path: {
|
|
1134
|
-
dataSource: data.dataSource
|
|
1135
|
-
},
|
|
1136
|
-
errors: {
|
|
1137
|
-
400: "Invalid data source",
|
|
1138
|
-
401: "Unauthorized",
|
|
1139
|
-
503: "Data provider unavailable"
|
|
1140
|
-
}
|
|
1141
|
-
});
|
|
1142
|
-
}
|
|
1143
1170
|
};
|
|
1144
1171
|
export {
|
|
1145
1172
|
BeanAccountsService,
|