anki_bridge/
prelude.rs

1/*
2* The MIT License (MIT)
3*
4* Copyright (c) 2023 DaniƩl Kerkmann <daniel@kerkmann.dev>
5*
6* Permission is hereby granted, free of charge, to any person obtaining a copy
7* of this software and associated documentation files (the "Software"), to deal
8* in the Software without restriction, including without limitation the rights
9* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10* copies of the Software, and to permit persons to whom the Software is
11* furnished to do so, subject to the following conditions:
12*
13* The above copyright notice and this permission notice shall be included in all
14* copies or substantial portions of the Software.
15*
16* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22* SOFTWARE.
23*/
24
25pub use crate::{
26    AnkiClient, AnkiRequestable,
27    card_actions::{
28        answer_cards::*, are_due::*, are_suspended::*, cards_info::*, cards_mod_time::*,
29        cards_to_notes::*, find_cards::*, forget_cards::*, get_ease_factors::*, get_intervals::*,
30        get_intervals_alternative::*, relearn_cards::*, set_due_date::*, set_ease_factors::*,
31        set_specific_value_of_card::*, suspend::*, suspended::*, unsuspend::*,
32    },
33    deck_actions::{
34        change_deck::*, clone_deck_config_id::*, create_deck::*, deck_names::*,
35        deck_names_and_ids::*, delete_decks::*, get_deck_config::*, get_deck_stats::*,
36        get_decks::*, remove_deck_config_id::*, save_deck_config::*, set_deck_config_id::*,
37    },
38    entities::*,
39    graphical_actions::{
40        gui_add_cards::*, gui_answer_card::*, gui_browse::*, gui_check_database::*,
41        gui_current_card::*, gui_deck_browser::*, gui_deck_overview::*, gui_deck_review::*,
42        gui_edit_note::*, gui_exit_anki::*, gui_import_file::*, gui_select_card::*,
43        gui_selected_notes::*, gui_show_answer::*, gui_show_question::*, gui_start_card_timer::*,
44        gui_undo::*,
45    },
46    media_actions::{
47        delete_media_file::*, get_media_dir_path::*, get_media_files_names::*,
48        retrieve_media_file::*, store_media_file::*,
49    },
50    miscellaneous_actions::{
51        api_reflect::*, export_package::*, get_active_profile::*, get_profiles::*,
52        import_package::*, load_profile::*, multi::*, reload_collection::*, request_permission::*,
53        sync::*, version::*,
54    },
55    model_actions::{
56        create_model::*, find_and_replace_in_models::*, find_models_by_id::*,
57        find_models_by_name::*, model_field_add::*, model_field_descriptions::*,
58        model_field_fonts::*, model_field_names::*, model_field_remove::*, model_field_rename::*,
59        model_field_reposition::*, model_field_set_description::*, model_field_set_font::*,
60        model_field_set_font_size::*, model_fields_on_templates::*, model_names::*,
61        model_names_and_ids::*, model_styling::*, model_template_add::*, model_template_remove::*,
62        model_template_rename::*, model_template_reposition::*, model_templates::*,
63        update_model_styling::*, update_model_templates::*,
64    },
65    note_actions::{
66        add_note::*, add_notes::*, add_tags::*, can_add_notes::*,
67        can_add_notes_with_error_detail::*, clear_unused_tags::*, delete_notes::*, find_notes::*,
68        get_note_tags::*, get_tags::*, notes_info::*, notes_mod_time::*, remove_empty_notes::*,
69        remove_tags::*, replace_tags::*, replace_tags_in_all_notes::*, update_note::*,
70        update_note_fields::*, update_note_model::*, update_note_tags::*,
71    },
72    statistic_actions::{
73        card_reviews::*, get_collection_stats_html::*, get_latest_review_id::*,
74        get_num_cards_reviewed_by_day::*, get_num_cards_reviewed_today::*, get_reviews_of_cards::*,
75        insert_reviews::*,
76    },
77};