graphile-postgis 2.6.6 → 2.7.1
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/esm/index.d.ts +4 -0
- package/esm/index.js +5 -1
- package/esm/plugins/aggregate-functions.d.ts +23 -0
- package/esm/plugins/aggregate-functions.js +68 -0
- package/esm/plugins/measurement-fields.d.ts +17 -0
- package/esm/plugins/measurement-fields.js +169 -0
- package/esm/plugins/transformation-functions.d.ts +22 -0
- package/esm/plugins/transformation-functions.js +117 -0
- package/esm/plugins/within-distance-operator.d.ts +32 -0
- package/esm/plugins/within-distance-operator.js +122 -0
- package/esm/preset.d.ts +4 -1
- package/esm/preset.js +14 -2
- package/index.d.ts +4 -0
- package/index.js +10 -2
- package/package.json +5 -5
- package/plugins/aggregate-functions.d.ts +23 -0
- package/plugins/aggregate-functions.js +71 -0
- package/plugins/measurement-fields.d.ts +17 -0
- package/plugins/measurement-fields.js +172 -0
- package/plugins/transformation-functions.d.ts +22 -0
- package/plugins/transformation-functions.js +120 -0
- package/plugins/within-distance-operator.d.ts +32 -0
- package/plugins/within-distance-operator.js +128 -0
- package/preset.d.ts +4 -1
- package/preset.js +14 -2
package/preset.d.ts
CHANGED
|
@@ -10,7 +10,10 @@ import type { GraphileConfig } from 'graphile-config';
|
|
|
10
10
|
* - PostGIS extension auto-detection
|
|
11
11
|
* - PostGIS inflection (type names for subtypes, Z/M variants)
|
|
12
12
|
* - Geometry field plugins (coordinates, GeoJSON output)
|
|
13
|
-
* -
|
|
13
|
+
* - Measurement fields (area, length, perimeter on geometry types)
|
|
14
|
+
* - Transformation fields (centroid, bbox, numPoints on geometry types)
|
|
15
|
+
* - Aggregate function definitions (ST_Extent, ST_Union, ST_Collect, ST_ConvexHull)
|
|
16
|
+
* - Connection filter operators (26 spatial operators + withinDistance via declarative factory API)
|
|
14
17
|
*
|
|
15
18
|
* @example
|
|
16
19
|
* ```typescript
|
package/preset.js
CHANGED
|
@@ -6,7 +6,11 @@ const inflection_1 = require("./plugins/inflection");
|
|
|
6
6
|
const detect_extension_1 = require("./plugins/detect-extension");
|
|
7
7
|
const register_types_1 = require("./plugins/register-types");
|
|
8
8
|
const geometry_fields_1 = require("./plugins/geometry-fields");
|
|
9
|
+
const measurement_fields_1 = require("./plugins/measurement-fields");
|
|
10
|
+
const transformation_functions_1 = require("./plugins/transformation-functions");
|
|
11
|
+
const aggregate_functions_1 = require("./plugins/aggregate-functions");
|
|
9
12
|
const connection_filter_operators_1 = require("./plugins/connection-filter-operators");
|
|
13
|
+
const within_distance_operator_1 = require("./plugins/within-distance-operator");
|
|
10
14
|
/**
|
|
11
15
|
* GraphilePostgisPreset
|
|
12
16
|
*
|
|
@@ -18,7 +22,10 @@ const connection_filter_operators_1 = require("./plugins/connection-filter-opera
|
|
|
18
22
|
* - PostGIS extension auto-detection
|
|
19
23
|
* - PostGIS inflection (type names for subtypes, Z/M variants)
|
|
20
24
|
* - Geometry field plugins (coordinates, GeoJSON output)
|
|
21
|
-
* -
|
|
25
|
+
* - Measurement fields (area, length, perimeter on geometry types)
|
|
26
|
+
* - Transformation fields (centroid, bbox, numPoints on geometry types)
|
|
27
|
+
* - Aggregate function definitions (ST_Extent, ST_Union, ST_Collect, ST_ConvexHull)
|
|
28
|
+
* - Connection filter operators (26 spatial operators + withinDistance via declarative factory API)
|
|
22
29
|
*
|
|
23
30
|
* @example
|
|
24
31
|
* ```typescript
|
|
@@ -35,11 +42,16 @@ exports.GraphilePostgisPreset = {
|
|
|
35
42
|
inflection_1.PostgisInflectionPlugin,
|
|
36
43
|
detect_extension_1.PostgisExtensionDetectionPlugin,
|
|
37
44
|
register_types_1.PostgisRegisterTypesPlugin,
|
|
38
|
-
geometry_fields_1.PostgisGeometryFieldsPlugin
|
|
45
|
+
geometry_fields_1.PostgisGeometryFieldsPlugin,
|
|
46
|
+
measurement_fields_1.PostgisMeasurementFieldsPlugin,
|
|
47
|
+
transformation_functions_1.PostgisTransformationFieldsPlugin,
|
|
48
|
+
aggregate_functions_1.PostgisAggregatePlugin
|
|
39
49
|
],
|
|
40
50
|
schema: {
|
|
51
|
+
// connectionFilterOperatorFactories is augmented by graphile-connection-filter
|
|
41
52
|
connectionFilterOperatorFactories: [
|
|
42
53
|
(0, connection_filter_operators_1.createPostgisOperatorFactory)(),
|
|
54
|
+
(0, within_distance_operator_1.createWithinDistanceOperatorFactory)(),
|
|
43
55
|
],
|
|
44
56
|
},
|
|
45
57
|
};
|