Home > @i2analyze/i2connect > data
data namespace
The members of the data namespace provide access to the property values of records that an i2 Connect service operates on.
Signature:
export declare namespace data
Introduced: API version 1.0
Functions
| Function | Description |
|---|---|
| createDecimal(value) | Creates a decimal value from a number or a string. |
| createGeoPoint(latitude, longitude) | Creates a data.IGeoPoint object from a pair of latitude and longitude values. |
| createGeoPoint(data) | Creates a data.IGeoPoint object from a data.IGeoJsonPoint object. |
| createGeoPoint(data) | Creates a data.IGeoPoint object from a data.IGeoPointData object. |
| createLocalDate(year, month, day) | Creates a local date object (that does not have a time or a time zone) from year/month/day information. |
| createLocalDate(jsDate) | Creates a local date object (that does not have a time or a time zone) from a JavaScript Date object. |
| createLocalDate(iso8601) | Creates a local date object (that does not have a time or a time zone) from an ISO 8601 string ('yyyy-mm-dd'). |
| createLocalDateTime(year, month, day, hour, minute, second, milli) | Creates a local date-time object, which does not have a time zone, from year/month/day/hour/minute/second/milli information. |
| createLocalDateTime(jsDate) | Creates a local date-time object, which does not have a time zone, from a JavaScript Date object. |
| createLocalDateTime(date, time) | Creates a local date-time object, which does not have a time zone, from local date and local time objects. |
| createLocalDateTime(iso8601) | Creates a local date-time object, which does not have a time zone, from an ISO 8601 string ('yyyy-mm-ddThh:mm:ss' or 'yyyy-mm-ddThh:mm:ss.sss'). |
| createLocalTime(hour, minute, second, milli) | Creates a local time object (that does not have a date or a time zone) from hour/minute/second information. |
| createLocalTime(jsDate) | Creates a local time object (that does not have a date or a time zone) from a JavaScript Date object. |
| createLocalTime(iso8601) | Creates a local time object (that does not have a date or a time zone) from an ISO 8601 string ('hh:mm:ss' or 'hh:mm:ss.sss'). |
| createZonedDateTime(date, time, timeZoneId, isDst) | Creates a date-time object that has a time zone from a local date, a local time, and a time zone identifier. |
| createZonedDateTime(dateTime, timeZoneId, isDst) | Creates a date-time object that has a time zone from a local date-time (or a JavaScript Date object) and a time zone identifier. |
| createZonedDateTime(iso8601, timeZoneId, isDst) | Creates a date-time object that has a time zone from an ISO 8601 string ('yyyy-mm-ddThh:mm:ss' or 'yyyy-mm-ddThh:mm:ss.sss') and a time zone identifier. |
Interfaces
| Interface | Description |
|---|---|
| IDecimal | A decimal value. |
| IGeoJsonFeature | A geospatial feature, containing a geometry object and its associated properties. |
| IGeoJsonFeatureCollection | An area on a map, which comprises one or more geospatial features. |
| IGeoJsonMultiPolygon | A geospatial "multi-polygon", as described in RFC 7946. |
| IGeoJsonPoint | A position on a map, as described in RFC 7946. |
| IGeoJsonPolygon | A geospatial polygon, as described in RFC 7946. |
| IGeoPoint | A geospatial point. |
| IGeoPointData | A set of data for creating a geospatial point. |
| ILocalDate | A date without an accompanying time or time zone. |
| ILocalDateTime | A date and a time without an accompanying time zone. |
| ILocalTime | A time without an accompanying date or time zone. |
| IZonedDateTime | A date and time with an accompanying time zone. |
Type Aliases
| Type Alias | Description |
|---|---|
| DecimalString | A decimal in string format. |
| GeoJsonPosition | A pair of geospatial coordinates, as described in RFC 7946. |
| IGeoJsonGeometry | A geospatial geometry object, as described in RFC 7946. |
| ISO8601Date | A date in ISO 8601 format. For example, 1976-10-23. |
| ISO8601LocalDateTime | A local date and time in ISO 8601 format. For example, 1976-10-23T11:22:33.123. |
| ISO8601Time | A time in ISO 8601 format. For example, 11:22:33.123. |
| LinkDirection | The direction of a link. |
| LogicalType | A logical type for the value of a property of a record. |
| TimeZoneId | An identifier of a time zone. |