react-native-candle 0.1.42 → 0.1.44

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.
Files changed (160) hide show
  1. package/ReactNativeCandle.podspec +1 -1
  2. package/ios/Sources/CandleActionViewModel.swift +4 -7
  3. package/ios/Sources/CandleLinkSheetWrapperView.swift +40 -59
  4. package/ios/Sources/CandleLinkViewModel.swift +21 -31
  5. package/ios/Sources/CandleTradeExecutionSheetWrapper.swift +14 -23
  6. package/ios/Sources/HostingViewController.swift +26 -26
  7. package/ios/Sources/RNCandle.swift +159 -1307
  8. package/ios/Sources/Types.swift +847 -0
  9. package/ios/Sources/UIApplication++.swift +5 -9
  10. package/lib/commonjs/context.js +17 -0
  11. package/lib/commonjs/context.js.map +1 -0
  12. package/lib/commonjs/index.js +17 -407
  13. package/lib/commonjs/index.js.map +1 -1
  14. package/lib/commonjs/package.json +1 -0
  15. package/lib/commonjs/provider.js +117 -0
  16. package/lib/commonjs/provider.js.map +1 -0
  17. package/lib/commonjs/types.js +271 -0
  18. package/lib/commonjs/types.js.map +1 -0
  19. package/lib/module/context.js +12 -0
  20. package/lib/module/context.js.map +1 -0
  21. package/lib/module/index.js +2 -408
  22. package/lib/module/index.js.map +1 -1
  23. package/lib/module/package.json +1 -0
  24. package/lib/module/provider.js +111 -0
  25. package/lib/module/provider.js.map +1 -0
  26. package/lib/module/types.js +256 -0
  27. package/lib/module/types.js.map +1 -0
  28. package/lib/typescript/commonjs/src/context.d.ts +47 -0
  29. package/lib/typescript/commonjs/src/context.d.ts.map +1 -0
  30. package/lib/typescript/commonjs/src/index.d.ts +4 -166
  31. package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
  32. package/lib/typescript/commonjs/src/provider.d.ts +8 -0
  33. package/lib/typescript/commonjs/src/provider.d.ts.map +1 -0
  34. package/lib/typescript/commonjs/src/specs/RNCandle.nitro.d.ts +22 -24
  35. package/lib/typescript/commonjs/src/specs/RNCandle.nitro.d.ts.map +1 -1
  36. package/lib/typescript/commonjs/src/types.d.ts +125 -0
  37. package/lib/typescript/commonjs/src/types.d.ts.map +1 -0
  38. package/lib/typescript/module/src/context.d.ts +47 -0
  39. package/lib/typescript/module/src/context.d.ts.map +1 -0
  40. package/lib/typescript/module/src/index.d.ts +4 -166
  41. package/lib/typescript/module/src/index.d.ts.map +1 -1
  42. package/lib/typescript/module/src/provider.d.ts +8 -0
  43. package/lib/typescript/module/src/provider.d.ts.map +1 -0
  44. package/lib/typescript/module/src/specs/RNCandle.nitro.d.ts +22 -24
  45. package/lib/typescript/module/src/specs/RNCandle.nitro.d.ts.map +1 -1
  46. package/lib/typescript/module/src/types.d.ts +125 -0
  47. package/lib/typescript/module/src/types.d.ts.map +1 -0
  48. package/nitrogen/generated/.gitattributes +1 -1
  49. package/nitrogen/generated/ios/ReactNativeCandle-Swift-Cxx-Bridge.cpp +15 -31
  50. package/nitrogen/generated/ios/ReactNativeCandle-Swift-Cxx-Bridge.hpp +379 -242
  51. package/nitrogen/generated/ios/ReactNativeCandle-Swift-Cxx-Umbrella.hpp +23 -22
  52. package/nitrogen/generated/ios/ReactNativeCandleAutolinking.mm +1 -1
  53. package/nitrogen/generated/ios/ReactNativeCandleAutolinking.swift +2 -4
  54. package/nitrogen/generated/ios/c++/HybridRNCandleSpecSwift.hpp +36 -42
  55. package/nitrogen/generated/ios/swift/ActiveLinkedAccountDetails.swift +6 -3
  56. package/nitrogen/generated/ios/swift/AssetAccount.swift +6 -3
  57. package/nitrogen/generated/ios/swift/AssetAccountKind.swift +4 -4
  58. package/nitrogen/generated/ios/swift/AssetAccountRef.swift +5 -5
  59. package/nitrogen/generated/ios/swift/{AssetAccountQuery.swift → AssetAccountsQuery.swift} +7 -6
  60. package/nitrogen/generated/ios/swift/Counterparty.swift +8 -3
  61. package/nitrogen/generated/ios/swift/CounterpartyKind.swift +42 -0
  62. package/nitrogen/generated/ios/swift/FiatAccount.swift +4 -2
  63. package/nitrogen/generated/ios/swift/FiatAsset.swift +2 -1
  64. package/nitrogen/generated/ios/swift/FiatAssetQuoteRequest.swift +4 -2
  65. package/nitrogen/generated/ios/swift/FiatAssetRef.swift +2 -1
  66. package/nitrogen/generated/ios/swift/Func_void_LinkedAccount.swift +5 -5
  67. package/nitrogen/generated/ios/swift/HybridRNCandleSpec.swift +7 -7
  68. package/nitrogen/generated/ios/swift/HybridRNCandleSpec_cxx.swift +40 -65
  69. package/nitrogen/generated/ios/swift/LinkedAccountDetails.swift +15 -3
  70. package/nitrogen/generated/ios/swift/{StatePayload.swift → LinkedAccountState.swift} +6 -6
  71. package/nitrogen/generated/ios/swift/LinkedAccountStatusRef.swift +4 -3
  72. package/nitrogen/generated/ios/swift/MarketAccount.swift +5 -5
  73. package/nitrogen/generated/ios/swift/MarketAssetKind.swift +38 -0
  74. package/nitrogen/generated/ios/swift/MarketAssetQuoteRequest.swift +11 -8
  75. package/nitrogen/generated/ios/swift/MarketTradeAsset.swift +7 -7
  76. package/nitrogen/generated/ios/swift/MarketTradeAssetRef.swift +5 -5
  77. package/nitrogen/generated/ios/swift/MerchantCounterparty.swift +2 -1
  78. package/nitrogen/generated/ios/swift/TradeAsset.swift +10 -5
  79. package/nitrogen/generated/ios/swift/TradeAssetKind.swift +54 -0
  80. package/nitrogen/generated/ios/swift/TradeAssetQuoteRequest.swift +15 -4
  81. package/nitrogen/generated/ios/swift/TradeAssetRef.swift +11 -5
  82. package/nitrogen/generated/ios/swift/TradeExecutionResult.swift +4 -2
  83. package/nitrogen/generated/ios/swift/{TradeQuoteRequest.swift → TradeQuotesRequest.swift} +7 -6
  84. package/nitrogen/generated/ios/swift/{TradeQuery.swift → TradesQuery.swift} +29 -45
  85. package/nitrogen/generated/ios/swift/TransportAssetQuoteRequest.swift +12 -6
  86. package/nitrogen/generated/shared/c++/ACHAccountKind.hpp +7 -9
  87. package/nitrogen/generated/shared/c++/ACHDetails.hpp +7 -9
  88. package/nitrogen/generated/shared/c++/ActiveLinkedAccountDetails.hpp +4 -6
  89. package/nitrogen/generated/shared/c++/Address.hpp +4 -6
  90. package/nitrogen/generated/shared/c++/AssetAccount.hpp +14 -16
  91. package/nitrogen/generated/shared/c++/AssetAccountKind.hpp +15 -17
  92. package/nitrogen/generated/shared/c++/AssetAccountRef.hpp +12 -12
  93. package/nitrogen/generated/shared/c++/{AssetAccountQuery.hpp → AssetAccountsQuery.hpp} +14 -16
  94. package/nitrogen/generated/shared/c++/AssetAccountsResponse.hpp +11 -13
  95. package/nitrogen/generated/shared/c++/Coordinates.hpp +4 -6
  96. package/nitrogen/generated/shared/c++/Counterparty.hpp +14 -16
  97. package/nitrogen/generated/shared/c++/CounterpartyKind.hpp +80 -0
  98. package/nitrogen/generated/shared/c++/FiatAccount.hpp +16 -18
  99. package/nitrogen/generated/shared/c++/FiatAsset.hpp +7 -9
  100. package/nitrogen/generated/shared/c++/FiatAssetQuoteRequest.hpp +4 -6
  101. package/nitrogen/generated/shared/c++/FiatAssetRef.hpp +4 -6
  102. package/nitrogen/generated/shared/c++/FiatMarketAccountKind.hpp +13 -15
  103. package/nitrogen/generated/shared/c++/HybridRNCandleSpec.cpp +1 -2
  104. package/nitrogen/generated/shared/c++/HybridRNCandleSpec.hpp +17 -27
  105. package/nitrogen/generated/shared/c++/InactiveLinkedAccountDetails.hpp +4 -6
  106. package/nitrogen/generated/shared/c++/LinkedAccount.hpp +10 -12
  107. package/nitrogen/generated/shared/c++/LinkedAccountDetails.hpp +14 -16
  108. package/nitrogen/generated/shared/c++/LinkedAccountRef.hpp +4 -6
  109. package/nitrogen/generated/shared/c++/{StatePayload.hpp → LinkedAccountState.hpp} +15 -17
  110. package/nitrogen/generated/shared/c++/LinkedAccountStatusRef.hpp +15 -17
  111. package/nitrogen/generated/shared/c++/MarketAccount.hpp +18 -17
  112. package/nitrogen/generated/shared/c++/MarketAssetKind.hpp +76 -0
  113. package/nitrogen/generated/shared/c++/MarketAssetQuoteRequest.hpp +12 -12
  114. package/nitrogen/generated/shared/c++/MarketTradeAsset.hpp +15 -14
  115. package/nitrogen/generated/shared/c++/MarketTradeAssetRef.hpp +12 -12
  116. package/nitrogen/generated/shared/c++/MerchantCounterparty.hpp +8 -10
  117. package/nitrogen/generated/shared/c++/MerchantLocation.hpp +4 -6
  118. package/nitrogen/generated/shared/c++/NothingAsset.hpp +4 -6
  119. package/nitrogen/generated/shared/c++/NothingAssetQuoteRequest.hpp +4 -6
  120. package/nitrogen/generated/shared/c++/NothingAssetRef.hpp +4 -6
  121. package/nitrogen/generated/shared/c++/OtherAsset.hpp +4 -6
  122. package/nitrogen/generated/shared/c++/OtherAssetRef.hpp +4 -6
  123. package/nitrogen/generated/shared/c++/PresentationBackground.hpp +7 -9
  124. package/nitrogen/generated/shared/c++/PresentationStyle.hpp +7 -9
  125. package/nitrogen/generated/shared/c++/Service.hpp +163 -165
  126. package/nitrogen/generated/shared/c++/ServiceCounterparty.hpp +7 -9
  127. package/nitrogen/generated/shared/c++/Trade.hpp +16 -18
  128. package/nitrogen/generated/shared/c++/TradeAsset.hpp +20 -22
  129. package/nitrogen/generated/shared/c++/TradeAssetKind.hpp +92 -0
  130. package/nitrogen/generated/shared/c++/TradeAssetQuoteRequest.hpp +17 -19
  131. package/nitrogen/generated/shared/c++/TradeAssetRef.hpp +20 -22
  132. package/nitrogen/generated/shared/c++/TradeExecutionResult.hpp +8 -10
  133. package/nitrogen/generated/shared/c++/TradeQuote.hpp +10 -12
  134. package/nitrogen/generated/shared/c++/{TradeQuoteRequest.hpp → TradeQuotesRequest.hpp} +17 -19
  135. package/nitrogen/generated/shared/c++/TradeQuotesResponse.hpp +11 -13
  136. package/nitrogen/generated/shared/c++/TradeRef.hpp +10 -12
  137. package/nitrogen/generated/shared/c++/TradeState.hpp +9 -11
  138. package/nitrogen/generated/shared/c++/TradesQuery.hpp +89 -0
  139. package/nitrogen/generated/shared/c++/TradesResponse.hpp +11 -13
  140. package/nitrogen/generated/shared/c++/TransportAccount.hpp +10 -12
  141. package/nitrogen/generated/shared/c++/TransportAccountKind.hpp +9 -11
  142. package/nitrogen/generated/shared/c++/TransportAsset.hpp +19 -21
  143. package/nitrogen/generated/shared/c++/TransportAssetQuoteRequest.hpp +16 -18
  144. package/nitrogen/generated/shared/c++/TransportAssetRef.hpp +4 -6
  145. package/nitrogen/generated/shared/c++/UnavailableLinkedAccountDetails.hpp +4 -6
  146. package/nitrogen/generated/shared/c++/UserCounterparty.hpp +4 -6
  147. package/nitrogen/generated/shared/c++/WireDetails.hpp +4 -6
  148. package/package.json +9 -11
  149. package/src/context.ts +86 -0
  150. package/src/index.ts +4 -634
  151. package/src/provider.tsx +152 -0
  152. package/src/specs/RNCandle.nitro.ts +38 -29
  153. package/src/types.ts +462 -0
  154. package/nitrogen/generated/ios/swift/AppUser.swift +0 -75
  155. package/nitrogen/generated/ios/swift/Func_void_std__string.swift +0 -44
  156. package/nitrogen/generated/ios/swift/Func_void_std__vector_std__shared_ptr_AnyMap__.swift +0 -47
  157. package/nitrogen/generated/ios/swift/ToolCall.swift +0 -44
  158. package/nitrogen/generated/shared/c++/AppUser.hpp +0 -78
  159. package/nitrogen/generated/shared/c++/ToolCall.hpp +0 -73
  160. package/nitrogen/generated/shared/c++/TradeQuery.hpp +0 -86
