node-type-registry 0.18.1 → 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.d.ts +10 -17
- package/blueprint-types.generated.js +1 -1
- package/codegen/generate-types.js +10 -21
- 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.d.ts +10 -17
- package/esm/blueprint-types.generated.js +1 -1
- package/esm/codegen/generate-types.js +10 -21
- 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
package/data/data-publishable.js
CHANGED
|
@@ -2,24 +2,24 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.DataPublishable = void 0;
|
|
4
4
|
exports.DataPublishable = {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
5
|
+
name: 'DataPublishable',
|
|
6
|
+
slug: 'data_publishable',
|
|
7
|
+
category: 'data',
|
|
8
|
+
display_name: 'Publishable',
|
|
9
|
+
description: 'Adds publish state columns (is_published, published_at) for content visibility. Enables AuthzPublishable and AuthzTemporal authorization.',
|
|
10
|
+
parameter_schema: {
|
|
11
|
+
type: 'object',
|
|
12
|
+
properties: {
|
|
13
|
+
include_id: {
|
|
14
|
+
type: 'boolean',
|
|
15
|
+
description: 'If true, also adds a UUID primary key column with auto-generation',
|
|
16
|
+
default: true
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
},
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
20
|
+
tags: [
|
|
21
|
+
'publishing',
|
|
22
|
+
'temporal',
|
|
23
|
+
'schema'
|
|
24
24
|
]
|
|
25
25
|
};
|
package/data/data-slug.js
CHANGED
|
@@ -2,29 +2,31 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.DataSlug = void 0;
|
|
4
4
|
exports.DataSlug = {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
5
|
+
name: 'DataSlug',
|
|
6
|
+
slug: 'data_slug',
|
|
7
|
+
category: 'data',
|
|
8
|
+
display_name: 'Slug',
|
|
9
|
+
description: 'Auto-generates URL-friendly slugs from field values on insert/update. Attaches BEFORE INSERT and BEFORE UPDATE triggers that call inflection.slugify() on the target field. References fields by name in data jsonb.',
|
|
10
|
+
parameter_schema: {
|
|
11
|
+
type: 'object',
|
|
12
|
+
properties: {
|
|
13
|
+
field_name: {
|
|
14
|
+
type: 'string',
|
|
15
|
+
format: 'column-ref',
|
|
16
|
+
description: 'Name of the field to slugify'
|
|
16
17
|
},
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
source_field_name: {
|
|
19
|
+
type: 'string',
|
|
20
|
+
format: 'column-ref',
|
|
21
|
+
description: 'Optional source field name (defaults to field_name)'
|
|
20
22
|
}
|
|
21
23
|
},
|
|
22
|
-
|
|
23
|
-
|
|
24
|
+
required: [
|
|
25
|
+
'field_name'
|
|
24
26
|
]
|
|
25
27
|
},
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
28
|
+
tags: [
|
|
29
|
+
'transform',
|
|
30
|
+
'behavior'
|
|
29
31
|
]
|
|
30
32
|
};
|
package/data/data-soft-delete.js
CHANGED
|
@@ -2,22 +2,22 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.DataSoftDelete = void 0;
|
|
4
4
|
exports.DataSoftDelete = {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
5
|
+
name: 'DataSoftDelete',
|
|
6
|
+
slug: 'data_soft_delete',
|
|
7
|
+
category: 'data',
|
|
8
|
+
display_name: 'Soft Delete',
|
|
9
|
+
description: 'Adds soft delete support with deleted_at and is_deleted columns.',
|
|
10
|
+
parameter_schema: {
|
|
11
|
+
type: 'object',
|
|
12
|
+
properties: {
|
|
13
|
+
include_id: {
|
|
14
|
+
type: 'boolean',
|
|
15
|
+
description: 'If true, also adds a UUID primary key column with auto-generation',
|
|
16
|
+
default: true
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
},
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
tags: [
|
|
21
|
+
'schema'
|
|
22
22
|
]
|
|
23
23
|
};
|
|
@@ -2,44 +2,45 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.DataStatusField = void 0;
|
|
4
4
|
exports.DataStatusField = {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
5
|
+
name: 'DataStatusField',
|
|
6
|
+
slug: 'data_status_field',
|
|
7
|
+
category: 'data',
|
|
8
|
+
display_name: 'Status Field',
|
|
9
|
+
description: 'Adds a status column with B-tree index for efficient equality filtering and sorting. Optionally constrains values via CHECK constraint when allowed_values is provided.',
|
|
10
|
+
parameter_schema: {
|
|
11
|
+
type: 'object',
|
|
12
|
+
properties: {
|
|
13
|
+
field_name: {
|
|
14
|
+
type: 'string',
|
|
15
|
+
format: 'column-ref',
|
|
16
|
+
description: 'Column name for the status field',
|
|
17
|
+
default: 'status'
|
|
17
18
|
},
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
type: {
|
|
20
|
+
type: 'string',
|
|
21
|
+
description: 'Column type (text or citext)',
|
|
22
|
+
default: 'text'
|
|
22
23
|
},
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
default_value: {
|
|
25
|
+
type: 'string',
|
|
26
|
+
description: 'Default value expression (e.g., active)'
|
|
26
27
|
},
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
28
|
+
is_required: {
|
|
29
|
+
type: 'boolean',
|
|
30
|
+
description: 'Whether the column has a NOT NULL constraint',
|
|
31
|
+
default: true
|
|
31
32
|
},
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
33
|
+
allowed_values: {
|
|
34
|
+
type: 'array',
|
|
35
|
+
items: {
|
|
36
|
+
type: 'string'
|
|
36
37
|
},
|
|
37
|
-
|
|
38
|
+
description: 'If provided, creates a CHECK constraint restricting the column to these values'
|
|
38
39
|
}
|
|
39
40
|
}
|
|
40
41
|
},
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
tags: [
|
|
43
|
+
'status',
|
|
44
|
+
'schema'
|
|
44
45
|
]
|
|
45
46
|
};
|
package/data/data-tags.js
CHANGED
|
@@ -2,32 +2,33 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.DataTags = void 0;
|
|
4
4
|
exports.DataTags = {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
5
|
+
name: 'DataTags',
|
|
6
|
+
slug: 'data_tags',
|
|
7
|
+
category: 'data',
|
|
8
|
+
display_name: 'Tags',
|
|
9
|
+
description: 'Adds a citext[] tags column with GIN index for efficient array containment queries (@>, &&). Standard tagging pattern for categorization and filtering.',
|
|
10
|
+
parameter_schema: {
|
|
11
|
+
type: 'object',
|
|
12
|
+
properties: {
|
|
13
|
+
field_name: {
|
|
14
|
+
type: 'string',
|
|
15
|
+
format: 'column-ref',
|
|
16
|
+
description: 'Column name for the tags array',
|
|
17
|
+
default: 'tags'
|
|
17
18
|
},
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
default_value: {
|
|
20
|
+
type: 'string',
|
|
21
|
+
description: 'Default value expression for the tags column'
|
|
21
22
|
},
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
is_required: {
|
|
24
|
+
type: 'boolean',
|
|
25
|
+
description: 'Whether the column has a NOT NULL constraint',
|
|
26
|
+
default: false
|
|
26
27
|
}
|
|
27
28
|
}
|
|
28
29
|
},
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
tags: [
|
|
31
|
+
'tags',
|
|
32
|
+
'schema'
|
|
32
33
|
]
|
|
33
34
|
};
|
package/data/data-timestamps.js
CHANGED
|
@@ -2,23 +2,23 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.DataTimestamps = void 0;
|
|
4
4
|
exports.DataTimestamps = {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
5
|
+
name: 'DataTimestamps',
|
|
6
|
+
slug: 'data_timestamps',
|
|
7
|
+
category: 'data',
|
|
8
|
+
display_name: 'Timestamps',
|
|
9
|
+
description: 'Adds automatic timestamp tracking with created_at and updated_at columns.',
|
|
10
|
+
parameter_schema: {
|
|
11
|
+
type: 'object',
|
|
12
|
+
properties: {
|
|
13
|
+
include_id: {
|
|
14
|
+
type: 'boolean',
|
|
15
|
+
description: 'If true, also adds a UUID primary key column with auto-generation',
|
|
16
|
+
default: true
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
},
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
tags: [
|
|
21
|
+
'timestamps',
|
|
22
|
+
'schema'
|
|
23
23
|
]
|
|
24
24
|
};
|
package/data/index.d.ts
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { DataCompositeField } from './data-composite-field';
|
|
2
2
|
export { DataDirectOwner } from './data-direct-owner';
|
|
3
3
|
export { DataEntityMembership } from './data-entity-membership';
|
|
4
|
+
export { DataForceCurrentUser } from './data-force-current-user';
|
|
5
|
+
export { DataId } from './data-id';
|
|
6
|
+
export { DataImmutableFields } from './data-immutable-fields';
|
|
7
|
+
export { DataInflection } from './data-inflection';
|
|
8
|
+
export { DataInheritFromParent } from './data-inherit-from-parent';
|
|
9
|
+
export { DataJobTrigger } from './data-job-trigger';
|
|
10
|
+
export { DataJsonb } from './data-jsonb';
|
|
11
|
+
export { DataOwnedFields } from './data-owned-fields';
|
|
4
12
|
export { DataOwnershipInEntity } from './data-ownership-in-entity';
|
|
5
|
-
export { DataTimestamps } from './data-timestamps';
|
|
6
13
|
export { DataPeoplestamps } from './data-peoplestamps';
|
|
7
14
|
export { DataPublishable } from './data-publishable';
|
|
15
|
+
export { DataSlug } from './data-slug';
|
|
8
16
|
export { DataSoftDelete } from './data-soft-delete';
|
|
9
|
-
export {
|
|
10
|
-
export {
|
|
17
|
+
export { DataStatusField } from './data-status-field';
|
|
18
|
+
export { DataTags } from './data-tags';
|
|
19
|
+
export { DataTimestamps } from './data-timestamps';
|
|
11
20
|
export { SearchBm25 } from './search-bm25';
|
|
12
|
-
export {
|
|
21
|
+
export { SearchFullText } from './search-full-text';
|
|
13
22
|
export { SearchSpatial } from './search-spatial';
|
|
14
23
|
export { SearchSpatialAggregate } from './search-spatial-aggregate';
|
|
15
|
-
export { DataJobTrigger } from './data-job-trigger';
|
|
16
|
-
export { DataTags } from './data-tags';
|
|
17
|
-
export { DataStatusField } from './data-status-field';
|
|
18
|
-
export { DataJsonb } from './data-jsonb';
|
|
19
24
|
export { SearchTrgm } from './search-trgm';
|
|
20
|
-
export {
|
|
21
|
-
export {
|
|
22
|
-
export { DataOwnedFields } from './data-owned-fields';
|
|
23
|
-
export { DataInheritFromParent } from './data-inherit-from-parent';
|
|
24
|
-
export { DataForceCurrentUser } from './data-force-current-user';
|
|
25
|
-
export { DataImmutableFields } from './data-immutable-fields';
|
|
26
|
-
export { DataCompositeField } from './data-composite-field';
|
|
27
|
-
export { TableUserProfiles } from './table-user-profiles';
|
|
25
|
+
export { SearchUnified } from './search-unified';
|
|
26
|
+
export { SearchVector } from './search-vector';
|
|
28
27
|
export { TableOrganizationSettings } from './table-organization-settings';
|
|
28
|
+
export { TableUserProfiles } from './table-user-profiles';
|
|
29
29
|
export { TableUserSettings } from './table-user-settings';
|
package/data/index.js
CHANGED
|
@@ -1,61 +1,61 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TableUserSettings = exports.
|
|
4
|
-
var
|
|
5
|
-
Object.defineProperty(exports, "
|
|
3
|
+
exports.TableUserSettings = exports.TableUserProfiles = exports.TableOrganizationSettings = exports.SearchVector = exports.SearchUnified = exports.SearchTrgm = exports.SearchSpatialAggregate = exports.SearchSpatial = exports.SearchFullText = exports.SearchBm25 = exports.DataTimestamps = exports.DataTags = exports.DataStatusField = exports.DataSoftDelete = exports.DataSlug = exports.DataPublishable = exports.DataPeoplestamps = exports.DataOwnershipInEntity = exports.DataOwnedFields = exports.DataJsonb = exports.DataJobTrigger = exports.DataInheritFromParent = exports.DataInflection = exports.DataImmutableFields = exports.DataId = exports.DataForceCurrentUser = exports.DataEntityMembership = exports.DataDirectOwner = exports.DataCompositeField = void 0;
|
|
4
|
+
var data_composite_field_1 = require("./data-composite-field");
|
|
5
|
+
Object.defineProperty(exports, "DataCompositeField", { enumerable: true, get: function () { return data_composite_field_1.DataCompositeField; } });
|
|
6
6
|
var data_direct_owner_1 = require("./data-direct-owner");
|
|
7
7
|
Object.defineProperty(exports, "DataDirectOwner", { enumerable: true, get: function () { return data_direct_owner_1.DataDirectOwner; } });
|
|
8
8
|
var data_entity_membership_1 = require("./data-entity-membership");
|
|
9
9
|
Object.defineProperty(exports, "DataEntityMembership", { enumerable: true, get: function () { return data_entity_membership_1.DataEntityMembership; } });
|
|
10
|
+
var data_force_current_user_1 = require("./data-force-current-user");
|
|
11
|
+
Object.defineProperty(exports, "DataForceCurrentUser", { enumerable: true, get: function () { return data_force_current_user_1.DataForceCurrentUser; } });
|
|
12
|
+
var data_id_1 = require("./data-id");
|
|
13
|
+
Object.defineProperty(exports, "DataId", { enumerable: true, get: function () { return data_id_1.DataId; } });
|
|
14
|
+
var data_immutable_fields_1 = require("./data-immutable-fields");
|
|
15
|
+
Object.defineProperty(exports, "DataImmutableFields", { enumerable: true, get: function () { return data_immutable_fields_1.DataImmutableFields; } });
|
|
16
|
+
var data_inflection_1 = require("./data-inflection");
|
|
17
|
+
Object.defineProperty(exports, "DataInflection", { enumerable: true, get: function () { return data_inflection_1.DataInflection; } });
|
|
18
|
+
var data_inherit_from_parent_1 = require("./data-inherit-from-parent");
|
|
19
|
+
Object.defineProperty(exports, "DataInheritFromParent", { enumerable: true, get: function () { return data_inherit_from_parent_1.DataInheritFromParent; } });
|
|
20
|
+
var data_job_trigger_1 = require("./data-job-trigger");
|
|
21
|
+
Object.defineProperty(exports, "DataJobTrigger", { enumerable: true, get: function () { return data_job_trigger_1.DataJobTrigger; } });
|
|
22
|
+
var data_jsonb_1 = require("./data-jsonb");
|
|
23
|
+
Object.defineProperty(exports, "DataJsonb", { enumerable: true, get: function () { return data_jsonb_1.DataJsonb; } });
|
|
24
|
+
var data_owned_fields_1 = require("./data-owned-fields");
|
|
25
|
+
Object.defineProperty(exports, "DataOwnedFields", { enumerable: true, get: function () { return data_owned_fields_1.DataOwnedFields; } });
|
|
10
26
|
var data_ownership_in_entity_1 = require("./data-ownership-in-entity");
|
|
11
27
|
Object.defineProperty(exports, "DataOwnershipInEntity", { enumerable: true, get: function () { return data_ownership_in_entity_1.DataOwnershipInEntity; } });
|
|
12
|
-
var data_timestamps_1 = require("./data-timestamps");
|
|
13
|
-
Object.defineProperty(exports, "DataTimestamps", { enumerable: true, get: function () { return data_timestamps_1.DataTimestamps; } });
|
|
14
28
|
var data_peoplestamps_1 = require("./data-peoplestamps");
|
|
15
29
|
Object.defineProperty(exports, "DataPeoplestamps", { enumerable: true, get: function () { return data_peoplestamps_1.DataPeoplestamps; } });
|
|
16
30
|
var data_publishable_1 = require("./data-publishable");
|
|
17
31
|
Object.defineProperty(exports, "DataPublishable", { enumerable: true, get: function () { return data_publishable_1.DataPublishable; } });
|
|
32
|
+
var data_slug_1 = require("./data-slug");
|
|
33
|
+
Object.defineProperty(exports, "DataSlug", { enumerable: true, get: function () { return data_slug_1.DataSlug; } });
|
|
18
34
|
var data_soft_delete_1 = require("./data-soft-delete");
|
|
19
35
|
Object.defineProperty(exports, "DataSoftDelete", { enumerable: true, get: function () { return data_soft_delete_1.DataSoftDelete; } });
|
|
20
|
-
var
|
|
21
|
-
Object.defineProperty(exports, "
|
|
22
|
-
var
|
|
23
|
-
Object.defineProperty(exports, "
|
|
36
|
+
var data_status_field_1 = require("./data-status-field");
|
|
37
|
+
Object.defineProperty(exports, "DataStatusField", { enumerable: true, get: function () { return data_status_field_1.DataStatusField; } });
|
|
38
|
+
var data_tags_1 = require("./data-tags");
|
|
39
|
+
Object.defineProperty(exports, "DataTags", { enumerable: true, get: function () { return data_tags_1.DataTags; } });
|
|
40
|
+
var data_timestamps_1 = require("./data-timestamps");
|
|
41
|
+
Object.defineProperty(exports, "DataTimestamps", { enumerable: true, get: function () { return data_timestamps_1.DataTimestamps; } });
|
|
24
42
|
var search_bm25_1 = require("./search-bm25");
|
|
25
43
|
Object.defineProperty(exports, "SearchBm25", { enumerable: true, get: function () { return search_bm25_1.SearchBm25; } });
|
|
26
|
-
var
|
|
27
|
-
Object.defineProperty(exports, "
|
|
44
|
+
var search_full_text_1 = require("./search-full-text");
|
|
45
|
+
Object.defineProperty(exports, "SearchFullText", { enumerable: true, get: function () { return search_full_text_1.SearchFullText; } });
|
|
28
46
|
var search_spatial_1 = require("./search-spatial");
|
|
29
47
|
Object.defineProperty(exports, "SearchSpatial", { enumerable: true, get: function () { return search_spatial_1.SearchSpatial; } });
|
|
30
48
|
var search_spatial_aggregate_1 = require("./search-spatial-aggregate");
|
|
31
49
|
Object.defineProperty(exports, "SearchSpatialAggregate", { enumerable: true, get: function () { return search_spatial_aggregate_1.SearchSpatialAggregate; } });
|
|
32
|
-
var data_job_trigger_1 = require("./data-job-trigger");
|
|
33
|
-
Object.defineProperty(exports, "DataJobTrigger", { enumerable: true, get: function () { return data_job_trigger_1.DataJobTrigger; } });
|
|
34
|
-
var data_tags_1 = require("./data-tags");
|
|
35
|
-
Object.defineProperty(exports, "DataTags", { enumerable: true, get: function () { return data_tags_1.DataTags; } });
|
|
36
|
-
var data_status_field_1 = require("./data-status-field");
|
|
37
|
-
Object.defineProperty(exports, "DataStatusField", { enumerable: true, get: function () { return data_status_field_1.DataStatusField; } });
|
|
38
|
-
var data_jsonb_1 = require("./data-jsonb");
|
|
39
|
-
Object.defineProperty(exports, "DataJsonb", { enumerable: true, get: function () { return data_jsonb_1.DataJsonb; } });
|
|
40
50
|
var search_trgm_1 = require("./search-trgm");
|
|
41
51
|
Object.defineProperty(exports, "SearchTrgm", { enumerable: true, get: function () { return search_trgm_1.SearchTrgm; } });
|
|
42
|
-
var
|
|
43
|
-
Object.defineProperty(exports, "
|
|
44
|
-
var
|
|
45
|
-
Object.defineProperty(exports, "
|
|
46
|
-
var data_owned_fields_1 = require("./data-owned-fields");
|
|
47
|
-
Object.defineProperty(exports, "DataOwnedFields", { enumerable: true, get: function () { return data_owned_fields_1.DataOwnedFields; } });
|
|
48
|
-
var data_inherit_from_parent_1 = require("./data-inherit-from-parent");
|
|
49
|
-
Object.defineProperty(exports, "DataInheritFromParent", { enumerable: true, get: function () { return data_inherit_from_parent_1.DataInheritFromParent; } });
|
|
50
|
-
var data_force_current_user_1 = require("./data-force-current-user");
|
|
51
|
-
Object.defineProperty(exports, "DataForceCurrentUser", { enumerable: true, get: function () { return data_force_current_user_1.DataForceCurrentUser; } });
|
|
52
|
-
var data_immutable_fields_1 = require("./data-immutable-fields");
|
|
53
|
-
Object.defineProperty(exports, "DataImmutableFields", { enumerable: true, get: function () { return data_immutable_fields_1.DataImmutableFields; } });
|
|
54
|
-
var data_composite_field_1 = require("./data-composite-field");
|
|
55
|
-
Object.defineProperty(exports, "DataCompositeField", { enumerable: true, get: function () { return data_composite_field_1.DataCompositeField; } });
|
|
56
|
-
var table_user_profiles_1 = require("./table-user-profiles");
|
|
57
|
-
Object.defineProperty(exports, "TableUserProfiles", { enumerable: true, get: function () { return table_user_profiles_1.TableUserProfiles; } });
|
|
52
|
+
var search_unified_1 = require("./search-unified");
|
|
53
|
+
Object.defineProperty(exports, "SearchUnified", { enumerable: true, get: function () { return search_unified_1.SearchUnified; } });
|
|
54
|
+
var search_vector_1 = require("./search-vector");
|
|
55
|
+
Object.defineProperty(exports, "SearchVector", { enumerable: true, get: function () { return search_vector_1.SearchVector; } });
|
|
58
56
|
var table_organization_settings_1 = require("./table-organization-settings");
|
|
59
57
|
Object.defineProperty(exports, "TableOrganizationSettings", { enumerable: true, get: function () { return table_organization_settings_1.TableOrganizationSettings; } });
|
|
58
|
+
var table_user_profiles_1 = require("./table-user-profiles");
|
|
59
|
+
Object.defineProperty(exports, "TableUserProfiles", { enumerable: true, get: function () { return table_user_profiles_1.TableUserProfiles; } });
|
|
60
60
|
var table_user_settings_1 = require("./table-user-settings");
|
|
61
61
|
Object.defineProperty(exports, "TableUserSettings", { enumerable: true, get: function () { return table_user_settings_1.TableUserSettings; } });
|
package/data/search-bm25.js
CHANGED
|
@@ -2,46 +2,47 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.SearchBm25 = void 0;
|
|
4
4
|
exports.SearchBm25 = {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
5
|
+
name: 'SearchBm25',
|
|
6
|
+
slug: 'search_bm25',
|
|
7
|
+
category: 'search',
|
|
8
|
+
display_name: 'BM25 Search',
|
|
9
|
+
description: 'Creates a BM25 index on an existing text column using pg_textsearch. Enables statistical relevance ranking with configurable k1 and b parameters. The BM25 index is auto-detected by graphile-search.',
|
|
10
|
+
parameter_schema: {
|
|
11
|
+
type: 'object',
|
|
12
|
+
properties: {
|
|
13
|
+
field_name: {
|
|
14
|
+
type: 'string',
|
|
15
|
+
format: 'column-ref',
|
|
16
|
+
description: 'Name of existing text column to index with BM25'
|
|
16
17
|
},
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
text_config: {
|
|
19
|
+
type: 'string',
|
|
20
|
+
description: 'PostgreSQL text search configuration for BM25',
|
|
21
|
+
default: 'english'
|
|
21
22
|
},
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
k1: {
|
|
24
|
+
type: 'number',
|
|
25
|
+
description: 'BM25 k1 parameter: term frequency saturation (typical: 1.2-2.0)',
|
|
26
|
+
default: null
|
|
26
27
|
},
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
28
|
+
b: {
|
|
29
|
+
type: 'number',
|
|
30
|
+
description: 'BM25 b parameter: document length normalization (0=none, 1=full, typical: 0.75)',
|
|
31
|
+
default: null
|
|
31
32
|
},
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
33
|
+
search_score_weight: {
|
|
34
|
+
type: 'number',
|
|
35
|
+
description: 'Weight for this algorithm in composite searchScore',
|
|
36
|
+
default: 1
|
|
36
37
|
}
|
|
37
38
|
},
|
|
38
|
-
|
|
39
|
-
|
|
39
|
+
required: [
|
|
40
|
+
'field_name'
|
|
40
41
|
]
|
|
41
42
|
},
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
43
|
+
tags: [
|
|
44
|
+
'search',
|
|
45
|
+
'bm25',
|
|
46
|
+
'schema'
|
|
46
47
|
]
|
|
47
48
|
};
|