Closed YerkoPalma closed 7 years ago
WIP
typeof options === 'string'
type === undefined
type === 'detalle'
type === 'asistencia'
type === 'asistencia.sala'
type === 'asistencia.comisiones'
type === 'viajes'
type === 'viajes.nacionales'
type === 'viajes.internacionales'
type === 'elecciones'
type === 'elecciones.ingresos'
type === 'elecciones.gastos'
type === 'todos'
typeof options === 'number'
typeof options === 'array'
typeof options === 'object'
Add tests
TODO
typeof options === 'string'
type === undefined
: Busca información por defecto de un senador, por nombre.type === 'detalle'
: Busca el detalle de un senador, por nombre.type === 'asistencia'
: Busca la asistencia de sala y de comisiones de un senador, por nombre.type === 'asistencia.sala'
: Busca la asistencia de sala de un senador, por nombre.type === 'asistencia.comisiones'
: Busca la asistencia de comisiones de un senador, por nombre.type === 'viajes'
: Busca los viajes nacionales e internacionales de un senador, por nombre.type === 'viajes.nacionales'
: Busca los viajes nacionales de un senador, por nombre.type === 'viajes.internacionales'
: Busca los viajes internacionales de un senador, por nombre.type === 'elecciones'
: Busca los gastos e ingresos de campaña de un senador, por nombre.type === 'elecciones.ingresos'
: Busca los ingresos de campaña de un senador, por nombre.type === 'elecciones.gastos'
: Busca los gastos de campaña de un senador, por nombre.type === 'todos'
: Busca toda la información disponible de un senador, por nombre.typeof options === 'number'
type === undefined
: Busca información por defecto de un senador, por rut/id.type === 'detalle'
: Busca el detalle de un senador, por rut/id.type === 'asistencia'
: Busca la asistencia de sala y de comisiones de un senador, por rut/id.type === 'asistencia.sala'
: Busca la asistencia de sala de un senador, por rut/id.type === 'asistencia.comisiones'
: Busca la asistencia de comisiones de un senador, por rut/id.type === 'viajes'
: Busca los viajes nacionales e internacionales de un senador, por rut/id.type === 'viajes.nacionales'
: Busca los viajes nacionales de un senador, por rut/id.type === 'viajes.internacionales'
: Busca los viajes internacionales de un senador, por rut/id.type === 'elecciones'
: Busca los gastos e ingresos de campaña de un senador, por rut/id.type === 'elecciones.ingresos'
: Busca los ingresos de campaña de un senador, por rut/id.type === 'elecciones.gastos'
: Busca los gastos de campaña de un senador, por rut/id.type === 'todos'
: Busca toda la información disponible de un senador, por rut/id.typeof options === 'array'
type === undefined
: Busca información por defecto de un grupo de senadores, por nombre o rut/id.type === 'detalle'
: Busca el detalle de un grupo de senadores, por nombre o rut/id.type === 'asistencia'
: Busca la asistencia de sala y de comisiones de un grupo de senadores, por nombre o rut/id.type === 'asistencia.sala'
: Busca la asistencia de sala de un grupo de senadores, por nombre o rut/id.type === 'asistencia.comisiones'
: Busca la asistencia de comisiones de un grupo de senadores, por nombre o rut/id.type === 'viajes'
: Busca los viajes nacionales e internacionales de un grupo de senadores, por nombre o rut/id.type === 'viajes.nacionales'
: Busca los viajes nacionales de un grupo de senadores, por nombre o rut/id.type === 'viajes.internacionales'
: Busca los viajes internacionales de un grupo de senadores, por nombre o rut/id.type === 'elecciones'
: Busca los gastos e ingresos de campaña de un grupo de senadores, por nombre o rut/id.type === 'elecciones.ingresos'
: Busca los ingresos de campaña de un grupo de senadores, por nombre o rut/id.type === 'elecciones.gastos'
: Busca los gastos de campaña de un grupo de senadores, por nombre o rut/id.type === 'todos'
: Busca toda la información disponible de un grupo de senadores, por nombre o rut/id.typeof options === 'object'
periodoViajesNacionales<number | date>