node-type-registry 0.19.0 → 0.21.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.
Files changed (149) hide show
  1. package/authz/authz-allow-all.js +10 -10
  2. package/authz/authz-composite.js +28 -28
  3. package/authz/authz-deny-all.js +10 -10
  4. package/authz/authz-direct-owner-any.js +19 -18
  5. package/authz/authz-direct-owner.js +17 -16
  6. package/authz/authz-entity-membership.js +44 -38
  7. package/authz/authz-member-list.js +17 -16
  8. package/authz/authz-membership-check.js +34 -34
  9. package/authz/authz-not-read-only.js +23 -22
  10. package/authz/authz-org-hierarchy.js +33 -31
  11. package/authz/authz-peer-ownership.js +40 -39
  12. package/authz/authz-publishable.js +26 -24
  13. package/authz/authz-related-entity-membership.js +67 -55
  14. package/authz/authz-related-member-list.js +35 -32
  15. package/authz/authz-related-peer-ownership.js +63 -59
  16. package/authz/authz-temporal.js +32 -30
  17. package/authz/index.d.ts +9 -9
  18. package/authz/index.js +19 -19
  19. package/blueprint-types.generated.js +1 -1
  20. package/codegen/generate-types.js +1 -1
  21. package/data/data-composite-field.js +27 -25
  22. package/data/data-direct-owner.js +24 -23
  23. package/data/data-entity-membership.js +24 -23
  24. package/data/data-force-current-user.js +17 -16
  25. package/data/data-id.js +16 -15
  26. package/data/data-immutable-fields.js +20 -19
  27. package/data/data-inflection.js +33 -32
  28. package/data/data-inherit-from-parent.js +31 -29
  29. package/data/data-job-trigger.js +87 -84
  30. package/data/data-jsonb.js +27 -26
  31. package/data/data-owned-fields.js +25 -23
  32. package/data/data-ownership-in-entity.js +21 -21
  33. package/data/data-peoplestamps.js +19 -19
  34. package/data/data-publishable.js +16 -16
  35. package/data/data-slug.js +21 -19
  36. package/data/data-soft-delete.js +14 -14
  37. package/data/data-status-field.js +32 -31
  38. package/data/data-tags.js +23 -22
  39. package/data/data-timestamps.js +15 -15
  40. package/data/index.d.ts +17 -17
  41. package/data/index.js +35 -35
  42. package/data/search-bm25.js +34 -33
  43. package/data/search-full-text.js +49 -47
  44. package/data/search-spatial-aggregate.js +77 -74
  45. package/data/search-spatial.js +51 -50
  46. package/data/search-trgm.js +20 -19
  47. package/data/search-unified.js +170 -162
  48. package/data/search-vector.js +104 -101
  49. package/data/table-organization-settings.js +13 -13
  50. package/data/table-user-profiles.js +13 -13
  51. package/data/table-user-settings.js +13 -13
  52. package/esm/authz/authz-allow-all.js +10 -10
  53. package/esm/authz/authz-composite.js +28 -28
  54. package/esm/authz/authz-deny-all.js +10 -10
  55. package/esm/authz/authz-direct-owner-any.js +19 -18
  56. package/esm/authz/authz-direct-owner.js +17 -16
  57. package/esm/authz/authz-entity-membership.js +44 -38
  58. package/esm/authz/authz-member-list.js +17 -16
  59. package/esm/authz/authz-membership-check.js +34 -34
  60. package/esm/authz/authz-not-read-only.js +23 -22
  61. package/esm/authz/authz-org-hierarchy.js +33 -31
  62. package/esm/authz/authz-peer-ownership.js +40 -39
  63. package/esm/authz/authz-publishable.js +26 -24
  64. package/esm/authz/authz-related-entity-membership.js +67 -55
  65. package/esm/authz/authz-related-member-list.js +35 -32
  66. package/esm/authz/authz-related-peer-ownership.js +63 -59
  67. package/esm/authz/authz-temporal.js +32 -30
  68. package/esm/authz/index.d.ts +9 -9
  69. package/esm/authz/index.js +9 -9
  70. package/esm/blueprint-types.generated.js +1 -1
  71. package/esm/codegen/generate-types.js +1 -1
  72. package/esm/data/data-composite-field.js +27 -25
  73. package/esm/data/data-direct-owner.js +24 -23
  74. package/esm/data/data-entity-membership.js +24 -23
  75. package/esm/data/data-force-current-user.js +17 -16
  76. package/esm/data/data-id.js +16 -15
  77. package/esm/data/data-immutable-fields.js +20 -19
  78. package/esm/data/data-inflection.js +33 -32
  79. package/esm/data/data-inherit-from-parent.js +31 -29
  80. package/esm/data/data-job-trigger.js +87 -84
  81. package/esm/data/data-jsonb.js +27 -26
  82. package/esm/data/data-owned-fields.js +25 -23
  83. package/esm/data/data-ownership-in-entity.js +21 -21
  84. package/esm/data/data-peoplestamps.js +19 -19
  85. package/esm/data/data-publishable.js +16 -16
  86. package/esm/data/data-slug.js +21 -19
  87. package/esm/data/data-soft-delete.js +14 -14
  88. package/esm/data/data-status-field.js +32 -31
  89. package/esm/data/data-tags.js +23 -22
  90. package/esm/data/data-timestamps.js +15 -15
  91. package/esm/data/index.d.ts +17 -17
  92. package/esm/data/index.js +17 -17
  93. package/esm/data/search-bm25.js +34 -33
  94. package/esm/data/search-full-text.js +49 -47
  95. package/esm/data/search-spatial-aggregate.js +77 -74
  96. package/esm/data/search-spatial.js +51 -50
  97. package/esm/data/search-trgm.js +20 -19
  98. package/esm/data/search-unified.js +170 -162
  99. package/esm/data/search-vector.js +104 -101
  100. package/esm/data/table-organization-settings.js +13 -13
  101. package/esm/data/table-user-profiles.js +13 -13
  102. package/esm/data/table-user-settings.js +13 -13
  103. package/esm/index.d.ts +3 -3
  104. package/esm/index.js +3 -3
  105. package/esm/module-presets/auth-email-magic.js +2 -2
  106. package/esm/module-presets/auth-email.js +8 -8
  107. package/esm/module-presets/auth-passkey.js +4 -4
  108. package/esm/module-presets/auth-sso.js +7 -7
  109. package/esm/module-presets/full.js +1 -1
  110. package/esm/module-presets/index.d.ts +5 -5
  111. package/esm/module-presets/index.js +4 -4
  112. package/esm/relation/index.d.ts +1 -1
  113. package/esm/relation/index.js +1 -1
  114. package/esm/relation/relation-belongs-to.js +41 -40
  115. package/esm/relation/relation-has-many.js +42 -41
  116. package/esm/relation/relation-has-one.js +42 -41
  117. package/esm/relation/relation-many-to-many.js +70 -68
  118. package/esm/relation/relation-spatial.js +54 -54
  119. package/esm/view/index.d.ts +3 -3
  120. package/esm/view/index.js +3 -3
  121. package/esm/view/view-aggregated.js +50 -48
  122. package/esm/view/view-composite.js +18 -18
  123. package/esm/view/view-filtered-table.js +37 -36
  124. package/esm/view/view-joined-tables.js +65 -61
  125. package/esm/view/view-table-projection.js +29 -28
  126. package/index.d.ts +3 -3
  127. package/index.js +3 -3
  128. package/module-presets/auth-email-magic.js +2 -2
  129. package/module-presets/auth-email.js +8 -8
  130. package/module-presets/auth-passkey.js +4 -4
  131. package/module-presets/auth-sso.js +7 -7
  132. package/module-presets/full.js +1 -1
  133. package/module-presets/index.d.ts +5 -5
  134. package/module-presets/index.js +7 -7
  135. package/package.json +2 -2
  136. package/relation/index.d.ts +1 -1
  137. package/relation/index.js +3 -3
  138. package/relation/relation-belongs-to.js +41 -40
  139. package/relation/relation-has-many.js +42 -41
  140. package/relation/relation-has-one.js +42 -41
  141. package/relation/relation-many-to-many.js +70 -68
  142. package/relation/relation-spatial.js +54 -54
  143. package/view/index.d.ts +3 -3
  144. package/view/index.js +7 -7
  145. package/view/view-aggregated.js +50 -48
  146. package/view/view-composite.js +18 -18
  147. package/view/view-filtered-table.js +37 -36
  148. package/view/view-joined-tables.js +65 -61
  149. package/view/view-table-projection.js +29 -28
