wave-api 0.1.0

Typed Rust client for the Wave Accounting GraphQL API
Documentation
pub(crate) const PRODUCT_CREATE: &str = r#"
mutation ($input: ProductCreateInput!) {
  productCreate(input: $input) {
    didSucceed
    inputErrors { code message path }
    product {
      id name description unitPrice
      isSold isBought isArchived
      incomeAccount { id name }
      expenseAccount { id name }
      defaultSalesTaxes { id name abbreviation rate }
      createdAt modifiedAt
    }
  }
}
"#;

pub(crate) const PRODUCT_PATCH: &str = r#"
mutation ($input: ProductPatchInput!) {
  productPatch(input: $input) {
    didSucceed
    inputErrors { code message path }
    product {
      id name description unitPrice
      isSold isBought isArchived
      incomeAccount { id name }
      expenseAccount { id name }
      defaultSalesTaxes { id name abbreviation rate }
      createdAt modifiedAt
    }
  }
}
"#;

pub(crate) const PRODUCT_ARCHIVE: &str = r#"
mutation ($input: ProductArchiveInput!) {
  productArchive(input: $input) {
    didSucceed
    inputErrors { code message path }
    product {
      id name description unitPrice
      isSold isBought isArchived
      createdAt modifiedAt
    }
  }
}
"#;