node-type-registry 0.32.0 → 0.33.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.
@@ -0,0 +1,2 @@
1
+ import type { NodeTypeDefinition } from '../types';
2
+ export declare const CheckGreaterThan: NodeTypeDefinition;
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CheckGreaterThan = void 0;
4
+ exports.CheckGreaterThan = {
5
+ name: 'CheckGreaterThan',
6
+ slug: 'check_greater_than',
7
+ category: 'check',
8
+ display_name: 'Check Greater Than',
9
+ description: 'Adds a CHECK constraint that validates a column value is greater than a threshold (single-column: column > value) or that one column is greater than another (cross-column: columns[0] > columns[1]). Compiled via AST helpers.',
10
+ parameter_schema: {
11
+ type: 'object',
12
+ properties: {
13
+ column: {
14
+ type: 'string',
15
+ format: 'column-ref',
16
+ description: 'Single column to compare against value (mutually exclusive with columns)',
17
+ },
18
+ value: {
19
+ type: 'number',
20
+ description: 'Threshold value for single-column comparison (column > value)',
21
+ default: 0,
22
+ },
23
+ columns: {
24
+ type: 'array',
25
+ items: { type: 'string', format: 'column-ref' },
26
+ description: 'Two columns for cross-column comparison (columns[0] > columns[1])',
27
+ minItems: 2,
28
+ maxItems: 2,
29
+ },
30
+ },
31
+ },
32
+ tags: ['check', 'constraint', 'validation', 'comparison'],
33
+ };
@@ -0,0 +1,2 @@
1
+ import type { NodeTypeDefinition } from '../types';
2
+ export declare const CheckLessThan: NodeTypeDefinition;
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CheckLessThan = void 0;
4
+ exports.CheckLessThan = {
5
+ name: 'CheckLessThan',
6
+ slug: 'check_less_than',
7
+ category: 'check',
8
+ display_name: 'Check Less Than',
9
+ description: 'Adds a CHECK constraint that validates a column value is less than a threshold (single-column: column < value) or that one column is less than another (cross-column: columns[0] < columns[1]). Compiled via AST helpers.',
10
+ parameter_schema: {
11
+ type: 'object',
12
+ properties: {
13
+ column: {
14
+ type: 'string',
15
+ format: 'column-ref',
16
+ description: 'Single column to compare against value (mutually exclusive with columns)',
17
+ },
18
+ value: {
19
+ type: 'number',
20
+ description: 'Threshold value for single-column comparison (column < value)',
21
+ },
22
+ columns: {
23
+ type: 'array',
24
+ items: { type: 'string', format: 'column-ref' },
25
+ description: 'Two columns for cross-column comparison (columns[0] < columns[1])',
26
+ minItems: 2,
27
+ maxItems: 2,
28
+ },
29
+ },
30
+ },
31
+ tags: ['check', 'constraint', 'validation', 'comparison'],
32
+ };
@@ -0,0 +1,2 @@
1
+ import type { NodeTypeDefinition } from '../types';
2
+ export declare const CheckNotEqual: NodeTypeDefinition;
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CheckNotEqual = void 0;
4
+ exports.CheckNotEqual = {
5
+ name: 'CheckNotEqual',
6
+ slug: 'check_not_equal',
7
+ category: 'check',
8
+ display_name: 'Check Not Equal',
9
+ description: 'Adds a CHECK constraint that validates two columns are not equal (columns[0] != columns[1]). Useful for preventing self-referencing rows. Compiled via AST helpers.',
10
+ parameter_schema: {
11
+ type: 'object',
12
+ properties: {
13
+ columns: {
14
+ type: 'array',
15
+ items: { type: 'string', format: 'column-ref' },
16
+ description: 'Two columns that must not be equal',
17
+ minItems: 2,
18
+ maxItems: 2,
19
+ },
20
+ },
21
+ required: ['columns'],
22
+ },
23
+ tags: ['check', 'constraint', 'validation', 'inequality'],
24
+ };
@@ -0,0 +1,2 @@
1
+ import type { NodeTypeDefinition } from '../types';
2
+ export declare const CheckOneOf: NodeTypeDefinition;
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CheckOneOf = void 0;
4
+ exports.CheckOneOf = {
5
+ name: 'CheckOneOf',
6
+ slug: 'check_one_of',
7
+ category: 'check',
8
+ display_name: 'Check One Of',
9
+ description: 'Adds a CHECK constraint that validates a column value is one of an allowed set (e.g. tier IN (\'free\', \'paid\', \'custom\')). Compiled to column = ANY(ARRAY[...]) via AST helpers.',
10
+ parameter_schema: {
11
+ type: 'object',
12
+ properties: {
13
+ column: {
14
+ type: 'string',
15
+ format: 'column-ref',
16
+ description: 'Column to validate against the allowed values',
17
+ },
18
+ values: {
19
+ type: 'array',
20
+ items: { type: 'string' },
21
+ description: 'Array of allowed values for the column',
22
+ },
23
+ },
24
+ required: ['column', 'values'],
25
+ },
26
+ tags: ['check', 'constraint', 'validation', 'enum'],
27
+ };
package/data/index.d.ts CHANGED
@@ -1,3 +1,7 @@
1
+ export { CheckGreaterThan } from './check-greater-than';
2
+ export { CheckLessThan } from './check-less-than';
3
+ export { CheckNotEqual } from './check-not-equal';
4
+ export { CheckOneOf } from './check-one-of';
1
5
  export { DataAggregateLimitCounter } from './data-aggregate-limit-counter';
