import { z } from "zod"; import { Package } from "./package.js"; import { GeoprocessingJsonConfig } from "./project.js"; export declare const geoTypesSchema: z.ZodEnum<["vector", "raster"]>; export declare const supportedFormatsSchema: z.ZodEnum<["fgb", "json", "tif", "subdivided"]>; export declare const measurementTypesSchema: z.ZodEnum<["quantitative", "categorical"]>; export declare const measurementScalesSchema: z.ZodEnum<["nominal", "ordinal", "interval", "ratio"]>; export declare const statsSchema: z.ZodObject<{ count: z.ZodOptional>; sum: z.ZodOptional>; area: z.ZodOptional>; }, "strip", z.ZodTypeAny, { count?: number | null | undefined; sum?: number | null | undefined; area?: number | null | undefined; }, { count?: number | null | undefined; sum?: number | null | undefined; area?: number | null | undefined; }>; /** Pre-calculated stats by key by class */ export declare const classStatsSchema: z.ZodRecord>; sum: z.ZodOptional>; area: z.ZodOptional>; }, "strip", z.ZodTypeAny, { count?: number | null | undefined; sum?: number | null | undefined; area?: number | null | undefined; }, { count?: number | null | undefined; sum?: number | null | undefined; area?: number | null | undefined; }>>; export declare const baseDatasourceSchema: z.ZodObject<{ /** Unique id of datasource in project */ datasourceId: z.ZodString; /** basic geospatial type */ geo_type: z.ZodEnum<["vector", "raster"]>; /** Available formats */ formats: z.ZodArray, "many">; /** Optional, defines whether or not precalc should be run for this datasource */ precalc: z.ZodBoolean; metadata: z.ZodOptional; /** Publisher-provided version number or ISO 8601 date */ version: z.ZodString; /** Publisher name */ publisher: z.ZodString; /** ISO 8601 publish date */ publishDate: z.ZodString; /** Public URL to access published data */ publishLink: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; version: string; publisher: string; publishDate: string; publishLink: string; description?: string | undefined; }, { name: string; version: string; publisher: string; publishDate: string; publishLink: string; description?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { datasourceId: string; geo_type: "vector" | "raster"; formats: ("fgb" | "json" | "tif" | "subdivided")[]; precalc: boolean; metadata?: { name: string; version: string; publisher: string; publishDate: string; publishLink: string; description?: string | undefined; } | undefined; }, { datasourceId: string; geo_type: "vector" | "raster"; formats: ("fgb" | "json" | "tif" | "subdivided")[]; precalc: boolean; metadata?: { name: string; version: string; publisher: string; publishDate: string; publishLink: string; description?: string | undefined; } | undefined; }>; /** Properties for vector datasource */ export declare const vectorDatasourceSchema: z.ZodObject; /** Available formats */ formats: z.ZodArray, "many">; /** Optional, defines whether or not precalc should be run for this datasource */ precalc: z.ZodBoolean; metadata: z.ZodOptional; /** Publisher-provided version number or ISO 8601 date */ version: z.ZodString; /** Publisher name */ publisher: z.ZodString; /** ISO 8601 publish date */ publishDate: z.ZodString; /** Public URL to access published data */ publishLink: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; version: string; publisher: string; publishDate: string; publishLink: string; description?: string | undefined; }, { name: string; version: string; publisher: string; publishDate: string; publishLink: string; description?: string | undefined; }>>; }, { /** Optional, name of property containing unique ID value for each vector feature */ idProperty: z.ZodOptional; /** Optional, name of property containing name for each vector feature */ nameProperty: z.ZodOptional; /** Optional, constrain datasource features by property having one or more specific values */ propertyFilter: z.ZodOptional, "many">; }, "strip", z.ZodTypeAny, { values: (string | number)[]; property: string; }, { values: (string | number)[]; property: string; }>>; /** Optional, constrain datasource to smaller bbox */ bboxFilter: z.ZodOptional, z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>]>>; /** Import - Name of layer within vector datasource to extract */ layerName: z.ZodOptional; /** properties whose values define classes of data. */ classKeys: z.ZodArray; }>, "strip", z.ZodTypeAny, { datasourceId: string; geo_type: "vector" | "raster"; formats: ("fgb" | "json" | "tif" | "subdivided")[]; precalc: boolean; classKeys: string[]; metadata?: { name: string; version: string; publisher: string; publishDate: string; publishLink: string; description?: string | undefined; } | undefined; idProperty?: string | undefined; nameProperty?: string | undefined; propertyFilter?: { values: (string | number)[]; property: string; } | undefined; bboxFilter?: [number, number, number, number] | [number, number, number, number, number, number] | undefined; layerName?: string | undefined; }, { datasourceId: string; geo_type: "vector" | "raster"; formats: ("fgb" | "json" | "tif" | "subdivided")[]; precalc: boolean; classKeys: string[]; metadata?: { name: string; version: string; publisher: string; publishDate: string; publishLink: string; description?: string | undefined; } | undefined; idProperty?: string | undefined; nameProperty?: string | undefined; propertyFilter?: { values: (string | number)[]; property: string; } | undefined; bboxFilter?: [number, number, number, number] | [number, number, number, number, number, number] | undefined; layerName?: string | undefined; }>; /** Properties for raster datasource */ export declare const rasterDatasourceSchema: z.ZodObject; /** Available formats */ formats: z.ZodArray, "many">; /** Optional, defines whether or not precalc should be run for this datasource */ precalc: z.ZodBoolean; metadata: z.ZodOptional; /** Publisher-provided version number or ISO 8601 date */ version: z.ZodString; /** Publisher name */ publisher: z.ZodString; /** ISO 8601 publish date */ publishDate: z.ZodString; /** Public URL to access published data */ publishLink: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; version: string; publisher: string; publishDate: string; publishLink: string; description?: string | undefined; }, { name: string; version: string; publisher: string; publishDate: string; publishLink: string; description?: string | undefined; }>>; }, { /** Type of measurements that the raster values represent */ measurementType: z.ZodEnum<["quantitative", "categorical"]>; /** Import - band within raster datasource to extract */ band: z.ZodNumber; /** Nodata value */ noDataValue: z.ZodOptional; }>, "strip", z.ZodTypeAny, { datasourceId: string; geo_type: "vector" | "raster"; formats: ("fgb" | "json" | "tif" | "subdivided")[]; precalc: boolean; measurementType: "quantitative" | "categorical"; band: number; metadata?: { name: string; version: string; publisher: string; publishDate: string; publishLink: string; description?: string | undefined; } | undefined; noDataValue?: number | undefined; }, { datasourceId: string; geo_type: "vector" | "raster"; formats: ("fgb" | "json" | "tif" | "subdivided")[]; precalc: boolean; measurementType: "quantitative" | "categorical"; band: number; metadata?: { name: string; version: string; publisher: string; publishDate: string; publishLink: string; description?: string | undefined; } | undefined; noDataValue?: number | undefined; }>; /** Properties for external datasource */ export declare const externalDatasourceSchema: z.ZodObject<{ /** Url if external datasource */ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>; /** Properties for importing an internal datasource */ export declare const internalImportSchema: z.ZodObject<{ /** Import - Path to source data, with filename */ src: z.ZodString; }, "strip", z.ZodTypeAny, { src: string; }, { src: string; }>; /** Timestamp properties to ease syncing with local/published datasource files */ export declare const internalDatasourceSchema: z.ZodObject<{ /** Datasource creation timestamp */ created: z.ZodString; /** Datasource updated timestamp */ lastUpdated: z.ZodString; }, "strip", z.ZodTypeAny, { created: string; lastUpdated: string; }, { created: string; lastUpdated: string; }>; /** Properties for import of internal vector datasources */ export declare const internalVectorImportSchema: z.ZodObject; /** Import - Whether to explode multi-geometries into single e.g. MultiPolygon to Polygon. Defaults to true */ explodeMulti: z.ZodBoolean; }>, "strip", z.ZodTypeAny, { src: string; propertiesToKeep: string[]; explodeMulti: boolean; }, { src: string; propertiesToKeep: string[]; explodeMulti: boolean; }>; export declare const internalVectorDatasourceSchema: z.ZodObject; /** Available formats */ formats: z.ZodArray, "many">; /** Optional, defines whether or not precalc should be run for this datasource */ precalc: z.ZodBoolean; metadata: z.ZodOptional; /** Publisher-provided version number or ISO 8601 date */ version: z.ZodString; /** Publisher name */ publisher: z.ZodString; /** ISO 8601 publish date */ publishDate: z.ZodString; /** Public URL to access published data */ publishLink: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; version: string; publisher: string; publishDate: string; publishLink: string; description?: string | undefined; }, { name: string; version: string; publisher: string; publishDate: string; publishLink: string; description?: string | undefined; }>>; }, { /** Optional, name of property containing unique ID value for each vector feature */ idProperty: z.ZodOptional; /** Optional, name of property containing name for each vector feature */ nameProperty: z.ZodOptional; /** Optional, constrain datasource features by property having one or more specific values */ propertyFilter: z.ZodOptional, "many">; }, "strip", z.ZodTypeAny, { values: (string | number)[]; property: string; }, { values: (string | number)[]; property: string; }>>; /** Optional, constrain datasource to smaller bbox */ bboxFilter: z.ZodOptional, z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>]>>; /** Import - Name of layer within vector datasource to extract */ layerName: z.ZodOptional; /** properties whose values define classes of data. */ classKeys: z.ZodArray; }>, { /** Datasource creation timestamp */ created: z.ZodString; /** Datasource updated timestamp */ lastUpdated: z.ZodString; }>, z.objectUtil.extendShape<{ /** Import - Path to source data, with filename */ src: z.ZodString; }, { /** Import - What to keep in final dataset. Vector - properties, all else removed */ propertiesToKeep: z.ZodArray; /** Import - Whether to explode multi-geometries into single e.g. MultiPolygon to Polygon. Defaults to true */ explodeMulti: z.ZodBoolean; }>>, "strip", z.ZodTypeAny, { datasourceId: string; geo_type: "vector" | "raster"; formats: ("fgb" | "json" | "tif" | "subdivided")[]; precalc: boolean; classKeys: string[]; src: string; created: string; lastUpdated: string; propertiesToKeep: string[]; explodeMulti: boolean; metadata?: { name: string; version: string; publisher: string; publishDate: string; publishLink: string; description?: string | undefined; } | undefined; idProperty?: string | undefined; nameProperty?: string | undefined; propertyFilter?: { values: (string | number)[]; property: string; } | undefined; bboxFilter?: [number, number, number, number] | [number, number, number, number, number, number] | undefined; layerName?: string | undefined; }, { datasourceId: string; geo_type: "vector" | "raster"; formats: ("fgb" | "json" | "tif" | "subdivided")[]; precalc: boolean; classKeys: string[]; src: string; created: string; lastUpdated: string; propertiesToKeep: string[]; explodeMulti: boolean; metadata?: { name: string; version: string; publisher: string; publishDate: string; publishLink: string; description?: string | undefined; } | undefined; idProperty?: string | undefined; nameProperty?: string | undefined; propertyFilter?: { values: (string | number)[]; property: string; } | undefined; bboxFilter?: [number, number, number, number] | [number, number, number, number, number, number] | undefined; layerName?: string | undefined; }>; export declare const externalVectorDatasourceSchema: z.ZodIntersection; /** Available formats */ formats: z.ZodArray, "many">; /** Optional, defines whether or not precalc should be run for this datasource */ precalc: z.ZodBoolean; metadata: z.ZodOptional; /** Publisher-provided version number or ISO 8601 date */ version: z.ZodString; /** Publisher name */ publisher: z.ZodString; /** ISO 8601 publish date */ publishDate: z.ZodString; /** Public URL to access published data */ publishLink: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; version: string; publisher: string; publishDate: string; publishLink: string; description?: string | undefined; }, { name: string; version: string; publisher: string; publishDate: string; publishLink: string; description?: string | undefined; }>>; }, { /** Optional, name of property containing unique ID value for each vector feature */ idProperty: z.ZodOptional; /** Optional, name of property containing name for each vector feature */ nameProperty: z.ZodOptional; /** Optional, constrain datasource features by property having one or more specific values */ propertyFilter: z.ZodOptional, "many">; }, "strip", z.ZodTypeAny, { values: (string | number)[]; property: string; }, { values: (string | number)[]; property: string; }>>; /** Optional, constrain datasource to smaller bbox */ bboxFilter: z.ZodOptional, z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>]>>; /** Import - Name of layer within vector datasource to extract */ layerName: z.ZodOptional; /** properties whose values define classes of data. */ classKeys: z.ZodArray; }>, "strip", z.ZodTypeAny, { datasourceId: string; geo_type: "vector" | "raster"; formats: ("fgb" | "json" | "tif" | "subdivided")[]; precalc: boolean; classKeys: string[]; metadata?: { name: string; version: string; publisher: string; publishDate: string; publishLink: string; description?: string | undefined; } | undefined; idProperty?: string | undefined; nameProperty?: string | undefined; propertyFilter?: { values: (string | number)[]; property: string; } | undefined; bboxFilter?: [number, number, number, number] | [number, number, number, number, number, number] | undefined; layerName?: string | undefined; }, { datasourceId: string; geo_type: "vector" | "raster"; formats: ("fgb" | "json" | "tif" | "subdivided")[]; precalc: boolean; classKeys: string[]; metadata?: { name: string; version: string; publisher: string; publishDate: string; publishLink: string; description?: string | undefined; } | undefined; idProperty?: string | undefined; nameProperty?: string | undefined; propertyFilter?: { values: (string | number)[]; property: string; } | undefined; bboxFilter?: [number, number, number, number] | [number, number, number, number, number, number] | undefined; layerName?: string | undefined; }>, z.ZodObject<{ /** Url if external datasource */ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>; export declare const internalRasterDatasourceSchema: z.ZodObject; /** Available formats */ formats: z.ZodArray, "many">; /** Optional, defines whether or not precalc should be run for this datasource */ precalc: z.ZodBoolean; metadata: z.ZodOptional; /** Publisher-provided version number or ISO 8601 date */ version: z.ZodString; /** Publisher name */ publisher: z.ZodString; /** ISO 8601 publish date */ publishDate: z.ZodString; /** Public URL to access published data */ publishLink: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; version: string; publisher: string; publishDate: string; publishLink: string; description?: string | undefined; }, { name: string; version: string; publisher: string; publishDate: string; publishLink: string; description?: string | undefined; }>>; }, { /** Type of measurements that the raster values represent */ measurementType: z.ZodEnum<["quantitative", "categorical"]>; /** Import - band within raster datasource to extract */ band: z.ZodNumber; /** Nodata value */ noDataValue: z.ZodOptional; }>, { /** Datasource creation timestamp */ created: z.ZodString; /** Datasource updated timestamp */ lastUpdated: z.ZodString; }>, { /** Import - Path to source data, with filename */ src: z.ZodString; }>, "strip", z.ZodTypeAny, { datasourceId: string; geo_type: "vector" | "raster"; formats: ("fgb" | "json" | "tif" | "subdivided")[]; precalc: boolean; measurementType: "quantitative" | "categorical"; band: number; src: string; created: string; lastUpdated: string; metadata?: { name: string; version: string; publisher: string; publishDate: string; publishLink: string; description?: string | undefined; } | undefined; noDataValue?: number | undefined; }, { datasourceId: string; geo_type: "vector" | "raster"; formats: ("fgb" | "json" | "tif" | "subdivided")[]; precalc: boolean; measurementType: "quantitative" | "categorical"; band: number; src: string; created: string; lastUpdated: string; metadata?: { name: string; version: string; publisher: string; publishDate: string; publishLink: string; description?: string | undefined; } | undefined; noDataValue?: number | undefined; }>; export declare const externalRasterDatasourceSchema: z.ZodIntersection; /** Available formats */ formats: z.ZodArray, "many">; /** Optional, defines whether or not precalc should be run for this datasource */ precalc: z.ZodBoolean; metadata: z.ZodOptional; /** Publisher-provided version number or ISO 8601 date */ version: z.ZodString; /** Publisher name */ publisher: z.ZodString; /** ISO 8601 publish date */ publishDate: z.ZodString; /** Public URL to access published data */ publishLink: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; version: string; publisher: string; publishDate: string; publishLink: string; description?: string | undefined; }, { name: string; version: string; publisher: string; publishDate: string; publishLink: string; description?: string | undefined; }>>; }, { /** Type of measurements that the raster values represent */ measurementType: z.ZodEnum<["quantitative", "categorical"]>; /** Import - band within raster datasource to extract */ band: z.ZodNumber; /** Nodata value */ noDataValue: z.ZodOptional; }>, "strip", z.ZodTypeAny, { datasourceId: string; geo_type: "vector" | "raster"; formats: ("fgb" | "json" | "tif" | "subdivided")[]; precalc: boolean; measurementType: "quantitative" | "categorical"; band: number; metadata?: { name: string; version: string; publisher: string; publishDate: string; publishLink: string; description?: string | undefined; } | undefined; noDataValue?: number | undefined; }, { datasourceId: string; geo_type: "vector" | "raster"; formats: ("fgb" | "json" | "tif" | "subdivided")[]; precalc: boolean; measurementType: "quantitative" | "categorical"; band: number; metadata?: { name: string; version: string; publisher: string; publishDate: string; publishLink: string; description?: string | undefined; } | undefined; noDataValue?: number | undefined; }>, z.ZodObject<{ /** Url if external datasource */ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>; export declare const datasourceSchema: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodObject; /** Available formats */ formats: z.ZodArray, "many">; /** Optional, defines whether or not precalc should be run for this datasource */ precalc: z.ZodBoolean; metadata: z.ZodOptional; /** Publisher-provided version number or ISO 8601 date */ version: z.ZodString; /** Publisher name */ publisher: z.ZodString; /** ISO 8601 publish date */ publishDate: z.ZodString; /** Public URL to access published data */ publishLink: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; version: string; publisher: string; publishDate: string; publishLink: string; description?: string | undefined; }, { name: string; version: string; publisher: string; publishDate: string; publishLink: string; description?: string | undefined; }>>; }, { /** Optional, name of property containing unique ID value for each vector feature */ idProperty: z.ZodOptional; /** Optional, name of property containing name for each vector feature */ nameProperty: z.ZodOptional; /** Optional, constrain datasource features by property having one or more specific values */ propertyFilter: z.ZodOptional, "many">; }, "strip", z.ZodTypeAny, { values: (string | number)[]; property: string; }, { values: (string | number)[]; property: string; }>>; /** Optional, constrain datasource to smaller bbox */ bboxFilter: z.ZodOptional, z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>]>>; /** Import - Name of layer within vector datasource to extract */ layerName: z.ZodOptional; /** properties whose values define classes of data. */ classKeys: z.ZodArray; }>, { /** Datasource creation timestamp */ created: z.ZodString; /** Datasource updated timestamp */ lastUpdated: z.ZodString; }>, z.objectUtil.extendShape<{ /** Import - Path to source data, with filename */ src: z.ZodString; }, { /** Import - What to keep in final dataset. Vector - properties, all else removed */ propertiesToKeep: z.ZodArray; /** Import - Whether to explode multi-geometries into single e.g. MultiPolygon to Polygon. Defaults to true */ explodeMulti: z.ZodBoolean; }>>, "strip", z.ZodTypeAny, { datasourceId: string; geo_type: "vector" | "raster"; formats: ("fgb" | "json" | "tif" | "subdivided")[]; precalc: boolean; classKeys: string[]; src: string; created: string; lastUpdated: string; propertiesToKeep: string[]; explodeMulti: boolean; metadata?: { name: string; version: string; publisher: string; publishDate: string; publishLink: string; description?: string | undefined; } | undefined; idProperty?: string | undefined; nameProperty?: string | undefined; propertyFilter?: { values: (string | number)[]; property: string; } | undefined; bboxFilter?: [number, number, number, number] | [number, number, number, number, number, number] | undefined; layerName?: string | undefined; }, { datasourceId: string; geo_type: "vector" | "raster"; formats: ("fgb" | "json" | "tif" | "subdivided")[]; precalc: boolean; classKeys: string[]; src: string; created: string; lastUpdated: string; propertiesToKeep: string[]; explodeMulti: boolean; metadata?: { name: string; version: string; publisher: string; publishDate: string; publishLink: string; description?: string | undefined; } | undefined; idProperty?: string | undefined; nameProperty?: string | undefined; propertyFilter?: { values: (string | number)[]; property: string; } | undefined; bboxFilter?: [number, number, number, number] | [number, number, number, number, number, number] | undefined; layerName?: string | undefined; }>, z.ZodIntersection; /** Available formats */ formats: z.ZodArray, "many">; /** Optional, defines whether or not precalc should be run for this datasource */ precalc: z.ZodBoolean; metadata: z.ZodOptional; /** Publisher-provided version number or ISO 8601 date */ version: z.ZodString; /** Publisher name */ publisher: z.ZodString; /** ISO 8601 publish date */ publishDate: z.ZodString; /** Public URL to access published data */ publishLink: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; version: string; publisher: string; publishDate: string; publishLink: string; description?: string | undefined; }, { name: string; version: string; publisher: string; publishDate: string; publishLink: string; description?: string | undefined; }>>; }, { /** Optional, name of property containing unique ID value for each vector feature */ idProperty: z.ZodOptional; /** Optional, name of property containing name for each vector feature */ nameProperty: z.ZodOptional; /** Optional, constrain datasource features by property having one or more specific values */ propertyFilter: z.ZodOptional, "many">; }, "strip", z.ZodTypeAny, { values: (string | number)[]; property: string; }, { values: (string | number)[]; property: string; }>>; /** Optional, constrain datasource to smaller bbox */ bboxFilter: z.ZodOptional, z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>]>>; /** Import - Name of layer within vector datasource to extract */ layerName: z.ZodOptional; /** properties whose values define classes of data. */ classKeys: z.ZodArray; }>, "strip", z.ZodTypeAny, { datasourceId: string; geo_type: "vector" | "raster"; formats: ("fgb" | "json" | "tif" | "subdivided")[]; precalc: boolean; classKeys: string[]; metadata?: { name: string; version: string; publisher: string; publishDate: string; publishLink: string; description?: string | undefined; } | undefined; idProperty?: string | undefined; nameProperty?: string | undefined; propertyFilter?: { values: (string | number)[]; property: string; } | undefined; bboxFilter?: [number, number, number, number] | [number, number, number, number, number, number] | undefined; layerName?: string | undefined; }, { datasourceId: string; geo_type: "vector" | "raster"; formats: ("fgb" | "json" | "tif" | "subdivided")[]; precalc: boolean; classKeys: string[]; metadata?: { name: string; version: string; publisher: string; publishDate: string; publishLink: string; description?: string | undefined; } | undefined; idProperty?: string | undefined; nameProperty?: string | undefined; propertyFilter?: { values: (string | number)[]; property: string; } | undefined; bboxFilter?: [number, number, number, number] | [number, number, number, number, number, number] | undefined; layerName?: string | undefined; }>, z.ZodObject<{ /** Url if external datasource */ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>]>, z.ZodObject; /** Available formats */ formats: z.ZodArray, "many">; /** Optional, defines whether or not precalc should be run for this datasource */ precalc: z.ZodBoolean; metadata: z.ZodOptional; /** Publisher-provided version number or ISO 8601 date */ version: z.ZodString; /** Publisher name */ publisher: z.ZodString; /** ISO 8601 publish date */ publishDate: z.ZodString; /** Public URL to access published data */ publishLink: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; version: string; publisher: string; publishDate: string; publishLink: string; description?: string | undefined; }, { name: string; version: string; publisher: string; publishDate: string; publishLink: string; description?: string | undefined; }>>; }, { /** Type of measurements that the raster values represent */ measurementType: z.ZodEnum<["quantitative", "categorical"]>; /** Import - band within raster datasource to extract */ band: z.ZodNumber; /** Nodata value */ noDataValue: z.ZodOptional; }>, { /** Datasource creation timestamp */ created: z.ZodString; /** Datasource updated timestamp */ lastUpdated: z.ZodString; }>, { /** Import - Path to source data, with filename */ src: z.ZodString; }>, "strip", z.ZodTypeAny, { datasourceId: string; geo_type: "vector" | "raster"; formats: ("fgb" | "json" | "tif" | "subdivided")[]; precalc: boolean; measurementType: "quantitative" | "categorical"; band: number; src: string; created: string; lastUpdated: string; metadata?: { name: string; version: string; publisher: string; publishDate: string; publishLink: string; description?: string | undefined; } | undefined; noDataValue?: number | undefined; }, { datasourceId: string; geo_type: "vector" | "raster"; formats: ("fgb" | "json" | "tif" | "subdivided")[]; precalc: boolean; measurementType: "quantitative" | "categorical"; band: number; src: string; created: string; lastUpdated: string; metadata?: { name: string; version: string; publisher: string; publishDate: string; publishLink: string; description?: string | undefined; } | undefined; noDataValue?: number | undefined; }>]>, z.ZodIntersection; /** Available formats */ formats: z.ZodArray, "many">; /** Optional, defines whether or not precalc should be run for this datasource */ precalc: z.ZodBoolean; metadata: z.ZodOptional; /** Publisher-provided version number or ISO 8601 date */ version: z.ZodString; /** Publisher name */ publisher: z.ZodString; /** ISO 8601 publish date */ publishDate: z.ZodString; /** Public URL to access published data */ publishLink: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; version: string; publisher: string; publishDate: string; publishLink: string; description?: string | undefined; }, { name: string; version: string; publisher: string; publishDate: string; publishLink: string; description?: string | undefined; }>>; }, { /** Type of measurements that the raster values represent */ measurementType: z.ZodEnum<["quantitative", "categorical"]>; /** Import - band within raster datasource to extract */ band: z.ZodNumber; /** Nodata value */ noDataValue: z.ZodOptional; }>, "strip", z.ZodTypeAny, { datasourceId: string; geo_type: "vector" | "raster"; formats: ("fgb" | "json" | "tif" | "subdivided")[]; precalc: boolean; measurementType: "quantitative" | "categorical"; band: number; metadata?: { name: string; version: string; publisher: string; publishDate: string; publishLink: string; description?: string | undefined; } | undefined; noDataValue?: number | undefined; }, { datasourceId: string; geo_type: "vector" | "raster"; formats: ("fgb" | "json" | "tif" | "subdivided")[]; precalc: boolean; measurementType: "quantitative" | "categorical"; band: number; metadata?: { name: string; version: string; publisher: string; publishDate: string; publishLink: string; description?: string | undefined; } | undefined; noDataValue?: number | undefined; }>, z.ZodObject<{ /** Url if external datasource */ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>]>; export declare const datasourcesSchema: z.ZodArray; /** Available formats */ formats: z.ZodArray, "many">; /** Optional, defines whether or not precalc should be run for this datasource */ precalc: z.ZodBoolean; metadata: z.ZodOptional; /** Publisher-provided version number or ISO 8601 date */ version: z.ZodString; /** Publisher name */ publisher: z.ZodString; /** ISO 8601 publish date */ publishDate: z.ZodString; /** Public URL to access published data */ publishLink: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; version: string; publisher: string; publishDate: string; publishLink: string; description?: string | undefined; }, { name: string; version: string; publisher: string; publishDate: string; publishLink: string; description?: string | undefined; }>>; }, { /** Optional, name of property containing unique ID value for each vector feature */ idProperty: z.ZodOptional; /** Optional, name of property containing name for each vector feature */ nameProperty: z.ZodOptional; /** Optional, constrain datasource features by property having one or more specific values */ propertyFilter: z.ZodOptional, "many">; }, "strip", z.ZodTypeAny, { values: (string | number)[]; property: string; }, { values: (string | number)[]; property: string; }>>; /** Optional, constrain datasource to smaller bbox */ bboxFilter: z.ZodOptional, z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>]>>; /** Import - Name of layer within vector datasource to extract */ layerName: z.ZodOptional; /** properties whose values define classes of data. */ classKeys: z.ZodArray; }>, { /** Datasource creation timestamp */ created: z.ZodString; /** Datasource updated timestamp */ lastUpdated: z.ZodString; }>, z.objectUtil.extendShape<{ /** Import - Path to source data, with filename */ src: z.ZodString; }, { /** Import - What to keep in final dataset. Vector - properties, all else removed */ propertiesToKeep: z.ZodArray; /** Import - Whether to explode multi-geometries into single e.g. MultiPolygon to Polygon. Defaults to true */ explodeMulti: z.ZodBoolean; }>>, "strip", z.ZodTypeAny, { datasourceId: string; geo_type: "vector" | "raster"; formats: ("fgb" | "json" | "tif" | "subdivided")[]; precalc: boolean; classKeys: string[]; src: string; created: string; lastUpdated: string; propertiesToKeep: string[]; explodeMulti: boolean; metadata?: { name: string; version: string; publisher: string; publishDate: string; publishLink: string; description?: string | undefined; } | undefined; idProperty?: string | undefined; nameProperty?: string | undefined; propertyFilter?: { values: (string | number)[]; property: string; } | undefined; bboxFilter?: [number, number, number, number] | [number, number, number, number, number, number] | undefined; layerName?: string | undefined; }, { datasourceId: string; geo_type: "vector" | "raster"; formats: ("fgb" | "json" | "tif" | "subdivided")[]; precalc: boolean; classKeys: string[]; src: string; created: string; lastUpdated: string; propertiesToKeep: string[]; explodeMulti: boolean; metadata?: { name: string; version: string; publisher: string; publishDate: string; publishLink: string; description?: string | undefined; } | undefined; idProperty?: string | undefined; nameProperty?: string | undefined; propertyFilter?: { values: (string | number)[]; property: string; } | undefined; bboxFilter?: [number, number, number, number] | [number, number, number, number, number, number] | undefined; layerName?: string | undefined; }>, z.ZodIntersection; /** Available formats */ formats: z.ZodArray, "many">; /** Optional, defines whether or not precalc should be run for this datasource */ precalc: z.ZodBoolean; metadata: z.ZodOptional; /** Publisher-provided version number or ISO 8601 date */ version: z.ZodString; /** Publisher name */ publisher: z.ZodString; /** ISO 8601 publish date */ publishDate: z.ZodString; /** Public URL to access published data */ publishLink: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; version: string; publisher: string; publishDate: string; publishLink: string; description?: string | undefined; }, { name: string; version: string; publisher: string; publishDate: string; publishLink: string; description?: string | undefined; }>>; }, { /** Optional, name of property containing unique ID value for each vector feature */ idProperty: z.ZodOptional; /** Optional, name of property containing name for each vector feature */ nameProperty: z.ZodOptional; /** Optional, constrain datasource features by property having one or more specific values */ propertyFilter: z.ZodOptional, "many">; }, "strip", z.ZodTypeAny, { values: (string | number)[]; property: string; }, { values: (string | number)[]; property: string; }>>; /** Optional, constrain datasource to smaller bbox */ bboxFilter: z.ZodOptional, z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>]>>; /** Import - Name of layer within vector datasource to extract */ layerName: z.ZodOptional; /** properties whose values define classes of data. */ classKeys: z.ZodArray; }>, "strip", z.ZodTypeAny, { datasourceId: string; geo_type: "vector" | "raster"; formats: ("fgb" | "json" | "tif" | "subdivided")[]; precalc: boolean; classKeys: string[]; metadata?: { name: string; version: string; publisher: string; publishDate: string; publishLink: string; description?: string | undefined; } | undefined; idProperty?: string | undefined; nameProperty?: string | undefined; propertyFilter?: { values: (string | number)[]; property: string; } | undefined; bboxFilter?: [number, number, number, number] | [number, number, number, number, number, number] | undefined; layerName?: string | undefined; }, { datasourceId: string; geo_type: "vector" | "raster"; formats: ("fgb" | "json" | "tif" | "subdivided")[]; precalc: boolean; classKeys: string[]; metadata?: { name: string; version: string; publisher: string; publishDate: string; publishLink: string; description?: string | undefined; } | undefined; idProperty?: string | undefined; nameProperty?: string | undefined; propertyFilter?: { values: (string | number)[]; property: string; } | undefined; bboxFilter?: [number, number, number, number] | [number, number, number, number, number, number] | undefined; layerName?: string | undefined; }>, z.ZodObject<{ /** Url if external datasource */ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>]>, z.ZodObject; /** Available formats */ formats: z.ZodArray, "many">; /** Optional, defines whether or not precalc should be run for this datasource */ precalc: z.ZodBoolean; metadata: z.ZodOptional; /** Publisher-provided version number or ISO 8601 date */ version: z.ZodString; /** Publisher name */ publisher: z.ZodString; /** ISO 8601 publish date */ publishDate: z.ZodString; /** Public URL to access published data */ publishLink: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; version: string; publisher: string; publishDate: string; publishLink: string; description?: string | undefined; }, { name: string; version: string; publisher: string; publishDate: string; publishLink: string; description?: string | undefined; }>>; }, { /** Type of measurements that the raster values represent */ measurementType: z.ZodEnum<["quantitative", "categorical"]>; /** Import - band within raster datasource to extract */ band: z.ZodNumber; /** Nodata value */ noDataValue: z.ZodOptional; }>, { /** Datasource creation timestamp */ created: z.ZodString; /** Datasource updated timestamp */ lastUpdated: z.ZodString; }>, { /** Import - Path to source data, with filename */ src: z.ZodString; }>, "strip", z.ZodTypeAny, { datasourceId: string; geo_type: "vector" | "raster"; formats: ("fgb" | "json" | "tif" | "subdivided")[]; precalc: boolean; measurementType: "quantitative" | "categorical"; band: number; src: string; created: string; lastUpdated: string; metadata?: { name: string; version: string; publisher: string; publishDate: string; publishLink: string; description?: string | undefined; } | undefined; noDataValue?: number | undefined; }, { datasourceId: string; geo_type: "vector" | "raster"; formats: ("fgb" | "json" | "tif" | "subdivided")[]; precalc: boolean; measurementType: "quantitative" | "categorical"; band: number; src: string; created: string; lastUpdated: string; metadata?: { name: string; version: string; publisher: string; publishDate: string; publishLink: string; description?: string | undefined; } | undefined; noDataValue?: number | undefined; }>]>, z.ZodIntersection; /** Available formats */ formats: z.ZodArray, "many">; /** Optional, defines whether or not precalc should be run for this datasource */ precalc: z.ZodBoolean; metadata: z.ZodOptional; /** Publisher-provided version number or ISO 8601 date */ version: z.ZodString; /** Publisher name */ publisher: z.ZodString; /** ISO 8601 publish date */ publishDate: z.ZodString; /** Public URL to access published data */ publishLink: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; version: string; publisher: string; publishDate: string; publishLink: string; description?: string | undefined; }, { name: string; version: string; publisher: string; publishDate: string; publishLink: string; description?: string | undefined; }>>; }, { /** Type of measurements that the raster values represent */ measurementType: z.ZodEnum<["quantitative", "categorical"]>; /** Import - band within raster datasource to extract */ band: z.ZodNumber; /** Nodata value */ noDataValue: z.ZodOptional; }>, "strip", z.ZodTypeAny, { datasourceId: string; geo_type: "vector" | "raster"; formats: ("fgb" | "json" | "tif" | "subdivided")[]; precalc: boolean; measurementType: "quantitative" | "categorical"; band: number; metadata?: { name: string; version: string; publisher: string; publishDate: string; publishLink: string; description?: string | undefined; } | undefined; noDataValue?: number | undefined; }, { datasourceId: string; geo_type: "vector" | "raster"; formats: ("fgb" | "json" | "tif" | "subdivided")[]; precalc: boolean; measurementType: "quantitative" | "categorical"; band: number; metadata?: { name: string; version: string; publisher: string; publishDate: string; publishLink: string; description?: string | undefined; } | undefined; noDataValue?: number | undefined; }>, z.ZodObject<{ /** Url if external datasource */ url: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; }, { url: string; }>>]>, "many">; export type GeoTypes = z.infer; export type SupportedFormats = z.infer; export type Stats = z.infer; export type ClassStats = z.infer; export type BaseDatasource = z.infer; export type VectorDatasource = z.infer; export type InternalVectorDatasource = z.infer; export type RasterDatasource = z.infer; export type InternalRasterDatasource = z.infer; export type ExternalVectorDatasource = z.infer; export type ExternalRasterDatasource = z.infer; export type Datasource = z.infer; export declare const importVectorDatasourceOptionsSchema: z.ZodObject; /** Available formats */ formats: z.ZodArray, "many">; /** Optional, defines whether or not precalc should be run for this datasource */ precalc: z.ZodBoolean; metadata: z.ZodOptional; /** Publisher-provided version number or ISO 8601 date */ version: z.ZodString; /** Publisher name */ publisher: z.ZodString; /** ISO 8601 publish date */ publishDate: z.ZodString; /** Public URL to access published data */ publishLink: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; version: string; publisher: string; publishDate: string; publishLink: string; description?: string | undefined; }, { name: string; version: string; publisher: string; publishDate: string; publishLink: string; description?: string | undefined; }>>; }, { /** Optional, name of property containing unique ID value for each vector feature */ idProperty: z.ZodOptional; /** Optional, name of property containing name for each vector feature */ nameProperty: z.ZodOptional; /** Optional, constrain datasource features by property having one or more specific values */ propertyFilter: z.ZodOptional, "many">; }, "strip", z.ZodTypeAny, { values: (string | number)[]; property: string; }, { values: (string | number)[]; property: string; }>>; /** Optional, constrain datasource to smaller bbox */ bboxFilter: z.ZodOptional, z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>]>>; /** Import - Name of layer within vector datasource to extract */ layerName: z.ZodOptional; /** properties whose values define classes of data. */ classKeys: z.ZodArray; }>, z.objectUtil.extendShape<{ /** Import - Path to source data, with filename */ src: z.ZodString; }, { /** Import - What to keep in final dataset. Vector - properties, all else removed */ propertiesToKeep: z.ZodArray; /** Import - Whether to explode multi-geometries into single e.g. MultiPolygon to Polygon. Defaults to true */ explodeMulti: z.ZodBoolean; }>>, "strip", z.ZodTypeAny, { datasourceId: string; geo_type: "vector" | "raster"; formats: ("fgb" | "json" | "tif" | "subdivided")[]; precalc: boolean; classKeys: string[]; src: string; propertiesToKeep: string[]; explodeMulti: boolean; metadata?: { name: string; version: string; publisher: string; publishDate: string; publishLink: string; description?: string | undefined; } | undefined; idProperty?: string | undefined; nameProperty?: string | undefined; propertyFilter?: { values: (string | number)[]; property: string; } | undefined; bboxFilter?: [number, number, number, number] | [number, number, number, number, number, number] | undefined; layerName?: string | undefined; }, { datasourceId: string; geo_type: "vector" | "raster"; formats: ("fgb" | "json" | "tif" | "subdivided")[]; precalc: boolean; classKeys: string[]; src: string; propertiesToKeep: string[]; explodeMulti: boolean; metadata?: { name: string; version: string; publisher: string; publishDate: string; publishLink: string; description?: string | undefined; } | undefined; idProperty?: string | undefined; nameProperty?: string | undefined; propertyFilter?: { values: (string | number)[]; property: string; } | undefined; bboxFilter?: [number, number, number, number] | [number, number, number, number, number, number] | undefined; layerName?: string | undefined; }>; export declare const importRasterDatasourceOptionsSchema: z.ZodObject; /** Available formats */ formats: z.ZodArray, "many">; /** Optional, defines whether or not precalc should be run for this datasource */ precalc: z.ZodBoolean; metadata: z.ZodOptional; /** Publisher-provided version number or ISO 8601 date */ version: z.ZodString; /** Publisher name */ publisher: z.ZodString; /** ISO 8601 publish date */ publishDate: z.ZodString; /** Public URL to access published data */ publishLink: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; version: string; publisher: string; publishDate: string; publishLink: string; description?: string | undefined; }, { name: string; version: string; publisher: string; publishDate: string; publishLink: string; description?: string | undefined; }>>; }, { /** Type of measurements that the raster values represent */ measurementType: z.ZodEnum<["quantitative", "categorical"]>; /** Import - band within raster datasource to extract */ band: z.ZodNumber; /** Nodata value */ noDataValue: z.ZodOptional; }>, { /** Import - Path to source data, with filename */ src: z.ZodString; }>, "strip", z.ZodTypeAny, { datasourceId: string; geo_type: "vector" | "raster"; formats: ("fgb" | "json" | "tif" | "subdivided")[]; precalc: boolean; measurementType: "quantitative" | "categorical"; band: number; src: string; metadata?: { name: string; version: string; publisher: string; publishDate: string; publishLink: string; description?: string | undefined; } | undefined; noDataValue?: number | undefined; }, { datasourceId: string; geo_type: "vector" | "raster"; formats: ("fgb" | "json" | "tif" | "subdivided")[]; precalc: boolean; measurementType: "quantitative" | "categorical"; band: number; src: string; metadata?: { name: string; version: string; publisher: string; publishDate: string; publishLink: string; description?: string | undefined; } | undefined; noDataValue?: number | undefined; }>; export type ImportVectorDatasourceOptions = z.infer; export type ImportRasterDatasourceOptions = z.infer; export interface BaseImportDatasourceConfig { /** Path to store imported datasets after transformation, ready to be published or accessed via local web server for tests */ dstPath: string; /** project package metadata */ package: Package; /** geoprocessing metadata */ gp: GeoprocessingJsonConfig; } /** Full configuration needed to import a dataset */ export type ImportVectorDatasourceConfig = ImportVectorDatasourceOptions & BaseImportDatasourceConfig; export type ImportRasterDatasourceConfig = ImportRasterDatasourceOptions & BaseImportDatasourceConfig;