@ignfab/geocontext 0.9.5 → 0.9.7
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/README.md +349 -259
- package/dist/gpf/adminexpress.d.ts +17 -8
- package/dist/gpf/adminexpress.js +40 -17
- package/dist/gpf/adminexpress.js.map +1 -1
- package/dist/gpf/altitude.d.ts +21 -9
- package/dist/gpf/altitude.js +5 -5
- package/dist/gpf/altitude.js.map +1 -1
- package/dist/gpf/geocode.d.ts +25 -4
- package/dist/gpf/geocode.js +5 -5
- package/dist/gpf/geocode.js.map +1 -1
- package/dist/gpf/parcellaire-express.d.ts +19 -9
- package/dist/gpf/parcellaire-express.js +59 -26
- package/dist/gpf/parcellaire-express.js.map +1 -1
- package/dist/gpf/urbanisme.d.ts +24 -16
- package/dist/gpf/urbanisme.js +81 -33
- package/dist/gpf/urbanisme.js.map +1 -1
- package/dist/gpf/{wfs.js → wfs-schema-catalog.js} +1 -1
- package/dist/gpf/wfs-schema-catalog.js.map +1 -0
- package/dist/helpers/RateLimiter.d.ts +44 -0
- package/dist/helpers/RateLimiter.js +52 -0
- package/dist/helpers/RateLimiter.js.map +1 -0
- package/dist/helpers/distance.d.ts +2 -1
- package/dist/helpers/distance.js +2 -1
- package/dist/helpers/distance.js.map +1 -1
- package/dist/helpers/errors/toolError.d.ts +30 -0
- package/dist/helpers/errors/toolError.js +193 -0
- package/dist/helpers/errors/toolError.js.map +1 -0
- package/dist/helpers/errors/zodErrorMapFr.d.ts +20 -0
- package/dist/helpers/errors/zodErrorMapFr.js +191 -0
- package/dist/helpers/errors/zodErrorMapFr.js.map +1 -0
- package/dist/helpers/http.d.ts +67 -7
- package/dist/helpers/http.js +458 -84
- package/dist/helpers/http.js.map +1 -1
- package/dist/helpers/jsonSchema.d.ts +20 -2
- package/dist/helpers/jsonSchema.js +12 -0
- package/dist/helpers/jsonSchema.js.map +1 -1
- package/dist/helpers/schemas.d.ts +4 -4
- package/dist/helpers/wfs_engine/attributeFilter.d.ts +51 -0
- package/dist/helpers/wfs_engine/attributeFilter.js +258 -0
- package/dist/helpers/wfs_engine/attributeFilter.js.map +1 -0
- package/dist/helpers/wfs_engine/byId.d.ts +76 -0
- package/dist/helpers/wfs_engine/byId.js +106 -0
- package/dist/helpers/wfs_engine/byId.js.map +1 -0
- package/dist/helpers/wfs_engine/execution.d.ts +72 -0
- package/dist/helpers/wfs_engine/execution.js +95 -0
- package/dist/helpers/wfs_engine/execution.js.map +1 -0
- package/dist/helpers/wfs_engine/features.d.ts +64 -0
- package/dist/helpers/wfs_engine/features.js +138 -0
- package/dist/helpers/wfs_engine/features.js.map +1 -0
- package/dist/helpers/wfs_engine/geometry.d.ts +16 -0
- package/dist/helpers/wfs_engine/geometry.js +44 -0
- package/dist/helpers/wfs_engine/geometry.js.map +1 -0
- package/dist/helpers/wfs_engine/properties.d.ts +51 -0
- package/dist/helpers/wfs_engine/properties.js +128 -0
- package/dist/helpers/wfs_engine/properties.js.map +1 -0
- package/dist/helpers/wfs_engine/queryPreparation.d.ts +32 -0
- package/dist/helpers/wfs_engine/queryPreparation.js +149 -0
- package/dist/helpers/wfs_engine/queryPreparation.js.map +1 -0
- package/dist/helpers/wfs_engine/request.d.ts +94 -0
- package/dist/helpers/wfs_engine/request.js +197 -0
- package/dist/helpers/wfs_engine/request.js.map +1 -0
- package/dist/helpers/wfs_engine/response.d.ts +80 -0
- package/dist/helpers/wfs_engine/response.js +135 -0
- package/dist/helpers/wfs_engine/response.js.map +1 -0
- package/dist/helpers/wfs_engine/schema.d.ts +209 -0
- package/dist/helpers/{wfs_internal → wfs_engine}/schema.js +50 -10
- package/dist/helpers/wfs_engine/schema.js.map +1 -0
- package/dist/helpers/wfs_engine/spatialCql.d.ts +46 -0
- package/dist/helpers/wfs_engine/spatialCql.js +54 -0
- package/dist/helpers/wfs_engine/spatialCql.js.map +1 -0
- package/dist/helpers/wfs_engine/spatialFilter.d.ts +14 -0
- package/dist/helpers/wfs_engine/spatialFilter.js +131 -0
- package/dist/helpers/wfs_engine/spatialFilter.js.map +1 -0
- package/dist/index.js +65 -23
- package/dist/index.js.map +1 -1
- package/dist/logger.d.ts +1 -1
- package/dist/logger.js +4 -1
- package/dist/logger.js.map +1 -1
- package/dist/tools/AdminexpressTool.d.ts +42 -33
- package/dist/tools/AdminexpressTool.js +19 -3
- package/dist/tools/AdminexpressTool.js.map +1 -1
- package/dist/tools/AltitudeTool.d.ts +35 -44
- package/dist/tools/AltitudeTool.js +19 -8
- package/dist/tools/AltitudeTool.js.map +1 -1
- package/dist/tools/AssietteSupTool.d.ts +51 -34
- package/dist/tools/AssietteSupTool.js +18 -2
- package/dist/tools/AssietteSupTool.js.map +1 -1
- package/dist/tools/BaseTool.d.ts +17 -0
- package/dist/tools/BaseTool.js +41 -0
- package/dist/tools/BaseTool.js.map +1 -0
- package/dist/tools/CadastreTool.d.ts +53 -33
- package/dist/tools/CadastreTool.js +18 -2
- package/dist/tools/CadastreTool.js.map +1 -1
- package/dist/tools/GeocodeTool.d.ts +53 -37
- package/dist/tools/GeocodeTool.js +17 -2
- package/dist/tools/GeocodeTool.js.map +1 -1
- package/dist/tools/GpfWfsDescribeTypeTool.d.ts +66 -94
- package/dist/tools/GpfWfsDescribeTypeTool.js +26 -15
- package/dist/tools/GpfWfsDescribeTypeTool.js.map +1 -1
- package/dist/tools/GpfWfsGetFeatureByIdTool.d.ts +89 -0
- package/dist/tools/GpfWfsGetFeatureByIdTool.js +99 -0
- package/dist/tools/GpfWfsGetFeatureByIdTool.js.map +1 -0
- package/dist/tools/GpfWfsGetFeaturesTool.d.ts +89 -123
- package/dist/tools/GpfWfsGetFeaturesTool.js +31 -144
- package/dist/tools/GpfWfsGetFeaturesTool.js.map +1 -1
- package/dist/tools/GpfWfsSearchTypesTool.d.ts +41 -32
- package/dist/tools/GpfWfsSearchTypesTool.js +18 -3
- package/dist/tools/GpfWfsSearchTypesTool.js.map +1 -1
- package/dist/tools/UrbanismeTool.d.ts +42 -33
- package/dist/tools/UrbanismeTool.js +18 -2
- package/dist/tools/UrbanismeTool.js.map +1 -1
- package/package.json +51 -24
- package/dist/gpf/wfs.js.map +0 -1
- package/dist/helpers/wfs.d.ts +0 -27
- package/dist/helpers/wfs.js +0 -55
- package/dist/helpers/wfs.js.map +0 -1
- package/dist/helpers/wfs_internal/compile.d.ts +0 -46
- package/dist/helpers/wfs_internal/compile.js +0 -595
- package/dist/helpers/wfs_internal/compile.js.map +0 -1
- package/dist/helpers/wfs_internal/request.d.ts +0 -38
- package/dist/helpers/wfs_internal/request.js +0 -92
- package/dist/helpers/wfs_internal/request.js.map +0 -1
- package/dist/helpers/wfs_internal/response.d.ts +0 -21
- package/dist/helpers/wfs_internal/response.js +0 -29
- package/dist/helpers/wfs_internal/response.js.map +0 -1
- package/dist/helpers/wfs_internal/schema.d.ts +0 -167
- package/dist/helpers/wfs_internal/schema.js.map +0 -1
- /package/dist/gpf/{wfs.d.ts → wfs-schema-catalog.d.ts} +0 -0
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
import { GPF_WFS_URL } from "../../gpf/wfs.js";
|
|
2
|
-
import { REQUEST_GET_URL_MAX_LENGTH } from "./schema.js";
|
|
3
|
-
/**
|
|
4
|
-
* Encodes the optional CQL filter as an `application/x-www-form-urlencoded` POST body.
|
|
5
|
-
*
|
|
6
|
-
* @param cqlFilter Compiled CQL filter, when the request needs one.
|
|
7
|
-
* @returns The encoded POST body, or an empty string when no filter is present.
|
|
8
|
-
*/
|
|
9
|
-
function buildBody(cqlFilter) {
|
|
10
|
-
if (!cqlFilter) {
|
|
11
|
-
return "";
|
|
12
|
-
}
|
|
13
|
-
return new URLSearchParams({ cql_filter: cqlFilter }).toString();
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* Builds a portable GET URL variant of the request when it stays below the configured limit.
|
|
17
|
-
*
|
|
18
|
-
* @param url Base WFS endpoint URL.
|
|
19
|
-
* @param query Query-string parameters sent with the request.
|
|
20
|
-
* @param cqlFilter Optional CQL filter to append to the GET variant.
|
|
21
|
-
* @returns A derived GET URL, or `null` when it would be too long to expose safely.
|
|
22
|
-
*/
|
|
23
|
-
export function buildGetUrl(url, query, cqlFilter) {
|
|
24
|
-
const params = new URLSearchParams(query);
|
|
25
|
-
if (cqlFilter) {
|
|
26
|
-
params.set("cql_filter", cqlFilter);
|
|
27
|
-
}
|
|
28
|
-
const getUrl = `${url}?${params.toString()}`;
|
|
29
|
-
if (getUrl.length > REQUEST_GET_URL_MAX_LENGTH) {
|
|
30
|
-
return null;
|
|
31
|
-
}
|
|
32
|
-
return getUrl;
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* Builds the main WFS GetFeature request from normalized tool input and compiled query parts.
|
|
36
|
-
*
|
|
37
|
-
* @param input Normalized tool input.
|
|
38
|
-
* @param compiled Compiled query fragments produced from the input and feature type.
|
|
39
|
-
* @returns A POST request split into base URL, query-string parameters, encoded body, and optional GET variant.
|
|
40
|
-
*/
|
|
41
|
-
export function buildMainRequest(input, compiled) {
|
|
42
|
-
const query = {
|
|
43
|
-
service: "WFS",
|
|
44
|
-
version: "2.0.0",
|
|
45
|
-
request: "GetFeature",
|
|
46
|
-
typeNames: input.typename,
|
|
47
|
-
outputFormat: "application/json",
|
|
48
|
-
count: input.result_type === "hits" ? "1" : String(input.limit),
|
|
49
|
-
};
|
|
50
|
-
if (compiled.propertyName && input.result_type !== "hits") {
|
|
51
|
-
query.propertyName = compiled.propertyName;
|
|
52
|
-
}
|
|
53
|
-
if (compiled.sortBy) {
|
|
54
|
-
query.sortBy = compiled.sortBy;
|
|
55
|
-
}
|
|
56
|
-
const body = buildBody(compiled.cqlFilter);
|
|
57
|
-
return {
|
|
58
|
-
method: "POST",
|
|
59
|
-
url: GPF_WFS_URL,
|
|
60
|
-
query,
|
|
61
|
-
body,
|
|
62
|
-
get_url: buildGetUrl(GPF_WFS_URL, query, compiled.cqlFilter),
|
|
63
|
-
};
|
|
64
|
-
}
|
|
65
|
-
/**
|
|
66
|
-
* Builds the auxiliary request used to fetch the geometry of a reference feature.
|
|
67
|
-
*
|
|
68
|
-
* @param typename Typename of the reference layer.
|
|
69
|
-
* @param featureId Identifier of the reference feature.
|
|
70
|
-
* @param geometryPropertyName Geometry property to request from the reference layer.
|
|
71
|
-
* @returns A POST request targeting the reference feature lookup.
|
|
72
|
-
*/
|
|
73
|
-
export function buildReferenceGeometryRequest(typename, featureId, geometryPropertyName) {
|
|
74
|
-
const query = {
|
|
75
|
-
service: "WFS",
|
|
76
|
-
version: "2.0.0",
|
|
77
|
-
request: "GetFeature",
|
|
78
|
-
typeNames: typename,
|
|
79
|
-
outputFormat: "application/json",
|
|
80
|
-
featureID: featureId,
|
|
81
|
-
propertyName: geometryPropertyName,
|
|
82
|
-
count: "1",
|
|
83
|
-
};
|
|
84
|
-
return {
|
|
85
|
-
method: "POST",
|
|
86
|
-
url: GPF_WFS_URL,
|
|
87
|
-
query,
|
|
88
|
-
body: "",
|
|
89
|
-
get_url: buildGetUrl(GPF_WFS_URL, query),
|
|
90
|
-
};
|
|
91
|
-
}
|
|
92
|
-
//# sourceMappingURL=request.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"request.js","sourceRoot":"","sources":["../../../src/helpers/wfs_internal/request.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C,OAAO,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAUzD;;;;;GAKG;AACH,SAAS,SAAS,CAAC,SAAkB;IACnC,IAAI,CAAC,SAAS,EAAE,CAAC;QACf,OAAO,EAAE,CAAC;IACZ,CAAC;IACD,OAAO,IAAI,eAAe,CAAC,EAAE,UAAU,EAAE,SAAS,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC;AACnE,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,UAAU,WAAW,CAAC,GAAW,EAAE,KAA6B,EAAE,SAAkB;IACxF,MAAM,MAAM,GA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ED;;;;;;;GAOG;AACH,MAAM,UAAU,6BAA6B,CAAC,QAAgB,EAAE,SAAiB,EAAE,oBAA4B;IAC7G,MAAM,KAAK,GAA2B;QACpC,OAAO,EAAE,KAAK;QACd,OAAO,EAAE,OAAO;QAChB,OAAO,EAAE,YAAY;QACrB,SAAS,EAAE,QAAQ;QACnB,YAAY,EAAE,kBAAkB;QAChC,SAAS,EAAE,SAAS;QACpB,YAAY,EAAE,oBAAoB;QAClC,KAAK,EAAE,GAAG;KACX,CAAC;IAEF,OAAO;QACL,MAAM,EAAE,MAAM;QACd,GAAG,EAAE,WAAW;QAChB,KAAK;QACL,IAAI,EAAE,EAAE;QACR,OAAO,EAAE,WAAW,CAAC,WAAW,EAAE,KAAK,CAAC;KACzC,CAAC;AACJ,CAAC"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
type GenericFeature = {
|
|
2
|
-
id?: string;
|
|
3
|
-
geometry?: unknown;
|
|
4
|
-
geometry_name?: string;
|
|
5
|
-
[key: string]: unknown;
|
|
6
|
-
};
|
|
7
|
-
type GenericFeatureCollection = {
|
|
8
|
-
features?: GenericFeature[];
|
|
9
|
-
[key: string]: unknown;
|
|
10
|
-
};
|
|
11
|
-
/**
|
|
12
|
-
* Removes raw geometry payloads from a FeatureCollection, keeps GeoJSON validity by forcing
|
|
13
|
-
* `geometry: null`, and exposes lightweight `feature_ref` objects reusable by follow-up requests.
|
|
14
|
-
*
|
|
15
|
-
* @param featureCollection Raw FeatureCollection returned by the WFS endpoint.
|
|
16
|
-
* @returns A transformed FeatureCollection with raw geometry fields removed, `geometry: null`, and optional `feature_ref` metadata.
|
|
17
|
-
*/
|
|
18
|
-
export declare function transformFeatureCollectionResponse(featureCollection: GenericFeatureCollection): GenericFeatureCollection | {
|
|
19
|
-
features: Record<string, unknown>[];
|
|
20
|
-
};
|
|
21
|
-
export {};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Removes raw geometry payloads from a FeatureCollection, keeps GeoJSON validity by forcing
|
|
3
|
-
* `geometry: null`, and exposes lightweight `feature_ref` objects reusable by follow-up requests.
|
|
4
|
-
*
|
|
5
|
-
* @param featureCollection Raw FeatureCollection returned by the WFS endpoint.
|
|
6
|
-
* @returns A transformed FeatureCollection with raw geometry fields removed, `geometry: null`, and optional `feature_ref` metadata.
|
|
7
|
-
*/
|
|
8
|
-
export function transformFeatureCollectionResponse(featureCollection) {
|
|
9
|
-
if (!Array.isArray(featureCollection.features)) {
|
|
10
|
-
return featureCollection;
|
|
11
|
-
}
|
|
12
|
-
const transformedFeatures = featureCollection.features.map((feature) => {
|
|
13
|
-
const { geometry: _geometry, geometry_name: _geometryName, ...rest } = feature;
|
|
14
|
-
const nextFeature = {
|
|
15
|
-
...rest,
|
|
16
|
-
geometry: null,
|
|
17
|
-
};
|
|
18
|
-
if (typeof feature.id === "string") {
|
|
19
|
-
nextFeature.feature_ref = {
|
|
20
|
-
typename: null,
|
|
21
|
-
feature_id: feature.id,
|
|
22
|
-
};
|
|
23
|
-
}
|
|
24
|
-
return nextFeature;
|
|
25
|
-
});
|
|
26
|
-
const { crs: _crs, ...restCollection } = featureCollection;
|
|
27
|
-
return { ...restCollection, features: transformedFeatures };
|
|
28
|
-
}
|
|
29
|
-
//# sourceMappingURL=response.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"response.js","sourceRoot":"","sources":["../../../src/helpers/wfs_internal/response.ts"],"names":[],"mappings":"AAYA;;;;;;GAMG;AACH,MAAM,UAAU,kCAAkC,CAAC,iBAA2C;IAC5F,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,iBAAiB,CAAC,QAAQ,CAAC,EAAE,CAAC;QAC/C,OAAO,iBAAiB,CAAC;IAC3B,CAAC;IAED,MAAM,mBAAmB,GAAG,iBAAiB,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE;QACrE,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,aAAa,EAAE,aAAa,EAAE,GAAG,IAAI,EAAE,GAAG,OAAO,CAAC;QAE/E,MAAM,WAAW,GAA4B;YAC3C,GAAG,IAAI;YACP,QAAQ,EAAE,IAAI;SACf,CAAC;QAEF,IAAI,OAAO,OAAO,CAAC,EAAE,KAAK,QAAQ,EAAE,CAAC;YACnC,WAAW,CAAC,WAAW,GAAG;gBACxB,QAAQ,EAAE,IAAI;gBACd,UAAU,EAAE,OAAO,CAAC,EAAE;aACvB,CAAC;QACJ,CAAC;QAED,OAAO,WAAW,CAAC;IACrB,CAAC,CAAC,CAAC;IAEH,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,cAAc,EAAE,GAAG,iBAAiB,CAAC;IAC3D,OAAO,EAAE,GAAG,cAAc,EAAE,QAAQ,EAAE,mBAAmB,EAAE,CAAC;AAC9D,CAAC"}
|
|
@@ -1,167 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
export declare const DEFAULT_LIMIT = 100;
|
|
3
|
-
export declare const MAX_LIMIT = 5000;
|
|
4
|
-
export declare const REQUEST_GET_URL_MAX_LENGTH = 6000;
|
|
5
|
-
export declare const WHERE_OPERATORS: readonly ["eq", "ne", "lt", "lte", "gt", "gte", "in", "is_null"];
|
|
6
|
-
export declare const SPATIAL_OPERATORS: readonly ["bbox", "intersects_point", "dwithin_point", "intersects_feature"];
|
|
7
|
-
export declare const ORDER_DIRECTIONS: readonly ["asc", "desc"];
|
|
8
|
-
export declare const gpfWfsGetFeaturesInputSchema: z.ZodObject<{
|
|
9
|
-
typename: z.ZodString;
|
|
10
|
-
limit: z.ZodDefault<z.ZodNumber>;
|
|
11
|
-
result_type: z.ZodDefault<z.ZodEnum<["results", "hits", "request"]>>;
|
|
12
|
-
select: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
13
|
-
order_by: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
14
|
-
property: z.ZodString;
|
|
15
|
-
direction: z.ZodDefault<z.ZodEnum<["asc", "desc"]>>;
|
|
16
|
-
}, "strict", z.ZodTypeAny, {
|
|
17
|
-
property?: string;
|
|
18
|
-
direction?: "asc" | "desc";
|
|
19
|
-
}, {
|
|
20
|
-
property?: string;
|
|
21
|
-
direction?: "asc" | "desc";
|
|
22
|
-
}>, "many">>;
|
|
23
|
-
where: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
24
|
-
property: z.ZodString;
|
|
25
|
-
operator: z.ZodEnum<["eq", "ne", "lt", "lte", "gt", "gte", "in", "is_null"]>;
|
|
26
|
-
value: z.ZodOptional<z.ZodString>;
|
|
27
|
-
values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
28
|
-
}, "strict", z.ZodTypeAny, {
|
|
29
|
-
values?: string[];
|
|
30
|
-
value?: string;
|
|
31
|
-
property?: string;
|
|
32
|
-
operator?: "gte" | "gt" | "lte" | "lt" | "eq" | "ne" | "in" | "is_null";
|
|
33
|
-
}, {
|
|
34
|
-
values?: string[];
|
|
35
|
-
value?: string;
|
|
36
|
-
property?: string;
|
|
37
|
-
operator?: "gte" | "gt" | "lte" | "lt" | "eq" | "ne" | "in" | "is_null";
|
|
38
|
-
}>, "many">>;
|
|
39
|
-
spatial_operator: z.ZodOptional<z.ZodEnum<["bbox", "intersects_point", "dwithin_point", "intersects_feature"]>>;
|
|
40
|
-
bbox_west: z.ZodOptional<z.ZodNumber>;
|
|
41
|
-
bbox_south: z.ZodOptional<z.ZodNumber>;
|
|
42
|
-
bbox_east: z.ZodOptional<z.ZodNumber>;
|
|
43
|
-
bbox_north: z.ZodOptional<z.ZodNumber>;
|
|
44
|
-
intersects_lon: z.ZodOptional<z.ZodNumber>;
|
|
45
|
-
intersects_lat: z.ZodOptional<z.ZodNumber>;
|
|
46
|
-
dwithin_lon: z.ZodOptional<z.ZodNumber>;
|
|
47
|
-
dwithin_lat: z.ZodOptional<z.ZodNumber>;
|
|
48
|
-
dwithin_distance_m: z.ZodOptional<z.ZodNumber>;
|
|
49
|
-
intersects_feature_typename: z.ZodOptional<z.ZodString>;
|
|
50
|
-
intersects_feature_id: z.ZodOptional<z.ZodString>;
|
|
51
|
-
}, "strict", z.ZodTypeAny, {
|
|
52
|
-
typename?: string;
|
|
53
|
-
limit?: number;
|
|
54
|
-
result_type?: "request" | "results" | "hits";
|
|
55
|
-
select?: string[];
|
|
56
|
-
order_by?: {
|
|
57
|
-
property?: string;
|
|
58
|
-
direction?: "asc" | "desc";
|
|
59
|
-
}[];
|
|
60
|
-
where?: {
|
|
61
|
-
values?: string[];
|
|
62
|
-
value?: string;
|
|
63
|
-
property?: string;
|
|
64
|
-
operator?: "gte" | "gt" | "lte" | "lt" | "eq" | "ne" | "in" | "is_null";
|
|
65
|
-
}[];
|
|
66
|
-
spatial_operator?: "bbox" | "intersects_point" | "dwithin_point" | "intersects_feature";
|
|
67
|
-
bbox_west?: number;
|
|
68
|
-
bbox_south?: number;
|
|
69
|
-
bbox_east?: number;
|
|
70
|
-
bbox_north?: number;
|
|
71
|
-
intersects_lon?: number;
|
|
72
|
-
intersects_lat?: number;
|
|
73
|
-
dwithin_lon?: number;
|
|
74
|
-
dwithin_lat?: number;
|
|
75
|
-
dwithin_distance_m?: number;
|
|
76
|
-
intersects_feature_typename?: string;
|
|
77
|
-
intersects_feature_id?: string;
|
|
78
|
-
}, {
|
|
79
|
-
typename?: string;
|
|
80
|
-
limit?: number;
|
|
81
|
-
result_type?: "request" | "results" | "hits";
|
|
82
|
-
select?: string[];
|
|
83
|
-
order_by?: {
|
|
84
|
-
property?: string;
|
|
85
|
-
direction?: "asc" | "desc";
|
|
86
|
-
}[];
|
|
87
|
-
where?: {
|
|
88
|
-
values?: string[];
|
|
89
|
-
value?: string;
|
|
90
|
-
property?: string;
|
|
91
|
-
operator?: "gte" | "gt" | "lte" | "lt" | "eq" | "ne" | "in" | "is_null";
|
|
92
|
-
}[];
|
|
93
|
-
spatial_operator?: "bbox" | "intersects_point" | "dwithin_point" | "intersects_feature";
|
|
94
|
-
bbox_west?: number;
|
|
95
|
-
bbox_south?: number;
|
|
96
|
-
bbox_east?: number;
|
|
97
|
-
bbox_north?: number;
|
|
98
|
-
intersects_lon?: number;
|
|
99
|
-
intersects_lat?: number;
|
|
100
|
-
dwithin_lon?: number;
|
|
101
|
-
dwithin_lat?: number;
|
|
102
|
-
dwithin_distance_m?: number;
|
|
103
|
-
intersects_feature_typename?: string;
|
|
104
|
-
intersects_feature_id?: string;
|
|
105
|
-
}>;
|
|
106
|
-
export type GpfWfsGetFeaturesInput = z.infer<typeof gpfWfsGetFeaturesInputSchema>;
|
|
107
|
-
export type WhereClause = NonNullable<GpfWfsGetFeaturesInput["where"]>[number];
|
|
108
|
-
export type OrderByClause = NonNullable<GpfWfsGetFeaturesInput["order_by"]>[number];
|
|
109
|
-
export type SpatialFilter = {
|
|
110
|
-
operator: "bbox";
|
|
111
|
-
west: number;
|
|
112
|
-
south: number;
|
|
113
|
-
east: number;
|
|
114
|
-
north: number;
|
|
115
|
-
} | {
|
|
116
|
-
operator: "intersects_point";
|
|
117
|
-
lon: number;
|
|
118
|
-
lat: number;
|
|
119
|
-
} | {
|
|
120
|
-
operator: "dwithin_point";
|
|
121
|
-
lon: number;
|
|
122
|
-
lat: number;
|
|
123
|
-
distance_m: number;
|
|
124
|
-
} | {
|
|
125
|
-
operator: "intersects_feature";
|
|
126
|
-
typename: string;
|
|
127
|
-
feature_id: string;
|
|
128
|
-
};
|
|
129
|
-
export declare const gpfWfsGetFeaturesHitsOutputSchema: z.ZodObject<{
|
|
130
|
-
result_type: z.ZodLiteral<"hits">;
|
|
131
|
-
totalFeatures: z.ZodNumber;
|
|
132
|
-
}, "strip", z.ZodTypeAny, {
|
|
133
|
-
result_type?: "hits";
|
|
134
|
-
totalFeatures?: number;
|
|
135
|
-
}, {
|
|
136
|
-
result_type?: "hits";
|
|
137
|
-
totalFeatures?: number;
|
|
138
|
-
}>;
|
|
139
|
-
export declare const gpfWfsGetFeaturesRequestOutputSchema: z.ZodObject<{
|
|
140
|
-
result_type: z.ZodLiteral<"request">;
|
|
141
|
-
method: z.ZodLiteral<"POST">;
|
|
142
|
-
url: z.ZodString;
|
|
143
|
-
query: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
144
|
-
body: z.ZodString;
|
|
145
|
-
get_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
146
|
-
}, "strip", z.ZodTypeAny, {
|
|
147
|
-
body?: string;
|
|
148
|
-
result_type?: "request";
|
|
149
|
-
method?: "POST";
|
|
150
|
-
url?: string;
|
|
151
|
-
query?: Record<string, string>;
|
|
152
|
-
get_url?: string;
|
|
153
|
-
}, {
|
|
154
|
-
body?: string;
|
|
155
|
-
result_type?: "request";
|
|
156
|
-
method?: "POST";
|
|
157
|
-
url?: string;
|
|
158
|
-
query?: Record<string, string>;
|
|
159
|
-
get_url?: string;
|
|
160
|
-
}>;
|
|
161
|
-
type PublishedInputSchema = {
|
|
162
|
-
type: "object";
|
|
163
|
-
properties?: Record<string, object>;
|
|
164
|
-
required?: string[];
|
|
165
|
-
};
|
|
166
|
-
export declare const gpfWfsGetFeaturesPublishedInputSchema: PublishedInputSchema;
|
|
167
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../src/helpers/wfs_internal/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,4BAA4B,EAAE,MAAM,6BAA6B,CAAC;AAC3E,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAEhE,MAAM,CAAC,MAAM,aAAa,GAAG,GAAG,CAAC;AACjC,MAAM,CAAC,MAAM,SAAS,GAAG,IAAI,CAAC;AAC9B,MAAM,CAAC,MAAM,0BAA0B,GAAG,IAAI,CAAC;AAC/C,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,KAA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