2
6
  export { DataBillingMeter } from './data-billing-meter';
3
7
  export { DataChunks } from './data-chunks';
package/data/index.js CHANGED
@@ -1,6 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
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.DataRealtime = exports.DataPublishable = exports.DataPeoplestamps = exports.DataOwnershipInEntity = exports.DataOwnedFields = exports.DataJsonb = exports.DataLimitCounter = exports.DataJobTrigger = exports.DataInheritFromParent = exports.DataInflection = exports.DataImmutableFields = exports.DataImageEmbedding = exports.DataId = exports.DataForceCurrentUser = exports.DataFeatureFlag = exports.DataFileEmbedding = exports.DataEntityMembership = exports.DataDirectOwner = exports.DataCompositeField = exports.DataChunks = exports.DataBillingMeter = exports.DataAggregateLimitCounter = void 0;
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.DataRealtime = exports.DataPublishable = exports.DataPeoplestamps = exports.DataOwnershipInEntity = exports.DataOwnedFields = exports.DataJsonb = exports.DataLimitCounter = exports.DataJobTrigger = exports.DataInheritFromParent = exports.DataInflection = exports.DataImmutableFields = exports.DataImageEmbedding = exports.DataId = exports.DataForceCurrentUser = exports.DataFeatureFlag = exports.DataFileEmbedding = exports.DataEntityMembership = exports.DataDirectOwner = exports.DataCompositeField = exports.DataChunks = exports.DataBillingMeter = exports.DataAggregateLimitCounter = exports.CheckOneOf = exports.CheckNotEqual = exports.CheckLessThan = exports.CheckGreaterThan = void 0;
4
+ var check_greater_than_1 = require("./check-greater-than");
5
+ Object.defineProperty(exports, "CheckGreaterThan", { enumerable: true, get: function () { return check_greater_than_1.CheckGreaterThan; } });
6
+ var check_less_than_1 = require("./check-less-than");
7
+ Object.defineProperty(exports, "CheckLessThan", { enumerable: true, get: function () { return check_less_than_1.CheckLessThan; } });
8
+ var check_not_equal_1 = require("./check-not-equal");
9
+ Object.defineProperty(exports, "CheckNotEqual", { enumerable: true, get: function () { return check_not_equal_1.CheckNotEqual; } });
10
+ var check_one_of_1 = require("./check-one-of");
11
+ Object.defineProperty(exports, "CheckOneOf", { enumerable: true, get: function () { return check_one_of_1.CheckOneOf; } });
4
12
  var data_aggregate_limit_counter_1 = require("./data-aggregate-limit-counter");
