InteractionDateResponse: Replace<InteractionDateResponseRaw, {
    interaction_dates?: {
        [key in InteractionDateKey]: Date
    };
    interactions?: {
        [key in InteractionType]: InteractionDate
    };
}>

Type declaration

  • Optionalinteraction_dates?: {
        [key in InteractionDateKey]: Date
    }

    An object with string date fields representing the most recent and upcoming interactions with this entity. Only returned when passing {@link InteractionDatesQueryParams.with_interaction_dates}=true.

    TODO(@joscha): model this in the type system, so the return type is based on the query parameter type.

  • Optionalinteractions?: {
        [key in InteractionType]: InteractionDate
    }

    An object with seven fields nested underneath. Each field corresponds to one of the seven interactions, and includes nested fields for date and person_ids which indicates the internal people associated with that event (people only returned if passing {@link InteractionDatesQueryParams.with_interaction_persons}=true). Only returned when passing {@link InteractionDatesQueryParams.with_interaction_dates}=true.

    TODO(@joscha): model this in the type system, so the return type is based on the query parameter type.