node-type-registry 0.29.1 → 0.31.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.
@@ -0,0 +1,2 @@
1
+ import type { NodeTypeDefinition } from '../types';
2
+ export declare const DataAggregateLimitCounter: NodeTypeDefinition;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DataAggregateLimitCounter = void 0;
4
+ exports.DataAggregateLimitCounter = {
5
+ name: 'DataAggregateLimitCounter',
6
+ slug: 'data_aggregate_limit_counter',
7
+ category: 'data',
8
+ display_name: 'Aggregate Limit Counter',
9
+ description: 'Declaratively attaches aggregate limit-tracking triggers to a table. On INSERT the named limit is incremented per entity; on DELETE it is decremented. Uses org_limit_aggregates_inc/dec for per-entity (org-level) aggregate limits rather than per-user limits. Requires a provisioned limits_module for the target database.',
10
+ parameter_schema: {
11
+ type: 'object',
12
+ properties: {
13
+ limit_name: {
14
+ type: 'string',
15
+ description: 'Name of the aggregate limit to track (must match a default_limits entry, e.g. "databases", "members")',
16
+ },
17
+ entity_field: {
18
+ type: 'string',
19
+ format: 'column-ref',
20
+ description: 'Column on the target table that holds the entity id for aggregate limit lookup',
21
+ default: 'entity_id',
22
+ },
23
+ events: {
24
+ type: 'array',
25
+ items: {
26
+ type: 'string',
27
+ enum: ['INSERT', 'DELETE', 'UPDATE'],
28
+ },
29
+ description: 'Which DML events to attach triggers for',
30
+ default: ['INSERT', 'DELETE'],
31
+ },
32
+ },
33
+ required: ['limit_name'],
34
+ },
35
+ tags: ['limits', 'triggers', 'aggregates', 'billing'],
36
+ };
@@ -0,0 +1,2 @@
1
+ import type { NodeTypeDefinition } from '../types';
2
+ export declare const DataBillingMeter: NodeTypeDefinition;
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DataBillingMeter = void 0;
4
+ exports.DataBillingMeter = {
5
+ name: 'DataBillingMeter',
6
+ slug: 'data_billing_meter',
7
+ category: 'data',
8
+ display_name: 'Billing Meter',
9
+ description: 'Declaratively attaches billing usage-recording triggers to a table. On INSERT the named meter is incremented via record_usage; on DELETE it is decremented (reversal). On UPDATE, if the entity_field changes, the old entity is decremented and the new entity is incremented. Requires a provisioned billing_module for the target database.',
10
+ parameter_schema: {
11
+ type: 'object',
12
+ properties: {
13
+ meter_slug: {
14
+ type: 'string',
15
+ description: 'Slug of the billing meter to record usage against (must match a meters table entry, e.g. "databases", "seats")',
16
+ },
17
+ entity_field: {
18
+ type: 'string',
19
+ format: 'column-ref',
20
+ description: 'Column on the target table that holds the entity id for billing',
21
+ default: 'entity_id',
22
+ },
23
+ quantity: {
24
+ type: 'integer',
25
+ description: 'Units to record per event (default 1)',
26
+ default: 1,
27
+ },
28
+ events: {
29
+ type: 'array',
30
+ items: {
31
+ type: 'string',
32
+ enum: ['INSERT', 'DELETE', 'UPDATE'],
33
+ },
34
+ description: 'Which DML events to attach triggers for',
35
+ default: ['INSERT', 'DELETE'],
36
+ },
37
+ },
38
+ required: ['meter_slug'],
39
+ },
40
+ tags: ['billing', 'triggers', 'metering', 'usage'],
41
+ };
@@ -0,0 +1,2 @@
1
+ import type { NodeTypeDefinition } from '../types';
2
+ export declare const DataRealtime: NodeTypeDefinition;
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DataRealtime = void 0;
4
+ exports.DataRealtime = {
5
+ name: 'DataRealtime',
6
+ slug: 'data_realtime',
7
+ category: 'data',
8
+ display_name: 'Realtime Subscriptions',
9
+ description: 'Creates per-table subscriber tables in subscriptions_public with ' +
10
+ 'RLS policies derived from source table SELECT policies. Attaches ' +
11
+ 'statement-level triggers to emit changes to subscribers.',
12
+ parameter_schema: {
13
+ type: 'object',
14
+ properties: {
15
+ operations: {
16
+ type: 'array',
17
+ items: {
18
+ type: 'string',
19
+ enum: ['INSERT', 'UPDATE', 'DELETE']
20
+ },
21
+ description: 'Which DML operations to track with emit_change triggers',
22
+ default: ['INSERT', 'UPDATE', 'DELETE']
23
+ },
24
+ subscriber_table_name: {
25
+ type: 'string',
26
+ description: 'Custom name for the subscriber table (defaults to {source_table}_subscriber)'
27
+ }
28
+ }
29
+ },
30
+ tags: ['realtime', 'subscriptions', 'triggers']
31
+ };
package/data/index.d.ts CHANGED
@@ -1,3 +1,5 @@
1
+ export { DataAggregateLimitCounter } from './data-aggregate-limit-counter';
2
+ export { DataBillingMeter } from './data-billing-meter';
1
3
  export { DataChunks } from './data-chunks';
