wave-api 0.1.0

Typed Rust client for the Wave Accounting GraphQL API
Documentation
pub(crate) const ACCOUNT_CREATE: &str = r#"
mutation ($input: AccountCreateInput!) {
  accountCreate(input: $input) {
    didSucceed
    inputErrors { code message path }
    account {
      id name description displayId
      currency { code symbol name }
      type { name value normalBalanceType }
      subtype { name value type { name value normalBalanceType } }
      normalBalanceType isArchived sequence
      balance balanceInBusinessCurrency
    }
  }
}
"#;

pub(crate) const ACCOUNT_PATCH: &str = r#"
mutation ($input: AccountPatchInput!) {
  accountPatch(input: $input) {
    didSucceed
    inputErrors { code message path }
    account {
      id name description displayId
      currency { code symbol name }
      type { name value normalBalanceType }
      subtype { name value type { name value normalBalanceType } }
      normalBalanceType isArchived sequence
      balance balanceInBusinessCurrency
    }
  }
}
"#;

pub(crate) const ACCOUNT_ARCHIVE: &str = r#"
mutation ($input: AccountArchiveInput!) {
  accountArchive(input: $input) {
    didSucceed
    inputErrors { code message path }
  }
}
"#;