Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Toggl.TypesSourceinclude module type of struct include Toggl_t endval pp_datetime :
Ppx_deriving_runtime.Format.formatter ->
Ptime.t ->
Ppx_deriving_runtime.unitval pp_time_entry_update_request :
Ppx_deriving_runtime.Format.formatter ->
Toggl_t.time_entry_update_request ->
Ppx_deriving_runtime.unitval show_time_entry_update_request :
Toggl_t.time_entry_update_request ->
Ppx_deriving_runtime.stringval equal_time_entry_update_request :
Toggl_t.time_entry_update_request ->
Toggl_t.time_entry_update_request ->
Ppx_deriving_runtime.boolval pp_wrapped_time_entry_update_request :
Ppx_deriving_runtime.Format.formatter ->
Toggl_t.wrapped_time_entry_update_request ->
Ppx_deriving_runtime.unitval show_wrapped_time_entry_update_request :
Toggl_t.wrapped_time_entry_update_request ->
Ppx_deriving_runtime.stringval equal_wrapped_time_entry_update_request :
Toggl_t.wrapped_time_entry_update_request ->
Toggl_t.wrapped_time_entry_update_request ->
Ppx_deriving_runtime.boolval pp_time_entry_request :
Ppx_deriving_runtime.Format.formatter ->
Toggl_t.time_entry_request ->
Ppx_deriving_runtime.unitval equal_time_entry_request :
Toggl_t.time_entry_request ->
Toggl_t.time_entry_request ->
Ppx_deriving_runtime.boolval pp_wrapped_time_entry :
Ppx_deriving_runtime.Format.formatter ->
Toggl_t.wrapped_time_entry ->
Ppx_deriving_runtime.unitval equal_wrapped_time_entry :
Toggl_t.wrapped_time_entry ->
Toggl_t.wrapped_time_entry ->
Ppx_deriving_runtime.boolval pp_project_request :
Ppx_deriving_runtime.Format.formatter ->
Toggl_t.project_request ->
Ppx_deriving_runtime.unitval equal_project_request :
Toggl_t.project_request ->
Toggl_t.project_request ->
Ppx_deriving_runtime.boolval pp_wrapped_project_request :
Ppx_deriving_runtime.Format.formatter ->
Toggl_t.wrapped_project_request ->
Ppx_deriving_runtime.unitval show_wrapped_project_request :
Toggl_t.wrapped_project_request ->
Ppx_deriving_runtime.stringval equal_wrapped_project_request :
Toggl_t.wrapped_project_request ->
Toggl_t.wrapped_project_request ->
Ppx_deriving_runtime.boolval pp_workspace :
Ppx_deriving_runtime.Format.formatter ->
Toggl_t.workspace ->
Ppx_deriving_runtime.unitval pp_workspace_list :
Ppx_deriving_runtime.Format.formatter ->
Toggl_t.workspace list ->
Ppx_deriving_runtime.unitval equal_workspace_list :
Toggl_t.workspace list ->
Toggl_t.workspace list ->
Ppx_deriving_runtime.boolval pp_time_entry :
Ppx_deriving_runtime.Format.formatter ->
Toggl_t.time_entry ->
Ppx_deriving_runtime.unitval pp_time_entry_list :
Ppx_deriving_runtime.Format.formatter ->
Toggl_t.time_entry list ->
Ppx_deriving_runtime.unitval equal_time_entry_list :
Toggl_t.time_entry list ->
Toggl_t.time_entry list ->
Ppx_deriving_runtime.boolval pp_tid_list :
Ppx_deriving_runtime.Format.formatter ->
int list ->
Ppx_deriving_runtime.unitval pp_project :
Ppx_deriving_runtime.Format.formatter ->
Toggl_t.project ->
Ppx_deriving_runtime.unitval pp_project_list :
Ppx_deriving_runtime.Format.formatter ->
Toggl_t.project list ->
Ppx_deriving_runtime.unitval equal_project_list :
Toggl_t.project list ->
Toggl_t.project list ->
Ppx_deriving_runtime.boolval pp_pid_list :
Ppx_deriving_runtime.Format.formatter ->
int list ->
Ppx_deriving_runtime.unitval pp_data_time_entry :
Ppx_deriving_runtime.Format.formatter ->
Toggl_t.data_time_entry ->
Ppx_deriving_runtime.unitval equal_data_time_entry :
Toggl_t.data_time_entry ->
Toggl_t.data_time_entry ->
Ppx_deriving_runtime.boolval pp_data_project :
Ppx_deriving_runtime.Format.formatter ->
Toggl_t.data_project ->
Ppx_deriving_runtime.unitval equal_data_project :
Toggl_t.data_project ->
Toggl_t.data_project ->
Ppx_deriving_runtime.boolinclude module type of struct include Toggl_j endOutput a JSON value of type datetime.
Serialize a value of type datetime into a JSON string.
Input JSON data of type datetime.
Deserialize JSON data of type datetime.
Output a JSON value of type time_entry_update_request.
val string_of_time_entry_update_request :
?len:int ->
Toggl_t.time_entry_update_request ->
stringSerialize a value of type time_entry_update_request into a JSON string.
val read_time_entry_update_request :
Yojson.Safe.lexer_state ->
Lexing.lexbuf ->
Toggl_t.time_entry_update_requestInput JSON data of type time_entry_update_request.
Deserialize JSON data of type time_entry_update_request.
val write_wrapped_time_entry_update_request :
Buffer.t ->
Toggl_t.wrapped_time_entry_update_request ->
unitOutput a JSON value of type wrapped_time_entry_update_request.
val string_of_wrapped_time_entry_update_request :
?len:int ->
Toggl_t.wrapped_time_entry_update_request ->
stringSerialize a value of type wrapped_time_entry_update_request into a JSON string.
val read_wrapped_time_entry_update_request :
Yojson.Safe.lexer_state ->
Lexing.lexbuf ->
Toggl_t.wrapped_time_entry_update_requestInput JSON data of type wrapped_time_entry_update_request.
val wrapped_time_entry_update_request_of_string :
string ->
Toggl_t.wrapped_time_entry_update_requestDeserialize JSON data of type wrapped_time_entry_update_request.
Output a JSON value of type time_entry_request.
Serialize a value of type time_entry_request into a JSON string.
val read_time_entry_request :
Yojson.Safe.lexer_state ->
Lexing.lexbuf ->
Toggl_t.time_entry_requestInput JSON data of type time_entry_request.
Deserialize JSON data of type time_entry_request.
Output a JSON value of type wrapped_time_entry.
Serialize a value of type wrapped_time_entry into a JSON string.
val read_wrapped_time_entry :
Yojson.Safe.lexer_state ->
Lexing.lexbuf ->
Toggl_t.wrapped_time_entryInput JSON data of type wrapped_time_entry.
Deserialize JSON data of type wrapped_time_entry.
Output a JSON value of type wid.
Serialize a value of type wid into a JSON string.
Input JSON data of type wid.
Deserialize JSON data of type wid.
Output a JSON value of type project_request.
Serialize a value of type project_request into a JSON string.
val read_project_request :
Yojson.Safe.lexer_state ->
Lexing.lexbuf ->
Toggl_t.project_requestInput JSON data of type project_request.
Deserialize JSON data of type project_request.
Output a JSON value of type wrapped_project_request.
Serialize a value of type wrapped_project_request into a JSON string.
val read_wrapped_project_request :
Yojson.Safe.lexer_state ->
Lexing.lexbuf ->
Toggl_t.wrapped_project_requestInput JSON data of type wrapped_project_request.
Deserialize JSON data of type wrapped_project_request.
Output a JSON value of type workspace.
Serialize a value of type workspace into a JSON string.
Input JSON data of type workspace.
Deserialize JSON data of type workspace.
Output a JSON value of type workspace_list.
Serialize a value of type workspace_list into a JSON string.
Input JSON data of type workspace_list.
Deserialize JSON data of type workspace_list.
Output a JSON value of type uid.
Serialize a value of type uid into a JSON string.
Input JSON data of type uid.
Deserialize JSON data of type uid.
Output a JSON value of type tid.
Serialize a value of type tid into a JSON string.
Input JSON data of type tid.
Deserialize JSON data of type tid.
Output a JSON value of type pid.
Serialize a value of type pid into a JSON string.
Input JSON data of type pid.
Deserialize JSON data of type pid.
Output a JSON value of type time_entry.
Serialize a value of type time_entry into a JSON string.
Input JSON data of type time_entry.
Deserialize JSON data of type time_entry.
Output a JSON value of type time_entry_list.
Serialize a value of type time_entry_list into a JSON string.
val read_time_entry_list :
Yojson.Safe.lexer_state ->
Lexing.lexbuf ->
Toggl_t.time_entry_listInput JSON data of type time_entry_list.
Deserialize JSON data of type time_entry_list.
Output a JSON value of type tid_list.
Serialize a value of type tid_list into a JSON string.
Input JSON data of type tid_list.
Deserialize JSON data of type tid_list.
Output a JSON value of type project.
Serialize a value of type project into a JSON string.
Input JSON data of type project.
Deserialize JSON data of type project.
Output a JSON value of type project_list.
Serialize a value of type project_list into a JSON string.
Input JSON data of type project_list.
Deserialize JSON data of type project_list.
Output a JSON value of type pid_list.
Serialize a value of type pid_list into a JSON string.
Input JSON data of type pid_list.
Deserialize JSON data of type pid_list.
Output a JSON value of type data_time_entry.
Serialize a value of type data_time_entry into a JSON string.
val read_data_time_entry :
Yojson.Safe.lexer_state ->
Lexing.lexbuf ->
Toggl_t.data_time_entryInput JSON data of type data_time_entry.
Deserialize JSON data of type data_time_entry.
Output a JSON value of type data_project.
Serialize a value of type data_project into a JSON string.
Input JSON data of type data_project.
Deserialize JSON data of type data_project.
include module type of struct include Toggl_v endResponse types
type time_entry_update_request = Toggl_t.time_entry_update_request = {description : string option;wid : int option;pid : int option option;start : datetime option;stop : datetime option option;duration : int option;duronly : bool option;billable : bool option;}Represents a time entry as we send to Toggl when updating one
type wrapped_time_entry_update_request =
Toggl_t.wrapped_time_entry_update_request =
{time_entry : time_entry_update_request;}type time_entry_request = Toggl_t.time_entry_request = {description : string;wid : int option;pid : int option;start : datetime option;stop : datetime option option;duration : int;created_with : string;duronly : bool;billable : bool;}Represents a time entry as we send to Toggl when starting or creating one
type project_request = Toggl_t.project_request = {wid : wid;name : string;billable : bool;is_private : bool;active : bool;auto_estimates : bool;estimated_hours : bool;actual_hours : int;template : bool;template_id : int option;cid : int option;color : string option;hex_color : string option;}Represents a project as we send to Toggl when creating one
type workspace = Toggl_t.workspace = {id : wid;name : string;default_currency : string;at : datetime;admin : bool;default_hourly_rate : float;only_admins_may_create_projects : bool;only_admins_see_billable_rates : bool;only_admins_see_team_dashboard : bool;projects_billable_by_default : bool;rounding : int;rounding_minutes : int;ical_enabled : bool;api_token : string option;profile : int option;logo_url : string option;}Represents a workspace in Toggl
type time_entry = Toggl_t.time_entry = {id : tid;wid : wid;uid : uid;description : string;at : datetime;pid : pid option;start : datetime;stop : datetime option;duration : int;duronly : bool;billable : bool;}Represents a time enty as will be returned from the Toggl API
type project = Toggl_t.project = {id : pid;wid : wid;name : string;at : datetime;created_at : datetime option;billable : bool;is_private : bool;active : bool;auto_estimates : bool;estimated_hours : bool;actual_hours : int;template : bool;template_id : int option;color : string option;hex_color : string option;}Represents a project in Toggl
Request types
val validate_datetime :
Atdgen_runtime.Util.Validation.path ->
datetime ->
Atdgen_runtime.Util.Validation.error optionValidate a value of type datetime.
val create_time_entry_update_request :
?description:string ->
?wid:int ->
?pid:int option ->
?start:datetime ->
?stop:datetime option ->
?duration:int ->
?tags:string list ->
?duronly:bool ->
?billable:bool ->
unit ->
time_entry_update_requestCreate a record of type time_entry_update_request.
val validate_time_entry_update_request :
Atdgen_runtime.Util.Validation.path ->
time_entry_update_request ->
Atdgen_runtime.Util.Validation.error optionValidate a value of type time_entry_update_request.
val create_wrapped_time_entry_update_request :
time_entry:time_entry_update_request ->
unit ->
wrapped_time_entry_update_requestCreate a record of type wrapped_time_entry_update_request.
val validate_wrapped_time_entry_update_request :
Atdgen_runtime.Util.Validation.path ->
wrapped_time_entry_update_request ->
Atdgen_runtime.Util.Validation.error optionValidate a value of type wrapped_time_entry_update_request.
val validate_time_entry_request :
Atdgen_runtime.Util.Validation.path ->
time_entry_request ->
Atdgen_runtime.Util.Validation.error optionValidate a value of type time_entry_request.
Create a record of type wrapped_time_entry.
val validate_wrapped_time_entry :
Atdgen_runtime.Util.Validation.path ->
wrapped_time_entry ->
Atdgen_runtime.Util.Validation.error optionValidate a value of type wrapped_time_entry.
val validate_wid :
Atdgen_runtime.Util.Validation.path ->
wid ->
Atdgen_runtime.Util.Validation.error optionValidate a value of type wid.
val create_project_request :
wid:wid ->
name:string ->
?billable:bool ->
?is_private:bool ->
?active:bool ->
?auto_estimates:bool ->
?estimated_hours:bool ->
?actual_hours:int ->
?template:bool ->
?template_id:int ->
?cid:int ->
?color:string ->
?hex_color:string ->
unit ->
project_requestCreate a record of type project_request.
val validate_project_request :
Atdgen_runtime.Util.Validation.path ->
project_request ->
Atdgen_runtime.Util.Validation.error optionValidate a value of type project_request.
val create_wrapped_project_request :
project:project_request ->
unit ->
wrapped_project_requestCreate a record of type wrapped_project_request.
val validate_wrapped_project_request :
Atdgen_runtime.Util.Validation.path ->
wrapped_project_request ->
Atdgen_runtime.Util.Validation.error optionValidate a value of type wrapped_project_request.
val create_workspace :
id:wid ->
name:string ->
default_currency:string ->
at:datetime ->
?premium:bool ->
?admin:bool ->
?default_hourly_rate:float ->
?only_admins_may_create_projects:bool ->
?only_admins_see_billable_rates:bool ->
?only_admins_see_team_dashboard:bool ->
?projects_billable_by_default:bool ->
?rounding:int ->
?rounding_minutes:int ->
?ical_enabled:bool ->
?api_token:string ->
?profile:int ->
?logo_url:string ->
unit ->
workspaceCreate a record of type workspace.
val validate_workspace :
Atdgen_runtime.Util.Validation.path ->
workspace ->
Atdgen_runtime.Util.Validation.error optionValidate a value of type workspace.
val validate_workspace_list :
Atdgen_runtime.Util.Validation.path ->
workspace_list ->
Atdgen_runtime.Util.Validation.error optionValidate a value of type workspace_list.
val validate_uid :
Atdgen_runtime.Util.Validation.path ->
uid ->
Atdgen_runtime.Util.Validation.error optionValidate a value of type uid.
val validate_tid :
Atdgen_runtime.Util.Validation.path ->
tid ->
Atdgen_runtime.Util.Validation.error optionValidate a value of type tid.
val validate_pid :
Atdgen_runtime.Util.Validation.path ->
pid ->
Atdgen_runtime.Util.Validation.error optionValidate a value of type pid.
val create_time_entry :
id:tid ->
wid:wid ->
uid:uid ->
description:string ->
at:datetime ->
?pid:pid ->
start:datetime ->
?stop:datetime ->
duration:int ->
?tags:string list ->
?duronly:bool ->
?billable:bool ->
unit ->
time_entryCreate a record of type time_entry.
val validate_time_entry :
Atdgen_runtime.Util.Validation.path ->
time_entry ->
Atdgen_runtime.Util.Validation.error optionValidate a value of type time_entry.
val validate_time_entry_list :
Atdgen_runtime.Util.Validation.path ->
time_entry_list ->
Atdgen_runtime.Util.Validation.error optionValidate a value of type time_entry_list.
val validate_tid_list :
Atdgen_runtime.Util.Validation.path ->
tid_list ->
Atdgen_runtime.Util.Validation.error optionValidate a value of type tid_list.
val create_project :
id:pid ->
wid:wid ->
name:string ->
at:datetime ->
?created_at:datetime ->
?billable:bool ->
?is_private:bool ->
?active:bool ->
?auto_estimates:bool ->
?estimated_hours:bool ->
?actual_hours:int ->
?template:bool ->
?template_id:int ->
?color:string ->
?hex_color:string ->
unit ->
projectCreate a record of type project.
val validate_project :
Atdgen_runtime.Util.Validation.path ->
project ->
Atdgen_runtime.Util.Validation.error optionValidate a value of type project.
val validate_project_list :
Atdgen_runtime.Util.Validation.path ->
project_list ->
Atdgen_runtime.Util.Validation.error optionValidate a value of type project_list.
val validate_pid_list :
Atdgen_runtime.Util.Validation.path ->
pid_list ->
Atdgen_runtime.Util.Validation.error optionValidate a value of type pid_list.
Create a record of type data_time_entry.
val validate_data_time_entry :
Atdgen_runtime.Util.Validation.path ->
data_time_entry ->
Atdgen_runtime.Util.Validation.error optionValidate a value of type data_time_entry.
Create a record of type data_project.
val validate_data_project :
Atdgen_runtime.Util.Validation.path ->
data_project ->
Atdgen_runtime.Util.Validation.error optionValidate a value of type data_project.
val create_time_entry_request :
description:string ->
?wid:int ->
?pid:int ->
?start:Toggl_v.datetime ->
?stop:Toggl_v.datetime option ->
?duration:int ->
?tags:string list ->
?duronly:bool ->
?billable:bool ->
unit ->
Toggl_v.time_entry_request