react-native-candle 1.0.1 → 19.0.7-beta
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/README.md +23 -178
- package/ReactNativeCandle.podspec +2 -2
- package/android/CMakeLists.txt +11 -0
- package/android/build.gradle +136 -0
- package/android/gradle.properties +2 -0
- package/android/src/main/AndroidManifest.xml +1 -0
- package/android/src/main/cpp/cpp-adapter.cpp +9 -0
- package/android/src/main/java/com/margelo/nitro/rncandle/BridgeTypes.kt +814 -0
- package/android/src/main/java/com/margelo/nitro/rncandle/HybridRNCandle.kt +251 -0
- package/android/src/main/java/com/margelo/nitro/rncandle/ReactNativeCandlePackage.kt +22 -0
- package/ios/Sources/RNCandle.swift +18 -4
- package/ios/Sources/Types.swift +280 -175
- package/lib/typescript/commonjs/src/context.d.ts +4 -7
- package/lib/typescript/commonjs/src/index.d.ts +4 -4
- package/lib/typescript/commonjs/src/provider.d.ts +1 -1
- package/lib/typescript/commonjs/src/specs/RNCandle.nitro.d.ts +134 -72
- package/lib/typescript/commonjs/src/types.d.ts +70 -68
- package/lib/typescript/module/src/context.d.ts +4 -7
- package/lib/typescript/module/src/index.d.ts +4 -4
- package/lib/typescript/module/src/provider.d.ts +1 -1
- package/lib/typescript/module/src/specs/RNCandle.nitro.d.ts +134 -72
- package/lib/typescript/module/src/types.d.ts +70 -68
- package/nitrogen/generated/android/ReactNativeCandle+autolinking.cmake +81 -0
- package/nitrogen/generated/android/ReactNativeCandle+autolinking.gradle +27 -0
- package/nitrogen/generated/android/ReactNativeCandleOnLoad.cpp +58 -0
- package/nitrogen/generated/android/ReactNativeCandleOnLoad.hpp +34 -0
- package/nitrogen/generated/android/c++/JACHAccountKind.hpp +58 -0
- package/nitrogen/generated/android/c++/JACHDetails.hpp +67 -0
- package/nitrogen/generated/android/c++/JActiveLinkedAccountDetails.hpp +74 -0
- package/nitrogen/generated/android/c++/JAddress.hpp +57 -0
- package/nitrogen/generated/android/c++/JAssetAccount.hpp +90 -0
- package/nitrogen/generated/android/c++/JAssetAccountKind.hpp +64 -0
- package/nitrogen/generated/android/c++/JAssetAccountRef.hpp +67 -0
- package/nitrogen/generated/android/c++/JAssetAccountsQuery.hpp +64 -0
- package/nitrogen/generated/android/c++/JAssetAccountsResponse.hpp +125 -0
- package/nitrogen/generated/android/c++/JCoordinates.hpp +61 -0
- package/nitrogen/generated/android/c++/JCounterparty.hpp +76 -0
- package/nitrogen/generated/android/c++/JCounterpartyKind.hpp +61 -0
- package/nitrogen/generated/android/c++/JCounterpartyQuoteRequest.hpp +74 -0
- package/nitrogen/generated/android/c++/JCryptoAccount.hpp +81 -0
- package/nitrogen/generated/android/c++/JCryptoAsset.hpp +99 -0
- package/nitrogen/generated/android/c++/JCryptoAssetQuoteRequest.hpp +74 -0
- package/nitrogen/generated/android/c++/JCryptoAssetRef.hpp +65 -0
- package/nitrogen/generated/android/c++/JEventAsset.hpp +107 -0
- package/nitrogen/generated/android/c++/JEventAssetQuoteRequest.hpp +70 -0
- package/nitrogen/generated/android/c++/JEventAssetRef.hpp +65 -0
- package/nitrogen/generated/android/c++/JFiatAccount.hpp +104 -0
- package/nitrogen/generated/android/c++/JFiatAsset.hpp +84 -0
- package/nitrogen/generated/android/c++/JFiatAssetQuoteRequest.hpp +70 -0
- package/nitrogen/generated/android/c++/JFiatAssetRef.hpp +66 -0
- package/nitrogen/generated/android/c++/JFinancialAccountKind.hpp +67 -0
- package/nitrogen/generated/android/c++/JFunc_void_LinkedAccount.hpp +89 -0
- package/nitrogen/generated/android/c++/JFunc_void_TradeExecutionResult.hpp +115 -0
- package/nitrogen/generated/android/c++/JHybridRNCandleSpec.cpp +559 -0
- package/nitrogen/generated/android/c++/JHybridRNCandleSpec.hpp +77 -0
- package/nitrogen/generated/android/c++/JInactiveLinkedAccountDetails.hpp +57 -0
- package/nitrogen/generated/android/c++/JLinkedAccount.hpp +80 -0
- package/nitrogen/generated/android/c++/JLinkedAccountDetails.hpp +72 -0
- package/nitrogen/generated/android/c++/JLinkedAccountRef.hpp +57 -0
- package/nitrogen/generated/android/c++/JLinkedAccountState.hpp +61 -0
- package/nitrogen/generated/android/c++/JLinkedAccountStatusRef.hpp +73 -0
- package/nitrogen/generated/android/c++/JMerchantCounterparty.hpp +72 -0
- package/nitrogen/generated/android/c++/JMerchantCounterpartyQuoteRequest.hpp +68 -0
- package/nitrogen/generated/android/c++/JMerchantLocation.hpp +65 -0
- package/nitrogen/generated/android/c++/JNothingAsset.hpp +57 -0
- package/nitrogen/generated/android/c++/JNothingAssetQuoteRequest.hpp +57 -0
- package/nitrogen/generated/android/c++/JNothingAssetRef.hpp +57 -0
- package/nitrogen/generated/android/c++/JOtherAsset.hpp +57 -0
- package/nitrogen/generated/android/c++/JOtherAssetQuoteRequest.hpp +57 -0
- package/nitrogen/generated/android/c++/JOtherAssetRef.hpp +57 -0
- package/nitrogen/generated/android/c++/JPresentationBackground.hpp +58 -0
- package/nitrogen/generated/android/c++/JPresentationStyle.hpp +58 -0
- package/nitrogen/generated/android/c++/JService.hpp +292 -0
- package/nitrogen/generated/android/c++/JServiceCounterparty.hpp +63 -0
- package/nitrogen/generated/android/c++/JServiceCounterpartyQuoteRequest.hpp +57 -0
- package/nitrogen/generated/android/c++/JStockAccount.hpp +81 -0
- package/nitrogen/generated/android/c++/JStockAsset.hpp +99 -0
- package/nitrogen/generated/android/c++/JStockAssetQuoteRequest.hpp +74 -0
- package/nitrogen/generated/android/c++/JStockAssetRef.hpp +65 -0
- package/nitrogen/generated/android/c++/JTrade.hpp +108 -0
- package/nitrogen/generated/android/c++/JTradeAsset.hpp +102 -0
- package/nitrogen/generated/android/c++/JTradeAssetKind.hpp +73 -0
- package/nitrogen/generated/android/c++/JTradeAssetQuoteRequest.hpp +100 -0
- package/nitrogen/generated/android/c++/JTradeAssetRef.hpp +96 -0
- package/nitrogen/generated/android/c++/JTradeExecutionResult.hpp +98 -0
- package/nitrogen/generated/android/c++/JTradeQuote.hpp +106 -0
- package/nitrogen/generated/android/c++/JTradeQuotesRequest.hpp +100 -0
- package/nitrogen/generated/android/c++/JTradeQuotesResponse.hpp +137 -0
- package/nitrogen/generated/android/c++/JTradeRef.hpp +78 -0
- package/nitrogen/generated/android/c++/JTradeState.hpp +61 -0
- package/nitrogen/generated/android/c++/JTradesQuery.hpp +78 -0
- package/nitrogen/generated/android/c++/JTradesResponse.hpp +139 -0
- package/nitrogen/generated/android/c++/JTransportAccount.hpp +81 -0
- package/nitrogen/generated/android/c++/JTransportAccountKind.hpp +61 -0
- package/nitrogen/generated/android/c++/JTransportAsset.hpp +123 -0
- package/nitrogen/generated/android/c++/JTransportAssetQuoteRequest.hpp +90 -0
- package/nitrogen/generated/android/c++/JTransportAssetRef.hpp +65 -0
- package/nitrogen/generated/android/c++/JUnavailableLinkedAccountDetails.hpp +57 -0
- package/nitrogen/generated/android/c++/JUserCounterparty.hpp +69 -0
- package/nitrogen/generated/android/c++/JUserCounterpartyQuoteRequest.hpp +66 -0
- package/nitrogen/generated/android/c++/JWireDetails.hpp +61 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rncandle/ACHAccountKind.kt +23 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rncandle/ACHDetails.kt +44 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rncandle/ActiveLinkedAccountDetails.kt +50 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rncandle/Address.kt +38 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rncandle/AssetAccount.kt +47 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rncandle/AssetAccountKind.kt +25 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rncandle/AssetAccountRef.kt +44 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rncandle/AssetAccountsQuery.kt +41 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rncandle/AssetAccountsResponse.kt +41 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rncandle/Coordinates.kt +41 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rncandle/Counterparty.kt +44 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rncandle/CounterpartyKind.kt +24 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rncandle/CounterpartyQuoteRequest.kt +44 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rncandle/CryptoAccount.kt +53 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rncandle/CryptoAsset.kt +68 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rncandle/CryptoAssetQuoteRequest.kt +50 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rncandle/CryptoAssetRef.kt +44 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rncandle/EventAsset.kt +71 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rncandle/EventAssetQuoteRequest.kt +47 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rncandle/EventAssetRef.kt +44 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rncandle/FiatAccount.kt +65 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rncandle/FiatAsset.kt +56 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rncandle/FiatAssetQuoteRequest.kt +47 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rncandle/FiatAssetRef.kt +44 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rncandle/FinancialAccountKind.kt +26 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rncandle/Func_void_LinkedAccount.kt +80 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rncandle/Func_void_TradeExecutionResult.kt +80 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rncandle/HybridRNCandleSpec.kt +121 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rncandle/InactiveLinkedAccountDetails.kt +38 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rncandle/LinkedAccount.kt +47 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rncandle/LinkedAccountDetails.kt +44 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rncandle/LinkedAccountRef.kt +38 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rncandle/LinkedAccountState.kt +24 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rncandle/LinkedAccountStatusRef.kt +47 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rncandle/MerchantCounterparty.kt +47 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rncandle/MerchantCounterpartyQuoteRequest.kt +44 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rncandle/MerchantLocation.kt +44 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rncandle/NothingAsset.kt +38 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rncandle/NothingAssetQuoteRequest.kt +38 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rncandle/NothingAssetRef.kt +38 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rncandle/OtherAsset.kt +38 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rncandle/OtherAssetQuoteRequest.kt +38 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rncandle/OtherAssetRef.kt +38 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rncandle/PresentationBackground.kt +23 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rncandle/PresentationStyle.kt +23 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rncandle/ReactNativeCandleOnLoad.kt +35 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rncandle/Service.kt +101 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rncandle/ServiceCounterparty.kt +41 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rncandle/ServiceCounterpartyQuoteRequest.kt +38 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rncandle/StockAccount.kt +53 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rncandle/StockAsset.kt +68 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rncandle/StockAssetQuoteRequest.kt +50 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rncandle/StockAssetRef.kt +44 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rncandle/Trade.kt +50 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rncandle/TradeAsset.kt +56 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rncandle/TradeAssetKind.kt +28 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rncandle/TradeAssetQuoteRequest.kt +56 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rncandle/TradeAssetRef.kt +56 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rncandle/TradeExecutionResult.kt +41 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rncandle/TradeQuote.kt +50 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rncandle/TradeQuotesRequest.kt +47 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rncandle/TradeQuotesResponse.kt +41 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rncandle/TradeRef.kt +41 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rncandle/TradeState.kt +24 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rncandle/TradesQuery.kt +50 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rncandle/TradesResponse.kt +41 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rncandle/TransportAccount.kt +53 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rncandle/TransportAccountKind.kt +24 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rncandle/TransportAsset.kt +83 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rncandle/TransportAssetQuoteRequest.kt +59 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rncandle/TransportAssetRef.kt +44 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rncandle/UnavailableLinkedAccountDetails.kt +38 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rncandle/UserCounterparty.kt +47 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rncandle/UserCounterpartyQuoteRequest.kt +44 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rncandle/WireDetails.kt +41 -0
- package/nitrogen/generated/ios/ReactNativeCandle+autolinking.rb +2 -2
- package/nitrogen/generated/ios/ReactNativeCandle-Swift-Cxx-Bridge.cpp +14 -13
- package/nitrogen/generated/ios/ReactNativeCandle-Swift-Cxx-Bridge.hpp +222 -99
- package/nitrogen/generated/ios/ReactNativeCandle-Swift-Cxx-Umbrella.hpp +37 -19
- package/nitrogen/generated/ios/ReactNativeCandleAutolinking.mm +1 -1
- package/nitrogen/generated/ios/ReactNativeCandleAutolinking.swift +9 -8
- package/nitrogen/generated/ios/c++/HybridRNCandleSpecSwift.cpp +1 -1
- package/nitrogen/generated/ios/c++/HybridRNCandleSpecSwift.hpp +63 -28
- package/nitrogen/generated/ios/swift/ACHAccountKind.swift +17 -15
- package/nitrogen/generated/ios/swift/ACHDetails.swift +17 -33
- package/nitrogen/generated/ios/swift/ActiveLinkedAccountDetails.swift +65 -118
- package/nitrogen/generated/ios/swift/Address.swift +9 -13
- package/nitrogen/generated/ios/swift/AssetAccount.swift +47 -96
- package/nitrogen/generated/ios/swift/AssetAccountKind.swift +25 -23
- package/nitrogen/generated/ios/swift/AssetAccountRef.swift +17 -33
- package/nitrogen/generated/ios/swift/AssetAccountsQuery.swift +33 -57
- package/nitrogen/generated/ios/swift/AssetAccountsResponse.swift +26 -50
- package/nitrogen/generated/ios/swift/Coordinates.swift +13 -23
- package/nitrogen/generated/ios/swift/Counterparty.swift +36 -99
- package/nitrogen/generated/ios/swift/CounterpartyKind.swift +21 -19
- package/nitrogen/generated/ios/swift/CounterpartyQuoteRequest.swift +36 -110
- package/nitrogen/generated/ios/swift/CryptoAccount.swift +54 -0
- package/nitrogen/generated/ios/swift/CryptoAsset.swift +79 -0
- package/nitrogen/generated/ios/swift/CryptoAssetQuoteRequest.swift +101 -0
- package/nitrogen/generated/ios/swift/CryptoAssetRef.swift +39 -0
- package/nitrogen/generated/ios/swift/EventAsset.swift +84 -0
- package/nitrogen/generated/ios/swift/EventAssetQuoteRequest.swift +83 -0
- package/nitrogen/generated/ios/swift/EventAssetRef.swift +39 -0
- package/nitrogen/generated/ios/swift/FiatAccount.swift +71 -163
- package/nitrogen/generated/ios/swift/FiatAsset.swift +47 -99
- package/nitrogen/generated/ios/swift/FiatAssetQuoteRequest.swift +61 -99
- package/nitrogen/generated/ios/swift/FiatAssetRef.swift +31 -55
- package/nitrogen/generated/ios/swift/FinancialAccountKind.swift +52 -0
- package/nitrogen/generated/ios/swift/Func_void.swift +6 -4
- package/nitrogen/generated/ios/swift/Func_void_AssetAccount.swift +6 -4
- package/nitrogen/generated/ios/swift/Func_void_AssetAccountsResponse.swift +7 -7
- package/nitrogen/generated/ios/swift/Func_void_LinkedAccount.swift +6 -4
- package/nitrogen/generated/ios/swift/Func_void_Trade.swift +6 -4
- package/nitrogen/generated/ios/swift/Func_void_TradeExecutionResult.swift +7 -7
- package/nitrogen/generated/ios/swift/Func_void_TradeQuotesResponse.swift +7 -6
- package/nitrogen/generated/ios/swift/Func_void_TradesResponse.swift +6 -4
- package/nitrogen/generated/ios/swift/Func_void_std__exception_ptr.swift +7 -6
- package/nitrogen/generated/ios/swift/Func_void_std__vector_LinkedAccount_.swift +7 -7
- package/nitrogen/generated/ios/swift/HybridRNCandleSpec.swift +29 -27
- package/nitrogen/generated/ios/swift/HybridRNCandleSpec_cxx.swift +117 -124
- package/nitrogen/generated/ios/swift/InactiveLinkedAccountDetails.swift +9 -13
- package/nitrogen/generated/ios/swift/LinkedAccount.swift +21 -45
- package/nitrogen/generated/ios/swift/LinkedAccountDetails.swift +36 -110
- package/nitrogen/generated/ios/swift/LinkedAccountRef.swift +9 -13
- package/nitrogen/generated/ios/swift/LinkedAccountState.swift +21 -19
- package/nitrogen/generated/ios/swift/LinkedAccountStatusRef.swift +21 -45
- package/nitrogen/generated/ios/swift/MerchantCounterparty.swift +28 -65
- package/nitrogen/generated/ios/swift/MerchantCounterpartyQuoteRequest.swift +39 -47
- package/nitrogen/generated/ios/swift/MerchantLocation.swift +17 -33
- package/nitrogen/generated/ios/swift/NothingAsset.swift +9 -13
- package/nitrogen/generated/ios/swift/NothingAssetQuoteRequest.swift +9 -13
- package/nitrogen/generated/ios/swift/NothingAssetRef.swift +9 -13
- package/nitrogen/generated/ios/swift/OtherAsset.swift +9 -13
- package/nitrogen/generated/ios/swift/OtherAssetQuoteRequest.swift +9 -13
- package/nitrogen/generated/ios/swift/OtherAssetRef.swift +9 -13
- package/nitrogen/generated/ios/swift/PresentationBackground.swift +17 -15
- package/nitrogen/generated/ios/swift/PresentationStyle.swift +17 -15
- package/nitrogen/generated/ios/swift/Service.swift +329 -327
- package/nitrogen/generated/ios/swift/ServiceCounterparty.swift +13 -23
- package/nitrogen/generated/ios/swift/ServiceCounterpartyQuoteRequest.swift +10 -15
- package/nitrogen/generated/ios/swift/StockAccount.swift +54 -0
- package/nitrogen/generated/ios/swift/StockAsset.swift +79 -0
- package/nitrogen/generated/ios/swift/StockAssetQuoteRequest.swift +101 -0
- package/nitrogen/generated/ios/swift/StockAssetRef.swift +39 -0
- package/nitrogen/generated/ios/swift/Trade.swift +25 -56
- package/nitrogen/generated/ios/swift/TradeAsset.swift +78 -157
- package/nitrogen/generated/ios/swift/TradeAssetKind.swift +37 -31
- package/nitrogen/generated/ios/swift/TradeAssetQuoteRequest.swift +78 -169
- package/nitrogen/generated/ios/swift/TradeAssetRef.swift +78 -159
- package/nitrogen/generated/ios/swift/TradeExecutionResult.swift +33 -64
- package/nitrogen/generated/ios/swift/TradeQuote.swift +25 -56
- package/nitrogen/generated/ios/swift/TradeQuotesRequest.swift +41 -87
- package/nitrogen/generated/ios/swift/TradeQuotesResponse.swift +26 -50
- package/nitrogen/generated/ios/swift/TradeRef.swift +13 -23
- package/nitrogen/generated/ios/swift/TradeState.swift +21 -19
- package/nitrogen/generated/ios/swift/TradesQuery.swift +70 -136
- package/nitrogen/generated/ios/swift/TradesResponse.swift +26 -50
- package/nitrogen/generated/ios/swift/TransportAccount.swift +30 -69
- package/nitrogen/generated/ios/swift/TransportAccountKind.swift +21 -19
- package/nitrogen/generated/ios/swift/TransportAsset.swift +87 -192
- package/nitrogen/generated/ios/swift/TransportAssetQuoteRequest.swift +101 -222
- package/nitrogen/generated/ios/swift/TransportAssetRef.swift +17 -33
- package/nitrogen/generated/ios/swift/UnavailableLinkedAccountDetails.swift +10 -15
- package/nitrogen/generated/ios/swift/UserCounterparty.swift +21 -43
- package/nitrogen/generated/ios/swift/UserCounterpartyQuoteRequest.swift +44 -75
- package/nitrogen/generated/ios/swift/WireDetails.swift +13 -23
- package/nitrogen/generated/shared/c++/ACHAccountKind.hpp +1 -1
- package/nitrogen/generated/shared/c++/ACHDetails.hpp +27 -11
- package/nitrogen/generated/shared/c++/ActiveLinkedAccountDetails.hpp +33 -17
- package/nitrogen/generated/shared/c++/Address.hpp +21 -5
- package/nitrogen/generated/shared/c++/AssetAccount.hpp +39 -16
- package/nitrogen/generated/shared/c++/AssetAccountKind.hpp +7 -7
- package/nitrogen/generated/shared/c++/AssetAccountRef.hpp +27 -11
- package/nitrogen/generated/shared/c++/AssetAccountsQuery.hpp +24 -8
- package/nitrogen/generated/shared/c++/AssetAccountsResponse.hpp +24 -8
- package/nitrogen/generated/shared/c++/Coordinates.hpp +24 -8
- package/nitrogen/generated/shared/c++/Counterparty.hpp +27 -11
- package/nitrogen/generated/shared/c++/CounterpartyKind.hpp +1 -1
- package/nitrogen/generated/shared/c++/CounterpartyQuoteRequest.hpp +27 -11
- package/nitrogen/generated/shared/c++/CryptoAccount.hpp +108 -0
- package/nitrogen/generated/shared/c++/CryptoAsset.hpp +125 -0
- package/nitrogen/generated/shared/c++/CryptoAssetQuoteRequest.hpp +100 -0
- package/nitrogen/generated/shared/c++/CryptoAssetRef.hpp +91 -0
- package/nitrogen/generated/shared/c++/EventAsset.hpp +135 -0
- package/nitrogen/generated/shared/c++/EventAssetQuoteRequest.hpp +96 -0
- package/nitrogen/generated/shared/c++/EventAssetRef.hpp +91 -0
- package/nitrogen/generated/shared/c++/FiatAccount.hpp +53 -37
- package/nitrogen/generated/shared/c++/FiatAsset.hpp +39 -23
- package/nitrogen/generated/shared/c++/FiatAssetQuoteRequest.hpp +30 -14
- package/nitrogen/generated/shared/c++/FiatAssetRef.hpp +27 -11
- package/nitrogen/generated/shared/c++/{FiatMarketAccountKind.hpp → FinancialAccountKind.hpp} +20 -20
- package/nitrogen/generated/shared/c++/HybridRNCandleSpec.cpp +2 -1
- package/nitrogen/generated/shared/c++/HybridRNCandleSpec.hpp +2 -1
- package/nitrogen/generated/shared/c++/InactiveLinkedAccountDetails.hpp +21 -5
- package/nitrogen/generated/shared/c++/LinkedAccount.hpp +30 -14
- package/nitrogen/generated/shared/c++/LinkedAccountDetails.hpp +27 -11
- package/nitrogen/generated/shared/c++/LinkedAccountRef.hpp +21 -5
- package/nitrogen/generated/shared/c++/LinkedAccountState.hpp +1 -1
- package/nitrogen/generated/shared/c++/LinkedAccountStatusRef.hpp +30 -14
- package/nitrogen/generated/shared/c++/MerchantCounterparty.hpp +30 -14
- package/nitrogen/generated/shared/c++/MerchantCounterpartyQuoteRequest.hpp +32 -10
- package/nitrogen/generated/shared/c++/MerchantLocation.hpp +27 -11
- package/nitrogen/generated/shared/c++/NothingAsset.hpp +21 -5
- package/nitrogen/generated/shared/c++/NothingAssetQuoteRequest.hpp +21 -5
- package/nitrogen/generated/shared/c++/NothingAssetRef.hpp +21 -5
- package/nitrogen/generated/shared/c++/OtherAsset.hpp +21 -5
- package/nitrogen/generated/shared/c++/OtherAssetQuoteRequest.hpp +21 -5
- package/nitrogen/generated/shared/c++/OtherAssetRef.hpp +21 -5
- package/nitrogen/generated/shared/c++/PresentationBackground.hpp +1 -1
- package/nitrogen/generated/shared/c++/PresentationStyle.hpp +1 -1
- package/nitrogen/generated/shared/c++/Service.hpp +1 -1
- package/nitrogen/generated/shared/c++/ServiceCounterparty.hpp +24 -8
- package/nitrogen/generated/shared/c++/ServiceCounterpartyQuoteRequest.hpp +21 -5
- package/nitrogen/generated/shared/c++/StockAccount.hpp +108 -0
- package/nitrogen/generated/shared/c++/StockAsset.hpp +125 -0
- package/nitrogen/generated/shared/c++/StockAssetQuoteRequest.hpp +100 -0
- package/nitrogen/generated/shared/c++/StockAssetRef.hpp +91 -0
- package/nitrogen/generated/shared/c++/Trade.hpp +33 -17
- package/nitrogen/generated/shared/c++/TradeAsset.hpp +52 -22
- package/nitrogen/generated/shared/c++/TradeAssetKind.hpp +13 -9
- package/nitrogen/generated/shared/c++/TradeAssetQuoteRequest.hpp +52 -22
- package/nitrogen/generated/shared/c++/TradeAssetRef.hpp +52 -22
- package/nitrogen/generated/shared/c++/TradeExecutionResult.hpp +24 -8
- package/nitrogen/generated/shared/c++/TradeQuote.hpp +33 -17
- package/nitrogen/generated/shared/c++/TradeQuotesRequest.hpp +30 -14
- package/nitrogen/generated/shared/c++/TradeQuotesResponse.hpp +24 -8
- package/nitrogen/generated/shared/c++/TradeRef.hpp +24 -8
- package/nitrogen/generated/shared/c++/TradeState.hpp +1 -1
- package/nitrogen/generated/shared/c++/TradesQuery.hpp +33 -17
- package/nitrogen/generated/shared/c++/TradesResponse.hpp +24 -8
- package/nitrogen/generated/shared/c++/TransportAccount.hpp +36 -20
- package/nitrogen/generated/shared/c++/TransportAccountKind.hpp +1 -1
- package/nitrogen/generated/shared/c++/TransportAsset.hpp +66 -50
- package/nitrogen/generated/shared/c++/TransportAssetQuoteRequest.hpp +42 -26
- package/nitrogen/generated/shared/c++/TransportAssetRef.hpp +27 -11
- package/nitrogen/generated/shared/c++/UnavailableLinkedAccountDetails.hpp +21 -5
- package/nitrogen/generated/shared/c++/UserCounterparty.hpp +30 -14
- package/nitrogen/generated/shared/c++/UserCounterpartyQuoteRequest.hpp +27 -11
- package/nitrogen/generated/shared/c++/WireDetails.hpp +24 -8
- package/package.json +26 -70
- package/react-native.config.js +10 -0
- package/src/context.ts +47 -46
- package/src/index.ts +4 -4
- package/src/provider.tsx +68 -79
- package/src/specs/RNCandle.nitro.ts +463 -399
- package/src/types.ts +317 -342
- package/app.plugin.js +0 -1
- package/lib/commonjs/context.js +0 -17
- package/lib/commonjs/context.js.map +0 -1
- package/lib/commonjs/index.js +0 -26
- package/lib/commonjs/index.js.map +0 -1
- package/lib/commonjs/package.json +0 -1
- package/lib/commonjs/provider.js +0 -122
- package/lib/commonjs/provider.js.map +0 -1
- package/lib/commonjs/specs/RNCandle.nitro.js +0 -6
- package/lib/commonjs/specs/RNCandle.nitro.js.map +0 -1
- package/lib/commonjs/types.js +0 -312
- package/lib/commonjs/types.js.map +0 -1
- package/lib/module/context.js +0 -12
- package/lib/module/context.js.map +0 -1
- package/lib/module/index.js +0 -5
- package/lib/module/index.js.map +0 -1
- package/lib/module/package.json +0 -1
- package/lib/module/provider.js +0 -116
- package/lib/module/provider.js.map +0 -1
- package/lib/module/specs/RNCandle.nitro.js +0 -4
- package/lib/module/specs/RNCandle.nitro.js.map +0 -1
- package/lib/module/types.js +0 -295
- package/lib/module/types.js.map +0 -1
- package/lib/typescript/commonjs/package.json +0 -1
- package/lib/typescript/commonjs/src/context.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/index.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/provider.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/specs/RNCandle.nitro.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/types.d.ts.map +0 -1
- package/lib/typescript/module/package.json +0 -1
- package/lib/typescript/module/src/context.d.ts.map +0 -1
- package/lib/typescript/module/src/index.d.ts.map +0 -1
- package/lib/typescript/module/src/provider.d.ts.map +0 -1
- package/lib/typescript/module/src/specs/RNCandle.nitro.d.ts.map +0 -1
- package/lib/typescript/module/src/types.d.ts.map +0 -1
- package/nitrogen/generated/ios/swift/FiatMarketAccountKind.swift +0 -50
- package/nitrogen/generated/ios/swift/MarketAccount.swift +0 -93
- package/nitrogen/generated/ios/swift/MarketAssetKind.swift +0 -38
- package/nitrogen/generated/ios/swift/MarketAssetQuoteRequest.swift +0 -154
- package/nitrogen/generated/ios/swift/MarketTradeAsset.swift +0 -150
- package/nitrogen/generated/ios/swift/MarketTradeAssetRef.swift +0 -55
- package/nitrogen/generated/shared/c++/MarketAccount.hpp +0 -95
- package/nitrogen/generated/shared/c++/MarketAssetKind.hpp +0 -76
- package/nitrogen/generated/shared/c++/MarketAssetQuoteRequest.hpp +0 -86
- package/nitrogen/generated/shared/c++/MarketTradeAsset.hpp +0 -112
- package/nitrogen/generated/shared/c++/MarketTradeAssetRef.hpp +0 -77
- package/plugin/withIosDeploymentTarget.js +0 -71
|
@@ -2,95 +2,64 @@
|
|
|
2
2
|
/// UserCounterpartyQuoteRequest.swift
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright ©
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
8
|
import NitroModules
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
/**
|
|
11
|
+
* Represents an instance of `UserCounterpartyQuoteRequest`, backed by a C++ struct.
|
|
12
|
+
*/
|
|
11
13
|
public typealias UserCounterpartyQuoteRequest = margelo.nitro.rncandle.UserCounterpartyQuoteRequest
|
|
12
14
|
|
|
13
|
-
extension UserCounterpartyQuoteRequest {
|
|
15
|
+
public extension UserCounterpartyQuoteRequest {
|
|
14
16
|
private typealias bridge = margelo.nitro.rncandle.bridge.swift
|
|
15
17
|
|
|
16
18
|
/**
|
|
17
19
|
* Create a new instance of `UserCounterpartyQuoteRequest`.
|
|
18
20
|
*/
|
|
19
|
-
|
|
20
|
-
self.init(
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
return .init()
|
|
34
|
-
}
|
|
35
|
-
}())
|
|
21
|
+
init(kind: String, legalName: String?, username: String?) {
|
|
22
|
+
self.init(std.string(kind), { () -> bridge.std__optional_std__string_ in
|
|
23
|
+
if let __unwrappedValue = legalName {
|
|
24
|
+
return bridge.create_std__optional_std__string_(std.string(__unwrappedValue))
|
|
25
|
+
} else {
|
|
26
|
+
return .init()
|
|
27
|
+
}
|
|
28
|
+
}(), { () -> bridge.std__optional_std__string_ in
|
|
29
|
+
if let __unwrappedValue = username {
|
|
30
|
+
return bridge.create_std__optional_std__string_(std.string(__unwrappedValue))
|
|
31
|
+
} else {
|
|
32
|
+
return .init()
|
|
33
|
+
}
|
|
34
|
+
}())
|
|
36
35
|
}
|
|
37
36
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
return String(self.__kind)
|
|
42
|
-
}
|
|
43
|
-
@inline(__always)
|
|
44
|
-
set {
|
|
45
|
-
self.__kind = std.string(newValue)
|
|
46
|
-
}
|
|
37
|
+
@inline(__always)
|
|
38
|
+
var kind: String {
|
|
39
|
+
return String(self.__kind)
|
|
47
40
|
}
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
}()
|
|
60
|
-
}
|
|
61
|
-
@inline(__always)
|
|
62
|
-
set {
|
|
63
|
-
self.__legalName = { () -> bridge.std__optional_std__string_ in
|
|
64
|
-
if let __unwrappedValue = newValue {
|
|
65
|
-
return bridge.create_std__optional_std__string_(std.string(__unwrappedValue))
|
|
66
|
-
} else {
|
|
67
|
-
return .init()
|
|
68
|
-
}
|
|
69
|
-
}()
|
|
70
|
-
}
|
|
41
|
+
|
|
42
|
+
@inline(__always)
|
|
43
|
+
var legalName: String? {
|
|
44
|
+
return { () -> String? in
|
|
45
|
+
if bridge.has_value_std__optional_std__string_(self.__legalName) {
|
|
46
|
+
let __unwrapped = bridge.get_std__optional_std__string_(self.__legalName)
|
|
47
|
+
return String(__unwrapped)
|
|
48
|
+
} else {
|
|
49
|
+
return nil
|
|
50
|
+
}
|
|
51
|
+
}()
|
|
71
52
|
}
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
}()
|
|
84
|
-
}
|
|
85
|
-
@inline(__always)
|
|
86
|
-
set {
|
|
87
|
-
self.__username = { () -> bridge.std__optional_std__string_ in
|
|
88
|
-
if let __unwrappedValue = newValue {
|
|
89
|
-
return bridge.create_std__optional_std__string_(std.string(__unwrappedValue))
|
|
90
|
-
} else {
|
|
91
|
-
return .init()
|
|
92
|
-
}
|
|
93
|
-
}()
|
|
94
|
-
}
|
|
53
|
+
|
|
54
|
+
@inline(__always)
|
|
55
|
+
var username: String? {
|
|
56
|
+
return { () -> String? in
|
|
57
|
+
if bridge.has_value_std__optional_std__string_(self.__username) {
|
|
58
|
+
let __unwrapped = bridge.get_std__optional_std__string_(self.__username)
|
|
59
|
+
return String(__unwrapped)
|
|
60
|
+
} else {
|
|
61
|
+
return nil
|
|
62
|
+
}
|
|
63
|
+
}()
|
|
95
64
|
}
|
|
96
65
|
}
|
|
@@ -2,43 +2,33 @@
|
|
|
2
2
|
/// WireDetails.swift
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright ©
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
8
|
import NitroModules
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
/**
|
|
11
|
+
* Represents an instance of `WireDetails`, backed by a C++ struct.
|
|
12
|
+
*/
|
|
11
13
|
public typealias WireDetails = margelo.nitro.rncandle.WireDetails
|
|
12
14
|
|
|
13
|
-
extension WireDetails {
|
|
15
|
+
public extension WireDetails {
|
|
14
16
|
private typealias bridge = margelo.nitro.rncandle.bridge.swift
|
|
15
17
|
|
|
16
18
|
/**
|
|
17
19
|
* Create a new instance of `WireDetails`.
|
|
18
20
|
*/
|
|
19
|
-
|
|
21
|
+
init(accountNumber: String, routingNumber: String) {
|
|
20
22
|
self.init(std.string(accountNumber), std.string(routingNumber))
|
|
21
23
|
}
|
|
22
24
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
return String(self.__accountNumber)
|
|
27
|
-
}
|
|
28
|
-
@inline(__always)
|
|
29
|
-
set {
|
|
30
|
-
self.__accountNumber = std.string(newValue)
|
|
31
|
-
}
|
|
25
|
+
@inline(__always)
|
|
26
|
+
var accountNumber: String {
|
|
27
|
+
return String(self.__accountNumber)
|
|
32
28
|
}
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
return String(self.__routingNumber)
|
|
38
|
-
}
|
|
39
|
-
@inline(__always)
|
|
40
|
-
set {
|
|
41
|
-
self.__routingNumber = std.string(newValue)
|
|
42
|
-
}
|
|
29
|
+
|
|
30
|
+
@inline(__always)
|
|
31
|
+
var routingNumber: String {
|
|
32
|
+
return String(self.__routingNumber)
|
|
43
33
|
}
|
|
44
34
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// ACHDetails.hpp
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright ©
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
8
|
#pragma once
|
|
@@ -17,6 +17,16 @@
|
|
|
17
17
|
#else
|
|
18
18
|
#error NitroModules cannot be found! Are you sure you installed NitroModules properly?
|
|
19
19
|
#endif
|
|
20
|
+
#if __has_include(<NitroModules/JSIHelpers.hpp>)
|
|
21
|
+
#include <NitroModules/JSIHelpers.hpp>
|
|
22
|
+
#else
|
|
23
|
+
#error NitroModules cannot be found! Are you sure you installed NitroModules properly?
|
|
24
|
+
#endif
|
|
25
|
+
#if __has_include(<NitroModules/PropNameIDCache.hpp>)
|
|
26
|
+
#include <NitroModules/PropNameIDCache.hpp>
|
|
27
|
+
#else
|
|
28
|
+
#error NitroModules cannot be found! Are you sure you installed NitroModules properly?
|
|
29
|
+
#endif
|
|
20
30
|
|
|
21
31
|
// Forward declaration of `ACHAccountKind` to properly resolve imports.
|
|
22
32
|
namespace margelo::nitro::rncandle { enum class ACHAccountKind; }
|
|
@@ -29,7 +39,7 @@ namespace margelo::nitro::rncandle {
|
|
|
29
39
|
/**
|
|
30
40
|
* A struct which can be represented as a JavaScript object (ACHDetails).
|
|
31
41
|
*/
|
|
32
|
-
struct ACHDetails {
|
|
42
|
+
struct ACHDetails final {
|
|
33
43
|
public:
|
|
34
44
|
std::string accountNumber SWIFT_PRIVATE;
|
|
35
45
|
std::string routingNumber SWIFT_PRIVATE;
|
|
@@ -38,6 +48,9 @@ namespace margelo::nitro::rncandle {
|
|
|
38
48
|
public:
|
|
39
49
|
ACHDetails() = default;
|
|
40
50
|
explicit ACHDetails(std::string accountNumber, std::string routingNumber, ACHAccountKind accountKind): accountNumber(accountNumber), routingNumber(routingNumber), accountKind(accountKind) {}
|
|
51
|
+
|
|
52
|
+
public:
|
|
53
|
+
friend bool operator==(const ACHDetails& lhs, const ACHDetails& rhs) = default;
|
|
41
54
|
};
|
|
42
55
|
|
|
43
56
|
} // namespace margelo::nitro::rncandle
|
|
@@ -50,16 +63,16 @@ namespace margelo::nitro {
|
|
|
50
63
|
static inline margelo::nitro::rncandle::ACHDetails fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
|
|
51
64
|
jsi::Object obj = arg.asObject(runtime);
|
|
52
65
|
return margelo::nitro::rncandle::ACHDetails(
|
|
53
|
-
JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, "accountNumber")),
|
|
54
|
-
JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, "routingNumber")),
|
|
55
|
-
JSIConverter<margelo::nitro::rncandle::ACHAccountKind>::fromJSI(runtime, obj.getProperty(runtime, "accountKind"))
|
|
66
|
+
JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "accountNumber"))),
|
|
67
|
+
JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "routingNumber"))),
|
|
68
|
+
JSIConverter<margelo::nitro::rncandle::ACHAccountKind>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "accountKind")))
|
|
56
69
|
);
|
|
57
70
|
}
|
|
58
71
|
static inline jsi::Value toJSI(jsi::Runtime& runtime, const margelo::nitro::rncandle::ACHDetails& arg) {
|
|
59
72
|
jsi::Object obj(runtime);
|
|
60
|
-
obj.setProperty(runtime, "accountNumber", JSIConverter<std::string>::toJSI(runtime, arg.accountNumber));
|
|
61
|
-
obj.setProperty(runtime, "routingNumber", JSIConverter<std::string>::toJSI(runtime, arg.routingNumber));
|
|
62
|
-
obj.setProperty(runtime, "accountKind", JSIConverter<margelo::nitro::rncandle::ACHAccountKind>::toJSI(runtime, arg.accountKind));
|
|
73
|
+
obj.setProperty(runtime, PropNameIDCache::get(runtime, "accountNumber"), JSIConverter<std::string>::toJSI(runtime, arg.accountNumber));
|
|
74
|
+
obj.setProperty(runtime, PropNameIDCache::get(runtime, "routingNumber"), JSIConverter<std::string>::toJSI(runtime, arg.routingNumber));
|
|
75
|
+
obj.setProperty(runtime, PropNameIDCache::get(runtime, "accountKind"), JSIConverter<margelo::nitro::rncandle::ACHAccountKind>::toJSI(runtime, arg.accountKind));
|
|
63
76
|
return obj;
|
|
64
77
|
}
|
|
65
78
|
static inline bool canConvert(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
@@ -67,9 +80,12 @@ namespace margelo::nitro {
|
|
|
67
80
|
return false;
|
|
68
81
|
}
|
|
69
82
|
jsi::Object obj = value.getObject(runtime);
|
|
70
|
-
if (!
|
|
71
|
-
|
|
72
|
-
|
|
83
|
+
if (!nitro::isPlainObject(runtime, obj)) {
|
|
84
|
+
return false;
|
|
85
|
+
}
|
|
86
|
+
if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "accountNumber")))) return false;
|
|
87
|
+
if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "routingNumber")))) return false;
|
|
88
|
+
if (!JSIConverter<margelo::nitro::rncandle::ACHAccountKind>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "accountKind")))) return false;
|
|
73
89
|
return true;
|
|
74
90
|
}
|
|
75
91
|
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// ActiveLinkedAccountDetails.hpp
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright ©
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
8
|
#pragma once
|
|
@@ -17,6 +17,16 @@
|
|
|
17
17
|
#else
|
|
18
18
|
#error NitroModules cannot be found! Are you sure you installed NitroModules properly?
|
|
19
19
|
#endif
|
|
20
|
+
#if __has_include(<NitroModules/JSIHelpers.hpp>)
|
|
21
|
+
#include <NitroModules/JSIHelpers.hpp>
|
|
22
|
+
#else
|
|
23
|
+
#error NitroModules cannot be found! Are you sure you installed NitroModules properly?
|
|
24
|
+
#endif
|
|
25
|
+
#if __has_include(<NitroModules/PropNameIDCache.hpp>)
|
|
26
|
+
#include <NitroModules/PropNameIDCache.hpp>
|
|
27
|
+
#else
|
|
28
|
+
#error NitroModules cannot be found! Are you sure you installed NitroModules properly?
|
|
29
|
+
#endif
|
|
20
30
|
|
|
21
31
|
|
|
22
32
|
|
|
@@ -28,7 +38,7 @@ namespace margelo::nitro::rncandle {
|
|
|
28
38
|
/**
|
|
29
39
|
* A struct which can be represented as a JavaScript object (ActiveLinkedAccountDetails).
|
|
30
40
|
*/
|
|
31
|
-
struct ActiveLinkedAccountDetails {
|
|
41
|
+
struct ActiveLinkedAccountDetails final {
|
|
32
42
|
public:
|
|
33
43
|
std::string state SWIFT_PRIVATE;
|
|
34
44
|
std::optional<std::string> accountOpened SWIFT_PRIVATE;
|
|
@@ -39,6 +49,9 @@ namespace margelo::nitro::rncandle {
|
|
|
39
49
|
public:
|
|
40
50
|
ActiveLinkedAccountDetails() = default;
|
|
41
51
|
explicit ActiveLinkedAccountDetails(std::string state, std::optional<std::string> accountOpened, std::optional<std::string> username, std::optional<std::string> emailAddress, std::string legalName): state(state), accountOpened(accountOpened), username(username), emailAddress(emailAddress), legalName(legalName) {}
|
|
52
|
+
|
|
53
|
+
public:
|
|
54
|
+
friend bool operator==(const ActiveLinkedAccountDetails& lhs, const ActiveLinkedAccountDetails& rhs) = default;
|
|
42
55
|
};
|
|
43
56
|
|
|
44
57
|
} // namespace margelo::nitro::rncandle
|
|
@@ -51,20 +64,20 @@ namespace margelo::nitro {
|
|
|
51
64
|
static inline margelo::nitro::rncandle::ActiveLinkedAccountDetails fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
|
|
52
65
|
jsi::Object obj = arg.asObject(runtime);
|
|
53
66
|
return margelo::nitro::rncandle::ActiveLinkedAccountDetails(
|
|
54
|
-
JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, "state")),
|
|
55
|
-
JSIConverter<std::optional<std::string>>::fromJSI(runtime, obj.getProperty(runtime, "accountOpened")),
|
|
56
|
-
JSIConverter<std::optional<std::string>>::fromJSI(runtime, obj.getProperty(runtime, "username")),
|
|
57
|
-
JSIConverter<std::optional<std::string>>::fromJSI(runtime, obj.getProperty(runtime, "emailAddress")),
|
|
58
|
-
JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, "legalName"))
|
|
67
|
+
JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "state"))),
|
|
68
|
+
JSIConverter<std::optional<std::string>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "accountOpened"))),
|
|
69
|
+
JSIConverter<std::optional<std::string>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "username"))),
|
|
70
|
+
JSIConverter<std::optional<std::string>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "emailAddress"))),
|
|
71
|
+
JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "legalName")))
|
|
59
72
|
);
|
|
60
73
|
}
|
|
61
74
|
static inline jsi::Value toJSI(jsi::Runtime& runtime, const margelo::nitro::rncandle::ActiveLinkedAccountDetails& arg) {
|
|
62
75
|
jsi::Object obj(runtime);
|
|
63
|
-
obj.setProperty(runtime, "state", JSIConverter<std::string>::toJSI(runtime, arg.state));
|
|
64
|
-
obj.setProperty(runtime, "accountOpened", JSIConverter<std::optional<std::string>>::toJSI(runtime, arg.accountOpened));
|
|
65
|
-
obj.setProperty(runtime, "username", JSIConverter<std::optional<std::string>>::toJSI(runtime, arg.username));
|
|
66
|
-
obj.setProperty(runtime, "emailAddress", JSIConverter<std::optional<std::string>>::toJSI(runtime, arg.emailAddress));
|
|
67
|
-
obj.setProperty(runtime, "legalName", JSIConverter<std::string>::toJSI(runtime, arg.legalName));
|
|
76
|
+
obj.setProperty(runtime, PropNameIDCache::get(runtime, "state"), JSIConverter<std::string>::toJSI(runtime, arg.state));
|
|
77
|
+
obj.setProperty(runtime, PropNameIDCache::get(runtime, "accountOpened"), JSIConverter<std::optional<std::string>>::toJSI(runtime, arg.accountOpened));
|
|
78
|
+
obj.setProperty(runtime, PropNameIDCache::get(runtime, "username"), JSIConverter<std::optional<std::string>>::toJSI(runtime, arg.username));
|
|
79
|
+
obj.setProperty(runtime, PropNameIDCache::get(runtime, "emailAddress"), JSIConverter<std::optional<std::string>>::toJSI(runtime, arg.emailAddress));
|
|
80
|
+
obj.setProperty(runtime, PropNameIDCache::get(runtime, "legalName"), JSIConverter<std::string>::toJSI(runtime, arg.legalName));
|
|
68
81
|
return obj;
|
|
69
82
|
}
|
|
70
83
|
static inline bool canConvert(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
@@ -72,11 +85,14 @@ namespace margelo::nitro {
|
|
|
72
85
|
return false;
|
|
73
86
|
}
|
|
74
87
|
jsi::Object obj = value.getObject(runtime);
|
|
75
|
-
if (!
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
if (!JSIConverter<std::
|
|
79
|
-
if (!JSIConverter<std::string
|
|
88
|
+
if (!nitro::isPlainObject(runtime, obj)) {
|
|
89
|
+
return false;
|
|
90
|
+
}
|
|
91
|
+
if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "state")))) return false;
|
|
92
|
+
if (!JSIConverter<std::optional<std::string>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "accountOpened")))) return false;
|
|
93
|
+
if (!JSIConverter<std::optional<std::string>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "username")))) return false;
|
|
94
|
+
if (!JSIConverter<std::optional<std::string>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "emailAddress")))) return false;
|
|
95
|
+
if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "legalName")))) return false;
|
|
80
96
|
return true;
|
|
81
97
|
}
|
|
82
98
|
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// Address.hpp
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright ©
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
8
|
#pragma once
|
|
@@ -17,6 +17,16 @@
|
|
|
17
17
|
#else
|
|
18
18
|
#error NitroModules cannot be found! Are you sure you installed NitroModules properly?
|
|
19
19
|
#endif
|
|
20
|
+
#if __has_include(<NitroModules/JSIHelpers.hpp>)
|
|
21
|
+
#include <NitroModules/JSIHelpers.hpp>
|
|
22
|
+
#else
|
|
23
|
+
#error NitroModules cannot be found! Are you sure you installed NitroModules properly?
|
|
24
|
+
#endif
|
|
25
|
+
#if __has_include(<NitroModules/PropNameIDCache.hpp>)
|
|
26
|
+
#include <NitroModules/PropNameIDCache.hpp>
|
|
27
|
+
#else
|
|
28
|
+
#error NitroModules cannot be found! Are you sure you installed NitroModules properly?
|
|
29
|
+
#endif
|
|
20
30
|
|
|
21
31
|
|
|
22
32
|
|
|
@@ -27,13 +37,16 @@ namespace margelo::nitro::rncandle {
|
|
|
27
37
|
/**
|
|
28
38
|
* A struct which can be represented as a JavaScript object (Address).
|
|
29
39
|
*/
|
|
30
|
-
struct Address {
|
|
40
|
+
struct Address final {
|
|
31
41
|
public:
|
|
32
42
|
std::string value SWIFT_PRIVATE;
|
|
33
43
|
|
|
34
44
|
public:
|
|
35
45
|
Address() = default;
|
|
36
46
|
explicit Address(std::string value): value(value) {}
|
|
47
|
+
|
|
48
|
+
public:
|
|
49
|
+
friend bool operator==(const Address& lhs, const Address& rhs) = default;
|
|
37
50
|
};
|
|
38
51
|
|
|
39
52
|
} // namespace margelo::nitro::rncandle
|
|
@@ -46,12 +59,12 @@ namespace margelo::nitro {
|
|
|
46
59
|
static inline margelo::nitro::rncandle::Address fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
|
|
47
60
|
jsi::Object obj = arg.asObject(runtime);
|
|
48
61
|
return margelo::nitro::rncandle::Address(
|
|
49
|
-
JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, "value"))
|
|
62
|
+
JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "value")))
|
|
50
63
|
);
|
|
51
64
|
}
|
|
52
65
|
static inline jsi::Value toJSI(jsi::Runtime& runtime, const margelo::nitro::rncandle::Address& arg) {
|
|
53
66
|
jsi::Object obj(runtime);
|
|
54
|
-
obj.setProperty(runtime, "value", JSIConverter<std::string>::toJSI(runtime, arg.value));
|
|
67
|
+
obj.setProperty(runtime, PropNameIDCache::get(runtime, "value"), JSIConverter<std::string>::toJSI(runtime, arg.value));
|
|
55
68
|
return obj;
|
|
56
69
|
}
|
|
57
70
|
static inline bool canConvert(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
@@ -59,7 +72,10 @@ namespace margelo::nitro {
|
|
|
59
72
|
return false;
|
|
60
73
|
}
|
|
61
74
|
jsi::Object obj = value.getObject(runtime);
|
|
62
|
-
if (!
|
|
75
|
+
if (!nitro::isPlainObject(runtime, obj)) {
|
|
76
|
+
return false;
|
|
77
|
+
}
|
|
78
|
+
if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "value")))) return false;
|
|
63
79
|
return true;
|
|
64
80
|
}
|
|
65
81
|
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// AssetAccount.hpp
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright ©
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
8
|
#pragma once
|
|
@@ -17,17 +17,30 @@
|
|
|
17
17
|
#else
|
|
18
18
|
#error NitroModules cannot be found! Are you sure you installed NitroModules properly?
|
|
19
19
|
#endif
|
|
20
|
+
#if __has_include(<NitroModules/JSIHelpers.hpp>)
|
|
21
|
+
#include <NitroModules/JSIHelpers.hpp>
|
|
22
|
+
#else
|
|
23
|
+
#error NitroModules cannot be found! Are you sure you installed NitroModules properly?
|
|
24
|
+
#endif
|
|
25
|
+
#if __has_include(<NitroModules/PropNameIDCache.hpp>)
|
|
26
|
+
#include <NitroModules/PropNameIDCache.hpp>
|
|
27
|
+
#else
|
|
28
|
+
#error NitroModules cannot be found! Are you sure you installed NitroModules properly?
|
|
29
|
+
#endif
|
|
20
30
|
|
|
21
31
|
// Forward declaration of `FiatAccount` to properly resolve imports.
|
|
22
32
|
namespace margelo::nitro::rncandle { struct FiatAccount; }
|
|
23
|
-
// Forward declaration of `
|
|
24
|
-
namespace margelo::nitro::rncandle { struct
|
|
33
|
+
// Forward declaration of `CryptoAccount` to properly resolve imports.
|
|
34
|
+
namespace margelo::nitro::rncandle { struct CryptoAccount; }
|
|
35
|
+
// Forward declaration of `StockAccount` to properly resolve imports.
|
|
36
|
+
namespace margelo::nitro::rncandle { struct StockAccount; }
|
|
25
37
|
// Forward declaration of `TransportAccount` to properly resolve imports.
|
|
26
38
|
namespace margelo::nitro::rncandle { struct TransportAccount; }
|
|
27
39
|
|
|
28
40
|
#include "FiatAccount.hpp"
|
|
29
41
|
#include <optional>
|
|
30
|
-
#include "
|
|
42
|
+
#include "CryptoAccount.hpp"
|
|
43
|
+
#include "StockAccount.hpp"
|
|
31
44
|
#include "TransportAccount.hpp"
|
|
32
45
|
|
|
33
46
|
namespace margelo::nitro::rncandle {
|
|
@@ -35,15 +48,19 @@ namespace margelo::nitro::rncandle {
|
|
|
35
48
|
/**
|
|
36
49
|
* A struct which can be represented as a JavaScript object (AssetAccount).
|
|
37
50
|
*/
|
|
38
|
-
struct AssetAccount {
|
|
51
|
+
struct AssetAccount final {
|
|
39
52
|
public:
|
|
40
53
|
std::optional<FiatAccount> fiatAccount SWIFT_PRIVATE;
|
|
41
|
-
std::optional<
|
|
54
|
+
std::optional<CryptoAccount> cryptoAccount SWIFT_PRIVATE;
|
|
55
|
+
std::optional<StockAccount> stockAccount SWIFT_PRIVATE;
|
|
42
56
|
std::optional<TransportAccount> transportAccount SWIFT_PRIVATE;
|
|
43
57
|
|
|
44
58
|
public:
|
|
45
59
|
AssetAccount() = default;
|
|
46
|
-
explicit AssetAccount(std::optional<FiatAccount> fiatAccount, std::optional<
|
|
60
|
+
explicit AssetAccount(std::optional<FiatAccount> fiatAccount, std::optional<CryptoAccount> cryptoAccount, std::optional<StockAccount> stockAccount, std::optional<TransportAccount> transportAccount): fiatAccount(fiatAccount), cryptoAccount(cryptoAccount), stockAccount(stockAccount), transportAccount(transportAccount) {}
|
|
61
|
+
|
|
62
|
+
public:
|
|
63
|
+
friend bool operator==(const AssetAccount& lhs, const AssetAccount& rhs) = default;
|
|
47
64
|
};
|
|
48
65
|
|
|
49
66
|
} // namespace margelo::nitro::rncandle
|
|
@@ -56,16 +73,18 @@ namespace margelo::nitro {
|
|
|
56
73
|
static inline margelo::nitro::rncandle::AssetAccount fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
|
|
57
74
|
jsi::Object obj = arg.asObject(runtime);
|
|
58
75
|
return margelo::nitro::rncandle::AssetAccount(
|
|
59
|
-
JSIConverter<std::optional<margelo::nitro::rncandle::FiatAccount>>::fromJSI(runtime, obj.getProperty(runtime, "fiatAccount")),
|
|
60
|
-
JSIConverter<std::optional<margelo::nitro::rncandle::
|
|
61
|
-
JSIConverter<std::optional<margelo::nitro::rncandle::
|
|
76
|
+
JSIConverter<std::optional<margelo::nitro::rncandle::FiatAccount>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "fiatAccount"))),
|
|
77
|
+
JSIConverter<std::optional<margelo::nitro::rncandle::CryptoAccount>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "cryptoAccount"))),
|
|
78
|
+
JSIConverter<std::optional<margelo::nitro::rncandle::StockAccount>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "stockAccount"))),
|
|
79
|
+
JSIConverter<std::optional<margelo::nitro::rncandle::TransportAccount>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "transportAccount")))
|
|
62
80
|
);
|
|
63
81
|
}
|
|
64
82
|
static inline jsi::Value toJSI(jsi::Runtime& runtime, const margelo::nitro::rncandle::AssetAccount& arg) {
|
|
65
83
|
jsi::Object obj(runtime);
|
|
66
|
-
obj.setProperty(runtime, "fiatAccount", JSIConverter<std::optional<margelo::nitro::rncandle::FiatAccount>>::toJSI(runtime, arg.fiatAccount));
|
|
67
|
-
obj.setProperty(runtime, "
|
|
68
|
-
obj.setProperty(runtime, "
|
|
84
|
+
obj.setProperty(runtime, PropNameIDCache::get(runtime, "fiatAccount"), JSIConverter<std::optional<margelo::nitro::rncandle::FiatAccount>>::toJSI(runtime, arg.fiatAccount));
|
|
85
|
+
obj.setProperty(runtime, PropNameIDCache::get(runtime, "cryptoAccount"), JSIConverter<std::optional<margelo::nitro::rncandle::CryptoAccount>>::toJSI(runtime, arg.cryptoAccount));
|
|
86
|
+
obj.setProperty(runtime, PropNameIDCache::get(runtime, "stockAccount"), JSIConverter<std::optional<margelo::nitro::rncandle::StockAccount>>::toJSI(runtime, arg.stockAccount));
|
|
87
|
+
obj.setProperty(runtime, PropNameIDCache::get(runtime, "transportAccount"), JSIConverter<std::optional<margelo::nitro::rncandle::TransportAccount>>::toJSI(runtime, arg.transportAccount));
|
|
69
88
|
return obj;
|
|
70
89
|
}
|
|
71
90
|
static inline bool canConvert(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
@@ -73,9 +92,13 @@ namespace margelo::nitro {
|
|
|
73
92
|
return false;
|
|
74
93
|
}
|
|
75
94
|
jsi::Object obj = value.getObject(runtime);
|
|
76
|
-
if (!
|
|
77
|
-
|
|
78
|
-
|
|
95
|
+
if (!nitro::isPlainObject(runtime, obj)) {
|
|
96
|
+
return false;
|
|
97
|
+
}
|
|
98
|
+
if (!JSIConverter<std::optional<margelo::nitro::rncandle::FiatAccount>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "fiatAccount")))) return false;
|
|
99
|
+
if (!JSIConverter<std::optional<margelo::nitro::rncandle::CryptoAccount>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "cryptoAccount")))) return false;
|
|
100
|
+
if (!JSIConverter<std::optional<margelo::nitro::rncandle::StockAccount>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "stockAccount")))) return false;
|
|
101
|
+
if (!JSIConverter<std::optional<margelo::nitro::rncandle::TransportAccount>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "transportAccount")))) return false;
|
|
79
102
|
return true;
|
|
80
103
|
}
|
|
81
104
|
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// AssetAccountKind.hpp
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright ©
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
8
|
#pragma once
|
|
@@ -29,9 +29,9 @@ namespace margelo::nitro::rncandle {
|
|
|
29
29
|
* An enum which can be represented as a JavaScript union (AssetAccountKind).
|
|
30
30
|
*/
|
|
31
31
|
enum class AssetAccountKind {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
32
|
+
FIAT SWIFT_NAME(fiat) = 0,
|
|
33
|
+
STOCK SWIFT_NAME(stock) = 1,
|
|
34
|
+
CRYPTO SWIFT_NAME(crypto) = 2,
|
|
35
35
|
TRANSPORT SWIFT_NAME(transport) = 3,
|
|
36
36
|
} CLOSED_ENUM;
|
|
37
37
|
|
|
@@ -45,9 +45,9 @@ namespace margelo::nitro {
|
|
|
45
45
|
static inline margelo::nitro::rncandle::AssetAccountKind fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
|
|
46
46
|
std::string unionValue = JSIConverter<std::string>::fromJSI(runtime, arg);
|
|
47
47
|
switch (hashString(unionValue.c_str(), unionValue.size())) {
|
|
48
|
+
case hashString("fiat"): return margelo::nitro::rncandle::AssetAccountKind::FIAT;
|
|
48
49
|
case hashString("stock"): return margelo::nitro::rncandle::AssetAccountKind::STOCK;
|
|
49
50
|
case hashString("crypto"): return margelo::nitro::rncandle::AssetAccountKind::CRYPTO;
|
|
50
|
-
case hashString("fiat"): return margelo::nitro::rncandle::AssetAccountKind::FIAT;
|
|
51
51
|
case hashString("transport"): return margelo::nitro::rncandle::AssetAccountKind::TRANSPORT;
|
|
52
52
|
default: [[unlikely]]
|
|
53
53
|
throw std::invalid_argument("Cannot convert \"" + unionValue + "\" to enum AssetAccountKind - invalid value!");
|
|
@@ -55,9 +55,9 @@ namespace margelo::nitro {
|
|
|
55
55
|
}
|
|
56
56
|
static inline jsi::Value toJSI(jsi::Runtime& runtime, margelo::nitro::rncandle::AssetAccountKind arg) {
|
|
57
57
|
switch (arg) {
|
|
58
|
+
case margelo::nitro::rncandle::AssetAccountKind::FIAT: return JSIConverter<std::string>::toJSI(runtime, "fiat");
|
|
58
59
|
case margelo::nitro::rncandle::AssetAccountKind::STOCK: return JSIConverter<std::string>::toJSI(runtime, "stock");
|
|
59
60
|
case margelo::nitro::rncandle::AssetAccountKind::CRYPTO: return JSIConverter<std::string>::toJSI(runtime, "crypto");
|
|
60
|
-
case margelo::nitro::rncandle::AssetAccountKind::FIAT: return JSIConverter<std::string>::toJSI(runtime, "fiat");
|
|
61
61
|
case margelo::nitro::rncandle::AssetAccountKind::TRANSPORT: return JSIConverter<std::string>::toJSI(runtime, "transport");
|
|
62
62
|
default: [[unlikely]]
|
|
63
63
|
throw std::invalid_argument("Cannot convert AssetAccountKind to JS - invalid value: "
|
|
@@ -70,9 +70,9 @@ namespace margelo::nitro {
|
|
|
70
70
|
}
|
|
71
71
|
std::string unionValue = JSIConverter<std::string>::fromJSI(runtime, value);
|
|
72
72
|
switch (hashString(unionValue.c_str(), unionValue.size())) {
|
|
73
|
+
case hashString("fiat"):
|
|
73
74
|
case hashString("stock"):
|
|
74
75
|
case hashString("crypto"):
|
|
75
|
-
case hashString("fiat"):
|
|
76
76
|
case hashString("transport"):
|
|
77
77
|
return true;
|
|
78
78
|
default:
|