From 98be31735d0372e9055e0cd49dd88b7226ee79d0 Mon Sep 17 00:00:00 2001 From: Kirill Burtsev Date: Thu, 9 Nov 2023 15:58:47 +0100 Subject: [PATCH] Add needed spec definitions --- bindgen/spec.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/bindgen/spec.yml b/bindgen/spec.yml index 291bb12e28b..351b6646057 100644 --- a/bindgen/spec.yml +++ b/bindgen/spec.yml @@ -180,7 +180,7 @@ enums: cppName: ClientResyncMode values: - Manual - - DiscardLocal + - DiscardLocal - Recover - RecoverOrDiscard @@ -369,7 +369,7 @@ records: fields: longitude: double latitude: double - altitude: + altitude: type: double default: std::numeric_limits::quiet_NaN() @@ -386,7 +386,7 @@ records: GeoPolygon: fields: points: std::vector> - + RealmConfig: fields: path: std::string @@ -467,7 +467,7 @@ records: type: bool default: false error_handler: 'Nullable void>>' - custom_http_headers: + custom_http_headers: type: 'std::map' default: {} client_validate_ssl: @@ -476,7 +476,7 @@ records: ssl_trust_certificate_path: util::Optional ssl_verify_callback: Nullable client_resync_mode: - type: ClientResetMode + type: ClientResetMode default: ClientResyncMode::Manual; notify_before_client_reset: 'Nullable void>>' notify_after_client_reset: 'Nullable void>>' @@ -484,7 +484,7 @@ records: type: bool default: false proxy_config: util::Optional - + SyncSubscription: cppName: sync::Subscription fields: @@ -1131,7 +1131,7 @@ classes: refresh_token: std::string device_id: std::string has_device_id: bool - user_profile: UserProfile + user_profile: UserProfile identities: std::vector custom_data: util::Optional sync_manager: SharedSyncManager @@ -1156,7 +1156,7 @@ classes: birthday: '() -> util::Optional' min_age: '() -> util::Optional' max_age: '() -> util::Optional' - data: '() -> bson::BsonDocument' + data: '() -> bson::BsonDocument' AppSubscriptionToken: cppName: app::App::Token @@ -1270,7 +1270,7 @@ classes: methods: start: '(callback: AsyncCallback<(realm: Nullable, error: Nullable) off_thread>)' cancel: () - register_download_progress_notifier: '(callback: (transferred_bytes: uint64_t, transferrable_bytes: uint64_t) off_thread) -> uint64_t' + register_download_progress_notifier: '(callback: (transferred_bytes: uint64_t, transferrable_bytes: uint64_t, progress_estimate: double) off_thread) -> uint64_t' unregister_download_progress_notifier: '(token: uint64_t)' SyncSession: @@ -1285,7 +1285,7 @@ classes: methods: wait_for_upload_completion: '(callback: AsyncCallback<(err: Status) off_thread>)' wait_for_download_completion: '(callback: AsyncCallback<(err: Status) off_thread>)' - register_progress_notifier: '(callback: (transferred_bytes: uint64_t, transferrable_bytes: uint64_t) off_thread, direction: ProgressDirection, is_streaming: bool) -> uint64_t' + register_progress_notifier: '(callback: (transferred_bytes: uint64_t, transferrable_bytes: uint64_t, progress_estimate: double) off_thread, direction: ProgressDirection, is_streaming: bool) -> uint64_t' unregister_progress_notifier: '(token: uint64_t)' register_connection_change_callback: '(callback: (old_state: SyncSessionConnectionState, new_state: SyncSessionConnectionState) off_thread) -> uint64_t' unregister_connection_change_callback: '(token: uint64_t)'