@@ -18,8 +18,10 @@
18
18
  #error NitroModules cannot be found! Are you sure you installed NitroModules properly?
19
19
  #endif
20
20
 
21
+ // Forward declaration of `MarketAssetKind` to properly resolve imports.
22
+ namespace margelo::nitro::rncandle { enum class MarketAssetKind; }
21
23
 
22
-
24
+ #include "MarketAssetKind.hpp"
23
25
  #include <string>
24
26
  #include <optional>
25
27
 
@@ -30,7 +32,7 @@ namespace margelo::nitro::rncandle {
30
32
  */
31
33
  struct MarketAssetQuoteRequest {
32
34
  public:
33
- std::string assetKind SWIFT_PRIVATE;
35
+ MarketAssetKind assetKind SWIFT_PRIVATE;
34
36
  std::optional<std::string> serviceAccountID SWIFT_PRIVATE;
35
37
  std::optional<std::string> serviceAssetID SWIFT_PRIVATE;
36
38
  std::optional<std::string> symbol SWIFT_PRIVATE;
@@ -38,31 +40,29 @@ namespace margelo::nitro::rncandle {
38
40
 
39
41
  public:
40
42
  MarketAssetQuoteRequest() = default;
41
- explicit MarketAssetQuoteRequest(std::string assetKind, std::optional<std::string> serviceAccountID, std::optional<std::string> serviceAssetID, std::optional<std::string> symbol, std::optional<double> amount): assetKind(assetKind), serviceAccountID(serviceAccountID), serviceAssetID(serviceAssetID), symbol(symbol), amount(amount) {}
43
+ explicit MarketAssetQuoteRequest(MarketAssetKind assetKind, std::optional<std::string> serviceAccountID, std::optional<std::string> serviceAssetID, std::optional<std::string> symbol, std::optional<double> amount): assetKind(assetKind), serviceAccountID(serviceAccountID), serviceAssetID(serviceAssetID), symbol(symbol), amount(amount) {}
42
44
  };
43
45
 
44
46
  } // namespace margelo::nitro::rncandle
45
47
 
46
48
  namespace margelo::nitro {
47
49
 
48
- using namespace margelo::nitro::rncandle;
49
-
50
50
  // C++ MarketAssetQuoteRequest <> JS MarketAssetQuoteRequest (object)
51
51
  template <>
52
- struct JSIConverter<MarketAssetQuoteRequest> final {
53
- static inline MarketAssetQuoteRequest fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
52
+ struct JSIConverter<margelo::nitro::rncandle::MarketAssetQuoteRequest> final {
53
+ static inline margelo::nitro::rncandle::MarketAssetQuoteRequest fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
54
54
  jsi::Object obj = arg.asObject(runtime);
55
- return MarketAssetQuoteRequest(
56
- JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, "assetKind")),
55
+ return margelo::nitro::rncandle::MarketAssetQuoteRequest(
56
+ JSIConverter<margelo::nitro::rncandle::MarketAssetKind>::fromJSI(runtime, obj.getProperty(runtime, "assetKind")),
57
57
  JSIConverter<std::optional<std::string>>::fromJSI(runtime, obj.getProperty(runtime, "serviceAccountID")),
58
58
  JSIConverter<std::optional<std::string>>::fromJSI(runtime, obj.getProperty(runtime, "serviceAssetID")),
59
59
  JSIConverter<std::optional<std::string>>::fromJSI(runtime, obj.getProperty(runtime, "symbol")),
60
60
  JSIConverter<std::optional<double>>::fromJSI(runtime, obj.getProperty(runtime, "amount"))
61
61
  );
62
62
  }
63
- static inline jsi::Value toJSI(jsi::Runtime& runtime, const MarketAssetQuoteRequest& arg) {
63
+ static inline jsi::Value toJSI(jsi::Runtime& runtime, const margelo::nitro::rncandle::MarketAssetQuoteRequest& arg) {
64
64
  jsi::Object obj(runtime);
65
- obj.setProperty(runtime, "assetKind", JSIConverter<std::string>::toJSI(runtime, arg.assetKind));
65
+ obj.setProperty(runtime, "assetKind", JSIConverter<margelo::nitro::rncandle::MarketAssetKind>::toJSI(runtime, arg.assetKind));
66
66
  obj.setProperty(runtime, "serviceAccountID", JSIConverter<std::optional<std::string>>::toJSI(runtime, arg.serviceAccountID));
67
67
  obj.setProperty(runtime, "serviceAssetID", JSIConverter<std::optional<std::string>>::toJSI(runtime, arg.serviceAssetID));
68
68
  obj.setProperty(runtime, "symbol", JSIConverter<std::optional<std::string>>::toJSI(runtime, arg.symbol));
@@ -74,7 +74,7 @@ namespace margelo::nitro {
74
74
  return false;
75
75
  }
76
76
  jsi::Object obj = value.getObject(runtime);
77
- if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, "assetKind"))) return false;
77
+ if (!JSIConverter<margelo::nitro::rncandle::MarketAssetKind>::canConvert(runtime, obj.getProperty(runtime, "assetKind"))) return false;
78
78
  if (!JSIConverter<std::optional<std::string>>::canConvert(runtime, obj.getProperty(runtime, "serviceAccountID"))) return false;
79
79
  if (!JSIConverter<std::optional<std::string>>::canConvert(runtime, obj.getProperty(runtime, "serviceAssetID"))) return false;
80
80
  if (!JSIConverter<std::optional<std::string>>::canConvert(runtime, obj.getProperty(runtime, "symbol"))) return false;
@@ -18,9 +18,12 @@
18
18
  #error NitroModules cannot be found! Are you sure you installed NitroModules properly?
19
19
  #endif
20
20
 
21
+ // Forward declaration of `MarketAssetKind` to properly resolve imports.
22
+ namespace margelo::nitro::rncandle { enum class MarketAssetKind; }
21
23
  // Forward declaration of `Service` to properly resolve imports.
22
24
  namespace margelo::nitro::rncandle { enum class Service; }
23
25
 
26
+ #include "MarketAssetKind.hpp"
24
27
  #include <string>
25
28
  #include "Service.hpp"
26
29
 
@@ -31,7 +34,7 @@ namespace margelo::nitro::rncandle {
31
34
  */
32
35
  struct MarketTradeAsset {
33
36
  public:
34
- std::string assetKind SWIFT_PRIVATE;
37
+ MarketAssetKind assetKind SWIFT_PRIVATE;
35
38
  std::string serviceAccountID SWIFT_PRIVATE;
36
39
  std::string serviceAssetID SWIFT_PRIVATE;
37
40
  std::string symbol SWIFT_PRIVATE;
@@ -45,22 +48,20 @@ namespace margelo::nitro::rncandle {
45
48
 
46
49
  public:
47
50
  MarketTradeAsset() = default;
48
- explicit MarketTradeAsset(std::string assetKind, std::string serviceAccountID, std::string serviceAssetID, std::string symbol, double amount, std::string serviceTradeID, std::string linkedAccountID, std::string name, std::string color, std::string logoURL, Service service): assetKind(assetKind), serviceAccountID(serviceAccountID), serviceAssetID(serviceAssetID), symbol(symbol), amount(amount), serviceTradeID(serviceTradeID), linkedAccountID(linkedAccountID), name(name), color(color), logoURL(logoURL), service(service) {}
51
+ explicit MarketTradeAsset(MarketAssetKind assetKind, std::string serviceAccountID, std::string serviceAssetID, std::string symbol, double amount, std::string serviceTradeID, std::string linkedAccountID, std::string name, std::string color, std::string logoURL, Service service): assetKind(assetKind), serviceAccountID(serviceAccountID), serviceAssetID(serviceAssetID), symbol(symbol), amount(amount), serviceTradeID(serviceTradeID), linkedAccountID(linkedAccountID), name(name), color(color), logoURL(logoURL), service(service) {}
49
52
  };
50
53
 
51
54
  } // namespace margelo::nitro::rncandle
52
55
 
53
56
  namespace margelo::nitro {
54
57
 
55
- using namespace margelo::nitro::rncandle;
56
-
57
58
  // C++ MarketTradeAsset <> JS MarketTradeAsset (object)
58
59
  template <>
59
- struct JSIConverter<MarketTradeAsset> final {
60
- static inline MarketTradeAsset fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
60
+ struct JSIConverter<margelo::nitro::rncandle::MarketTradeAsset> final {
61
+ static inline margelo::nitro::rncandle::MarketTradeAsset fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
61
62
  jsi::Object obj = arg.asObject(runtime);
62
- return MarketTradeAsset(
63
- JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, "assetKind")),
63
+ return margelo::nitro::rncandle::MarketTradeAsset(
64
+ JSIConverter<margelo::nitro::rncandle::MarketAssetKind>::fromJSI(runtime, obj.getProperty(runtime, "assetKind")),
64
65
  JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, "serviceAccountID")),
65
66
  JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, "serviceAssetID")),
66
67
  JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, "symbol")),
