node-type-registry 0.19.0 → 0.20.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/authz/authz-allow-all.js +10 -10
- package/authz/authz-composite.js +28 -28
- package/authz/authz-deny-all.js +10 -10
- package/authz/authz-direct-owner-any.js +19 -18
- package/authz/authz-direct-owner.js +17 -16
- package/authz/authz-entity-membership.js +39 -38
- package/authz/authz-member-list.js +17 -16
- package/authz/authz-membership-check.js +34 -34
- package/authz/authz-not-read-only.js +23 -22
- package/authz/authz-org-hierarchy.js +33 -31
- package/authz/authz-peer-ownership.js +40 -39
- package/authz/authz-publishable.js +26 -24
- package/authz/authz-related-entity-membership.js +57 -55
- package/authz/authz-related-member-list.js +35 -32
- package/authz/authz-related-peer-ownership.js +62 -59
- package/authz/authz-temporal.js +32 -30
- package/authz/index.d.ts +9 -9
- package/authz/index.js +19 -19
- package/blueprint-types.generated.js +1 -1
- package/codegen/generate-types.js +1 -1
- package/data/data-composite-field.js +27 -25
- package/data/data-direct-owner.js +24 -23
- package/data/data-entity-membership.js +24 -23
- package/data/data-force-current-user.js +17 -16
- package/data/data-id.js +16 -15
- package/data/data-immutable-fields.js +20 -19
- package/data/data-inflection.js +33 -32
- package/data/data-inherit-from-parent.js +31 -29
- package/data/data-job-trigger.js +87 -84
- package/data/data-jsonb.js +27 -26
- package/data/data-owned-fields.js +25 -23
- package/data/data-ownership-in-entity.js +21 -21
- package/data/data-peoplestamps.js +19 -19
- package/data/data-publishable.js +16 -16
- package/data/data-slug.js +21 -19
- package/data/data-soft-delete.js +14 -14
- package/data/data-status-field.js +32 -31
- package/data/data-tags.js +23 -22
- package/data/data-timestamps.js +15 -15
- package/data/index.d.ts +17 -17
- package/data/index.js +35 -35
- package/data/search-bm25.js +34 -33
- package/data/search-full-text.js +49 -47
- package/data/search-spatial-aggregate.js +77 -74
- package/data/search-spatial.js +51 -50
- package/data/search-trgm.js +20 -19
- package/data/search-unified.js +170 -162
- package/data/search-vector.js +104 -101
- package/data/table-organization-settings.js +13 -13
- package/data/table-user-profiles.js +13 -13
- package/data/table-user-settings.js +13 -13
- package/esm/authz/authz-allow-all.js +10 -10
- package/esm/authz/authz-composite.js +28 -28
- package/esm/authz/authz-deny-all.js +10 -10
- package/esm/authz/authz-direct-owner-any.js +19 -18
- package/esm/authz/authz-direct-owner.js +17 -16
- package/esm/authz/authz-entity-membership.js +39 -38
- package/esm/authz/authz-member-list.js +17 -16
- package/esm/authz/authz-membership-check.js +34 -34
- package/esm/authz/authz-not-read-only.js +23 -22
- package/esm/authz/authz-org-hierarchy.js +33 -31
- package/esm/authz/authz-peer-ownership.js +40 -39
- package/esm/authz/authz-publishable.js +26 -24
- package/esm/authz/authz-related-entity-membership.js +57 -55
- package/esm/authz/authz-related-member-list.js +35 -32
- package/esm/authz/authz-related-peer-ownership.js +62 -59
- package/esm/authz/authz-temporal.js +32 -30
- package/esm/authz/index.d.ts +9 -9
- package/esm/authz/index.js +9 -9
- package/esm/blueprint-types.generated.js +1 -1
- package/esm/codegen/generate-types.js +1 -1
- package/esm/data/data-composite-field.js +27 -25
- package/esm/data/data-direct-owner.js +24 -23
- package/esm/data/data-entity-membership.js +24 -23
- package/esm/data/data-force-current-user.js +17 -16
- package/esm/data/data-id.js +16 -15
- package/esm/data/data-immutable-fields.js +20 -19
- package/esm/data/data-inflection.js +33 -32
- package/esm/data/data-inherit-from-parent.js +31 -29
- package/esm/data/data-job-trigger.js +87 -84
- package/esm/data/data-jsonb.js +27 -26
- package/esm/data/data-owned-fields.js +25 -23
- package/esm/data/data-ownership-in-entity.js +21 -21
- package/esm/data/data-peoplestamps.js +19 -19
- package/esm/data/data-publishable.js +16 -16
- package/esm/data/data-slug.js +21 -19
- package/esm/data/data-soft-delete.js +14 -14
- package/esm/data/data-status-field.js +32 -31
- package/esm/data/data-tags.js +23 -22
- package/esm/data/data-timestamps.js +15 -15
- package/esm/data/index.d.ts +17 -17
- package/esm/data/index.js +17 -17
- package/esm/data/search-bm25.js +34 -33
- package/esm/data/search-full-text.js +49 -47
- package/esm/data/search-spatial-aggregate.js +77 -74
- package/esm/data/search-spatial.js +51 -50
- package/esm/data/search-trgm.js +20 -19
- package/esm/data/search-unified.js +170 -162
- package/esm/data/search-vector.js +104 -101
- package/esm/data/table-organization-settings.js +13 -13
- package/esm/data/table-user-profiles.js +13 -13
- package/esm/data/table-user-settings.js +13 -13
- package/esm/index.d.ts +3 -3
- package/esm/index.js +3 -3
- package/esm/module-presets/auth-email-magic.js +2 -2
- package/esm/module-presets/auth-email.js +8 -8
- package/esm/module-presets/auth-passkey.js +4 -4
- package/esm/module-presets/auth-sso.js +7 -7
- package/esm/module-presets/full.js +1 -1
- package/esm/module-presets/index.d.ts +5 -5
- package/esm/module-presets/index.js +4 -4
- package/esm/relation/index.d.ts +1 -1
- package/esm/relation/index.js +1 -1
- package/esm/relation/relation-belongs-to.js +41 -40
- package/esm/relation/relation-has-many.js +42 -41
- package/esm/relation/relation-has-one.js +42 -41
- package/esm/relation/relation-many-to-many.js +70 -68
- package/esm/relation/relation-spatial.js +54 -54
- package/esm/view/index.d.ts +3 -3
- package/esm/view/index.js +3 -3
- package/esm/view/view-aggregated.js +50 -48
- package/esm/view/view-composite.js +18 -18
- package/esm/view/view-filtered-table.js +37 -36
- package/esm/view/view-joined-tables.js +65 -61
- package/esm/view/view-table-projection.js +29 -28
- package/index.d.ts +3 -3
- package/index.js +3 -3
- package/module-presets/auth-email-magic.js +2 -2
- package/module-presets/auth-email.js +8 -8
- package/module-presets/auth-passkey.js +4 -4
- package/module-presets/auth-sso.js +7 -7
- package/module-presets/full.js +1 -1
- package/module-presets/index.d.ts +5 -5
- package/module-presets/index.js +7 -7
- package/package.json +2 -2
- package/relation/index.d.ts +1 -1
- package/relation/index.js +3 -3
- package/relation/relation-belongs-to.js +41 -40
- package/relation/relation-has-many.js +42 -41
- package/relation/relation-has-one.js +42 -41
- package/relation/relation-many-to-many.js +70 -68
- package/relation/relation-spatial.js +54 -54
- package/view/index.d.ts +3 -3
- package/view/index.js +7 -7
- package/view/view-aggregated.js +50 -48
- package/view/view-composite.js +18 -18
- package/view/view-filtered-table.js +37 -36
- package/view/view-joined-tables.js +65 -61
- package/view/view-table-projection.js +29 -28
|
@@ -2,99 +2,102 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.SearchSpatialAggregate = void 0;
|
|
4
4
|
exports.SearchSpatialAggregate = {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
5
|
+
name: 'SearchSpatialAggregate',
|
|
6
|
+
slug: 'search_spatial_aggregate',
|
|
7
|
+
category: 'search',
|
|
8
|
+
display_name: 'Spatial Aggregate Search',
|
|
9
|
+
description: 'Creates a derived/materialized geometry field on the parent table that automatically aggregates geometries from a source (child) table via triggers. When child rows are inserted/updated/deleted, the parent aggregate field is recalculated using the specified PostGIS aggregation function (ST_Union, ST_Collect, ST_ConvexHull, ST_ConcaveHull). Useful for materializing spatial boundaries from collections of points or polygons.',
|
|
10
|
+
parameter_schema: {
|
|
11
|
+
type: 'object',
|
|
12
|
+
properties: {
|
|
13
|
+
field_name: {
|
|
14
|
+
type: 'string',
|
|
15
|
+
format: 'column-ref',
|
|
16
|
+
description: 'Name of the aggregate geometry column on the parent table',
|
|
17
|
+
default: 'geom_aggregate'
|
|
17
18
|
},
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
source_table_id: {
|
|
20
|
+
type: 'string',
|
|
21
|
+
format: 'uuid',
|
|
22
|
+
description: 'UUID of the source (child) table containing individual geometries'
|
|
22
23
|
},
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
source_geom_field: {
|
|
25
|
+
type: 'string',
|
|
26
|
+
format: 'column-ref',
|
|
27
|
+
description: 'Name of the geometry column on the source table',
|
|
28
|
+
default: 'geom'
|
|
27
29
|
},
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
30
|
+
source_fk_field: {
|
|
31
|
+
type: 'string',
|
|
32
|
+
format: 'column-ref',
|
|
33
|
+
description: 'Name of the foreign key column on the source table pointing to the parent'
|
|
31
34
|
},
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
35
|
+
aggregate_function: {
|
|
36
|
+
type: 'string',
|
|
37
|
+
enum: [
|
|
38
|
+
'union',
|
|
39
|
+
'collect',
|
|
40
|
+
'convex_hull',
|
|
41
|
+
'concave_hull'
|
|
39
42
|
],
|
|
40
|
-
|
|
41
|
-
|
|
43
|
+
description: 'PostGIS aggregation function: union (ST_Union, merges overlapping), collect (ST_Collect, groups without merging), convex_hull (smallest convex polygon), concave_hull (tighter boundary)',
|
|
44
|
+
default: 'union'
|
|
42
45
|
},
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
46
|
+
geometry_type: {
|
|
47
|
+
type: 'string',
|
|
48
|
+
enum: [
|
|
49
|
+
'Point',
|
|
50
|
+
'LineString',
|
|
51
|
+
'Polygon',
|
|
52
|
+
'MultiPoint',
|
|
53
|
+
'MultiLineString',
|
|
54
|
+
'MultiPolygon',
|
|
55
|
+
'GeometryCollection',
|
|
56
|
+
'Geometry'
|
|
54
57
|
],
|
|
55
|
-
|
|
56
|
-
|
|
58
|
+
description: 'Output geometry type constraint for the aggregate field',
|
|
59
|
+
default: 'MultiPolygon'
|
|
57
60
|
},
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
61
|
+
srid: {
|
|
62
|
+
type: 'integer',
|
|
63
|
+
description: 'Spatial Reference System Identifier (e.g. 4326 for WGS84)',
|
|
64
|
+
default: 4326
|
|
62
65
|
},
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
+
dimension: {
|
|
67
|
+
type: 'integer',
|
|
68
|
+
enum: [
|
|
66
69
|
2,
|
|
67
70
|
3,
|
|
68
71
|
4
|
|
69
72
|
],
|
|
70
|
-
|
|
71
|
-
|
|
73
|
+
description: 'Coordinate dimension (2=XY, 3=XYZ, 4=XYZM)',
|
|
74
|
+
default: 2
|
|
72
75
|
},
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
76
|
+
use_geography: {
|
|
77
|
+
type: 'boolean',
|
|
78
|
+
description: 'Use geography type instead of geometry',
|
|
79
|
+
default: false
|
|
77
80
|
},
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
81
|
+
index_method: {
|
|
82
|
+
type: 'string',
|
|
83
|
+
enum: [
|
|
84
|
+
'gist',
|
|
85
|
+
'spgist'
|
|
83
86
|
],
|
|
84
|
-
|
|
85
|
-
|
|
87
|
+
description: 'Spatial index method for the aggregate field',
|
|
88
|
+
default: 'gist'
|
|
86
89
|
}
|
|
87
90
|
},
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
+
required: [
|
|
92
|
+
'source_table_id',
|
|
93
|
+
'source_fk_field'
|
|
91
94
|
]
|
|
92
95
|
},
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
96
|
+
tags: [
|
|
97
|
+
'spatial',
|
|
98
|
+
'postgis',
|
|
99
|
+
'geometry',
|
|
100
|
+
'aggregate',
|
|
101
|
+
'schema'
|
|
99
102
|
]
|
|
100
103
|
};
|
package/data/search-spatial.js
CHANGED
|
@@ -2,69 +2,70 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.SearchSpatial = void 0;
|
|
4
4
|
exports.SearchSpatial = {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
5
|
+
name: 'SearchSpatial',
|
|
6
|
+
slug: 'search_spatial',
|
|
7
|
+
category: 'search',
|
|
8
|
+
display_name: 'Spatial Search',
|
|
9
|
+
description: 'Adds a PostGIS geometry or geography column with a spatial index (GiST or SP-GiST). Supports configurable geometry types (Point, Polygon, etc.), SRID, and dimensionality. The graphile-postgis plugin auto-detects geometry/geography columns by codec type for spatial filtering (ST_Contains, ST_DWithin, bbox operators).',
|
|
10
|
+
parameter_schema: {
|
|
11
|
+
type: 'object',
|
|
12
|
+
properties: {
|
|
13
|
+
field_name: {
|
|
14
|
+
type: 'string',
|
|
15
|
+
format: 'column-ref',
|
|
16
|
+
description: 'Name of the geometry/geography column',
|
|
17
|
+
default: 'geom'
|
|
17
18
|
},
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
19
|
+
geometry_type: {
|
|
20
|
+
type: 'string',
|
|
21
|
+
enum: [
|
|
22
|
+
'Point',
|
|
23
|
+
'LineString',
|
|
24
|
+
'Polygon',
|
|
25
|
+
'MultiPoint',
|
|
26
|
+
'MultiLineString',
|
|
27
|
+
'MultiPolygon',
|
|
28
|
+
'GeometryCollection',
|
|
29
|
+
'Geometry'
|
|
29
30
|
],
|
|
30
|
-
|
|
31
|
-
|
|
31
|
+
description: 'PostGIS geometry type constraint',
|
|
32
|
+
default: 'Point'
|
|
32
33
|
},
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
34
|
+
srid: {
|
|
35
|
+
type: 'integer',
|
|
36
|
+
description: 'Spatial Reference System Identifier (e.g. 4326 for WGS84)',
|
|
37
|
+
default: 4326
|
|
37
38
|
},
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
39
|
+
dimension: {
|
|
40
|
+
type: 'integer',
|
|
41
|
+
enum: [
|
|
41
42
|
2,
|
|
42
43
|
3,
|
|
43
44
|
4
|
|
44
45
|
],
|
|
45
|
-
|
|
46
|
-
|
|
46
|
+
description: 'Coordinate dimension (2=XY, 3=XYZ, 4=XYZM)',
|
|
47
|
+
default: 2
|
|
47
48
|
},
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
49
|
+
use_geography: {
|
|
50
|
+
type: 'boolean',
|
|
51
|
+
description: 'Use geography type instead of geometry (for geodetic calculations on the sphere)',
|
|
52
|
+
default: false
|
|
52
53
|
},
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
54
|
+
index_method: {
|
|
55
|
+
type: 'string',
|
|
56
|
+
enum: [
|
|
57
|
+
'gist',
|
|
58
|
+
'spgist'
|
|
58
59
|
],
|
|
59
|
-
|
|
60
|
-
|
|
60
|
+
description: 'Spatial index method',
|
|
61
|
+
default: 'gist'
|
|
61
62
|
}
|
|
62
63
|
}
|
|
63
64
|
},
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
65
|
+
tags: [
|
|
66
|
+
'spatial',
|
|
67
|
+
'postgis',
|
|
68
|
+
'geometry',
|
|
69
|
+
'schema'
|
|
69
70
|
]
|
|
70
71
|
};
|
package/data/search-trgm.js
CHANGED
|
@@ -2,29 +2,30 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.SearchTrgm = void 0;
|
|
4
4
|
exports.SearchTrgm = {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
5
|
+
name: 'SearchTrgm',
|
|
6
|
+
slug: 'search_trgm',
|
|
7
|
+
category: 'search',
|
|
8
|
+
display_name: 'Trigram Search',
|
|
9
|
+
description: 'Creates GIN trigram indexes (gin_trgm_ops) on specified text/citext fields for fuzzy LIKE/ILIKE/similarity search. Adds @trgmSearch smart tag for PostGraphile integration. Fields must already exist on the table.',
|
|
10
|
+
parameter_schema: {
|
|
11
|
+
type: 'object',
|
|
12
|
+
properties: {
|
|
13
|
+
fields: {
|
|
14
|
+
type: 'array',
|
|
15
|
+
items: {
|
|
16
|
+
type: 'string',
|
|
17
|
+
format: 'column-ref'
|
|
17
18
|
},
|
|
18
|
-
|
|
19
|
+
description: 'Field names to create trigram indexes on (fields must already exist on the table)'
|
|
19
20
|
}
|
|
20
21
|
},
|
|
21
|
-
|
|
22
|
-
|
|
22
|
+
required: [
|
|
23
|
+
'fields'
|
|
23
24
|
]
|
|
24
25
|
},
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
26
|
+
tags: [
|
|
27
|
+
'search',
|
|
28
|
+
'trigram',
|
|
29
|
+
'schema'
|
|
29
30
|
]
|
|
30
31
|
};
|