@@ -2,114 +2,117 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.DataJobTrigger = void 0;
4
4
  exports.DataJobTrigger = {
5
- "name": "DataJobTrigger",
6
- "slug": "data_job_trigger",
7
- "category": "data",
8
- "display_name": "Job Trigger",
9
- "description": "Dynamically creates PostgreSQL triggers that enqueue jobs via app_jobs.add_job() when table rows are inserted, updated, or deleted. Supports configurable payload strategies (full row, row ID, selected fields, or custom mapping), conditional firing via WHEN clauses, watched field changes, and extended job options (queue, priority, delay, max attempts).",
10
- "parameter_schema": {
11
- "type": "object",
12
- "properties": {
13
- "task_identifier": {
14
- "type": "string",
15
- "description": "Job task identifier passed to add_job (e.g., process_invoice, sync_to_stripe)"
5
+ name: 'DataJobTrigger',
6
+ slug: 'data_job_trigger',
7
+ category: 'data',
8
+ display_name: 'Job Trigger',
9
+ description: 'Dynamically creates PostgreSQL triggers that enqueue jobs via app_jobs.add_job() when table rows are inserted, updated, or deleted. Supports configurable payload strategies (full row, row ID, selected fields, or custom mapping), conditional firing via WHEN clauses, watched field changes, and extended job options (queue, priority, delay, max attempts).',
10
+ parameter_schema: {
11
+ type: 'object',
12
+ properties: {
13
+ task_identifier: {
14
+ type: 'string',
15
+ description: 'Job task identifier passed to add_job (e.g., process_invoice, sync_to_stripe)'
16
16
  },
17
- "payload_strategy": {
18
- "type": "string",
19
- "enum": [
20
- "row",
21
- "row_id",
22
- "fields",
23
- "custom"
17
+ payload_strategy: {
18
+ type: 'string',
19
+ enum: [
20
+ 'row',
21
+ 'row_id',
22
+ 'fields',
23
+ 'custom'
24
24
  ],
25
- "description": "How to build the job payload: row (full NEW/OLD), row_id (just id), fields (selected columns), custom (mapped columns)",
26
- "default": "row_id"
25
+ description: 'How to build the job payload: row (full NEW/OLD), row_id (just id), fields (selected columns), custom (mapped columns)',
26
+ default: 'row_id'
27
27
  },
28
- "payload_fields": {
29
- "type": "array",
30
- "items": {
31
- "type": "string"
28
+ payload_fields: {
29
+ type: 'array',
30
+ items: {
31
+ type: 'string',
32
+ format: 'column-ref'
32
33
  },
33
- "description": "Column names to include in payload (only for fields strategy)"
34
+ description: 'Column names to include in payload (only for fields strategy)'
34
35
  },
35
- "payload_custom": {
36
- "type": "object",
37
- "additionalProperties": {
38
- "type": "string"
36
+ payload_custom: {
37
+ type: 'object',
38
+ additionalProperties: {
39
+ type: 'string'
39
40
  },
40
- "description": "Key-to-column mapping for custom payload (e.g., {\"invoice_id\": \"id\", \"total\": \"amount\"})"
41
+ description: 'Key-to-column mapping for custom payload (e.g., {"invoice_id": "id", "total": "amount"})'
41
42
  },
42
- "events": {
43
- "type": "array",
44
- "items": {
45
- "type": "string",
46
- "enum": [
47
- "INSERT",
48
- "UPDATE",
49
- "DELETE"
43
+ events: {
44
+ type: 'array',
45
+ items: {
46
+ type: 'string',
47
+ enum: [
48
+ 'INSERT',
49
+ 'UPDATE',
50
+ 'DELETE'
50
51
  ]
51
52
  },
52
- "description": "Trigger events to create",
53
- "default": [
54
- "INSERT",
55
- "UPDATE"
53
+ description: 'Trigger events to create',
54
+ default: [
55
+ 'INSERT',
56
+ 'UPDATE'
56
57
  ]
57
58
  },
58
- "include_old": {
59
- "type": "boolean",
60
- "description": "Include OLD row in payload (for UPDATE triggers)",
61
- "default": false
59
+ include_old: {
60
+ type: 'boolean',
61
+ description: 'Include OLD row in payload (for UPDATE triggers)',
62
+ default: false
62
63
  },
63
- "include_meta": {
64
- "type": "boolean",
65
- "description": "Include table/schema metadata in payload",
66
- "default": false
64
+ include_meta: {
65
+ type: 'boolean',
66
+ description: 'Include table/schema metadata in payload',
67
+ default: false
67
68
  },
68
- "condition_field": {
69
- "type": "string",
70
- "description": "Column name for conditional WHEN clause (fires only when field equals condition_value)"
69
+ condition_field: {
70
+ type: 'string',
71
+ format: 'column-ref',
72
+ description: 'Column name for conditional WHEN clause (fires only when field equals condition_value)'
71
73
  },
72
- "condition_value": {
73
- "type": "string",
74
- "description": "Value to compare against condition_field in WHEN clause"
74
+ condition_value: {
75
+ type: 'string',
76
+ description: 'Value to compare against condition_field in WHEN clause'
75
77
  },
76
- "watch_fields": {
77
- "type": "array",
78
- "items": {
79
- "type": "string"
78
+ watch_fields: {
79
+ type: 'array',
80
+ items: {
81
+ type: 'string',
82
+ format: 'column-ref'
80
83
  },
81
- "description": "For UPDATE triggers, only fire when these fields change (uses DISTINCT FROM)"
84
+ description: 'For UPDATE triggers, only fire when these fields change (uses DISTINCT FROM)'
82
85
  },
83
- "job_key": {
84
- "type": "string",
85
- "description": "Static job key for upsert semantics (prevents duplicate jobs)"
86
+ job_key: {
87
+ type: 'string',
88
+ description: 'Static job key for upsert semantics (prevents duplicate jobs)'
86
89
  },
87
- "queue_name": {
88
- "type": "string",
89
- "description": "Job queue name for routing to specific workers"
90
+ queue_name: {
91
+ type: 'string',
92
+ description: 'Job queue name for routing to specific workers'
90
93
  },
91
- "priority": {
92
- "type": "integer",
93
- "description": "Job priority (lower = higher priority)",
94
- "default": 0
94
+ priority: {
95
+ type: 'integer',
96
+ description: 'Job priority (lower = higher priority)',
97
+ default: 0
95
98
  },
96
- "run_at_delay": {
97
- "type": "string",
98
- "description": "Delay before job runs as PostgreSQL interval (e.g., 30 seconds, 5 minutes)"
99
+ run_at_delay: {
100
+ type: 'string',
101
+ description: 'Delay before job runs as PostgreSQL interval (e.g., 30 seconds, 5 minutes)'
99
102
  },
100
- "max_attempts": {
101
- "type": "integer",
102
- "description": "Maximum retry attempts for the job",
103
- "default": 25
103
+ max_attempts: {
104
+ type: 'integer',
105
+ description: 'Maximum retry attempts for the job',
106
+ default: 25
104
107
  }
105
108
  },
106
- "required": [
107
- "task_identifier"
109
+ required: [
110
+ 'task_identifier'
108
111
  ]
109
112
  },
110
- "tags": [
111
- "jobs",
112
- "triggers",
113
- "async"
113
+ tags: [
114
+ 'jobs',
115
+ 'triggers',
116
+ 'async'
114
117
  ]
115
118
  };
@@ -2,37 +2,38 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.DataJsonb = void 0;
4
4
  exports.DataJsonb = {
5
- "name": "DataJsonb",
6
- "slug": "data_jsonb",
7
- "category": "data",
8
- "display_name": "JSONB Field",
9
- "description": "Adds a JSONB column with optional GIN index for containment queries (@>, ?, ?|, ?&). Standard pattern for semi-structured metadata.",
10
- "parameter_schema": {
11
- "type": "object",
12
- "properties": {
13
- "field_name": {
14
- "type": "string",
15
- "description": "Column name for the JSONB field",
16
- "default": "metadata"
5
+ name: 'DataJsonb',
6
+ slug: 'data_jsonb',
7
+ category: 'data',
8
+ display_name: 'JSONB Field',
9
+ description: 'Adds a JSONB column with optional GIN index for containment queries (@>, ?, ?|, ?&). Standard pattern for semi-structured metadata.',
10
+ parameter_schema: {
11
+ type: 'object',
12
+ properties: {
13
+ field_name: {
14
+ type: 'string',
15
+ format: 'column-ref',
16
+ description: 'Column name for the JSONB field',
17
+ default: 'metadata'
17
18
  },
18
- "default_value": {
19
- "type": "string",
20
- "description": "Default value expression"
19
+ default_value: {
20
+ type: 'string',
21
+ description: 'Default value expression'
21
22
  },
22
- "is_required": {
23
- "type": "boolean",
24
- "description": "Whether the column has a NOT NULL constraint",
25
- "default": false
23
+ is_required: {
24
+ type: 'boolean',
25
+ description: 'Whether the column has a NOT NULL constraint',
26
+ default: false
26
27
  },
27
- "create_index": {
28
- "type": "boolean",
29
- "description": "Whether to create a GIN index",
30
- "default": true
28
+ create_index: {
29
+ type: 'boolean',
30
+ description: 'Whether to create a GIN index',
31
+ default: true
31
32
  }
32
33
  }
33
34
  },
34
- "tags": [
35
- "jsonb",
36
- "schema"
35
+ tags: [
36
+ 'jsonb',
37
+ 'schema'
37
38
  ]
38
39
  };
@@ -2,34 +2,36 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.DataOwnedFields = void 0;
4
4
  exports.DataOwnedFields = {
5
- "name": "DataOwnedFields",
6
- "slug": "data_owned_fields",
7
- "category": "data",
8
- "display_name": "Owned Fields",
9
- "description": "Restricts which user can modify specific columns in shared objects. Creates an AFTER UPDATE trigger that throws OWNED_PROPS when a non-owner tries to change protected fields. References fields by name in data jsonb.",
10
- "parameter_schema": {
11
- "type": "object",
12
- "properties": {
13
- "role_key_field_name": {
14
- "type": "string",
15
- "description": "Name of the field identifying the owner (e.g. sender_id)"
5
+ name: 'DataOwnedFields',
6
+ slug: 'data_owned_fields',
7
+ category: 'data',
8
+ display_name: 'Owned Fields',
9
+ description: 'Restricts which user can modify specific columns in shared objects. Creates an AFTER UPDATE trigger that throws OWNED_PROPS when a non-owner tries to change protected fields. References fields by name in data jsonb.',
10
+ parameter_schema: {
11
+ type: 'object',
12
+ properties: {
13
+ role_key_field_name: {
14
+ type: 'string',
15
+ format: 'column-ref',
16
+ description: 'Name of the field identifying the owner (e.g. sender_id)'
16
17
  },
17
- "protected_field_names": {
18
- "type": "array",
19
- "items": {
20
- "type": "string"
18
+ protected_field_names: {
19
+ type: 'array',
20
+ items: {
21
+ type: 'string',
22
+ format: 'column-ref'
21
23
  },
22
- "description": "Names of fields only this owner can modify"
24
+ description: 'Names of fields only this owner can modify'
23
25
  }
24
26
  },
25
- "required": [
26
- "role_key_field_name",
27
- "protected_field_names"
27
+ required: [
28
+ 'role_key_field_name',
29
+ 'protected_field_names'
28
30
  ]
29
31
  },
30
- "tags": [
31
- "ownership",
32
- "constraint",
33
- "behavior"
32
+ tags: [
33
+ 'ownership',
34
+ 'constraint',
35
+ 'behavior'
34
36
  ]
35
37
  };
@@ -2,30 +2,30 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.DataOwnershipInEntity = void 0;
4
4
  exports.DataOwnershipInEntity = {
5
- "name": "DataOwnershipInEntity",
6
- "slug": "data_ownership_in_entity",
7
- "category": "data",
8
- "display_name": "Ownership In Entity",
9
- "description": "Combines direct ownership with entity scoping. Adds both owner_id and entity_id columns. Enables AuthzDirectOwner, AuthzEntityMembership, and AuthzOrgHierarchy authorization. Particularly useful for OrgHierarchy where a user owns a row (owner_id) within an entity (entity_id), and managers above can see subordinate-owned records via the hierarchy closure table.",
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
5
+ name: 'DataOwnershipInEntity',
6
+ slug: 'data_ownership_in_entity',
7
+ category: 'data',
8
+ display_name: 'Ownership In Entity',
9
+ description: 'Combines direct ownership with entity scoping. Adds both owner_id and entity_id columns. Enables AuthzDirectOwner, AuthzEntityMembership, and AuthzOrgHierarchy authorization. Particularly useful for OrgHierarchy where a user owns a row (owner_id) within an entity (entity_id), and managers above can see subordinate-owned records via the hierarchy closure table.',
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
- "include_user_fk": {
19
- "type": "boolean",
20
- "description": "If true, adds foreign key constraints from owner_id and entity_id to the users table",
21
- "default": true
18
+ include_user_fk: {
19
+ type: 'boolean',
20
+ description: 'If true, adds foreign key constraints from owner_id and entity_id to the users table',
21
+ default: true
22
22
  }
23
23
  }
24
24
  },
25
- "tags": [
26
- "ownership",
27
- "membership",
28
- "hierarchy",
29
- "schema"
25
+ tags: [
26
+ 'ownership',
27
+ 'membership',
28
+ 'hierarchy',
29
+ 'schema'
30
30
  ]
31
31
  };
@@ -2,28 +2,28 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.DataPeoplestamps = void 0;
4
4
  exports.DataPeoplestamps = {
5
- "name": "DataPeoplestamps",
6
- "slug": "data_peoplestamps",
7
- "category": "data",
8
- "display_name": "Peoplestamps",
9
- "description": "Adds user tracking for creates/updates with created_by and updated_by 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
5
+ name: 'DataPeoplestamps',
6
+ slug: 'data_peoplestamps',
7
+ category: 'data',
8
+ display_name: 'Peoplestamps',
9
+ description: 'Adds user tracking for creates/updates with created_by and updated_by 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
- "include_user_fk": {
19
- "type": "boolean",
20
- "description": "If true, adds foreign key constraints from created_by and updated_by to the users table",
21
- "default": false
18
+ include_user_fk: {
19
+ type: 'boolean',
20
+ description: 'If true, adds foreign key constraints from created_by and updated_by to the users table',
21
+ default: false
22
22
  }
23
23
  }
24
24
  },
25
- "tags": [
26
- "timestamps",
27
- "schema"
25
+ tags: [
26
+ 'timestamps',
27
+ 'schema'
28
28
  ]
29
29
  };
@@ -2,24 +2,24 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.DataPublishable = void 0;
4
4
  exports.DataPublishable = {
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
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
- "tags": [
21
- "publishing",
22
- "temporal",
23
- "schema"
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
- "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
- "description": "Name of the field to slugify"
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
- "source_field_name": {
18
- "type": "string",
19
- "description": "Optional source field name (defaults to field_name)"
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
- "required": [
23
- "field_name"
24
+ required: [
25
+ 'field_name'
24
26
  ]
25
27
  },
26
- "tags": [
27
- "transform",
28
- "behavior"
28
+ tags: [
29
+ 'transform',
30
+ 'behavior'
29
31
  ]
30
32
  };
@@ -2,22 +2,22 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.DataSoftDelete = void 0;
4
4
  exports.DataSoftDelete = {
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
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
- "tags": [
21
- "schema"
20
+ tags: [
21
+ 'schema'
22
22
  ]
23
23
  };