@@ -70,12 +71,12 @@ namespace margelo::nitro {
70
71
  JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, "name")),
71
72
  JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, "color")),
72
73
  JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, "logoURL")),
73
- JSIConverter<Service>::fromJSI(runtime, obj.getProperty(runtime, "service"))
74
+ JSIConverter<margelo::nitro::rncandle::Service>::fromJSI(runtime, obj.getProperty(runtime, "service"))
74
75
  );
75
76
  }
76
- static inline jsi::Value toJSI(jsi::Runtime& runtime, const MarketTradeAsset& arg) {
77
+ static inline jsi::Value toJSI(jsi::Runtime& runtime, const margelo::nitro::rncandle::MarketTradeAsset& arg) {
77
78
  jsi::Object obj(runtime);
78
- obj.setProperty(runtime, "assetKind", JSIConverter<std::string>::toJSI(runtime, arg.assetKind));
79
+ obj.setProperty(runtime, "assetKind", JSIConverter<margelo::nitro::rncandle::MarketAssetKind>::toJSI(runtime, arg.assetKind));
79
80
  obj.setProperty(runtime, "serviceAccountID", JSIConverter<std::string>::toJSI(runtime, arg.serviceAccountID));
80
81
  obj.setProperty(runtime, "serviceAssetID", JSIConverter<std::string>::toJSI(runtime, arg.serviceAssetID));
81
82
  obj.setProperty(runtime, "symbol", JSIConverter<std::string>::toJSI(runtime, arg.symbol));
@@ -85,7 +86,7 @@ namespace margelo::nitro {
85
86
  obj.setProperty(runtime, "name", JSIConverter<std::string>::toJSI(runtime, arg.name));
86
87
  obj.setProperty(runtime, "color", JSIConverter<std::string>::toJSI(runtime, arg.color));
87
88
  obj.setProperty(runtime, "logoURL", JSIConverter<std::string>::toJSI(runtime, arg.logoURL));
88
- obj.setProperty(runtime, "service", JSIConverter<Service>::toJSI(runtime, arg.service));
89
+ obj.setProperty(runtime, "service", JSIConverter<margelo::nitro::rncandle::Service>::toJSI(runtime, arg.service));
89
90
  return obj;
90
91
  }
91
92
  static inline bool canConvert(jsi::Runtime& runtime, const jsi::Value& value) {
@@ -93,7 +94,7 @@ namespace margelo::nitro {
93
94
  return false;
94
95
  }
95
96
  jsi::Object obj = value.getObject(runtime);
96
- if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, "assetKind"))) return false;
97
+ if (!JSIConverter<margelo::nitro::rncandle::MarketAssetKind>::canConvert(runtime, obj.getProperty(runtime, "assetKind"))) return false;
97
98
  if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, "serviceAccountID"))) return false;
