@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.
@@ -3608,11 +3608,11 @@ export class RestClientImpl extends UniffiAbstractObject {
3608
3608
  * - `url`: the URL on which GET will be called
3609
3609
  * - `headers`: optional headers that will be set on the request
3610
3610
  */
3611
- async get(url, headers, asyncOpts_) /*throws*/{
3611
+ async getRequest(url, headers, asyncOpts_) /*throws*/{
3612
3612
  const __stack = uniffiIsDebug ? new Error().stack : undefined;
3613
3613
  try {
3614
3614
  return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3615
- return nativeModule().ubrn_uniffi_breez_sdk_common_fn_method_restclient_get(uniffiTypeRestClientImplObjectFactory.clonePointer(this), FfiConverterString.lower(url), FfiConverterOptionalMapStringString.lower(headers));
3615
+ return nativeModule().ubrn_uniffi_breez_sdk_common_fn_method_restclient_get_request(uniffiTypeRestClientImplObjectFactory.clonePointer(this), FfiConverterString.lower(url), FfiConverterOptionalMapStringString.lower(headers));
3616
3616
  }, /*pollFunc:*/nativeModule().ubrn_ffi_breez_sdk_common_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_breez_sdk_common_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_breez_sdk_common_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().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));
3617
3617
  } catch (__error) {
3618
3618
  if (uniffiIsDebug && __error instanceof Error) {
@@ -3629,11 +3629,11 @@ export class RestClientImpl extends UniffiAbstractObject {
3629
3629
  * - `headers`: the optional POST headers
3630
3630
  * - `body`: the optional POST body
3631
3631
  */
3632
- async post(url, headers, body, asyncOpts_) /*throws*/{
3632
+ async postRequest(url, headers, body, asyncOpts_) /*throws*/{
3633
3633
  const __stack = uniffiIsDebug ? new Error().stack : undefined;
3634
3634
  try {
3635
3635
  return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3636
- return nativeModule().ubrn_uniffi_breez_sdk_common_fn_method_restclient_post(uniffiTypeRestClientImplObjectFactory.clonePointer(this), FfiConverterString.lower(url), FfiConverterOptionalMapStringString.lower(headers), FfiConverterOptionalString.lower(body));
3636
+ return nativeModule().ubrn_uniffi_breez_sdk_common_fn_method_restclient_post_request(uniffiTypeRestClientImplObjectFactory.clonePointer(this), FfiConverterString.lower(url), FfiConverterOptionalMapStringString.lower(headers), FfiConverterOptionalString.lower(body));
3637
3637
  }, /*pollFunc:*/nativeModule().ubrn_ffi_breez_sdk_common_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_breez_sdk_common_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_breez_sdk_common_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().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));
3638
3638
  } catch (__error) {
3639
3639
  if (uniffiIsDebug && __error instanceof Error) {
@@ -3650,11 +3650,11 @@ export class RestClientImpl extends UniffiAbstractObject {
3650
3650
  * - `headers`: the optional DELETE headers
3651
3651
  * - `body`: the optional DELETE body
3652
3652
  */
3653
- async delete_(url, headers, body, asyncOpts_) /*throws*/{
3653
+ async deleteRequest(url, headers, body, asyncOpts_) /*throws*/{
3654
3654
  const __stack = uniffiIsDebug ? new Error().stack : undefined;
3655
3655
  try {
3656
3656
  return await uniffiRustCallAsync(/*rustCaller:*/uniffiCaller, /*rustFutureFunc:*/() => {
3657
- return nativeModule().ubrn_uniffi_breez_sdk_common_fn_method_restclient_delete(uniffiTypeRestClientImplObjectFactory.clonePointer(this), FfiConverterString.lower(url), FfiConverterOptionalMapStringString.lower(headers), FfiConverterOptionalString.lower(body));
3657
+ return nativeModule().ubrn_uniffi_breez_sdk_common_fn_method_restclient_delete_request(uniffiTypeRestClientImplObjectFactory.clonePointer(this), FfiConverterString.lower(url), FfiConverterOptionalMapStringString.lower(headers), FfiConverterOptionalString.lower(body));
3658
3658
  }, /*pollFunc:*/nativeModule().ubrn_ffi_breez_sdk_common_rust_future_poll_rust_buffer, /*cancelFunc:*/nativeModule().ubrn_ffi_breez_sdk_common_rust_future_cancel_rust_buffer, /*completeFunc:*/nativeModule().ubrn_ffi_breez_sdk_common_rust_future_complete_rust_buffer, /*freeFunc:*/nativeModule().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));
3659
3659
  } catch (__error) {
3660
3660
  if (uniffiIsDebug && __error instanceof Error) {
@@ -3721,10 +3721,10 @@ const uniffiCallbackInterfaceRestClient = {
3721
3721
  // Create the VTable using a series of closures.
3722
3722
  // ts automatically converts these into C callback functions.
3723
3723
  vtable: {
3724
- get: (uniffiHandle, url, headers, uniffiFutureCallback, uniffiCallbackData) => {
3724
+ getRequest: (uniffiHandle, url, headers, uniffiFutureCallback, uniffiCallbackData) => {
3725
3725
  const uniffiMakeCall = async signal => {
3726
3726
  const jsCallback = FfiConverterTypeRestClient.lift(uniffiHandle);
3727
- return await jsCallback.get(FfiConverterString.lift(url), FfiConverterOptionalMapStringString.lift(headers), {
3727
+ return await jsCallback.getRequest(FfiConverterString.lift(url), FfiConverterOptionalMapStringString.lift(headers), {
3728
3728
  signal
3729
3729
  });
3730
3730
  };
@@ -3747,10 +3747,10 @@ const uniffiCallbackInterfaceRestClient = {
3747
3747
  const uniffiForeignFuture = uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall, /*handleSuccess:*/uniffiHandleSuccess, /*handleError:*/uniffiHandleError, /*isErrorType:*/ServiceConnectivityError.instanceOf, /*lowerError:*/FfiConverterTypeServiceConnectivityError.lower.bind(FfiConverterTypeServiceConnectivityError), /*lowerString:*/FfiConverterString.lower);
3748
3748
  return UniffiResult.success(uniffiForeignFuture);
3749
3749
  },
3750
- post: (uniffiHandle, url, headers, body, uniffiFutureCallback, uniffiCallbackData) => {
3750
+ postRequest: (uniffiHandle, url, headers, body, uniffiFutureCallback, uniffiCallbackData) => {
3751
3751
  const uniffiMakeCall = async signal => {
3752
3752
  const jsCallback = FfiConverterTypeRestClient.lift(uniffiHandle);
3753
- return await jsCallback.post(FfiConverterString.lift(url), FfiConverterOptionalMapStringString.lift(headers), FfiConverterOptionalString.lift(body), {
3753
+ return await jsCallback.postRequest(FfiConverterString.lift(url), FfiConverterOptionalMapStringString.lift(headers), FfiConverterOptionalString.lift(body), {
3754
3754
  signal
3755
3755
  });
3756
3756
  };
@@ -3773,10 +3773,10 @@ const uniffiCallbackInterfaceRestClient = {
3773
3773
  const uniffiForeignFuture = uniffiTraitInterfaceCallAsyncWithError(/*makeCall:*/uniffiMakeCall, /*handleSuccess:*/uniffiHandleSuccess, /*handleError:*/uniffiHandleError, /*isErrorType:*/ServiceConnectivityError.instanceOf, /*lowerError:*/FfiConverterTypeServiceConnectivityError.lower.bind(FfiConverterTypeServiceConnectivityError), /*lowerString:*/FfiConverterString.lower);
3774
3774
  return UniffiResult.success(uniffiForeignFuture);
3775
3775
  },
3776
- delete_: (uniffiHandle, url, headers, body, uniffiFutureCallback, uniffiCallbackData) => {
3776
+ deleteRequest: (uniffiHandle, url, headers, body, uniffiFutureCallback, uniffiCallbackData) => {
3777
3777
  const uniffiMakeCall = async signal => {
3778
3778
  const jsCallback = FfiConverterTypeRestClient.lift(uniffiHandle);
3779
- return await jsCallback.delete_(FfiConverterString.lift(url), FfiConverterOptionalMapStringString.lift(headers), FfiConverterOptionalString.lift(body), {
3779
+ return await jsCallback.deleteRequest(FfiConverterString.lift(url), FfiConverterOptionalMapStringString.lift(headers), FfiConverterOptionalString.lift(body), {
3780
3780
  signal
3781
3781
  });
3782
3782
  };
@@ -3878,14 +3878,14 @@ function uniffiEnsureInitialized() {
3878
3878
  if (bindingsContractVersion !== scaffoldingContractVersion) {
3879
3879
  throw new UniffiInternalError.ContractVersionMismatch(scaffoldingContractVersion, bindingsContractVersion);
3880
3880
  }
3881
- if (nativeModule().ubrn_uniffi_breez_sdk_common_checksum_method_restclient_get() !== 32450) {
3882
- throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_common_checksum_method_restclient_get');
3881
+ if (nativeModule().ubrn_uniffi_breez_sdk_common_checksum_method_restclient_get_request() !== 1702) {
3882
+ throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_common_checksum_method_restclient_get_request');
3883
3883
  }
3884
- if (nativeModule().ubrn_uniffi_breez_sdk_common_checksum_method_restclient_post() !== 14213) {
3885
- throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_common_checksum_method_restclient_post');
3884
+ if (nativeModule().ubrn_uniffi_breez_sdk_common_checksum_method_restclient_post_request() !== 38998) {
3885
+ throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_common_checksum_method_restclient_post_request');
3886
3886
  }
3887
- if (nativeModule().ubrn_uniffi_breez_sdk_common_checksum_method_restclient_delete() !== 56210) {
3888
- throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_common_checksum_method_restclient_delete');
3887
+ if (nativeModule().ubrn_uniffi_breez_sdk_common_checksum_method_restclient_delete_request() !== 26893) {
3888
+ throw new UniffiInternalError.ApiChecksumMismatch('uniffi_breez_sdk_common_checksum_method_restclient_delete_request');
3889
3889
  }
3890
3890
  uniffiCallbackInterfaceRestClient.register();
3891
3891
  }