@opendatasoft/api-client
Version:
Opendatasoft's API Client.
76 lines (71 loc) • 1.8 kB
text/typescript
export const ODS_DATASET_FIELD_TYPE = {
TEXT: 'text',
INT: 'int',
DOUBLE: 'double',
BOOLEAN: 'boolean',
GEO_SHAPE: 'geo_shape',
GEO_POINT_2D: 'geo_point_2d',
DATETIME: 'datetime',
DATE: 'date',
FILE: 'file',
JSON_BlOB: 'json_blob',
// image and json aren't actually used for datasets anymore
} as const;
export const ODS_DATASET_FIELD_SEMANTIC_TYPE = {
IP_ADDRESS: 'ip_address',
MONITORING_IP_ADDRESS: 'monitoring_ip_address',
} as const;
export const ODS_METADATA_TEMPLATE_FIELD_TYPE = {
TEXT: 'text',
ENUM: 'enum',
ENUM_LIST: 'enumlist',
URI_ENUM: 'uri_enum',
URI_ENUM_LIST: 'uri_enumlist',
LIST: 'list',
DATE: 'date',
DATE_TIME: 'datetime',
BOOLEAN: 'boolean',
INTEGER: 'int',
DECIMAL: 'double',
HTML: 'html',
LONG_STRING: 'longstring',
/** It stores a value that references a polygon, a linear ring, multiple polygons, multiple lines, or multiple points */
GEO_SHAPE: 'geo_shape',
JSON: 'json',
IMAGE: 'image',
};
export const EXPORT_DATASET_FORMAT = {
JSON: 'json',
GEOJSON: 'geojson',
SHP: 'shp',
CSV: 'csv',
XLSX: 'xlsx',
KML: 'kml',
JSONLD: 'jsonld',
JSONL: 'jsonl',
RDFXML: 'rdfxml',
TURTLE: 'turtle',
N3: 'n3',
MVT: 'mvt',
PARQUET: 'parquet',
FGB: 'fgb',
GPX: 'gpx',
ICAL: 'ical',
} as const;
export const EXPORT_CATALOG_FORMAT = {
CSV: 'csv',
JSON: 'json',
XLSX: 'xlsx',
RDF: 'rdf',
TTL: 'ttl',
DATA_JSON: 'data.json',
RSS: 'rss',
DCAT: 'dcat',
DCAT_AP_CH: 'dcat-ap-ch',
DCAT_AP_IT: 'dcat-ap-it',
DCAT_AP_DE: 'dcat-ap-de',
DCAT_AP_SE: 'dcat-ap-se',
DCAT_AP_SP: 'dcat-ap-sp',
DCAT_AP_V1: 'dcat-ap-v1',
DCAT_AP_BENAP: 'dcat_ap_benap',
} as const;