98
99
  if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, "serviceAssetID"))) return false;
99
100
  if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, "symbol"))) return false;
@@ -103,7 +104,7 @@ namespace margelo::nitro {
103
104
  if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, "name"))) return false;
104
105
  if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, "color"))) return false;
105
106
  if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, "logoURL"))) return false;
106
- if (!JSIConverter<Service>::canConvert(runtime, obj.getProperty(runtime, "service"))) return false;
107
+ if (!JSIConverter<margelo::nitro::rncandle::Service>::canConvert(runtime, obj.getProperty(runtime, "service"))) return false;
107
108
  return true;
108
109
  }
109
110
  };
@@ -18,8 +18,10 @@
18
18
  #error NitroModules cannot be found! Are you sure you installed NitroModules properly?
19
19
  #endif
20
20
 
21
+ // Forward declaration of `MarketAssetKind` to properly resolve imports.
22
+ namespace margelo::nitro::rncandle { enum class MarketAssetKind; }
21
23
 
22
-
24
+ #include "MarketAssetKind.hpp"
23
25
  #include <string>
24
26
 
25
27
  namespace margelo::nitro::rncandle {
@@ -29,35 +31,33 @@ namespace margelo::nitro::rncandle {
29
31
  */
30
32
  struct MarketTradeAssetRef {
31
33
  public:
32
- std::string assetKind SWIFT_PRIVATE;
34
+ MarketAssetKind assetKind SWIFT_PRIVATE;
33
35
  std::string serviceTradeID SWIFT_PRIVATE;
34
36
  std::string linkedAccountID SWIFT_PRIVATE;
35
37
 
36
38
  public:
37
39
  MarketTradeAssetRef() = default;
38
- explicit MarketTradeAssetRef(std::string assetKind, std::string serviceTradeID, std::string linkedAccountID): assetKind(assetKind), serviceTradeID(serviceTradeID), linkedAccountID(linkedAccountID) {}
40
+ explicit MarketTradeAssetRef(MarketAssetKind assetKind, std::string serviceTradeID, std::string linkedAccountID): assetKind(assetKind), serviceTradeID(serviceTradeID), linkedAccountID(linkedAccountID) {}
39
41
  };
40
42
 
41
43
  } // namespace margelo::nitro::rncandle
42
44
 
43
45
  namespace margelo::nitro {
44
46
 
45
- using namespace margelo::nitro::rncandle;
46
-
47
47
  // C++ MarketTradeAssetRef <> JS MarketTradeAssetRef (object)
48
48
  template <>
49
- struct JSIConverter<MarketTradeAssetRef> final {
50
- static inline MarketTradeAssetRef fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
49
+ struct JSIConverter<margelo::nitro::rncandle::MarketTradeAssetRef> final {
50
+ static inline margelo::nitro::rncandle::MarketTradeAssetRef fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
51
51
  jsi::Object obj = arg.asObject(runtime);
52
- return MarketTradeAssetRef(
53
- JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, "assetKind")),
52
+ return margelo::nitro::rncandle::MarketTradeAssetRef(
53
+ JSIConverter<margelo::nitro::rncandle::MarketAssetKind>::fromJSI(runtime, obj.getProperty(runtime, "assetKind")),
54
54
  JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, "serviceTradeID")),
55
55
  JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, "linkedAccountID"))
