1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
//! Types required by all but the most trivial zomes.
//! This can greatly simplify imports for the majority of developers
//! by simply adding use hdk::prelude::*;

// macros
pub use crate::{define_zome, entry, from, link, load_json, to};

// derive macros
pub use holochain_json_derive::DefaultJson;
pub use serde_derive::{Deserialize, Serialize};

// types
pub use crate::{
    entry_definition::ValidatingEntryType,
    error::{ZomeApiError, ZomeApiResult},
    holochain_core_types::{
        agent::AgentId,
        dna::entry_types::Sharing,
        entry::{entry_type::EntryType, Entry},
        error::HolochainError,
        link::LinkMatch,
        network::query::{Pagination, SizePagination, SortOrder, TimePagination},
        time::Iso8601,
    },
    holochain_json_api::{error::JsonError, json::JsonString},
    holochain_persistence_api::cas::content::{Address, AddressableContent},
    holochain_wasm_utils::api_serialization::{
        commit_entry::CommitEntryOptions,
        get_entry::{
            EntryHistory, GetEntryOptions, GetEntryResult, GetEntryResultType, StatusRequestKind,
        },
        get_links::{GetLinksOptions, GetLinksResult, GetLinksResultCount, LinksStatusRequestKind},
        QueryArgsOptions, QueryResult,
    },
    EntryValidationData, LinkValidationData, ValidationPackageDefinition,
};