BexioApiClient.GlobalArguments (bexio_api_client v0.6.4)

Typespec and helpers for global usable arguments

Link to this section Summary

Link to this section Types

Link to this type

offset_arg()

@type offset_arg() :: {:order_by, atom()} | offset_without_order_by_arg()
Link to this type

offset_without_order_by_arg()

@type offset_without_order_by_arg() ::
  {:limit, pos_integer()} | {:offset, non_neg_integer()}
Link to this type

paging_arg()

@type paging_arg() ::
  {:limit, pos_integer()}
  | {:page, non_neg_integer()}
  | {:order, [:asc | :desc] | {:sort, [:atom]}}

Link to this section Functions

Link to this function

opts_to_query(opts)

@spec opts_to_query([offset_without_order_by_arg() | offset_arg() | paging_arg()]) ::
  keyword()