56
56
  );
57
57
  }
58
- static inline jsi::Value toJSI(jsi::Runtime& runtime, const MarketTradeAssetRef& arg) {
58
+ static inline jsi::Value toJSI(jsi::Runtime& runtime, const margelo::nitro::rncandle::MarketTradeAssetRef& arg) {
59
59
  jsi::Object obj(runtime);
60
- obj.setProperty(runtime, "assetKind", JSIConverter<std::string>::toJSI(runtime, arg.assetKind));
60
+ obj.setProperty(runtime, "assetKind", JSIConverter<margelo::nitro::rncandle::MarketAssetKind>::toJSI(runtime, arg.assetKind));
61
61
  obj.setProperty(runtime, "serviceTradeID", JSIConverter<std::string>::toJSI(runtime, arg.serviceTradeID));
62
62
  obj.setProperty(runtime, "linkedAccountID", JSIConverter<std::string>::toJSI(runtime, arg.linkedAccountID));
63
63
  return obj;
@@ -67,7 +67,7 @@ namespace margelo::nitro {
67
67
  return false;
68
68
  }
69
69
  jsi::Object obj = value.getObject(runtime);
70
- if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, "assetKind"))) return false;
70
+ if (!JSIConverter<margelo::nitro::rncandle::MarketAssetKind>::canConvert(runtime, obj.getProperty(runtime, "assetKind"))) return false;
71
71
  if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, "serviceTradeID"))) return false;