5
13
  Object.defineProperty(exports, "DataAggregateLimitCounter", { enumerable: true, get: function () { return data_aggregate_limit_counter_1.DataAggregateLimitCounter; } });
6
14
  var data_billing_meter_1 = require("./data-billing-meter");
@@ -0,0 +1,2 @@
1
+ import type { NodeTypeDefinition } from '../types';
2
+ export declare const CheckGreaterThan: NodeTypeDefinition;
@@ -0,0 +1,30 @@
1
+ export const CheckGreaterThan = {
2
+ name: 'CheckGreaterThan',
3
+ slug: 'check_greater_than',
4
+ category: 'check',
5
+ display_name: 'Check Greater Than',
6
+ description: 'Adds a CHECK constraint that validates a column value is greater than a threshold (single-column: column > value) or that one column is greater than another (cross-column: columns[0] > columns[1]). Compiled via AST helpers.',
7
+ parameter_schema: {
8
+ type: 'object',
9
+ properties: {
10
+ column: {
11
+ type: 'string',
12
+ format: 'column-ref',
13
+ description: 'Single column to compare against value (mutually exclusive with columns)',
14
+ },
15
+ value: {
16
+ type: 'number',
17
+ description: 'Threshold value for single-column comparison (column > value)',
18
+ default: 0,
19
+ },
20
+ columns: {
21
+ type: 'array',
22
+ items: { type: 'string', format: 'column-ref' },
23
+ description: 'Two columns for cross-column comparison (columns[0] > columns[1])',
24
+ minItems: 2,
25
+ maxItems: 2,
26
+ },
27
+ },
28
+ },
29
+ tags: ['check', 'constraint', 'validation', 'comparison'],
30
+ };
@@ -0,0 +1,2 @@
1
+ import type { NodeTypeDefinition } from '../types';
2
+ export declare const CheckLessThan: NodeTypeDefinition;
@@ -0,0 +1,29 @@
1
+ export const CheckLessThan = {
2
+ name: 'CheckLessThan',
3
+ slug: 'check_less_than',
4
+ category: 'check',
5
+ display_name: 'Check Less Than',
6
+ description: 'Adds a CHECK constraint that validates a column value is less than a threshold (single-column: column < value) or that one column is less than another (cross-column: columns[0] < columns[1]). Compiled via AST helpers.',
7
+ parameter_schema: {
8
+ type: 'object',
9
+ properties: {
10
+ column: {
11
+ type: 'string',
12
+ format: 'column-ref',
13
+ description: 'Single column to compare against value (mutually exclusive with columns)',
14
+ },
15
+ value: {
16
+ type: 'number',
17
+ description: 'Threshold value for single-column comparison (column < value)',
18
+ },
19
+ columns: {
20
+ type: 'array',
21
+ items: { type: 'string', format: 'column-ref' },
22
+ description: 'Two columns for cross-column comparison (columns[0] < columns[1])',
23
+ minItems: 2,
24
+ maxItems: 2,
25
+ },
26
+ },
27
+ },
28
+ tags: ['check', 'constraint', 'validation', 'comparison'],
29
+ };
@@ -0,0 +1,2 @@
1
+ import type { NodeTypeDefinition } from '../types';
2
+ export declare const CheckNotEqual: NodeTypeDefinition;
@@ -0,0 +1,21 @@
1
+ export const CheckNotEqual = {
2
+ name: 'CheckNotEqual',
3
+ slug: 'check_not_equal',
4
+ category: 'check',
5
+ display_name: 'Check Not Equal',
6
+ description: 'Adds a CHECK constraint that validates two columns are not equal (columns[0] != columns[1]). Useful for preventing self-referencing rows. Compiled via AST helpers.',
7
+ parameter_schema: {
8
+ type: 'object',
9
+ properties: {
10
+ columns: {
11
+ type: 'array',
12
+ items: { type: 'string', format: 'column-ref' },
13
+ description: 'Two columns that must not be equal',
14
+ minItems: 2,
15
+ maxItems: 2,
16
+ },
17
+ },
18
+ required: ['columns'],
19
+ },
20
+ tags: ['check', 'constraint', 'validation', 'inequality'],
21
+ };
@@ -0,0 +1,2 @@
1
+ import type { NodeTypeDefinition } from '../types';
2
+ export declare const CheckOneOf: NodeTypeDefinition;
@@ -0,0 +1,24 @@
1
+ export const CheckOneOf = {
2
+ name: 'CheckOneOf',
3
+ slug: 'check_one_of',
4
+ category: 'check',
5
+ display_name: 'Check One Of',
6
+ description: 'Adds a CHECK constraint that validates a column value is one of an allowed set (e.g. tier IN (\'free\', \'paid\', \'custom\')). Compiled to column = ANY(ARRAY[...]) via AST helpers.',
7
+ parameter_schema: {
8
+ type: 'object',
9
+ properties: {
10
+ column: {
11
+ type: 'string',
12
+ format: 'column-ref',
13
+ description: 'Column to validate against the allowed values',
14
+ },
15
+ values: {
16
+ type: 'array',
17
+ items: { type: 'string' },
18
+ description: 'Array of allowed values for the column',
19
+ },
20
+ },
21
+ required: ['column', 'values'],
22
+ },
23
+ tags: ['check', 'constraint', 'validation', 'enum'],
24
+ };
@@ -1,3 +1,7 @@
1
+ export { CheckGreaterThan } from './check-greater-than';
2
+ export { CheckLessThan } from './check-less-than';
3
+ export { CheckNotEqual } from './check-not-equal';
4
+ export { CheckOneOf } from './check-one-of';
1
5
  export { DataAggregateLimitCounter } from './data-aggregate-limit-counter';
