@breeztech/breez-sdk-spark-react-native 0.1.8-dev1 → 0.1.8-dev2
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/cpp/generated/breez_sdk_common.cpp +83 -81
- package/cpp/generated/breez_sdk_common.hpp +8 -6
- package/lib/commonjs/generated/breez_sdk_common.js +18 -18
- package/lib/commonjs/generated/breez_sdk_common.js.map +1 -1
- package/lib/module/generated/breez_sdk_common.js +18 -18
- package/lib/module/generated/breez_sdk_common.js.map +1 -1
- package/package.json +1 -1
- package/src/generated/breez_sdk_common-ffi.ts +9 -9
- package/src/generated/breez_sdk_common.ts +24 -24
|
@@ -113,9 +113,9 @@ typedef void (*UniffiCallbackInterfaceRestClientMethod2)(
|
|
|
113
113
|
UniffiForeignFutureCompleteRustBuffer uniffi_future_callback,
|
|
114
114
|
uint64_t uniffi_callback_data, UniffiForeignFuture *uniffi_out_return);
|
|
115
115
|
typedef struct UniffiVTableCallbackInterfaceRestClient {
|
|
116
|
-
UniffiCallbackInterfaceRestClientMethod0
|
|
117
|
-
UniffiCallbackInterfaceRestClientMethod1
|
|
118
|
-
UniffiCallbackInterfaceRestClientMethod2
|
|
116
|
+
UniffiCallbackInterfaceRestClientMethod0 get_request;
|
|
117
|
+
UniffiCallbackInterfaceRestClientMethod1 post_request;
|
|
118
|
+
UniffiCallbackInterfaceRestClientMethod2 delete_request;
|
|
119
119
|
UniffiCallbackInterfaceFree uniffi_free;
|
|
120
120
|
} UniffiVTableCallbackInterfaceRestClient;
|
|
121
121
|
void *
|
|
@@ -125,12 +125,11 @@ void uniffi_breez_sdk_common_fn_free_restclient(void *ptr,
|
|
|
125
125
|
RustCallStatus *uniffi_out_err);
|
|
126
126
|
void uniffi_breez_sdk_common_fn_init_callback_vtable_restclient(
|
|
127
127
|
UniffiVTableCallbackInterfaceRestClient *vtable);
|
|
128
|
-
/*handle*/ uint64_t
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
/*handle*/ uint64_t uniffi_breez_sdk_common_fn_method_restclient_post(
|
|
128
|
+
/*handle*/ uint64_t uniffi_breez_sdk_common_fn_method_restclient_get_request(
|
|
129
|
+
void *ptr, RustBuffer url, RustBuffer headers);
|
|
130
|
+
/*handle*/ uint64_t uniffi_breez_sdk_common_fn_method_restclient_post_request(
|
|
132
131
|
void *ptr, RustBuffer url, RustBuffer headers, RustBuffer body);
|
|
133
|
-
/*handle*/ uint64_t
|
|
132
|
+
/*handle*/ uint64_t uniffi_breez_sdk_common_fn_method_restclient_delete_request(
|
|
134
133
|
void *ptr, RustBuffer url, RustBuffer headers, RustBuffer body);
|
|
135
134
|
RustBuffer
|
|
136
135
|
ffi_breez_sdk_common_rustbuffer_alloc(uint64_t size,
|
|
@@ -260,9 +259,9 @@ void ffi_breez_sdk_common_rust_future_free_void(
|
|
|
260
259
|
/*handle*/ uint64_t handle);
|
|
261
260
|
void ffi_breez_sdk_common_rust_future_complete_void(
|
|
262
261
|
/*handle*/ uint64_t handle, RustCallStatus *uniffi_out_err);
|
|
263
|
-
uint16_t
|
|
264
|
-
uint16_t
|
|
265
|
-
uint16_t
|
|
262
|
+
uint16_t uniffi_breez_sdk_common_checksum_method_restclient_get_request();
|
|
263
|
+
uint16_t uniffi_breez_sdk_common_checksum_method_restclient_post_request();
|
|
264
|
+
uint16_t uniffi_breez_sdk_common_checksum_method_restclient_delete_request();
|
|
266
265
|
uint32_t ffi_breez_sdk_common_uniffi_contract_version();
|
|
267
266
|
}
|
|
268
267
|
|
|
@@ -2213,15 +2212,15 @@ template <> struct Bridging<UniffiVTableCallbackInterfaceRestClient> {
|
|
|
2213
2212
|
UniffiVTableCallbackInterfaceRestClient rsObject;
|
|
2214
2213
|
|
|
2215
2214
|
// Create the vtable from the js callbacks.
|
|
2216
|
-
rsObject.
|
|
2215
|
+
rsObject.get_request = uniffi::breez_sdk_common::cb::
|
|
2217
2216
|
callbackinterfacerestclientmethod0::makeCallbackFunction(
|
|
2218
|
-
rt, callInvoker, jsObject.getProperty(rt, "
|
|
2219
|
-
rsObject.
|
|
2217
|
+
rt, callInvoker, jsObject.getProperty(rt, "getRequest"));
|
|
2218
|
+
rsObject.post_request = uniffi::breez_sdk_common::cb::
|
|
2220
2219
|
callbackinterfacerestclientmethod1::makeCallbackFunction(
|
|
2221
|
-
rt, callInvoker, jsObject.getProperty(rt, "
|
|
2222
|
-
rsObject.
|
|
2220
|
+
rt, callInvoker, jsObject.getProperty(rt, "postRequest"));
|
|
2221
|
+
rsObject.delete_request = uniffi::breez_sdk_common::cb::
|
|
2223
2222
|
callbackinterfacerestclientmethod2::makeCallbackFunction(
|
|
2224
|
-
rt, callInvoker, jsObject.getProperty(rt, "
|
|
2223
|
+
rt, callInvoker, jsObject.getProperty(rt, "deleteRequest"));
|
|
2225
2224
|
rsObject.uniffi_free =
|
|
2226
2225
|
uniffi::breez_sdk_common::st::vtablecallbackinterfacerestclient::
|
|
2227
2226
|
vtablecallbackinterfacerestclient::free::makeCallbackFunction(
|
|
@@ -2312,38 +2311,42 @@ NativeBreezSdkCommon::NativeBreezSdkCommon(
|
|
|
2312
2311
|
return this->cpp_uniffi_breez_sdk_common_fn_free_restclient(
|
|
2313
2312
|
rt, thisVal, args, count);
|
|
2314
2313
|
});
|
|
2315
|
-
props["
|
|
2314
|
+
props["ubrn_uniffi_breez_sdk_common_fn_method_restclient_get_request"] =
|
|
2316
2315
|
jsi::Function::createFromHostFunction(
|
|
2317
2316
|
rt,
|
|
2318
2317
|
jsi::PropNameID::forAscii(
|
|
2319
|
-
rt,
|
|
2318
|
+
rt,
|
|
2319
|
+
"ubrn_uniffi_breez_sdk_common_fn_method_restclient_get_request"),
|
|
2320
2320
|
3,
|
|
2321
2321
|
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
2322
2322
|
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
2323
|
-
return this
|
|
2324
|
-
|
|
2323
|
+
return this
|
|
2324
|
+
->cpp_uniffi_breez_sdk_common_fn_method_restclient_get_request(
|
|
2325
|
+
rt, thisVal, args, count);
|
|
2325
2326
|
});
|
|
2326
|
-
props["
|
|
2327
|
+
props["ubrn_uniffi_breez_sdk_common_fn_method_restclient_post_request"] =
|
|
2327
2328
|
jsi::Function::createFromHostFunction(
|
|
2328
2329
|
rt,
|
|
2329
2330
|
jsi::PropNameID::forAscii(
|
|
2330
|
-
rt,
|
|
2331
|
+
rt,
|
|
2332
|
+
"ubrn_uniffi_breez_sdk_common_fn_method_restclient_post_request"),
|
|
2331
2333
|
4,
|
|
2332
2334
|
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
2333
2335
|
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
2334
|
-
return this
|
|
2335
|
-
|
|
2336
|
+
return this
|
|
2337
|
+
->cpp_uniffi_breez_sdk_common_fn_method_restclient_post_request(
|
|
2338
|
+
rt, thisVal, args, count);
|
|
2336
2339
|
});
|
|
2337
|
-
props["
|
|
2340
|
+
props["ubrn_uniffi_breez_sdk_common_fn_method_restclient_delete_request"] =
|
|
2338
2341
|
jsi::Function::createFromHostFunction(
|
|
2339
2342
|
rt,
|
|
2340
|
-
jsi::PropNameID::forAscii(
|
|
2341
|
-
|
|
2343
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_breez_sdk_common_fn_"
|
|
2344
|
+
"method_restclient_delete_request"),
|
|
2342
2345
|
4,
|
|
2343
2346
|
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
2344
2347
|
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
2345
2348
|
return this
|
|
2346
|
-
->
|
|
2349
|
+
->cpp_uniffi_breez_sdk_common_fn_method_restclient_delete_request(
|
|
2347
2350
|
rt, thisVal, args, count);
|
|
2348
2351
|
});
|
|
2349
2352
|
props["ubrn_ffi_breez_sdk_common_rust_future_poll_u8"] =
|
|
@@ -2920,45 +2923,42 @@ NativeBreezSdkCommon::NativeBreezSdkCommon(
|
|
|
2920
2923
|
return this->cpp_ffi_breez_sdk_common_rust_future_complete_void(
|
|
2921
2924
|
rt, thisVal, args, count);
|
|
2922
2925
|
});
|
|
2923
|
-
props["
|
|
2924
|
-
jsi::Function::createFromHostFunction(
|
|
2925
|
-
rt,
|
|
2926
|
-
jsi::PropNameID::forAscii(
|
|
2927
|
-
rt,
|
|
2928
|
-
"ubrn_uniffi_breez_sdk_common_checksum_method_restclient_get"),
|
|
2929
|
-
0,
|
|
2930
|
-
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
2931
|
-
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
2932
|
-
return this
|
|
2933
|
-
->cpp_uniffi_breez_sdk_common_checksum_method_restclient_get(
|
|
2934
|
-
rt, thisVal, args, count);
|
|
2935
|
-
});
|
|
2936
|
-
props["ubrn_uniffi_breez_sdk_common_checksum_method_restclient_post"] =
|
|
2926
|
+
props["ubrn_uniffi_breez_sdk_common_checksum_method_restclient_get_request"] =
|
|
2937
2927
|
jsi::Function::createFromHostFunction(
|
|
2938
2928
|
rt,
|
|
2939
|
-
jsi::PropNameID::forAscii(
|
|
2940
|
-
|
|
2941
|
-
"ubrn_uniffi_breez_sdk_common_checksum_method_restclient_post"),
|
|
2929
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_breez_sdk_common_checksum_"
|
|
2930
|
+
"method_restclient_get_request"),
|
|
2942
2931
|
0,
|
|
2943
2932
|
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
2944
2933
|
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
2945
2934
|
return this
|
|
2946
|
-
->
|
|
2947
|
-
rt, thisVal, args, count);
|
|
2948
|
-
});
|
|
2949
|
-
props["ubrn_uniffi_breez_sdk_common_checksum_method_restclient_delete"] =
|
|
2950
|
-
jsi::Function::createFromHostFunction(
|
|
2951
|
-
rt,
|
|
2952
|
-
jsi::PropNameID::forAscii(
|
|
2953
|
-
rt,
|
|
2954
|
-
"ubrn_uniffi_breez_sdk_common_checksum_method_restclient_delete"),
|
|
2955
|
-
0,
|
|
2956
|
-
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
2957
|
-
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
2958
|
-
return this
|
|
2959
|
-
->cpp_uniffi_breez_sdk_common_checksum_method_restclient_delete(
|
|
2935
|
+
->cpp_uniffi_breez_sdk_common_checksum_method_restclient_get_request(
|
|
2960
2936
|
rt, thisVal, args, count);
|
|
2961
2937
|
});
|
|
2938
|
+
props["ubrn_uniffi_breez_sdk_common_checksum_method_restclient_post_"
|
|
2939
|
+
"request"] = jsi::Function::createFromHostFunction(
|
|
2940
|
+
rt,
|
|
2941
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_breez_sdk_common_checksum_"
|
|
2942
|
+
"method_restclient_post_request"),
|
|
2943
|
+
0,
|
|
2944
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
2945
|
+
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
2946
|
+
return this
|
|
2947
|
+
->cpp_uniffi_breez_sdk_common_checksum_method_restclient_post_request(
|
|
2948
|
+
rt, thisVal, args, count);
|
|
2949
|
+
});
|
|
2950
|
+
props["ubrn_uniffi_breez_sdk_common_checksum_method_restclient_delete_"
|
|
2951
|
+
"request"] = jsi::Function::createFromHostFunction(
|
|
2952
|
+
rt,
|
|
2953
|
+
jsi::PropNameID::forAscii(rt, "ubrn_uniffi_breez_sdk_common_checksum_"
|
|
2954
|
+
"method_restclient_delete_request"),
|
|
2955
|
+
0,
|
|
2956
|
+
[this](jsi::Runtime &rt, const jsi::Value &thisVal,
|
|
2957
|
+
const jsi::Value *args, size_t count) -> jsi::Value {
|
|
2958
|
+
return this
|
|
2959
|
+
->cpp_uniffi_breez_sdk_common_checksum_method_restclient_delete_request(
|
|
2960
|
+
rt, thisVal, args, count);
|
|
2961
|
+
});
|
|
2962
2962
|
props["ubrn_ffi_breez_sdk_common_uniffi_contract_version"] =
|
|
2963
2963
|
jsi::Function::createFromHostFunction(
|
|
2964
2964
|
rt,
|
|
@@ -3112,11 +3112,11 @@ jsi::Value NativeBreezSdkCommon::cpp_uniffi_breez_sdk_common_fn_free_restclient(
|
|
|
3112
3112
|
|
|
3113
3113
|
return jsi::Value::undefined();
|
|
3114
3114
|
}
|
|
3115
|
-
jsi::Value
|
|
3116
|
-
|
|
3117
|
-
|
|
3118
|
-
|
|
3119
|
-
auto value =
|
|
3115
|
+
jsi::Value NativeBreezSdkCommon::
|
|
3116
|
+
cpp_uniffi_breez_sdk_common_fn_method_restclient_get_request(
|
|
3117
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
3118
|
+
size_t count) {
|
|
3119
|
+
auto value = uniffi_breez_sdk_common_fn_method_restclient_get_request(
|
|
3120
3120
|
uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]),
|
|
3121
3121
|
uniffi::breez_sdk_common::Bridging<RustBuffer>::fromJs(rt, callInvoker,
|
|
3122
3122
|
args[1]),
|
|
@@ -3126,11 +3126,11 @@ NativeBreezSdkCommon::cpp_uniffi_breez_sdk_common_fn_method_restclient_get(
|
|
|
3126
3126
|
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker,
|
|
3127
3127
|
value);
|
|
3128
3128
|
}
|
|
3129
|
-
jsi::Value
|
|
3130
|
-
|
|
3131
|
-
|
|
3132
|
-
|
|
3133
|
-
auto value =
|
|
3129
|
+
jsi::Value NativeBreezSdkCommon::
|
|
3130
|
+
cpp_uniffi_breez_sdk_common_fn_method_restclient_post_request(
|
|
3131
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
3132
|
+
size_t count) {
|
|
3133
|
+
auto value = uniffi_breez_sdk_common_fn_method_restclient_post_request(
|
|
3134
3134
|
uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]),
|
|
3135
3135
|
uniffi::breez_sdk_common::Bridging<RustBuffer>::fromJs(rt, callInvoker,
|
|
3136
3136
|
args[1]),
|
|
@@ -3142,11 +3142,11 @@ NativeBreezSdkCommon::cpp_uniffi_breez_sdk_common_fn_method_restclient_post(
|
|
|
3142
3142
|
return uniffi_jsi::Bridging</*handle*/ uint64_t>::toJs(rt, callInvoker,
|
|
3143
3143
|
value);
|
|
3144
3144
|
}
|
|
3145
|
-
jsi::Value
|
|
3146
|
-
|
|
3147
|
-
|
|
3148
|
-
|
|
3149
|
-
auto value =
|
|
3145
|
+
jsi::Value NativeBreezSdkCommon::
|
|
3146
|
+
cpp_uniffi_breez_sdk_common_fn_method_restclient_delete_request(
|
|
3147
|
+
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
3148
|
+
size_t count) {
|
|
3149
|
+
auto value = uniffi_breez_sdk_common_fn_method_restclient_delete_request(
|
|
3150
3150
|
uniffi_jsi::Bridging<void *>::fromJs(rt, callInvoker, args[0]),
|
|
3151
3151
|
uniffi::breez_sdk_common::Bridging<RustBuffer>::fromJs(rt, callInvoker,
|
|
3152
3152
|
args[1]),
|
|
@@ -3786,26 +3786,28 @@ NativeBreezSdkCommon::cpp_ffi_breez_sdk_common_rust_future_complete_void(
|
|
|
3786
3786
|
return jsi::Value::undefined();
|
|
3787
3787
|
}
|
|
3788
3788
|
jsi::Value NativeBreezSdkCommon::
|
|
3789
|
-
|
|
3789
|
+
cpp_uniffi_breez_sdk_common_checksum_method_restclient_get_request(
|
|
3790
3790
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
3791
3791
|
size_t count) {
|
|
3792
|
-
auto value =
|
|
3792
|
+
auto value = uniffi_breez_sdk_common_checksum_method_restclient_get_request();
|
|
3793
3793
|
|
|
3794
3794
|
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
3795
3795
|
}
|
|
3796
3796
|
jsi::Value NativeBreezSdkCommon::
|
|
3797
|
-
|
|
3797
|
+
cpp_uniffi_breez_sdk_common_checksum_method_restclient_post_request(
|
|
3798
3798
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
3799
3799
|
size_t count) {
|
|
3800
|
-
auto value =
|
|
3800
|
+
auto value =
|
|
3801
|
+
uniffi_breez_sdk_common_checksum_method_restclient_post_request();
|
|
3801
3802
|
|
|
3802
3803
|
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
3803
3804
|
}
|
|
3804
3805
|
jsi::Value NativeBreezSdkCommon::
|
|
3805
|
-
|
|
3806
|
+
cpp_uniffi_breez_sdk_common_checksum_method_restclient_delete_request(
|
|
3806
3807
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
3807
3808
|
size_t count) {
|
|
3808
|
-
auto value =
|
|
3809
|
+
auto value =
|
|
3810
|
+
uniffi_breez_sdk_common_checksum_method_restclient_delete_request();
|
|
3809
3811
|
|
|
3810
3812
|
return uniffi_jsi::Bridging<uint16_t>::toJs(rt, callInvoker, value);
|
|
3811
3813
|
}
|
|
@@ -34,13 +34,13 @@ protected:
|
|
|
34
34
|
jsi::Value cpp_uniffi_breez_sdk_common_fn_free_restclient(
|
|
35
35
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
36
36
|
size_t count);
|
|
37
|
-
jsi::Value
|
|
37
|
+
jsi::Value cpp_uniffi_breez_sdk_common_fn_method_restclient_get_request(
|
|
38
38
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
39
39
|
size_t count);
|
|
40
|
-
jsi::Value
|
|
40
|
+
jsi::Value cpp_uniffi_breez_sdk_common_fn_method_restclient_post_request(
|
|
41
41
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
42
42
|
size_t count);
|
|
43
|
-
jsi::Value
|
|
43
|
+
jsi::Value cpp_uniffi_breez_sdk_common_fn_method_restclient_delete_request(
|
|
44
44
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
45
45
|
size_t count);
|
|
46
46
|
jsi::Value cpp_ffi_breez_sdk_common_rust_future_poll_u8(
|
|
@@ -199,13 +199,15 @@ protected:
|
|
|
199
199
|
jsi::Value cpp_ffi_breez_sdk_common_rust_future_complete_void(
|
|
200
200
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
201
201
|
size_t count);
|
|
202
|
-
jsi::Value
|
|
202
|
+
jsi::Value cpp_uniffi_breez_sdk_common_checksum_method_restclient_get_request(
|
|
203
203
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
204
204
|
size_t count);
|
|
205
|
-
jsi::Value
|
|
205
|
+
jsi::Value
|
|
206
|
+
cpp_uniffi_breez_sdk_common_checksum_method_restclient_post_request(
|
|
206
207
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
207
208
|
size_t count);
|
|
208
|
-
jsi::Value
|
|
209
|
+
jsi::Value
|
|
210
|
+
cpp_uniffi_breez_sdk_common_checksum_method_restclient_delete_request(
|
|
209
211
|
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
|
|
210
212
|
size_t count);
|
|
211
213
|
jsi::Value cpp_ffi_breez_sdk_common_uniffi_contract_version(
|
|
@@ -3613,11 +3613,11 @@ class RestClientImpl extends _uniffiBindgenReactNative.UniffiAbstractObject {
|
|
|
3613
3613
|
* - `url`: the URL on which GET will be called
|
|
3614
3614
|
* - `headers`: optional headers that will be set on the request
|
|
3615
3615
|
*/
|
|
3616
|
-
async
|
|
3616
|
+
async getRequest(url, headers, asyncOpts_) /*throws*/{
|
|
3617
3617
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3618
3618
|
try {
|
|
3619
3619
|
return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3620
|
-
return (0, _breez_sdk_commonFfi.default)().
|
|
3620
|
+
return (0, _breez_sdk_commonFfi.default)().ubrn_uniffi_breez_sdk_common_fn_method_restclient_get_request(uniffiTypeRestClientImplObjectFactory.clonePointer(this), FfiConverterString.lower(url), FfiConverterOptionalMapStringString.lower(headers));
|
|
3621
3621
|
}, /*pollFunc:*/(0, _breez_sdk_commonFfi.default)().ubrn_ffi_breez_sdk_common_rust_future_poll_rust_buffer, /*cancelFunc:*/(0, _breez_sdk_commonFfi.default)().ubrn_ffi_breez_sdk_common_rust_future_cancel_rust_buffer, /*completeFunc:*/(0, _breez_sdk_commonFfi.default)().ubrn_ffi_breez_sdk_common_rust_future_complete_rust_buffer, /*freeFunc:*/(0, _breez_sdk_commonFfi.default)().ubrn_ffi_breez_sdk_common_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeRestResponse.lift.bind(FfiConverterTypeRestResponse), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeServiceConnectivityError.lift.bind(FfiConverterTypeServiceConnectivityError));
|
|
3622
3622
|
} catch (__error) {
|
|
3623
3623
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -3634,11 +3634,11 @@ class RestClientImpl extends _uniffiBindgenReactNative.UniffiAbstractObject {
|
|
|
3634
3634
|
* - `headers`: the optional POST headers
|
|
3635
3635
|
* - `body`: the optional POST body
|
|
3636
3636
|
*/
|
|
3637
|
-
async
|
|
3637
|
+
async postRequest(url, headers, body, asyncOpts_) /*throws*/{
|
|
3638
3638
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3639
3639
|
try {
|
|
3640
3640
|
return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3641
|
-
return (0, _breez_sdk_commonFfi.default)().
|
|
3641
|
+
return (0, _breez_sdk_commonFfi.default)().ubrn_uniffi_breez_sdk_common_fn_method_restclient_post_request(uniffiTypeRestClientImplObjectFactory.clonePointer(this), FfiConverterString.lower(url), FfiConverterOptionalMapStringString.lower(headers), FfiConverterOptionalString.lower(body));
|
|
3642
3642
|
}, /*pollFunc:*/(0, _breez_sdk_commonFfi.default)().ubrn_ffi_breez_sdk_common_rust_future_poll_rust_buffer, /*cancelFunc:*/(0, _breez_sdk_commonFfi.default)().ubrn_ffi_breez_sdk_common_rust_future_cancel_rust_buffer, /*completeFunc:*/(0, _breez_sdk_commonFfi.default)().ubrn_ffi_breez_sdk_common_rust_future_complete_rust_buffer, /*freeFunc:*/(0, _breez_sdk_commonFfi.default)().ubrn_ffi_breez_sdk_common_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeRestResponse.lift.bind(FfiConverterTypeRestResponse), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeServiceConnectivityError.lift.bind(FfiConverterTypeServiceConnectivityError));
|
|
3643
3643
|
} catch (__error) {
|
|
3644
3644
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -3655,11 +3655,11 @@ class RestClientImpl extends _uniffiBindgenReactNative.UniffiAbstractObject {
|
|
|
3655
3655
|
* - `headers`: the optional DELETE headers
|
|
3656
3656
|
* - `body`: the optional DELETE body
|
|
3657
3657
|
*/
|
|
3658
|
-
async
|
|
3658
|
+
async deleteRequest(url, headers, body, asyncOpts_) /*throws*/{
|
|
3659
3659
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
3660
3660
|
try {
|
|
3661
3661
|
return await (0, _uniffiBindgenReactNative.uniffiRustCallAsync)(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
|
|
3662
|
-
return (0, _breez_sdk_commonFfi.default)().
|
|
3662
|
+
return (0, _breez_sdk_commonFfi.default)().ubrn_uniffi_breez_sdk_common_fn_method_restclient_delete_request(uniffiTypeRestClientImplObjectFactory.clonePointer(this), FfiConverterString.lower(url), FfiConverterOptionalMapStringString.lower(headers), FfiConverterOptionalString.lower(body));
|
|
3663
3663
|
}, /*pollFunc:*/(0, _breez_sdk_commonFfi.default)().ubrn_ffi_breez_sdk_common_rust_future_poll_rust_buffer, /*cancelFunc:*/(0, _breez_sdk_commonFfi.default)().ubrn_ffi_breez_sdk_common_rust_future_cancel_rust_buffer, /*completeFunc:*/(0, _breez_sdk_commonFfi.default)().ubrn_ffi_breez_sdk_common_rust_future_complete_rust_buffer, /*freeFunc:*/(0, _breez_sdk_commonFfi.default)().ubrn_ffi_breez_sdk_common_rust_future_free_rust_buffer, /*liftFunc:*/FfiConverterTypeRestResponse.lift.bind(FfiConverterTypeRestResponse), /*liftString:*/FfiConverterString.lift, /*asyncOpts:*/asyncOpts_, /*errorHandler:*/FfiConverterTypeServiceConnectivityError.lift.bind(FfiConverterTypeServiceConnectivityError));
|
|
3664
3664
|
} catch (__error) {
|
|
3665
3665
|
if (uniffiIsDebug && __error instanceof Error) {
|
|
@@ -3727,10 +3727,10 @@ const uniffiCallbackInterfaceRestClient = {
|
|
|
3727
3727
|
// Create the VTable using a series of closures.
|
|
3728
3728
|
// ts automatically converts these into C callback functions.
|
|
3729
3729
|
vtable: {
|
|
3730
|
-
|
|
3730
|
+
getRequest: (uniffiHandle, url, headers, uniffiFutureCallback, uniffiCallbackData) => {
|
|
3731
3731
|
const uniffiMakeCall = async signal => {
|
|
3732
3732
|
const jsCallback = FfiConverterTypeRestClient.lift(uniffiHandle);
|
|
3733
|
-
return await jsCallback.
|
|
3733
|
+
return await jsCallback.getRequest(FfiConverterString.lift(url), FfiConverterOptionalMapStringString.lift(headers), {
|
|
3734
3734
|
signal
|
|
3735
3735
|
});
|
|
3736
3736
|
};
|
|
@@ -3753,10 +3753,10 @@ const uniffiCallbackInterfaceRestClient = {
|
|
|
3753
3753
|
const uniffiForeignFuture = (0, _uniffiBindgenReactNative.uniffiTraitInterfaceCallAsyncWithError)(/*makeCall:*/uniffiMakeCall, /*handleSuccess:*/uniffiHandleSuccess, /*handleError:*/uniffiHandleError, /*isErrorType:*/ServiceConnectivityError.instanceOf, /*lowerError:*/FfiConverterTypeServiceConnectivityError.lower.bind(FfiConverterTypeServiceConnectivityError), /*lowerString:*/FfiConverterString.lower);
|
|
3754
3754
|
return _uniffiBindgenReactNative.UniffiResult.success(uniffiForeignFuture);
|
|
3755
3755
|
},
|
|
3756
|
-
|
|
3756
|
+
postRequest: (uniffiHandle, url, headers, body, uniffiFutureCallback, uniffiCallbackData) => {
|
|
3757
3757
|
const uniffiMakeCall = async signal => {
|
|
3758
3758
|
const jsCallback = FfiConverterTypeRestClient.lift(uniffiHandle);
|
|
3759
|
-
return await jsCallback.
|
|
3759
|
+
return await jsCallback.postRequest(FfiConverterString.lift(url), FfiConverterOptionalMapStringString.lift(headers), FfiConverterOptionalString.lift(body), {
|
|
3760
3760
|
signal
|
|
3761
3761
|
});
|
|
3762
3762
|
};
|
|
@@ -3779,10 +3779,10 @@ const uniffiCallbackInterfaceRestClient = {
|
|
|
3779
3779
|
const uniffiForeignFuture = (0, _uniffiBindgenReactNative.uniffiTraitInterfaceCallAsyncWithError)(/*makeCall:*/uniffiMakeCall, /*handleSuccess:*/uniffiHandleSuccess, /*handleError:*/uniffiHandleError, /*isErrorType:*/ServiceConnectivityError.instanceOf, /*lowerError:*/FfiConverterTypeServiceConnectivityError.lower.bind(FfiConverterTypeServiceConnectivityError), /*lowerString:*/FfiConverterString.lower);
|
|
3780
3780
|
return _uniffiBindgenReactNative.UniffiResult.success(uniffiForeignFuture);
|
|
3781
3781
|
},
|
|
3782
|
-
|
|
3782
|
+
deleteRequest: (uniffiHandle, url, headers, body, uniffiFutureCallback, uniffiCallbackData) => {
|
|
3783
3783
|
const uniffiMakeCall = async signal => {
|
|
3784
3784
|
const jsCallback = FfiConverterTypeRestClient.lift(uniffiHandle);
|
|
3785
|
-
return await jsCallback.
|
|
3785
|
+
return await jsCallback.deleteRequest(FfiConverterString.lift(url), FfiConverterOptionalMapStringString.lift(headers), FfiConverterOptionalString.lift(body), {
|
|
3786
3786
|
signal
|
|
3787
3787
|
});
|
|
3788
3788
|
};
|
|
@@ -3884,14 +3884,14 @@ function uniffiEnsureInitialized() {
|
|
|
3884
3884
|
if (bindingsContractVersion !== scaffoldingContractVersion) {
|
|
3885
3885
|
throw new _uniffiBindgenReactNative.UniffiInternalError.ContractVersionMismatch(scaffoldingContractVersion, bindingsContractVersion);
|
|
3886
3886
|
}
|
|
3887
|
-
if ((0, _breez_sdk_commonFfi.default)().
|
|
3888
|
-
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('
|
|
3887
|
+
if ((0, _breez_sdk_commonFfi.default)().ubrn_uniffi_breez_sdk_common_checksum_method_restclient_get_request() !== 1702) {
|
|
3888
|
+
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_common_checksum_method_restclient_get_request');
|
|
3889
3889
|
}
|
|
3890
|
-
if ((0, _breez_sdk_commonFfi.default)().
|
|
3891
|
-
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('
|
|
3890
|
+
if ((0, _breez_sdk_commonFfi.default)().ubrn_uniffi_breez_sdk_common_checksum_method_restclient_post_request() !== 38998) {
|
|
3891
|
+
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_common_checksum_method_restclient_post_request');
|
|
3892
3892
|
}
|
|
3893
|
-
if ((0, _breez_sdk_commonFfi.default)().
|
|
3894
|
-
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('
|
|
3893
|
+
if ((0, _breez_sdk_commonFfi.default)().ubrn_uniffi_breez_sdk_common_checksum_method_restclient_delete_request() !== 26893) {
|
|
3894
|
+
throw new _uniffiBindgenReactNative.UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_common_checksum_method_restclient_delete_request');
|
|
3895
3895
|
}
|
|
3896
3896
|
uniffiCallbackInterfaceRestClient.register();
|
|
3897
3897
|
}
|