72
72
  if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, "linkedAccountID"))) return false;
73
73
  return true;
@@ -22,8 +22,8 @@
22
22
  namespace margelo::nitro::rncandle { struct MerchantLocation; }
23
23
 
24
24
  #include <string>
25
- #include <optional>
26
25
  #include "MerchantLocation.hpp"
26
+ #include <optional>
27
27
 
28
28
  namespace margelo::nitro::rncandle {
29
29
 
@@ -46,26 +46,24 @@ namespace margelo::nitro::rncandle {
46
46
 
47
47
  namespace margelo::nitro {
48
48
 
49
- using namespace margelo::nitro::rncandle;
50
-
51
49
  // C++ MerchantCounterparty <> JS MerchantCounterparty (object)
52
50
  template <>
53
- struct JSIConverter<MerchantCounterparty> final {
54
- static inline MerchantCounterparty fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
51
+ struct JSIConverter<margelo::nitro::rncandle::MerchantCounterparty> final {
52
+ static inline margelo::nitro::rncandle::MerchantCounterparty fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
55
53
  jsi::Object obj = arg.asObject(runtime);
56
- return MerchantCounterparty(
54
+ return margelo::nitro::rncandle::MerchantCounterparty(
57
55
  JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, "kind")),
58
56
  JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, "name")),
59
57
  JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, "logoURL")),
60
- JSIConverter<std::optional<MerchantLocation>>::fromJSI(runtime, obj.getProperty(runtime, "location"))
58
+ JSIConverter<std::optional<margelo::nitro::rncandle::MerchantLocation>>::fromJSI(runtime, obj.getProperty(runtime, "location"))
61
59
  );
62
60
  }
63
- static inline jsi::Value toJSI(jsi::Runtime& runtime, const MerchantCounterparty& arg) {
61
+ static inline jsi::Value toJSI(jsi::Runtime& runtime, const margelo::nitro::rncandle::MerchantCounterparty& arg) {
64
62
  jsi::Object obj(runtime);
65
63
  obj.setProperty(runtime, "kind", JSIConverter<std::string>::toJSI(runtime, arg.kind));
66
64
  obj.setProperty(runtime, "name", JSIConverter<std::string>::toJSI(runtime, arg.name));
67
65
  obj.setProperty(runtime, "logoURL", JSIConverter<std::string>::toJSI(runtime, arg.logoURL));
68
- obj.setProperty(runtime, "location", JSIConverter<std::optional<MerchantLocation>>::toJSI(runtime, arg.location));
66
+ obj.setProperty(runtime, "location", JSIConverter<std::optional<margelo::nitro::rncandle::MerchantLocation>>::toJSI(runtime, arg.location));
69
67
  return obj;
70
68
  }
71
69
  static inline bool canConvert(jsi::Runtime& runtime, const jsi::Value& value) {
@@ -76,7 +74,7 @@ namespace margelo::nitro {
76
74
  if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, "kind"))) return false;
77
75
  if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, "name"))) return false;
78
76
  if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, "logoURL"))) return false;
79
- if (!JSIConverter<std::optional<MerchantLocation>>::canConvert(runtime, obj.getProperty(runtime, "location"))) return false;
77
+ if (!JSIConverter<std::optional<margelo::nitro::rncandle::MerchantLocation>>::canConvert(runtime, obj.getProperty(runtime, "location"))) return false;
80
78
  return true;
81
79
  }
82
80
  };
@@ -42,20 +42,18 @@ namespace margelo::nitro::rncandle {
42
42
 
43
43
  namespace margelo::nitro {
44
44
 
45
- using namespace margelo::nitro::rncandle;
46
-
47
45
  // C++ MerchantLocation <> JS MerchantLocation (object)
48
46
  template <>
49
- struct JSIConverter<MerchantLocation> final {
50
- static inline MerchantLocation fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
47
+ struct JSIConverter<margelo::nitro::rncandle::MerchantLocation> final {
48
+ static inline margelo::nitro::rncandle::MerchantLocation fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
51
49
  jsi::Object obj = arg.asObject(runtime);
52
- return MerchantLocation(
50
+ return margelo::nitro::rncandle::MerchantLocation(
53
51
  JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, "countryCode")),
54
52
  JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, "countrySubdivisionCode")),
55
53
  JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, "localityName"))
56
54
  );
57
55
  }
