Module Values.GetAccountActivityResponseSource

Returns a specific activity record that is available to the customer.

Sourcetype nonrec t = {
  1. activityId : ActivityId.t option;
    (*

    A unique identifier that identifies the activity.

    *)
  2. title : GenericString.t option;
    (*

    A short activity title.

    *)
  3. description : GenericString.t option;
    (*

    Provides detailed information about the activity and its expected outcomes.

    *)
  4. status : ActivityStatus.t option;
    (*

    The current activity status.

    *)
  5. instructionsUrl : GenericString.t option;
    (*

    The URL resource that provides guidance on activity requirements and completion.

    *)
  6. reward : ActivityReward.t option;
    (*

    A reward granted upon activity completion.

    *)
  7. estimatedTimeToCompleteInMinutes : Integer.t option;
    (*

    The estimated time to complete the activity. This is the duration in minutes.

    *)
  8. expiresAt : SyntheticTimestamp_date_time.t option;
    (*

    The time by which the activity must be completed to receive a reward.

    *)
  9. startedAt : SyntheticTimestamp_date_time.t option;
    (*

    The timestamp when the activity started. This field appears only for activities in the IN_PROGRESS or COMPLETED states.

    *)
  10. completedAt : SyntheticTimestamp_date_time.t option;
    (*

    The timestamp when the activity is completed. This field appears only for activities in the COMPLETED state.

    *)
}
Sourcetype nonrec error = [
  1. | `InternalServerException of InternalServerException.t
  2. | `ResourceNotFoundException of ResourceNotFoundException.t
  3. | `ThrottlingException of ThrottlingException.t
  4. | `ValidationException of ValidationException.t
  5. | `Unknown_operation_error of string * string option
]
Sourceval make : ?activityId:??? -> ?title:??? -> ?description:??? -> ?status:??? -> ?instructionsUrl:??? -> ?reward:??? -> ?estimatedTimeToCompleteInMinutes:??? -> ?expiresAt:??? -> ?startedAt:??? -> ?completedAt:??? -> unit -> t
Sourceval error_of_json : string -> Yojson.Safe.t -> [> `InternalServerException of InternalServerException.t | `ResourceNotFoundException of ResourceNotFoundException.t | `ThrottlingException of ThrottlingException.t | `Unknown_operation_error of string * string option | `ValidationException of ValidationException.t ]
Sourceval error_of_xml : string -> Awso.Xml.t -> [> `InternalServerException of InternalServerException.t | `ResourceNotFoundException of ResourceNotFoundException.t | `ThrottlingException of ThrottlingException.t | `Unknown_operation_error of string * string option | `ValidationException of ValidationException.t ]
Sourceval error_to_json : error -> Yojson.Safe.t
Sourceval to_value : t -> [> `Structure of (string * [> `Enum of string | `Integer of Integer.t | `String of ActivityId.t | `Structure of (string * [> `Structure of (string * [> `Double of GenericDouble.t | `Enum of string ]) list ]) list | `Timestamp of SyntheticTimestamp_date_time.t ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t