2
4
  export { DataCompositeField } from './data-composite-field';
3
5
  export { DataDirectOwner } from './data-direct-owner';
@@ -17,6 +19,7 @@ export { DataOwnedFields } from './data-owned-fields';
17
19
  export { DataOwnershipInEntity } from './data-ownership-in-entity';
18
20
  export { DataPeoplestamps } from './data-peoplestamps';
19
21
  export { DataPublishable } from './data-publishable';
22
+ export { DataRealtime } from './data-realtime';
20
23
  export { DataSlug } from './data-slug';
21
24
  export { DataSoftDelete } from './data-soft-delete';
22
25
  export { DataStatusField } from './data-status-field';
package/data/index.js CHANGED
@@ -1,6 +1,10 @@
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.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 = 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 = void 0;
4
+ var data_aggregate_limit_counter_1 = require("./data-aggregate-limit-counter");
5
+ Object.defineProperty(exports, "DataAggregateLimitCounter", { enumerable: true, get: function () { return data_aggregate_limit_counter_1.DataAggregateLimitCounter; } });
6
+ var data_billing_meter_1 = require("./data-billing-meter");
7
+ Object.defineProperty(exports, "DataBillingMeter", { enumerable: true, get: function () { return data_billing_meter_1.DataBillingMeter; } });
4
8
  var data_chunks_1 = require("./data-chunks");
5
9
  Object.defineProperty(exports, "DataChunks", { enumerable: true, get: function () { return data_chunks_1.DataChunks; } });
6
10
  var data_composite_field_1 = require("./data-composite-field");
@@ -39,6 +43,8 @@ var data_peoplestamps_1 = require("./data-peoplestamps");
39
43
  Object.defineProperty(exports, "DataPeoplestamps", { enumerable: true, get: function () { return data_peoplestamps_1.DataPeoplestamps; } });
40
44
  var data_publishable_1 = require("./data-publishable");
41
45
  Object.defineProperty(exports, "DataPublishable", { enumerable: true, get: function () { return data_publishable_1.DataPublishable; } });
46
+ var data_realtime_1 = require("./data-realtime");
47
+ Object.defineProperty(exports, "DataRealtime", { enumerable: true, get: function () { return data_realtime_1.DataRealtime; } });
42
48
  var data_slug_1 = require("./data-slug");
43
49
  Object.defineProperty(exports, "DataSlug", { enumerable: true, get: function () { return data_slug_1.DataSlug; } });
44
50
  var data_soft_delete_1 = require("./data-soft-delete");