58
- static inline jsi::Value toJSI(jsi::Runtime& runtime, const MerchantLocation& arg) {
56
+ static inline jsi::Value toJSI(jsi::Runtime& runtime, const margelo::nitro::rncandle::MerchantLocation& arg) {
59
57
  jsi::Object obj(runtime);
60
58
  obj.setProperty(runtime, "countryCode", JSIConverter<std::string>::toJSI(runtime, arg.countryCode));
61
59
  obj.setProperty(runtime, "countrySubdivisionCode", JSIConverter<std::string>::toJSI(runtime, arg.countrySubdivisionCode));
@@ -40,18 +40,16 @@ namespace margelo::nitro::rncandle {
40
40
 
41
41
  namespace margelo::nitro {
42
42
 
43
- using namespace margelo::nitro::rncandle;
44
-
45
43
  // C++ NothingAsset <> JS NothingAsset (object)
46
44
  template <>
47
- struct JSIConverter<NothingAsset> final {
48
- static inline NothingAsset fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
45
+ struct JSIConverter<margelo::nitro::rncandle::NothingAsset> final {
46
+ static inline margelo::nitro::rncandle::NothingAsset fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
49
47
  jsi::Object obj = arg.asObject(runtime);
50
- return NothingAsset(
48
+ return margelo::nitro::rncandle::NothingAsset(
51
49
  JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, "assetKind"))
52
50
  );
53
51
  }
54
- static inline jsi::Value toJSI(jsi::Runtime& runtime, const NothingAsset& arg) {
52
+ static inline jsi::Value toJSI(jsi::Runtime& runtime, const margelo::nitro::rncandle::NothingAsset& arg) {
55
53
  jsi::Object obj(runtime);
56
54
  obj.setProperty(runtime, "assetKind", JSIConverter<std::string>::toJSI(runtime, arg.assetKind));
57
55
  return obj;
@@ -40,18 +40,16 @@ namespace margelo::nitro::rncandle {
40
40
 
41
41
  namespace margelo::nitro {
42
42
 
43
- using namespace margelo::nitro::rncandle;
44
-
45
43
  // C++ NothingAssetQuoteRequest <> JS NothingAssetQuoteRequest (object)
46
44
  template <>
47
- struct JSIConverter<NothingAssetQuoteRequest> final {
48
- static inline NothingAssetQuoteRequest fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
45
+ struct JSIConverter<margelo::nitro::rncandle::NothingAssetQuoteRequest> final {
46
+ static inline margelo::nitro::rncandle::NothingAssetQuoteRequest fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
49
47
  jsi::Object obj = arg.asObject(runtime);
50
- return NothingAssetQuoteRequest(
48
+ return margelo::nitro::rncandle::NothingAssetQuoteRequest(
51
49
  JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, "assetKind"))
52
50
  );
53
51
  }
54
- static inline jsi::Value toJSI(jsi::Runtime& runtime, const NothingAssetQuoteRequest& arg) {
52
+ static inline jsi::Value toJSI(jsi::Runtime& runtime, const margelo::nitro::rncandle::NothingAssetQuoteRequest& arg) {
55
53
  jsi::Object obj(runtime);
56
54
  obj.setProperty(runtime, "assetKind", JSIConverter<std::string>::toJSI(runtime, arg.assetKind));
57
55
  return obj;
@@ -40,18 +40,16 @@ namespace margelo::nitro::rncandle {
40
40
 
41
41
  namespace margelo::nitro {
42
42
 
43
- using namespace margelo::nitro::rncandle;
44
-
45
43
  // C++ NothingAssetRef <> JS NothingAssetRef (object)
46
44
  template <>
47
- struct JSIConverter<NothingAssetRef> final {
48
- static inline NothingAssetRef fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
45
+ struct JSIConverter<margelo::nitro::rncandle::NothingAssetRef> final {
46
+ static inline margelo::nitro::rncandle::NothingAssetRef fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
49
47
  jsi::Object obj = arg.asObject(runtime);
50
- return NothingAssetRef(
48
+ return margelo::nitro::rncandle::NothingAssetRef(
51
49
  JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, "assetKind"))
52
50
  );
53
51
  }
54
- static inline jsi::Value toJSI(jsi::Runtime& runtime, const NothingAssetRef& arg) {
52
+ static inline jsi::Value toJSI(jsi::Runtime& runtime, const margelo::nitro::rncandle::NothingAssetRef& arg) {
55
53
  jsi::Object obj(runtime);
56
54
  obj.setProperty(runtime, "assetKind", JSIConverter<std::string>::toJSI(runtime, arg.assetKind));
57
55
  return obj;
@@ -40,18 +40,16 @@ namespace margelo::nitro::rncandle {
40
40
 
41
41
  namespace margelo::nitro {
42
42
 
43
- using namespace margelo::nitro::rncandle;
44
-
45
43
  // C++ OtherAsset <> JS OtherAsset (object)
46
44
  template <>
47
- struct JSIConverter<OtherAsset> final {
48
- static inline OtherAsset fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
45
+ struct JSIConverter<margelo::nitro::rncandle::OtherAsset> final {
46
+ static inline margelo::nitro::rncandle::OtherAsset fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
49
47
  jsi::Object obj = arg.asObject(runtime);
50
- return OtherAsset(
48
+ return margelo::nitro::rncandle::OtherAsset(
51
49
  JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, "assetKind"))
52
50
  );
53
51
  }
54
- static inline jsi::Value toJSI(jsi::Runtime& runtime, const OtherAsset& arg) {
52
+ static inline jsi::Value toJSI(jsi::Runtime& runtime, const margelo::nitro::rncandle::OtherAsset& arg) {
55
53
  jsi::Object obj(runtime);
56
54
  obj.setProperty(runtime, "assetKind", JSIConverter<std::string>::toJSI(runtime, arg.assetKind));
57
55
  return obj;
@@ -40,18 +40,16 @@ namespace margelo::nitro::rncandle {
40
40
 
41
41
  namespace margelo::nitro {
42
42
 
43
- using namespace margelo::nitro::rncandle;
44
-
45
43
  // C++ OtherAssetRef <> JS OtherAssetRef (object)
46
44
  template <>
47
- struct JSIConverter<OtherAssetRef> final {
48
- static inline OtherAssetRef fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
45
+ struct JSIConverter<margelo::nitro::rncandle::OtherAssetRef> final {
46
+ static inline margelo::nitro::rncandle::OtherAssetRef fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
49
47
  jsi::Object obj = arg.asObject(runtime);
50
- return OtherAssetRef(
48
+ return margelo::nitro::rncandle::OtherAssetRef(
51
49
  JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, "assetKind"))
52
50
  );
53
51
  }
54
- static inline jsi::Value toJSI(jsi::Runtime& runtime, const OtherAssetRef& arg) {
52
+ static inline jsi::Value toJSI(jsi::Runtime& runtime, const margelo::nitro::rncandle::OtherAssetRef& arg) {
55
53
  jsi::Object obj(runtime);
56
54
  obj.setProperty(runtime, "assetKind", JSIConverter<std::string>::toJSI(runtime, arg.assetKind));
57
55
  return obj;
@@ -37,24 +37,22 @@ namespace margelo::nitro::rncandle {
37
37
 
38
38
  namespace margelo::nitro {
39
39
 
40
- using namespace margelo::nitro::rncandle;
41
-
42
40
  // C++ PresentationBackground <> JS PresentationBackground (union)
43
41
  template <>
44
- struct JSIConverter<PresentationBackground> final {
45
- static inline PresentationBackground fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
42
+ struct JSIConverter<margelo::nitro::rncandle::PresentationBackground> final {
43
+ static inline margelo::nitro::rncandle::PresentationBackground fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
46
44
  std::string unionValue = JSIConverter<std::string>::fromJSI(runtime, arg);
47
45
  switch (hashString(unionValue.c_str(), unionValue.size())) {
48
- case hashString("default"): return PresentationBackground::DEFAULT;
49
- case hashString("blur"): return PresentationBackground::BLUR;
46
+ case hashString("default"): return margelo::nitro::rncandle::PresentationBackground::DEFAULT;
47
+ case hashString("blur"): return margelo::nitro::rncandle::PresentationBackground::BLUR;
50
48
  default: [[unlikely]]
51
49
  throw std::invalid_argument("Cannot convert \"" + unionValue + "\" to enum PresentationBackground - invalid value!");
52
50
  }
53
51
  }
54
- static inline jsi::Value toJSI(jsi::Runtime& runtime, PresentationBackground arg) {
52
+ static inline jsi::Value toJSI(jsi::Runtime& runtime, margelo::nitro::rncandle::PresentationBackground arg) {
55
53
  switch (arg) {
56
- case PresentationBackground::DEFAULT: return JSIConverter<std::string>::toJSI(runtime, "default");
57
- case PresentationBackground::BLUR: return JSIConverter<std::string>::toJSI(runtime, "blur");
54
+ case margelo::nitro::rncandle::PresentationBackground::DEFAULT: return JSIConverter<std::string>::toJSI(runtime, "default");
55
+ case margelo::nitro::rncandle::PresentationBackground::BLUR: return JSIConverter<std::string>::toJSI(runtime, "blur");
58
56
  default: [[unlikely]]
59
57
  throw std::invalid_argument("Cannot convert PresentationBackground to JS - invalid value: "
60
58
  + std::to_string(static_cast<int>(arg)) + "!");
@@ -37,24 +37,22 @@ namespace margelo::nitro::rncandle {
37
37
 
38
38
  namespace margelo::nitro {
39
39
 
40
- using namespace margelo::nitro::rncandle;
41
-
42
40
  // C++ PresentationStyle <> JS PresentationStyle (union)
43
41
  template <>
44
- struct JSIConverter<PresentationStyle> final {
45
- static inline PresentationStyle fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
42
+ struct JSIConverter<margelo::nitro::rncandle::PresentationStyle> final {
43
+ static inline margelo::nitro::rncandle::PresentationStyle fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
46
44
  std::string unionValue = JSIConverter<std::string>::fromJSI(runtime, arg);
47
45
  switch (hashString(unionValue.c_str(), unionValue.size())) {
48
- case hashString("sheet"): return PresentationStyle::SHEET;
49
- case hashString("fullScreen"): return PresentationStyle::FULLSCREEN;
46
+ case hashString("sheet"): return margelo::nitro::rncandle::PresentationStyle::SHEET;
47
+ case hashString("fullScreen"): return margelo::nitro::rncandle::PresentationStyle::FULLSCREEN;
50
48
  default: [[unlikely]]
51
49
  throw std::invalid_argument("Cannot convert \"" + unionValue + "\" to enum PresentationStyle - invalid value!");
52
50
  }
53
51
  }
54
- static inline jsi::Value toJSI(jsi::Runtime& runtime, PresentationStyle arg) {
52
+ static inline jsi::Value toJSI(jsi::Runtime& runtime, margelo::nitro::rncandle::PresentationStyle arg) {
55
53
  switch (arg) {
56
- case PresentationStyle::SHEET: return JSIConverter<std::string>::toJSI(runtime, "sheet");
57
- case PresentationStyle::FULLSCREEN: return JSIConverter<std::string>::toJSI(runtime, "fullScreen");
54
+ case margelo::nitro::rncandle::PresentationStyle::SHEET: return JSIConverter<std::string>::toJSI(runtime, "sheet");
55
+ case margelo::nitro::rncandle::PresentationStyle::FULLSCREEN: return JSIConverter<std::string>::toJSI(runtime, "fullScreen");
58
56
  default: [[unlikely]]
59
57
  throw std::invalid_argument("Cannot convert PresentationStyle to JS - invalid value: "
60
58
  + std::to_string(static_cast<int>(arg)) + "!");