Global types are foundational data types that cannot be broken down any further. They follow industry standard norms and are not specific to SmartSense.
All SmartSense APIs use the following custom types:
Números
Husos horarios
Enums
A continuación verá un desglose detallado de cada uno de estos tipos globales.
Números
Byte - Parameters of type byte can return or accept a whole number between 0 and 255 inclusive.
Integer (16 bit) - Parameters of type integer (16 bit) can return or accept a whole number between -32,768 and 32,767 inclusive.
Integer (32 bit) - Parameters of type integer (32 bit) can return or accept a whole number between -2,147,483,648 and 2,147,483,647 inclusive.
Integer (64 bit) - Parameters of type integer (64 bit) can return or accept a whole number between -9,223,372,036,854,775,808 and 9,223,372,036,854,775,807 inclusive.
Float (32 bit) - Parameters of type float (32 bit) can return or accept a 4-byte floating-point number.
Float (64 bit) - Parameters of type float (64 bit) can return or accept an 8-byte floating-point number.
Decimal - Parameters of type decimal may include a fractional portion separated by a point. The number of allowed digits on either side of the point may be specified.
Ejemplo: Un tipo de parámetro especificado como decimal (5.2) tendría un máximo de 5 dígitos antes del punto decimal, y 2 después.
Date - Parameters of type date should be sent to (and are sent from) the service as a combined date and time in ISO 8601 format. Time zone information must be included, or the results of the API call are not defined.
Nota: Todas las fechas devueltas por el servicio están en UTC.
Husos horarios
Time zones are returned as a human-readable string as described by IANA and stored in their Time Zone Database.
Enums
Los campos que son enums se devuelven como cadenas en JSON. El valor de la cadena se limitará a los posibles valores de enum para el valor de la cadena se limitará a los posibles valores de enum definidos para el tipo. Todos los tipos de enum tienen la posibilidad de ser nulos.
Tipo de grupo
Especifica el tipo de grupo.
Los valores incluyen:
"Cuenta"
"Organización"
"Localización"
"Departamento"