@seta-labs/geo 0.5.0 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # @seta-labs/geo
2
2
 
3
+ ## 0.6.0
4
+
5
+ - `comune(codComune)` gains the `territorio` block (new type
6
+ `TerritoryTerritorio`): altitude, altimetric zone, surface in km², degree of
7
+ urbanisation, inner-area class, and the flags `isLitoraneo`, `isIsolano`,
8
+ `isZonaCostiera`, `isZonaMontana`, `hasVincoliNaturali`,
9
+ `hasSvantaggiSpecifici`, with `edizione`, the date of the ISTAT SITUAS
10
+ reports. Null for a suppressed municipality.
11
+
3
12
  ## 0.5.0
4
13
 
5
14
  - `comuni(query?)` takes `storici`: with `true` the list also returns the
package/dist/index.d.ts CHANGED
@@ -596,6 +596,39 @@ interface components {
596
596
  redditoMedio: number | null;
597
597
  redditoAnno: number | null;
598
598
  };
599
+ TerritoryTerritorioDto: {
600
+ /**
601
+ * Format: date
602
+ * @description Date of the SITUAS reports the values were read from.
603
+ */
604
+ edizione: string;
605
+ /** @description Metres above sea level, at the town hall. */
606
+ altitudine: number | null;
607
+ /** @enum {string} */
608
+ zonaAltimetrica: 'MONTAGNA_INTERNA' | 'MONTAGNA_LITORANEA' | 'COLLINA_INTERNA' | 'COLLINA_LITORANEA' | 'PIANURA';
609
+ superficieKmq: number | null;
610
+ /**
611
+ * @description Eurostat degree of urbanisation (DEGURBA 2021).
612
+ * @enum {string|null}
613
+ */
614
+ gradoUrbanizzazione: 'CITTA' | 'PICCOLE_CITTA_SOBBORGHI' | 'ZONE_RURALI' | null;
615
+ /**
616
+ * @description Class of the national strategy for inner areas (SNAI 2020).
617
+ * @enum {string|null}
618
+ */
619
+ areaInterna: 'POLO' | 'POLO_INTERCOMUNALE' | 'CINTURA' | 'INTERMEDIO' | 'PERIFERICO' | 'ULTRAPERIFERICO' | null;
620
+ /** @description Touched by the sea. */
621
+ isLitoraneo: boolean;
622
+ isIsolano: boolean;
623
+ /** @description Coastal area 2021: wider than the municipalities touched by the sea. */
624
+ isZonaCostiera: boolean | null;
625
+ /** @description Mountain area 2014. */
626
+ isZonaMontana: boolean | null;
627
+ /** @description Area facing natural constraints 2020. */
628
+ hasVincoliNaturali: boolean | null;
629
+ /** @description Area affected by specific constraints 2014. */
630
+ hasSvantaggiSpecifici: boolean | null;
631
+ };
599
632
  TerritoryOmiDto: {
600
633
  semestre: string;
601
634
  tipologia: string;
@@ -618,6 +651,8 @@ interface components {
618
651
  TerritoryComuneDetailDto: {
619
652
  comune: components['schemas']['TerritoryComuneDto'];
620
653
  istat: components['schemas']['TerritoryIstatDto'];
654
+ /** @description Null for a suppressed municipality: SITUAS describes only the current ones. */
655
+ territorio: components['schemas']['TerritoryTerritorioDto'] | null;
621
656
  /** @description Publication the zone quotations come from, null while none is loaded. */
622
657
  semestre: string | null;
623
658
  zone: components['schemas']['TerritoryZonaQuotazioneDto'][];
@@ -1200,6 +1235,7 @@ type TerritoryPointResult = ApiSchemas['TerritoryPointResultDto'];
1200
1235
  type TerritoryOmi = ApiSchemas['TerritoryOmiDto'];
1201
1236
  type TerritoryComune = ApiSchemas['TerritoryComuneDto'];
1202
1237
  type TerritoryComuneDetail = ApiSchemas['TerritoryComuneDetailDto'];
1238
+ type TerritoryTerritorio = ApiSchemas['TerritoryTerritorioDto'];
1203
1239
  type TerritoryDatasets = ApiSchemas['TerritoryDatasetsDto'];
1204
1240
  type TerritoryComuniPage = ApiSchemas['TerritoryComuniPageDto'];
1205
1241
  type TerritoryComuneRiga = ApiSchemas['TerritoryComuneRigaDto'];
@@ -1264,4 +1300,4 @@ interface GeoClient {
1264
1300
  declare function createGeoClient(options: GeoClientOptions): GeoClient;
1265
1301
 
1266
1302
  export { ApiError, createGeoClient };
1267
- export type { CadastreParcelRequest, CadastreParcelResult, CadastreParcelRow, CadastreParcelsPage, CadastreParcelsQuery, GeoClient, GeoClientOptions, GeocodeBatchRequest, GeocodeBatchResponse, GeocodeRequest, GeocodeResult, LookupCache, LookupOptions, RequestOptions, ReverseGeocodeRequest, ReverseGeocodeResult, TerritoryClient, TerritoryCompravendita, TerritoryCompravenditePage, TerritoryCompravenditeQuery, TerritoryComune, TerritoryComuneDetail, TerritoryComuneRiga, TerritoryComuniPage, TerritoryComuniQuery, TerritoryDatasets, TerritoryOmi, TerritoryPointResult, TerritoryQuotazione, TerritoryQuotazioniPage, TerritoryQuotazioniQuery, TerritoryResolveRequest, TerritoryResolveResponse, TerritoryStatus };
1303
+ export type { CadastreParcelRequest, CadastreParcelResult, CadastreParcelRow, CadastreParcelsPage, CadastreParcelsQuery, GeoClient, GeoClientOptions, GeocodeBatchRequest, GeocodeBatchResponse, GeocodeRequest, GeocodeResult, LookupCache, LookupOptions, RequestOptions, ReverseGeocodeRequest, ReverseGeocodeResult, TerritoryClient, TerritoryCompravendita, TerritoryCompravenditePage, TerritoryCompravenditeQuery, TerritoryComune, TerritoryComuneDetail, TerritoryComuneRiga, TerritoryComuniPage, TerritoryComuniQuery, TerritoryDatasets, TerritoryOmi, TerritoryPointResult, TerritoryQuotazione, TerritoryQuotazioniPage, TerritoryQuotazioniQuery, TerritoryResolveRequest, TerritoryResolveResponse, TerritoryStatus, TerritoryTerritorio };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seta-labs/geo",
3
- "version": "0.5.0",
3
+ "version": "0.6.0",
4
4
  "description": "Typed Fetch client for the Seta Geo HTTP API",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",