2
6
  export { DataBillingMeter } from './data-billing-meter';
3
7
  export { DataChunks } from './data-chunks';
package/esm/data/index.js CHANGED
@@ -1,3 +1,7 @@
1
+ export { CheckGreaterThan } from './check-greater-than';
2
+ export { CheckLessThan } from './check-less-than';
3
+ export { CheckNotEqual } from './check-not-equal';
4
+ export { CheckOneOf } from './check-one-of';
1
5
  export { DataAggregateLimitCounter } from './data-aggregate-limit-counter';
2
6
  export { DataBillingMeter } from './data-billing-meter';
3
7
  export { DataChunks } from './data-chunks';
package/esm/types.d.ts CHANGED
@@ -48,7 +48,7 @@ export interface NodeTypeDefinition {
48
48
  name: string;
49
49
  /** snake_case slug, e.g. 'authz_direct_owner' */
50
50
  slug: string;
51
- /** Category: authz | data | field | relation | view */
51
+ /** Category: authz | check | data | field | relation | search | view */
52
52
  category: string;
53
53
  /** Human-readable display name, e.g. 'Direct Ownership' */
54
54
  display_name: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-type-registry",
3
- "version": "0.32.0",
3
+ "version": "0.33.1",
4
4
  "description": "Node type definitions for the Constructive blueprint system. Single source of truth for all Authz*, Data*, Relation*, and View* node types.",
5
5
  "author": "Constructive <developers@constructive.io>",
6
6
  "main": "index.js",
@@ -47,5 +47,5 @@
47
47
  "registry",
48
48
  "graphile"
49
49
  ],
50
- "gitHead": "c665e2443ec98da61e9f372cf663cb9973afef4b"
50
+ "gitHead": "d43f1d7e38cc39a71b4f8d2cafb39f46df12e31a"
51
51
  }
package/types.d.ts CHANGED
@@ -48,7 +48,7 @@ export interface NodeTypeDefinition {
48
48
  name: string;
49
49
  /** snake_case slug, e.g. 'authz_direct_owner' */
50
50
  slug: string;
51
- /** Category: authz | data | field | relation | view */
51
+ /** Category: authz | check | data | field | relation | search | view */
52
52
  category: string;
53
53
  /** Human-readable display name, e.g. 'Direct Ownership' */
54
54
  display_name: string;