react-native-candle 19.0.12-beta → 40.0.8-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 +17 -25
- package/android/gradle.properties +5 -0
- package/android/src/main/java/com/margelo/nitro/rncandle/BridgeTypes.kt +189 -2
- package/android/src/main/java/com/margelo/nitro/rncandle/HybridRNCandle.kt +63 -10
- package/ios/Sources/CandleLinkSheetWrapperView.swift +3 -2
- package/ios/Sources/CandleLinkViewModel.swift +2 -1
- package/ios/Sources/RNCandle.swift +86 -9
- package/ios/Sources/Types.swift +199 -5
- package/lib/typescript/commonjs/src/context.d.ts +16 -6
- package/lib/typescript/commonjs/src/provider.d.ts +1 -2
- package/lib/typescript/commonjs/src/specs/RNCandle.nitro.d.ts +76 -6
- package/lib/typescript/commonjs/src/types.d.ts +15 -3
- package/lib/typescript/module/src/context.d.ts +16 -6
- package/lib/typescript/module/src/provider.d.ts +1 -2
- package/lib/typescript/module/src/specs/RNCandle.nitro.d.ts +76 -6
- package/lib/typescript/module/src/types.d.ts +15 -3
- package/nitrogen/generated/android/c++/JAssetAccount.hpp +2 -0
- package/nitrogen/generated/android/c++/JAssetAccountsResponse.hpp +2 -0
- package/nitrogen/generated/android/c++/JCounterparty.hpp +2 -0
- package/nitrogen/generated/android/c++/JCryptoAccount.hpp +3 -0
- package/nitrogen/generated/android/c++/JCryptoAsset.hpp +3 -0
- package/nitrogen/generated/android/c++/JEventAsset.hpp +3 -0
- package/nitrogen/generated/android/c++/JFiatAccount.hpp +2 -0
- package/nitrogen/generated/android/c++/JFiatAsset.hpp +2 -0
- package/nitrogen/generated/android/c++/JFriendRequestAsset.hpp +86 -0
- package/nitrogen/generated/android/c++/JFriendRequestAssetDirection.hpp +58 -0
- package/nitrogen/generated/android/c++/JFriendRequestAssetQuoteRequest.hpp +63 -0
- package/nitrogen/generated/android/c++/JFriendRequestAssetQuoteRequestAction.hpp +64 -0
- package/nitrogen/generated/android/c++/JFriendRequestAssetRef.hpp +66 -0
- package/nitrogen/generated/android/c++/JFunc_void_LinkedAccount.hpp +13 -11
- package/nitrogen/generated/android/c++/JFunc_void_TradeExecutionResult.hpp +11 -0
- package/nitrogen/generated/android/c++/JHostedAuthorizationCallback.hpp +66 -0
- package/nitrogen/generated/android/c++/JHostedAuthorizationRequest.hpp +69 -0
- package/nitrogen/generated/android/c++/JHybridRNCandleSpec.cpp +78 -15
- package/nitrogen/generated/android/c++/JHybridRNCandleSpec.hpp +7 -4
- package/nitrogen/generated/android/c++/JLinkedAccount.hpp +2 -0
- package/nitrogen/generated/android/c++/JLinkedAccountStatusRef.hpp +3 -0
- package/nitrogen/generated/android/c++/JMessageThreadAsset.hpp +99 -0
- package/nitrogen/generated/android/c++/JMessageThreadAssetQuoteRequest.hpp +61 -0
- package/nitrogen/generated/android/c++/JMessageThreadAssetRef.hpp +65 -0
- package/nitrogen/generated/android/c++/JMessageThreadMessage.hpp +78 -0
- package/nitrogen/generated/android/c++/JService.hpp +36 -252
- package/nitrogen/generated/android/c++/JServiceCounterparty.hpp +3 -0
- package/nitrogen/generated/android/c++/JServiceID.hpp +316 -0
- package/nitrogen/generated/android/c++/JStockAccount.hpp +3 -0
- package/nitrogen/generated/android/c++/JStockAsset.hpp +3 -0
- package/nitrogen/generated/android/c++/JTrade.hpp +11 -0
- package/nitrogen/generated/android/c++/JTradeAsset.hpp +22 -1
- package/nitrogen/generated/android/c++/JTradeAssetKind.hpp +6 -0
- package/nitrogen/generated/android/c++/JTradeAssetQuoteRequest.hpp +15 -1
- package/nitrogen/generated/android/c++/JTradeAssetRef.hpp +13 -1
- package/nitrogen/generated/android/c++/JTradeExecutionResult.hpp +11 -0
- package/nitrogen/generated/android/c++/JTradeQuote.hpp +11 -0
- package/nitrogen/generated/android/c++/JTradeQuotesRequest.hpp +6 -0
- package/nitrogen/generated/android/c++/JTradeQuotesResponse.hpp +10 -0
- package/nitrogen/generated/android/c++/JTradeRef.hpp +4 -0
- package/nitrogen/generated/android/c++/JTradesResponse.hpp +10 -0
- package/nitrogen/generated/android/c++/JTransportAccount.hpp +3 -0
- package/nitrogen/generated/android/c++/JTransportAsset.hpp +3 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rncandle/FriendRequestAsset.kt +53 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rncandle/FriendRequestAssetDirection.kt +23 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rncandle/FriendRequestAssetQuoteRequest.kt +41 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rncandle/FriendRequestAssetQuoteRequestAction.kt +25 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rncandle/FriendRequestAssetRef.kt +44 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rncandle/Func_void_LinkedAccount.kt +9 -9
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rncandle/HostedAuthorizationCallback.kt +44 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rncandle/HostedAuthorizationRequest.kt +47 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rncandle/HybridRNCandleSpec.kt +18 -6
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rncandle/MessageThreadAsset.kt +50 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rncandle/MessageThreadAssetQuoteRequest.kt +41 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rncandle/MessageThreadAssetRef.kt +44 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rncandle/MessageThreadMessage.kt +53 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rncandle/Service.kt +32 -83
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rncandle/ServiceID.kt +109 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rncandle/TradeAsset.kt +8 -2
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rncandle/TradeAssetKind.kt +4 -2
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rncandle/TradeAssetQuoteRequest.kt +8 -2
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rncandle/TradeAssetRef.kt +8 -2
- package/nitrogen/generated/ios/ReactNativeCandle-Swift-Cxx-Bridge.cpp +3 -3
- package/nitrogen/generated/ios/ReactNativeCandle-Swift-Cxx-Bridge.hpp +184 -20
- package/nitrogen/generated/ios/ReactNativeCandle-Swift-Cxx-Umbrella.hpp +37 -1
- package/nitrogen/generated/ios/c++/HybridRNCandleSpecSwift.hpp +74 -14
- package/nitrogen/generated/ios/swift/FriendRequestAsset.swift +67 -0
- package/nitrogen/generated/ios/swift/FriendRequestAssetDirection.swift +40 -0
- package/nitrogen/generated/ios/swift/FriendRequestAssetQuoteRequest.swift +34 -0
- package/nitrogen/generated/ios/swift/FriendRequestAssetQuoteRequestAction.swift +48 -0
- package/nitrogen/generated/ios/swift/FriendRequestAssetRef.swift +52 -0
- package/nitrogen/generated/ios/swift/Func_void_LinkedAccount.swift +5 -5
- package/nitrogen/generated/ios/swift/HostedAuthorizationCallback.swift +52 -0
- package/nitrogen/generated/ios/swift/HostedAuthorizationRequest.swift +44 -0
- package/nitrogen/generated/ios/swift/HybridRNCandleSpec.swift +7 -4
- package/nitrogen/generated/ios/swift/HybridRNCandleSpec_cxx.swift +56 -13
- package/nitrogen/generated/ios/swift/MessageThreadAsset.swift +68 -0
- package/nitrogen/generated/ios/swift/MessageThreadAssetQuoteRequest.swift +34 -0
- package/nitrogen/generated/ios/swift/MessageThreadAssetRef.swift +39 -0
- package/nitrogen/generated/ios/swift/MessageThreadMessage.swift +119 -0
- package/nitrogen/generated/ios/swift/Service.swift +44 -334
- package/nitrogen/generated/ios/swift/ServiceID.swift +384 -0
- package/nitrogen/generated/ios/swift/TradeAsset.swift +23 -1
- package/nitrogen/generated/ios/swift/TradeAssetKind.swift +8 -0
- package/nitrogen/generated/ios/swift/TradeAssetQuoteRequest.swift +23 -1
- package/nitrogen/generated/ios/swift/TradeAssetRef.swift +23 -1
- package/nitrogen/generated/shared/c++/CryptoAccount.hpp +1 -1
- package/nitrogen/generated/shared/c++/CryptoAsset.hpp +1 -1
- package/nitrogen/generated/shared/c++/EventAsset.hpp +1 -1
- package/nitrogen/generated/shared/c++/FiatAccount.hpp +1 -1
- package/nitrogen/generated/shared/c++/FiatAsset.hpp +1 -1
- package/nitrogen/generated/shared/c++/FriendRequestAsset.hpp +112 -0
- package/nitrogen/generated/shared/c++/FriendRequestAssetDirection.hpp +76 -0
- package/nitrogen/generated/shared/c++/FriendRequestAssetQuoteRequest.hpp +89 -0
- package/nitrogen/generated/shared/c++/FriendRequestAssetQuoteRequestAction.hpp +84 -0
- package/nitrogen/generated/shared/c++/FriendRequestAssetRef.hpp +92 -0
- package/nitrogen/generated/shared/c++/HostedAuthorizationCallback.hpp +92 -0
- package/nitrogen/generated/shared/c++/HostedAuthorizationRequest.hpp +95 -0
- package/nitrogen/generated/shared/c++/HybridRNCandleSpec.cpp +5 -2
- package/nitrogen/generated/shared/c++/HybridRNCandleSpec.hpp +16 -7
- package/nitrogen/generated/shared/c++/LinkedAccount.hpp +1 -1
- package/nitrogen/generated/shared/c++/LinkedAccountStatusRef.hpp +1 -1
- package/nitrogen/generated/shared/c++/MessageThreadAsset.hpp +106 -0
- package/nitrogen/generated/shared/c++/MessageThreadAssetQuoteRequest.hpp +87 -0
- package/nitrogen/generated/shared/c++/MessageThreadAssetRef.hpp +91 -0
- package/nitrogen/generated/shared/c++/MessageThreadMessage.hpp +104 -0
- package/nitrogen/generated/shared/c++/Service.hpp +60 -346
- package/nitrogen/generated/shared/c++/ServiceCounterparty.hpp +1 -1
- package/nitrogen/generated/shared/c++/ServiceID.hpp +420 -0
- package/nitrogen/generated/shared/c++/StockAccount.hpp +1 -1
- package/nitrogen/generated/shared/c++/StockAsset.hpp +1 -1
- package/nitrogen/generated/shared/c++/TradeAsset.hpp +15 -1
- package/nitrogen/generated/shared/c++/TradeAssetKind.hpp +10 -2
- package/nitrogen/generated/shared/c++/TradeAssetQuoteRequest.hpp +15 -1
- package/nitrogen/generated/shared/c++/TradeAssetRef.hpp +15 -1
- package/nitrogen/generated/shared/c++/TransportAccount.hpp +1 -1
- package/nitrogen/generated/shared/c++/TransportAsset.hpp +1 -1
- package/package.json +1 -1
- package/src/context.ts +21 -5
- package/src/provider.tsx +62 -34
- package/src/specs/RNCandle.nitro.ts +109 -7
- package/src/types.ts +50 -1
|
@@ -54,6 +54,20 @@ namespace margelo::nitro::rncandle { struct FiatAssetRef; }
|
|
|
54
54
|
namespace margelo::nitro::rncandle { struct FiatAsset; }
|
|
55
55
|
// Forward declaration of `FinancialAccountKind` to properly resolve imports.
|
|
56
56
|
namespace margelo::nitro::rncandle { enum class FinancialAccountKind; }
|
|
57
|
+
// Forward declaration of `FriendRequestAssetDirection` to properly resolve imports.
|
|
58
|
+
namespace margelo::nitro::rncandle { enum class FriendRequestAssetDirection; }
|
|
59
|
+
// Forward declaration of `FriendRequestAssetQuoteRequestAction` to properly resolve imports.
|
|
60
|
+
namespace margelo::nitro::rncandle { enum class FriendRequestAssetQuoteRequestAction; }
|
|
61
|
+
// Forward declaration of `FriendRequestAssetQuoteRequest` to properly resolve imports.
|
|
62
|
+
namespace margelo::nitro::rncandle { struct FriendRequestAssetQuoteRequest; }
|
|
63
|
+
// Forward declaration of `FriendRequestAssetRef` to properly resolve imports.
|
|
64
|
+
namespace margelo::nitro::rncandle { struct FriendRequestAssetRef; }
|
|
65
|
+
// Forward declaration of `FriendRequestAsset` to properly resolve imports.
|
|
66
|
+
namespace margelo::nitro::rncandle { struct FriendRequestAsset; }
|
|
67
|
+
// Forward declaration of `HostedAuthorizationCallback` to properly resolve imports.
|
|
68
|
+
namespace margelo::nitro::rncandle { struct HostedAuthorizationCallback; }
|
|
69
|
+
// Forward declaration of `HostedAuthorizationRequest` to properly resolve imports.
|
|
70
|
+
namespace margelo::nitro::rncandle { struct HostedAuthorizationRequest; }
|
|
57
71
|
// Forward declaration of `HybridRNCandleSpec` to properly resolve imports.
|
|
58
72
|
namespace margelo::nitro::rncandle { class HybridRNCandleSpec; }
|
|
59
73
|
// Forward declaration of `InactiveLinkedAccountDetails` to properly resolve imports.
|
|
@@ -72,6 +86,14 @@ namespace margelo::nitro::rncandle { struct MerchantCounterpartyQuoteRequest; }
|
|
|
72
86
|
namespace margelo::nitro::rncandle { struct MerchantCounterparty; }
|
|
73
87
|
// Forward declaration of `MerchantLocation` to properly resolve imports.
|
|
74
88
|
namespace margelo::nitro::rncandle { struct MerchantLocation; }
|
|
89
|
+
// Forward declaration of `MessageThreadAssetQuoteRequest` to properly resolve imports.
|
|
90
|
+
namespace margelo::nitro::rncandle { struct MessageThreadAssetQuoteRequest; }
|
|
91
|
+
// Forward declaration of `MessageThreadAssetRef` to properly resolve imports.
|
|
92
|
+
namespace margelo::nitro::rncandle { struct MessageThreadAssetRef; }
|
|
93
|
+
// Forward declaration of `MessageThreadAsset` to properly resolve imports.
|
|
94
|
+
namespace margelo::nitro::rncandle { struct MessageThreadAsset; }
|
|
95
|
+
// Forward declaration of `MessageThreadMessage` to properly resolve imports.
|
|
96
|
+
namespace margelo::nitro::rncandle { struct MessageThreadMessage; }
|
|
75
97
|
// Forward declaration of `NothingAssetQuoteRequest` to properly resolve imports.
|
|
76
98
|
namespace margelo::nitro::rncandle { struct NothingAssetQuoteRequest; }
|
|
77
99
|
// Forward declaration of `NothingAssetRef` to properly resolve imports.
|
|
@@ -88,8 +110,10 @@ namespace margelo::nitro::rncandle { struct OtherAsset; }
|
|
|
88
110
|
namespace margelo::nitro::rncandle { struct ServiceCounterpartyQuoteRequest; }
|
|
89
111
|
// Forward declaration of `ServiceCounterparty` to properly resolve imports.
|
|
90
112
|
namespace margelo::nitro::rncandle { struct ServiceCounterparty; }
|
|
113
|
+
// Forward declaration of `ServiceID` to properly resolve imports.
|
|
114
|
+
namespace margelo::nitro::rncandle { enum class ServiceID; }
|
|
91
115
|
// Forward declaration of `Service` to properly resolve imports.
|
|
92
|
-
namespace margelo::nitro::rncandle {
|
|
116
|
+
namespace margelo::nitro::rncandle { struct Service; }
|
|
93
117
|
// Forward declaration of `StockAccount` to properly resolve imports.
|
|
94
118
|
namespace margelo::nitro::rncandle { struct StockAccount; }
|
|
95
119
|
// Forward declaration of `StockAssetQuoteRequest` to properly resolve imports.
|
|
@@ -161,6 +185,13 @@ namespace ReactNativeCandle { class HybridRNCandleSpec_cxx; }
|
|
|
161
185
|
#include "FiatAssetQuoteRequest.hpp"
|
|
162
186
|
#include "FiatAssetRef.hpp"
|
|
163
187
|
#include "FinancialAccountKind.hpp"
|
|
188
|
+
#include "FriendRequestAsset.hpp"
|
|
189
|
+
#include "FriendRequestAssetDirection.hpp"
|
|
190
|
+
#include "FriendRequestAssetQuoteRequest.hpp"
|
|
191
|
+
#include "FriendRequestAssetQuoteRequestAction.hpp"
|
|
192
|
+
#include "FriendRequestAssetRef.hpp"
|
|
193
|
+
#include "HostedAuthorizationCallback.hpp"
|
|
194
|
+
#include "HostedAuthorizationRequest.hpp"
|
|
164
195
|
#include "HybridRNCandleSpec.hpp"
|
|
165
196
|
#include "InactiveLinkedAccountDetails.hpp"
|
|
166
197
|
#include "LinkedAccount.hpp"
|
|
@@ -170,6 +201,10 @@ namespace ReactNativeCandle { class HybridRNCandleSpec_cxx; }
|
|
|
170
201
|
#include "MerchantCounterparty.hpp"
|
|
171
202
|
#include "MerchantCounterpartyQuoteRequest.hpp"
|
|
172
203
|
#include "MerchantLocation.hpp"
|
|
204
|
+
#include "MessageThreadAsset.hpp"
|
|
205
|
+
#include "MessageThreadAssetQuoteRequest.hpp"
|
|
206
|
+
#include "MessageThreadAssetRef.hpp"
|
|
207
|
+
#include "MessageThreadMessage.hpp"
|
|
173
208
|
#include "NothingAsset.hpp"
|
|
174
209
|
#include "NothingAssetQuoteRequest.hpp"
|
|
175
210
|
#include "NothingAssetRef.hpp"
|
|
@@ -179,6 +214,7 @@ namespace ReactNativeCandle { class HybridRNCandleSpec_cxx; }
|
|
|
179
214
|
#include "Service.hpp"
|
|
180
215
|
#include "ServiceCounterparty.hpp"
|
|
181
216
|
#include "ServiceCounterpartyQuoteRequest.hpp"
|
|
217
|
+
#include "ServiceID.hpp"
|
|
182
218
|
#include "StockAccount.hpp"
|
|
183
219
|
#include "StockAsset.hpp"
|
|
184
220
|
#include "StockAssetQuoteRequest.hpp"
|
|
@@ -216,29 +252,29 @@ namespace ReactNativeCandle { class HybridRNCandleSpec_cxx; }
|
|
|
216
252
|
*/
|
|
217
253
|
namespace margelo::nitro::rncandle::bridge::swift {
|
|
218
254
|
|
|
219
|
-
// pragma MARK: std::vector<
|
|
255
|
+
// pragma MARK: std::vector<ServiceID>
|
|
220
256
|
/**
|
|
221
|
-
* Specialized version of `std::vector<
|
|
257
|
+
* Specialized version of `std::vector<ServiceID>`.
|
|
222
258
|
*/
|
|
223
|
-
using
|
|
224
|
-
inline std::vector<
|
|
225
|
-
std::vector<
|
|
259
|
+
using std__vector_ServiceID_ = std::vector<ServiceID>;
|
|
260
|
+
inline std::vector<ServiceID> create_std__vector_ServiceID_(size_t size) noexcept {
|
|
261
|
+
std::vector<ServiceID> vector;
|
|
226
262
|
vector.reserve(size);
|
|
227
263
|
return vector;
|
|
228
264
|
}
|
|
229
265
|
|
|
230
|
-
// pragma MARK: std::optional<std::vector<
|
|
266
|
+
// pragma MARK: std::optional<std::vector<ServiceID>>
|
|
231
267
|
/**
|
|
232
|
-
* Specialized version of `std::optional<std::vector<
|
|
268
|
+
* Specialized version of `std::optional<std::vector<ServiceID>>`.
|
|
233
269
|
*/
|
|
234
|
-
using
|
|
235
|
-
inline std::optional<std::vector<
|
|
236
|
-
return std::optional<std::vector<
|
|
270
|
+
using std__optional_std__vector_ServiceID__ = std::optional<std::vector<ServiceID>>;
|
|
271
|
+
inline std::optional<std::vector<ServiceID>> create_std__optional_std__vector_ServiceID__(const std::vector<ServiceID>& value) noexcept {
|
|
272
|
+
return std::optional<std::vector<ServiceID>>(value);
|
|
237
273
|
}
|
|
238
|
-
inline bool
|
|
274
|
+
inline bool has_value_std__optional_std__vector_ServiceID__(const std::optional<std::vector<ServiceID>>& optional) noexcept {
|
|
239
275
|
return optional.has_value();
|
|
240
276
|
}
|
|
241
|
-
inline std::vector<
|
|
277
|
+
inline std::vector<ServiceID> get_std__optional_std__vector_ServiceID__(const std::optional<std::vector<ServiceID>>& optional) noexcept {
|
|
242
278
|
return optional.value();
|
|
243
279
|
}
|
|
244
280
|
|
|
@@ -302,22 +338,22 @@ namespace margelo::nitro::rncandle::bridge::swift {
|
|
|
302
338
|
return optional.value();
|
|
303
339
|
}
|
|
304
340
|
|
|
305
|
-
// pragma MARK: std::function<void(const LinkedAccount& /*
|
|
341
|
+
// pragma MARK: std::function<void(const LinkedAccount& /* linkedAccount */)>
|
|
306
342
|
/**
|
|
307
343
|
* Specialized version of `std::function<void(const LinkedAccount&)>`.
|
|
308
344
|
*/
|
|
309
|
-
using Func_void_LinkedAccount = std::function<void(const LinkedAccount& /*
|
|
345
|
+
using Func_void_LinkedAccount = std::function<void(const LinkedAccount& /* linkedAccount */)>;
|
|
310
346
|
/**
|
|
311
|
-
* Wrapper class for a `std::function<void(const LinkedAccount& / *
|
|
347
|
+
* Wrapper class for a `std::function<void(const LinkedAccount& / * linkedAccount * /)>`, this can be used from Swift.
|
|
312
348
|
*/
|
|
313
349
|
class Func_void_LinkedAccount_Wrapper final {
|
|
314
350
|
public:
|
|
315
|
-
explicit Func_void_LinkedAccount_Wrapper(std::function<void(const LinkedAccount& /*
|
|
316
|
-
inline void call(LinkedAccount
|
|
317
|
-
_function->operator()(
|
|
351
|
+
explicit Func_void_LinkedAccount_Wrapper(std::function<void(const LinkedAccount& /* linkedAccount */)>&& func): _function(std::make_unique<std::function<void(const LinkedAccount& /* linkedAccount */)>>(std::move(func))) {}
|
|
352
|
+
inline void call(LinkedAccount linkedAccount) const noexcept {
|
|
353
|
+
_function->operator()(linkedAccount);
|
|
318
354
|
}
|
|
319
355
|
private:
|
|
320
|
-
std::unique_ptr<std::function<void(const LinkedAccount& /*
|
|
356
|
+
std::unique_ptr<std::function<void(const LinkedAccount& /* linkedAccount */)>> _function;
|
|
321
357
|
} SWIFT_NONCOPYABLE;
|
|
322
358
|
Func_void_LinkedAccount create_Func_void_LinkedAccount(void* NON_NULL swiftClosureWrapper) noexcept;
|
|
323
359
|
inline Func_void_LinkedAccount_Wrapper wrap_Func_void_LinkedAccount(Func_void_LinkedAccount value) noexcept {
|
|
@@ -399,6 +435,47 @@ namespace margelo::nitro::rncandle::bridge::swift {
|
|
|
399
435
|
return optional.value();
|
|
400
436
|
}
|
|
401
437
|
|
|
438
|
+
// pragma MARK: std::vector<MessageThreadMessage>
|
|
439
|
+
/**
|
|
440
|
+
* Specialized version of `std::vector<MessageThreadMessage>`.
|
|
441
|
+
*/
|
|
442
|
+
using std__vector_MessageThreadMessage_ = std::vector<MessageThreadMessage>;
|
|
443
|
+
inline std::vector<MessageThreadMessage> create_std__vector_MessageThreadMessage_(size_t size) noexcept {
|
|
444
|
+
std::vector<MessageThreadMessage> vector;
|
|
445
|
+
vector.reserve(size);
|
|
446
|
+
return vector;
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
// pragma MARK: std::optional<MessageThreadAsset>
|
|
450
|
+
/**
|
|
451
|
+
* Specialized version of `std::optional<MessageThreadAsset>`.
|
|
452
|
+
*/
|
|
453
|
+
using std__optional_MessageThreadAsset_ = std::optional<MessageThreadAsset>;
|
|
454
|
+
inline std::optional<MessageThreadAsset> create_std__optional_MessageThreadAsset_(const MessageThreadAsset& value) noexcept {
|
|
455
|
+
return std::optional<MessageThreadAsset>(value);
|
|
456
|
+
}
|
|
457
|
+
inline bool has_value_std__optional_MessageThreadAsset_(const std::optional<MessageThreadAsset>& optional) noexcept {
|
|
458
|
+
return optional.has_value();
|
|
459
|
+
}
|
|
460
|
+
inline MessageThreadAsset get_std__optional_MessageThreadAsset_(const std::optional<MessageThreadAsset>& optional) noexcept {
|
|
461
|
+
return optional.value();
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
// pragma MARK: std::optional<FriendRequestAsset>
|
|
465
|
+
/**
|
|
466
|
+
* Specialized version of `std::optional<FriendRequestAsset>`.
|
|
467
|
+
*/
|
|
468
|
+
using std__optional_FriendRequestAsset_ = std::optional<FriendRequestAsset>;
|
|
469
|
+
inline std::optional<FriendRequestAsset> create_std__optional_FriendRequestAsset_(const FriendRequestAsset& value) noexcept {
|
|
470
|
+
return std::optional<FriendRequestAsset>(value);
|
|
471
|
+
}
|
|
472
|
+
inline bool has_value_std__optional_FriendRequestAsset_(const std::optional<FriendRequestAsset>& optional) noexcept {
|
|
473
|
+
return optional.has_value();
|
|
474
|
+
}
|
|
475
|
+
inline FriendRequestAsset get_std__optional_FriendRequestAsset_(const std::optional<FriendRequestAsset>& optional) noexcept {
|
|
476
|
+
return optional.value();
|
|
477
|
+
}
|
|
478
|
+
|
|
402
479
|
// pragma MARK: std::optional<OtherAsset>
|
|
403
480
|
/**
|
|
404
481
|
* Specialized version of `std::optional<OtherAsset>`.
|
|
@@ -1033,6 +1110,36 @@ namespace margelo::nitro::rncandle::bridge::swift {
|
|
|
1033
1110
|
return optional.value();
|
|
1034
1111
|
}
|
|
1035
1112
|
|
|
1113
|
+
// pragma MARK: std::optional<MessageThreadAssetRef>
|
|
1114
|
+
/**
|
|
1115
|
+
* Specialized version of `std::optional<MessageThreadAssetRef>`.
|
|
1116
|
+
*/
|
|
1117
|
+
using std__optional_MessageThreadAssetRef_ = std::optional<MessageThreadAssetRef>;
|
|
1118
|
+
inline std::optional<MessageThreadAssetRef> create_std__optional_MessageThreadAssetRef_(const MessageThreadAssetRef& value) noexcept {
|
|
1119
|
+
return std::optional<MessageThreadAssetRef>(value);
|
|
1120
|
+
}
|
|
1121
|
+
inline bool has_value_std__optional_MessageThreadAssetRef_(const std::optional<MessageThreadAssetRef>& optional) noexcept {
|
|
1122
|
+
return optional.has_value();
|
|
1123
|
+
}
|
|
1124
|
+
inline MessageThreadAssetRef get_std__optional_MessageThreadAssetRef_(const std::optional<MessageThreadAssetRef>& optional) noexcept {
|
|
1125
|
+
return optional.value();
|
|
1126
|
+
}
|
|
1127
|
+
|
|
1128
|
+
// pragma MARK: std::optional<FriendRequestAssetRef>
|
|
1129
|
+
/**
|
|
1130
|
+
* Specialized version of `std::optional<FriendRequestAssetRef>`.
|
|
1131
|
+
*/
|
|
1132
|
+
using std__optional_FriendRequestAssetRef_ = std::optional<FriendRequestAssetRef>;
|
|
1133
|
+
inline std::optional<FriendRequestAssetRef> create_std__optional_FriendRequestAssetRef_(const FriendRequestAssetRef& value) noexcept {
|
|
1134
|
+
return std::optional<FriendRequestAssetRef>(value);
|
|
1135
|
+
}
|
|
1136
|
+
inline bool has_value_std__optional_FriendRequestAssetRef_(const std::optional<FriendRequestAssetRef>& optional) noexcept {
|
|
1137
|
+
return optional.has_value();
|
|
1138
|
+
}
|
|
1139
|
+
inline FriendRequestAssetRef get_std__optional_FriendRequestAssetRef_(const std::optional<FriendRequestAssetRef>& optional) noexcept {
|
|
1140
|
+
return optional.value();
|
|
1141
|
+
}
|
|
1142
|
+
|
|
1036
1143
|
// pragma MARK: std::optional<OtherAssetRef>
|
|
1037
1144
|
/**
|
|
1038
1145
|
* Specialized version of `std::optional<OtherAssetRef>`.
|
|
@@ -1213,6 +1320,36 @@ namespace margelo::nitro::rncandle::bridge::swift {
|
|
|
1213
1320
|
return optional.value();
|
|
1214
1321
|
}
|
|
1215
1322
|
|
|
1323
|
+
// pragma MARK: std::optional<MessageThreadAssetQuoteRequest>
|
|
1324
|
+
/**
|
|
1325
|
+
* Specialized version of `std::optional<MessageThreadAssetQuoteRequest>`.
|
|
1326
|
+
*/
|
|
1327
|
+
using std__optional_MessageThreadAssetQuoteRequest_ = std::optional<MessageThreadAssetQuoteRequest>;
|
|
1328
|
+
inline std::optional<MessageThreadAssetQuoteRequest> create_std__optional_MessageThreadAssetQuoteRequest_(const MessageThreadAssetQuoteRequest& value) noexcept {
|
|
1329
|
+
return std::optional<MessageThreadAssetQuoteRequest>(value);
|
|
1330
|
+
}
|
|
1331
|
+
inline bool has_value_std__optional_MessageThreadAssetQuoteRequest_(const std::optional<MessageThreadAssetQuoteRequest>& optional) noexcept {
|
|
1332
|
+
return optional.has_value();
|
|
1333
|
+
}
|
|
1334
|
+
inline MessageThreadAssetQuoteRequest get_std__optional_MessageThreadAssetQuoteRequest_(const std::optional<MessageThreadAssetQuoteRequest>& optional) noexcept {
|
|
1335
|
+
return optional.value();
|
|
1336
|
+
}
|
|
1337
|
+
|
|
1338
|
+
// pragma MARK: std::optional<FriendRequestAssetQuoteRequest>
|
|
1339
|
+
/**
|
|
1340
|
+
* Specialized version of `std::optional<FriendRequestAssetQuoteRequest>`.
|
|
1341
|
+
*/
|
|
1342
|
+
using std__optional_FriendRequestAssetQuoteRequest_ = std::optional<FriendRequestAssetQuoteRequest>;
|
|
1343
|
+
inline std::optional<FriendRequestAssetQuoteRequest> create_std__optional_FriendRequestAssetQuoteRequest_(const FriendRequestAssetQuoteRequest& value) noexcept {
|
|
1344
|
+
return std::optional<FriendRequestAssetQuoteRequest>(value);
|
|
1345
|
+
}
|
|
1346
|
+
inline bool has_value_std__optional_FriendRequestAssetQuoteRequest_(const std::optional<FriendRequestAssetQuoteRequest>& optional) noexcept {
|
|
1347
|
+
return optional.has_value();
|
|
1348
|
+
}
|
|
1349
|
+
inline FriendRequestAssetQuoteRequest get_std__optional_FriendRequestAssetQuoteRequest_(const std::optional<FriendRequestAssetQuoteRequest>& optional) noexcept {
|
|
1350
|
+
return optional.value();
|
|
1351
|
+
}
|
|
1352
|
+
|
|
1216
1353
|
// pragma MARK: std::optional<NothingAssetQuoteRequest>
|
|
1217
1354
|
/**
|
|
1218
1355
|
* Specialized version of `std::optional<NothingAssetQuoteRequest>`.
|
|
@@ -1395,5 +1532,32 @@ namespace margelo::nitro::rncandle::bridge::swift {
|
|
|
1395
1532
|
inline Result_std__shared_ptr_Promise_TradeQuotesResponse___ create_Result_std__shared_ptr_Promise_TradeQuotesResponse___(const std::exception_ptr& error) noexcept {
|
|
1396
1533
|
return Result<std::shared_ptr<Promise<TradeQuotesResponse>>>::withError(error);
|
|
1397
1534
|
}
|
|
1535
|
+
|
|
1536
|
+
// pragma MARK: Result<std::string>
|
|
1537
|
+
using Result_std__string_ = Result<std::string>;
|
|
1538
|
+
inline Result_std__string_ create_Result_std__string_(const std::string& value) noexcept {
|
|
1539
|
+
return Result<std::string>::withValue(value);
|
|
1540
|
+
}
|
|
1541
|
+
inline Result_std__string_ create_Result_std__string_(const std::exception_ptr& error) noexcept {
|
|
1542
|
+
return Result<std::string>::withError(error);
|
|
1543
|
+
}
|
|
1544
|
+
|
|
1545
|
+
// pragma MARK: Result<HostedAuthorizationRequest>
|
|
1546
|
+
using Result_HostedAuthorizationRequest_ = Result<HostedAuthorizationRequest>;
|
|
1547
|
+
inline Result_HostedAuthorizationRequest_ create_Result_HostedAuthorizationRequest_(const HostedAuthorizationRequest& value) noexcept {
|
|
1548
|
+
return Result<HostedAuthorizationRequest>::withValue(value);
|
|
1549
|
+
}
|
|
1550
|
+
inline Result_HostedAuthorizationRequest_ create_Result_HostedAuthorizationRequest_(const std::exception_ptr& error) noexcept {
|
|
1551
|
+
return Result<HostedAuthorizationRequest>::withError(error);
|
|
1552
|
+
}
|
|
1553
|
+
|
|
1554
|
+
// pragma MARK: Result<HostedAuthorizationCallback>
|
|
1555
|
+
using Result_HostedAuthorizationCallback_ = Result<HostedAuthorizationCallback>;
|
|
1556
|
+
inline Result_HostedAuthorizationCallback_ create_Result_HostedAuthorizationCallback_(const HostedAuthorizationCallback& value) noexcept {
|
|
1557
|
+
return Result<HostedAuthorizationCallback>::withValue(value);
|
|
1558
|
+
}
|
|
1559
|
+
inline Result_HostedAuthorizationCallback_ create_Result_HostedAuthorizationCallback_(const std::exception_ptr& error) noexcept {
|
|
1560
|
+
return Result<HostedAuthorizationCallback>::withError(error);
|
|
1561
|
+
}
|
|
1398
1562
|
|
|
1399
1563
|
} // namespace margelo::nitro::rncandle::bridge::swift
|
|
@@ -58,6 +58,20 @@ namespace margelo::nitro::rncandle { struct FiatAssetRef; }
|
|
|
58
58
|
namespace margelo::nitro::rncandle { struct FiatAsset; }
|
|
59
59
|
// Forward declaration of `FinancialAccountKind` to properly resolve imports.
|
|
60
60
|
namespace margelo::nitro::rncandle { enum class FinancialAccountKind; }
|
|
61
|
+
// Forward declaration of `FriendRequestAssetDirection` to properly resolve imports.
|
|
62
|
+
namespace margelo::nitro::rncandle { enum class FriendRequestAssetDirection; }
|
|
63
|
+
// Forward declaration of `FriendRequestAssetQuoteRequestAction` to properly resolve imports.
|
|
64
|
+
namespace margelo::nitro::rncandle { enum class FriendRequestAssetQuoteRequestAction; }
|
|
65
|
+
// Forward declaration of `FriendRequestAssetQuoteRequest` to properly resolve imports.
|
|
66
|
+
namespace margelo::nitro::rncandle { struct FriendRequestAssetQuoteRequest; }
|
|
67
|
+
// Forward declaration of `FriendRequestAssetRef` to properly resolve imports.
|
|
68
|
+
namespace margelo::nitro::rncandle { struct FriendRequestAssetRef; }
|
|
69
|
+
// Forward declaration of `FriendRequestAsset` to properly resolve imports.
|
|
70
|
+
namespace margelo::nitro::rncandle { struct FriendRequestAsset; }
|
|
71
|
+
// Forward declaration of `HostedAuthorizationCallback` to properly resolve imports.
|
|
72
|
+
namespace margelo::nitro::rncandle { struct HostedAuthorizationCallback; }
|
|
73
|
+
// Forward declaration of `HostedAuthorizationRequest` to properly resolve imports.
|
|
74
|
+
namespace margelo::nitro::rncandle { struct HostedAuthorizationRequest; }
|
|
61
75
|
// Forward declaration of `HybridRNCandleSpec` to properly resolve imports.
|
|
62
76
|
namespace margelo::nitro::rncandle { class HybridRNCandleSpec; }
|
|
63
77
|
// Forward declaration of `InactiveLinkedAccountDetails` to properly resolve imports.
|
|
@@ -78,6 +92,14 @@ namespace margelo::nitro::rncandle { struct MerchantCounterpartyQuoteRequest; }
|
|
|
78
92
|
namespace margelo::nitro::rncandle { struct MerchantCounterparty; }
|
|
79
93
|
// Forward declaration of `MerchantLocation` to properly resolve imports.
|
|
80
94
|
namespace margelo::nitro::rncandle { struct MerchantLocation; }
|
|
95
|
+
// Forward declaration of `MessageThreadAssetQuoteRequest` to properly resolve imports.
|
|
96
|
+
namespace margelo::nitro::rncandle { struct MessageThreadAssetQuoteRequest; }
|
|
97
|
+
// Forward declaration of `MessageThreadAssetRef` to properly resolve imports.
|
|
98
|
+
namespace margelo::nitro::rncandle { struct MessageThreadAssetRef; }
|
|
99
|
+
// Forward declaration of `MessageThreadAsset` to properly resolve imports.
|
|
100
|
+
namespace margelo::nitro::rncandle { struct MessageThreadAsset; }
|
|
101
|
+
// Forward declaration of `MessageThreadMessage` to properly resolve imports.
|
|
102
|
+
namespace margelo::nitro::rncandle { struct MessageThreadMessage; }
|
|
81
103
|
// Forward declaration of `NothingAssetQuoteRequest` to properly resolve imports.
|
|
82
104
|
namespace margelo::nitro::rncandle { struct NothingAssetQuoteRequest; }
|
|
83
105
|
// Forward declaration of `NothingAssetRef` to properly resolve imports.
|
|
@@ -98,8 +120,10 @@ namespace margelo::nitro::rncandle { enum class PresentationStyle; }
|
|
|
98
120
|
namespace margelo::nitro::rncandle { struct ServiceCounterpartyQuoteRequest; }
|
|
99
121
|
// Forward declaration of `ServiceCounterparty` to properly resolve imports.
|
|
100
122
|
namespace margelo::nitro::rncandle { struct ServiceCounterparty; }
|
|
123
|
+
// Forward declaration of `ServiceID` to properly resolve imports.
|
|
124
|
+
namespace margelo::nitro::rncandle { enum class ServiceID; }
|
|
101
125
|
// Forward declaration of `Service` to properly resolve imports.
|
|
102
|
-
namespace margelo::nitro::rncandle {
|
|
126
|
+
namespace margelo::nitro::rncandle { struct Service; }
|
|
103
127
|
// Forward declaration of `StockAccount` to properly resolve imports.
|
|
104
128
|
namespace margelo::nitro::rncandle { struct StockAccount; }
|
|
105
129
|
// Forward declaration of `StockAssetQuoteRequest` to properly resolve imports.
|
|
@@ -179,6 +203,13 @@ namespace margelo::nitro::rncandle { struct WireDetails; }
|
|
|
179
203
|
#include "FiatAssetQuoteRequest.hpp"
|
|
180
204
|
#include "FiatAssetRef.hpp"
|
|
181
205
|
#include "FinancialAccountKind.hpp"
|
|
206
|
+
#include "FriendRequestAsset.hpp"
|
|
207
|
+
#include "FriendRequestAssetDirection.hpp"
|
|
208
|
+
#include "FriendRequestAssetQuoteRequest.hpp"
|
|
209
|
+
#include "FriendRequestAssetQuoteRequestAction.hpp"
|
|
210
|
+
#include "FriendRequestAssetRef.hpp"
|
|
211
|
+
#include "HostedAuthorizationCallback.hpp"
|
|
212
|
+
#include "HostedAuthorizationRequest.hpp"
|
|
182
213
|
#include "HybridRNCandleSpec.hpp"
|
|
183
214
|
#include "InactiveLinkedAccountDetails.hpp"
|
|
184
215
|
#include "LinkedAccount.hpp"
|
|
@@ -189,6 +220,10 @@ namespace margelo::nitro::rncandle { struct WireDetails; }
|
|
|
189
220
|
#include "MerchantCounterparty.hpp"
|
|
190
221
|
#include "MerchantCounterpartyQuoteRequest.hpp"
|
|
191
222
|
#include "MerchantLocation.hpp"
|
|
223
|
+
#include "MessageThreadAsset.hpp"
|
|
224
|
+
#include "MessageThreadAssetQuoteRequest.hpp"
|
|
225
|
+
#include "MessageThreadAssetRef.hpp"
|
|
226
|
+
#include "MessageThreadMessage.hpp"
|
|
192
227
|
#include "NothingAsset.hpp"
|
|
193
228
|
#include "NothingAssetQuoteRequest.hpp"
|
|
194
229
|
#include "NothingAssetRef.hpp"
|
|
@@ -200,6 +235,7 @@ namespace margelo::nitro::rncandle { struct WireDetails; }
|
|
|
200
235
|
#include "Service.hpp"
|
|
201
236
|
#include "ServiceCounterparty.hpp"
|
|
202
237
|
#include "ServiceCounterpartyQuoteRequest.hpp"
|
|
238
|
+
#include "ServiceID.hpp"
|
|
203
239
|
#include "StockAccount.hpp"
|
|
204
240
|
#include "StockAsset.hpp"
|
|
205
241
|
#include "StockAssetQuoteRequest.hpp"
|
|
@@ -12,14 +12,16 @@
|
|
|
12
12
|
// Forward declaration of `HybridRNCandleSpec_cxx` to properly resolve imports.
|
|
13
13
|
namespace ReactNativeCandle { class HybridRNCandleSpec_cxx; }
|
|
14
14
|
|
|
15
|
-
// Forward declaration of `
|
|
16
|
-
namespace margelo::nitro::rncandle { enum class
|
|
15
|
+
// Forward declaration of `ServiceID` to properly resolve imports.
|
|
16
|
+
namespace margelo::nitro::rncandle { enum class ServiceID; }
|
|
17
17
|
// Forward declaration of `PresentationBackground` to properly resolve imports.
|
|
18
18
|
namespace margelo::nitro::rncandle { enum class PresentationBackground; }
|
|
19
19
|
// Forward declaration of `PresentationStyle` to properly resolve imports.
|
|
20
20
|
namespace margelo::nitro::rncandle { enum class PresentationStyle; }
|
|
21
21
|
// Forward declaration of `LinkedAccount` to properly resolve imports.
|
|
22
22
|
namespace margelo::nitro::rncandle { struct LinkedAccount; }
|
|
23
|
+
// Forward declaration of `Service` to properly resolve imports.
|
|
24
|
+
namespace margelo::nitro::rncandle { struct Service; }
|
|
23
25
|
// Forward declaration of `LinkedAccountDetails` to properly resolve imports.
|
|
24
26
|
namespace margelo::nitro::rncandle { struct LinkedAccountDetails; }
|
|
25
27
|
// Forward declaration of `ActiveLinkedAccountDetails` to properly resolve imports.
|
|
@@ -46,6 +48,16 @@ namespace margelo::nitro::rncandle { struct Coordinates; }
|
|
|
46
48
|
namespace margelo::nitro::rncandle { struct Address; }
|
|
47
49
|
// Forward declaration of `EventAsset` to properly resolve imports.
|
|
48
50
|
namespace margelo::nitro::rncandle { struct EventAsset; }
|
|
51
|
+
// Forward declaration of `MessageThreadAsset` to properly resolve imports.
|
|
52
|
+
namespace margelo::nitro::rncandle { struct MessageThreadAsset; }
|
|
53
|
+
// Forward declaration of `MessageThreadMessage` to properly resolve imports.
|
|
54
|
+
namespace margelo::nitro::rncandle { struct MessageThreadMessage; }
|
|
55
|
+
// Forward declaration of `FriendRequestAsset` to properly resolve imports.
|
|
56
|
+
namespace margelo::nitro::rncandle { struct FriendRequestAsset; }
|
|
57
|
+
// Forward declaration of `FriendRequestAssetDirection` to properly resolve imports.
|
|
58
|
+
namespace margelo::nitro::rncandle { enum class FriendRequestAssetDirection; }
|
|
59
|
+
// Forward declaration of `UserCounterparty` to properly resolve imports.
|
|
60
|
+
namespace margelo::nitro::rncandle { struct UserCounterparty; }
|
|
49
61
|
// Forward declaration of `OtherAsset` to properly resolve imports.
|
|
50
62
|
namespace margelo::nitro::rncandle { struct OtherAsset; }
|
|
51
63
|
// Forward declaration of `NothingAsset` to properly resolve imports.
|
|
@@ -56,8 +68,6 @@ namespace margelo::nitro::rncandle { struct Counterparty; }
|
|
|
56
68
|
namespace margelo::nitro::rncandle { struct MerchantCounterparty; }
|
|
57
69
|
// Forward declaration of `MerchantLocation` to properly resolve imports.
|
|
58
70
|
namespace margelo::nitro::rncandle { struct MerchantLocation; }
|
|
59
|
-
// Forward declaration of `UserCounterparty` to properly resolve imports.
|
|
60
|
-
namespace margelo::nitro::rncandle { struct UserCounterparty; }
|
|
61
71
|
// Forward declaration of `ServiceCounterparty` to properly resolve imports.
|
|
62
72
|
namespace margelo::nitro::rncandle { struct ServiceCounterparty; }
|
|
63
73
|
// Forward declaration of `TradeExecutionResult` to properly resolve imports.
|
|
@@ -122,6 +132,10 @@ namespace margelo::nitro::rncandle { struct StockAssetRef; }
|
|
|
122
132
|
namespace margelo::nitro::rncandle { struct TransportAssetRef; }
|
|
123
133
|
// Forward declaration of `EventAssetRef` to properly resolve imports.
|
|
124
134
|
namespace margelo::nitro::rncandle { struct EventAssetRef; }
|
|
135
|
+
// Forward declaration of `MessageThreadAssetRef` to properly resolve imports.
|
|
136
|
+
namespace margelo::nitro::rncandle { struct MessageThreadAssetRef; }
|
|
137
|
+
// Forward declaration of `FriendRequestAssetRef` to properly resolve imports.
|
|
138
|
+
namespace margelo::nitro::rncandle { struct FriendRequestAssetRef; }
|
|
125
139
|
// Forward declaration of `OtherAssetRef` to properly resolve imports.
|
|
126
140
|
namespace margelo::nitro::rncandle { struct OtherAssetRef; }
|
|
127
141
|
// Forward declaration of `NothingAssetRef` to properly resolve imports.
|
|
@@ -142,6 +156,12 @@ namespace margelo::nitro::rncandle { struct StockAssetQuoteRequest; }
|
|
|
142
156
|
namespace margelo::nitro::rncandle { struct TransportAssetQuoteRequest; }
|
|
143
157
|
// Forward declaration of `EventAssetQuoteRequest` to properly resolve imports.
|
|
144
158
|
namespace margelo::nitro::rncandle { struct EventAssetQuoteRequest; }
|
|
159
|
+
// Forward declaration of `MessageThreadAssetQuoteRequest` to properly resolve imports.
|
|
160
|
+
namespace margelo::nitro::rncandle { struct MessageThreadAssetQuoteRequest; }
|
|
161
|
+
// Forward declaration of `FriendRequestAssetQuoteRequest` to properly resolve imports.
|
|
162
|
+
namespace margelo::nitro::rncandle { struct FriendRequestAssetQuoteRequest; }
|
|
163
|
+
// Forward declaration of `FriendRequestAssetQuoteRequestAction` to properly resolve imports.
|
|
164
|
+
namespace margelo::nitro::rncandle { enum class FriendRequestAssetQuoteRequestAction; }
|
|
145
165
|
// Forward declaration of `NothingAssetQuoteRequest` to properly resolve imports.
|
|
146
166
|
namespace margelo::nitro::rncandle { struct NothingAssetQuoteRequest; }
|
|
147
167
|
// Forward declaration of `OtherAssetQuoteRequest` to properly resolve imports.
|
|
@@ -154,8 +174,12 @@ namespace margelo::nitro::rncandle { struct UserCounterpartyQuoteRequest; }
|
|
|
154
174
|
namespace margelo::nitro::rncandle { struct MerchantCounterpartyQuoteRequest; }
|
|
155
175
|
// Forward declaration of `ServiceCounterpartyQuoteRequest` to properly resolve imports.
|
|
156
176
|
namespace margelo::nitro::rncandle { struct ServiceCounterpartyQuoteRequest; }
|
|
177
|
+
// Forward declaration of `HostedAuthorizationRequest` to properly resolve imports.
|
|
178
|
+
namespace margelo::nitro::rncandle { struct HostedAuthorizationRequest; }
|
|
179
|
+
// Forward declaration of `HostedAuthorizationCallback` to properly resolve imports.
|
|
180
|
+
namespace margelo::nitro::rncandle { struct HostedAuthorizationCallback; }
|
|
157
181
|
|
|
158
|
-
#include "
|
|
182
|
+
#include "ServiceID.hpp"
|
|
159
183
|
#include <vector>
|
|
160
184
|
#include <optional>
|
|
161
185
|
#include <string>
|
|
@@ -163,6 +187,7 @@ namespace margelo::nitro::rncandle { struct ServiceCounterpartyQuoteRequest; }
|
|
|
163
187
|
#include "PresentationStyle.hpp"
|
|
164
188
|
#include "LinkedAccount.hpp"
|
|
165
189
|
#include <functional>
|
|
190
|
+
#include "Service.hpp"
|
|
166
191
|
#include "LinkedAccountDetails.hpp"
|
|
167
192
|
#include "ActiveLinkedAccountDetails.hpp"
|
|
168
193
|
#include "InactiveLinkedAccountDetails.hpp"
|
|
@@ -176,12 +201,16 @@ namespace margelo::nitro::rncandle { struct ServiceCounterpartyQuoteRequest; }
|
|
|
176
201
|
#include "Coordinates.hpp"
|
|
177
202
|
#include "Address.hpp"
|
|
178
203
|
#include "EventAsset.hpp"
|
|
204
|
+
#include "MessageThreadAsset.hpp"
|
|
205
|
+
#include "MessageThreadMessage.hpp"
|
|
206
|
+
#include "FriendRequestAsset.hpp"
|
|
207
|
+
#include "FriendRequestAssetDirection.hpp"
|
|
208
|
+
#include "UserCounterparty.hpp"
|
|
179
209
|
#include "OtherAsset.hpp"
|
|
180
210
|
#include "NothingAsset.hpp"
|
|
181
211
|
#include "Counterparty.hpp"
|
|
182
212
|
#include "MerchantCounterparty.hpp"
|
|
183
213
|
#include "MerchantLocation.hpp"
|
|
184
|
-
#include "UserCounterparty.hpp"
|
|
185
214
|
#include "ServiceCounterparty.hpp"
|
|
186
215
|
#include "TradeExecutionResult.hpp"
|
|
187
216
|
#include "Trade.hpp"
|
|
@@ -215,6 +244,8 @@ namespace margelo::nitro::rncandle { struct ServiceCounterpartyQuoteRequest; }
|
|
|
215
244
|
#include "StockAssetRef.hpp"
|
|
216
245
|
#include "TransportAssetRef.hpp"
|
|
217
246
|
#include "EventAssetRef.hpp"
|
|
247
|
+
#include "MessageThreadAssetRef.hpp"
|
|
248
|
+
#include "FriendRequestAssetRef.hpp"
|
|
218
249
|
#include "OtherAssetRef.hpp"
|
|
219
250
|
#include "NothingAssetRef.hpp"
|
|
220
251
|
#include "TradeQuotesResponse.hpp"
|
|
@@ -225,12 +256,17 @@ namespace margelo::nitro::rncandle { struct ServiceCounterpartyQuoteRequest; }
|
|
|
225
256
|
#include "StockAssetQuoteRequest.hpp"
|
|
226
257
|
#include "TransportAssetQuoteRequest.hpp"
|
|
227
258
|
#include "EventAssetQuoteRequest.hpp"
|
|
259
|
+
#include "MessageThreadAssetQuoteRequest.hpp"
|
|
260
|
+
#include "FriendRequestAssetQuoteRequest.hpp"
|
|
261
|
+
#include "FriendRequestAssetQuoteRequestAction.hpp"
|
|
228
262
|
#include "NothingAssetQuoteRequest.hpp"
|
|
229
263
|
#include "OtherAssetQuoteRequest.hpp"
|
|
230
264
|
#include "CounterpartyQuoteRequest.hpp"
|
|
231
265
|
#include "UserCounterpartyQuoteRequest.hpp"
|
|
232
266
|
#include "MerchantCounterpartyQuoteRequest.hpp"
|
|
233
267
|
#include "ServiceCounterpartyQuoteRequest.hpp"
|
|
268
|
+
#include "HostedAuthorizationRequest.hpp"
|
|
269
|
+
#include "HostedAuthorizationCallback.hpp"
|
|
234
270
|
|
|
235
271
|
#include "ReactNativeCandle-Swift-Cxx-Umbrella.hpp"
|
|
236
272
|
|
|
@@ -282,8 +318,8 @@ namespace margelo::nitro::rncandle {
|
|
|
282
318
|
|
|
283
319
|
public:
|
|
284
320
|
// Methods
|
|
285
|
-
inline void candleLinkSheet(bool isPresented, const std::optional<std::vector<
|
|
286
|
-
auto __result = _swiftPart.candleLinkSheet(std::forward<decltype(isPresented)>(isPresented), services, std::forward<decltype(cornerRadius)>(cornerRadius), customerName, std::forward<decltype(showDynamicLoading)>(showDynamicLoading), static_cast<int>(presentationBackground), static_cast<int>(presentationStyle), onSuccess);
|
|
321
|
+
inline void candleLinkSheet(bool isPresented, const std::optional<std::vector<ServiceID>>& services, bool showSandbox, double cornerRadius, const std::optional<std::string>& customerName, bool showDynamicLoading, PresentationBackground presentationBackground, PresentationStyle presentationStyle, const std::function<void(const LinkedAccount& /* linkedAccount */)>& onSuccess) override {
|
|
322
|
+
auto __result = _swiftPart.candleLinkSheet(std::forward<decltype(isPresented)>(isPresented), services, std::forward<decltype(showSandbox)>(showSandbox), std::forward<decltype(cornerRadius)>(cornerRadius), customerName, std::forward<decltype(showDynamicLoading)>(showDynamicLoading), static_cast<int>(presentationBackground), static_cast<int>(presentationStyle), onSuccess);
|
|
287
323
|
if (__result.hasError()) [[unlikely]] {
|
|
288
324
|
std::rethrow_exception(__result.error());
|
|
289
325
|
}
|
|
@@ -294,8 +330,8 @@ namespace margelo::nitro::rncandle {
|
|
|
294
330
|
std::rethrow_exception(__result.error());
|
|
295
331
|
}
|
|
296
332
|
}
|
|
297
|
-
inline void initialize(const std::string&
|
|
298
|
-
auto __result = _swiftPart.initialize(
|
|
333
|
+
inline void initialize(const std::string& clientID, const std::optional<std::string>& accessGroup) override {
|
|
334
|
+
auto __result = _swiftPart.initialize(clientID, accessGroup);
|
|
299
335
|
if (__result.hasError()) [[unlikely]] {
|
|
300
336
|
std::rethrow_exception(__result.error());
|
|
301
337
|
}
|
|
@@ -380,16 +416,40 @@ namespace margelo::nitro::rncandle {
|
|
|
380
416
|
auto __value = std::move(__result.value());
|
|
381
417
|
return __value;
|
|
382
418
|
}
|
|
383
|
-
inline std::
|
|
384
|
-
auto __result = _swiftPart.
|
|
419
|
+
inline std::string hostedAuthorizationUrl(const std::string& redirectUri, const std::string& state, const std::string& codeChallenge, const std::string& grantPackagePublicKey) override {
|
|
420
|
+
auto __result = _swiftPart.hostedAuthorizationUrl(redirectUri, state, codeChallenge, grantPackagePublicKey);
|
|
421
|
+
if (__result.hasError()) [[unlikely]] {
|
|
422
|
+
std::rethrow_exception(__result.error());
|
|
423
|
+
}
|
|
424
|
+
auto __value = std::move(__result.value());
|
|
425
|
+
return __value;
|
|
426
|
+
}
|
|
427
|
+
inline HostedAuthorizationRequest makeHostedAuthorizationRequest(const std::string& redirectUri, const std::optional<std::string>& state) override {
|
|
428
|
+
auto __result = _swiftPart.makeHostedAuthorizationRequest(redirectUri, state);
|
|
429
|
+
if (__result.hasError()) [[unlikely]] {
|
|
430
|
+
std::rethrow_exception(__result.error());
|
|
431
|
+
}
|
|
432
|
+
auto __value = std::move(__result.value());
|
|
433
|
+
return __value;
|
|
434
|
+
}
|
|
435
|
+
inline HostedAuthorizationCallback parseHostedAuthorizationCallback(const std::string& callbackUrl) override {
|
|
436
|
+
auto __result = _swiftPart.parseHostedAuthorizationCallback(callbackUrl);
|
|
437
|
+
if (__result.hasError()) [[unlikely]] {
|
|
438
|
+
std::rethrow_exception(__result.error());
|
|
439
|
+
}
|
|
440
|
+
auto __value = std::move(__result.value());
|
|
441
|
+
return __value;
|
|
442
|
+
}
|
|
443
|
+
inline std::shared_ptr<Promise<void>> completeHostedAuthorization(const std::string& callbackUrl) override {
|
|
444
|
+
auto __result = _swiftPart.completeHostedAuthorization(callbackUrl);
|
|
385
445
|
if (__result.hasError()) [[unlikely]] {
|
|
386
446
|
std::rethrow_exception(__result.error());
|
|
387
447
|
}
|
|
388
448
|
auto __value = std::move(__result.value());
|
|
389
449
|
return __value;
|
|
390
450
|
}
|
|
391
|
-
inline std::shared_ptr<Promise<void>>
|
|
392
|
-
auto __result = _swiftPart.
|
|
451
|
+
inline std::shared_ptr<Promise<void>> signOut() override {
|
|
452
|
+
auto __result = _swiftPart.signOut();
|
|
393
453
|
if (__result.hasError()) [[unlikely]] {
|
|
394
454
|
std::rethrow_exception(__result.error());
|
|
395
455
|
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// FriendRequestAsset.swift
|
|
3
|
+
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
|
+
/// https://github.com/mrousavy/nitro
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
|
+
///
|
|
7
|
+
|
|
8
|
+
import NitroModules
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Represents an instance of `FriendRequestAsset`, backed by a C++ struct.
|
|
12
|
+
*/
|
|
13
|
+
public typealias FriendRequestAsset = margelo.nitro.rncandle.FriendRequestAsset
|
|
14
|
+
|
|
15
|
+
public extension FriendRequestAsset {
|
|
16
|
+
private typealias bridge = margelo.nitro.rncandle.bridge.swift
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Create a new instance of `FriendRequestAsset`.
|
|
20
|
+
*/
|
|
21
|
+
init(assetKind: String, serviceTradeID: String?, direction: FriendRequestAssetDirection, user: UserCounterparty, linkedAccountID: String, service: Service) {
|
|
22
|
+
self.init(std.string(assetKind), { () -> bridge.std__optional_std__string_ in
|
|
23
|
+
if let __unwrappedValue = serviceTradeID {
|
|
24
|
+
return bridge.create_std__optional_std__string_(std.string(__unwrappedValue))
|
|
25
|
+
} else {
|
|
26
|
+
return .init()
|
|
27
|
+
}
|
|
28
|
+
}(), direction, user, std.string(linkedAccountID), service)
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
@inline(__always)
|
|
32
|
+
var assetKind: String {
|
|
33
|
+
return String(self.__assetKind)
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
@inline(__always)
|
|
37
|
+
var serviceTradeID: String? {
|
|
38
|
+
return { () -> String? in
|
|
39
|
+
if bridge.has_value_std__optional_std__string_(self.__serviceTradeID) {
|
|
40
|
+
let __unwrapped = bridge.get_std__optional_std__string_(self.__serviceTradeID)
|
|
41
|
+
return String(__unwrapped)
|
|
42
|
+
} else {
|
|
43
|
+
return nil
|
|
44
|
+
}
|
|
45
|
+
}()
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
@inline(__always)
|
|
49
|
+
var direction: FriendRequestAssetDirection {
|
|
50
|
+
return self.__direction
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
@inline(__always)
|
|
54
|
+
var user: UserCounterparty {
|
|
55
|
+
return self.__user
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
@inline(__always)
|
|
59
|
+
var linkedAccountID: String {
|
|
60
|
+
return String(self.__linkedAccountID)
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
@inline(__always)
|
|
64
|
+
var service: Service {
|
|
65
|
+
return self.__service
|
|
66
|
+
}
|
|
67
|
+
}
|