@@ -0,0 +1,2 @@
1
+ import type { NodeTypeDefinition } from '../types';
2
+ export declare const DataAggregateLimitCounter: NodeTypeDefinition;
@@ -0,0 +1,33 @@
1
+ export const DataAggregateLimitCounter = {
2
+ name: 'DataAggregateLimitCounter',
3
+ slug: 'data_aggregate_limit_counter',
4
+ category: 'data',
5
+ display_name: 'Aggregate Limit Counter',
6
+ description: 'Declaratively attaches aggregate limit-tracking triggers to a table. On INSERT the named limit is incremented per entity; on DELETE it is decremented. Uses org_limit_aggregates_inc/dec for per-entity (org-level) aggregate limits rather than per-user limits. Requires a provisioned limits_module for the target database.',
7
+ parameter_schema: {
8
+ type: 'object',
9
+ properties: {
10
+ limit_name: {
11
+ type: 'string',
12
+ description: 'Name of the aggregate limit to track (must match a default_limits entry, e.g. "databases", "members")',
13
+ },
14
+ entity_field: {
15
+ type: 'string',
16
+ format: 'column-ref',
17
+ description: 'Column on the target table that holds the entity id for aggregate limit lookup',
18
+ default: 'entity_id',
19
+ },
20
+ events: {
21
+ type: 'array',
22
+ items: {
23
+ type: 'string',
24
+ enum: ['INSERT', 'DELETE', 'UPDATE'],
25
+ },
26
+ description: 'Which DML events to attach triggers for',
27
+ default: ['INSERT', 'DELETE'],
28
+ },
29
+ },
30
+ required: ['limit_name'],
31
+ },
32
+ tags: ['limits', 'triggers', 'aggregates', 'billing'],
33
+ };
@@ -0,0 +1,2 @@
1
+ import type { NodeTypeDefinition } from '../types';
2
+ export declare const DataBillingMeter: NodeTypeDefinition;
@@ -0,0 +1,38 @@
1
+ export const DataBillingMeter = {
2
+ name: 'DataBillingMeter',
3
+ slug: 'data_billing_meter',
4
+ category: 'data',
5
+ display_name: 'Billing Meter',
6
+ description: 'Declaratively attaches billing usage-recording triggers to a table. On INSERT the named meter is incremented via record_usage; on DELETE it is decremented (reversal). On UPDATE, if the entity_field changes, the old entity is decremented and the new entity is incremented. Requires a provisioned billing_module for the target database.',
7
+ parameter_schema: {
8
+ type: 'object',
9
+ properties: {
10
+ meter_slug: {
11
+ type: 'string',
12
+ description: 'Slug of the billing meter to record usage against (must match a meters table entry, e.g. "databases", "seats")',
13
+ },
14
+ entity_field: {
15
+ type: 'string',
16
+ format: 'column-ref',
17
+ description: 'Column on the target table that holds the entity id for billing',
18
+ default: 'entity_id',
19
+ },
20
+ quantity: {
21
+ type: 'integer',
22
+ description: 'Units to record per event (default 1)',
23
+ default: 1,
24
+ },
25
+ events: {
26
+ type: 'array',
27
+ items: {
28
+ type: 'string',
29
+ enum: ['INSERT', 'DELETE', 'UPDATE'],
30
+ },
31
+ description: 'Which DML events to attach triggers for',
32
+ default: ['INSERT', 'DELETE'],
33
+ },
34
+ },
35
+ required: ['meter_slug'],
36
+ },
37
+ tags: ['billing', 'triggers', 'metering', 'usage'],
38
+ };
@@ -0,0 +1,2 @@
1
+ import type { NodeTypeDefinition } from '../types';
2
+ export declare const DataRealtime: NodeTypeDefinition;
@@ -0,0 +1,28 @@
1
+ export const DataRealtime = {
2
+ name: 'DataRealtime',
3
+ slug: 'data_realtime',
4
+ category: 'data',
5
+ display_name: 'Realtime Subscriptions',
6
+ description: 'Creates per-table subscriber tables in subscriptions_public with ' +
7
+ 'RLS policies derived from source table SELECT policies. Attaches ' +
8
+ 'statement-level triggers to emit changes to subscribers.',
9
+ parameter_schema: {
10
+ type: 'object',
11
+ properties: {
12
+ operations: {
13
+ type: 'array',
14
+ items: {
15
+ type: 'string',
16
+ enum: ['INSERT', 'UPDATE', 'DELETE']
17
+ },
18
+ description: 'Which DML operations to track with emit_change triggers',
19
+ default: ['INSERT', 'UPDATE', 'DELETE']
20
+ },
21
+ subscriber_table_name: {
22
+ type: 'string',
23
+ description: 'Custom name for the subscriber table (defaults to {source_table}_subscriber)'
24
+ }
25
+ }
26
+ },
27
+ tags: ['realtime', 'subscriptions', 'triggers']
28
+ };
@@ -1,3 +1,5 @@
1
+ export { DataAggregateLimitCounter } from './data-aggregate-limit-counter';
2
+ export { DataBillingMeter } from './data-billing-meter';
1
3
  export { DataChunks } from './data-chunks';
2
4
  export { DataCompositeField } from './data-composite-field';
3
5
  export { DataDirectOwner } from './data-direct-owner';
@@ -17,6 +19,7 @@ export { DataOwnedFields } from './data-owned-fields';
17
19
  export { DataOwnershipInEntity } from './data-ownership-in-entity';
18
20
  export { DataPeoplestamps } from './data-peoplestamps';
19
21
  export { DataPublishable } from './data-publishable';
22
+ export { DataRealtime } from './data-realtime';
20
23
  export { DataSlug } from './data-slug';
21
24
  export { DataSoftDelete } from './data-soft-delete';
22
25
  export { DataStatusField } from './data-status-field';
package/esm/data/index.js CHANGED
@@ -1,3 +1,5 @@
1
+ export { DataAggregateLimitCounter } from './data-aggregate-limit-counter';
2
+ export { DataBillingMeter } from './data-billing-meter';
1
3
  export { DataChunks } from './data-chunks';
2
4
  export { DataCompositeField } from './data-composite-field';
3
5
  export { DataDirectOwner } from './data-direct-owner';
@@ -17,6 +19,7 @@ export { DataOwnedFields } from './data-owned-fields';
17
19
  export { DataOwnershipInEntity } from './data-ownership-in-entity';
18
20
  export { DataPeoplestamps } from './data-peoplestamps';
19
21
  export { DataPublishable } from './data-publishable';
22
+ export { DataRealtime } from './data-realtime';
20
23
  export { DataSlug } from './data-slug';
21
24
  export { DataSoftDelete } from './data-soft-delete';
22
25
  export { DataStatusField } from './data-status-field';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-type-registry",
3
- "version": "0.29.1",
3
+ "version": "0.31.0",
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": "97ec8e14f2b0855b0ee0bc732a082e1a91301b64"
50
+ "gitHead": "4a575e3e29827e96979cb6aac2c88eb7a07f7fd0"
51
51
  }