node-type-registry 0.5.0 → 0.5.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.
|
@@ -416,7 +416,7 @@ export interface BlueprintField {
|
|
|
416
416
|
/** The PostgreSQL type (e.g., "text", "integer", "boolean", "uuid"). */
|
|
417
417
|
type: string;
|
|
418
418
|
/** Whether the column has a NOT NULL constraint. */
|
|
419
|
-
|
|
419
|
+
is_required?: boolean;
|
|
420
420
|
/** SQL default value expression (e.g., "true", "now()"). */
|
|
421
421
|
default_value?: string;
|
|
422
422
|
/** Comment/description for this field. */
|
|
@@ -171,7 +171,7 @@ function buildBlueprintField() {
|
|
|
171
171
|
return addJSDoc(exportInterface('BlueprintField', [
|
|
172
172
|
addJSDoc(requiredProp('name', t.tsStringKeyword()), 'The column name.'),
|
|
173
173
|
addJSDoc(requiredProp('type', t.tsStringKeyword()), 'The PostgreSQL type (e.g., "text", "integer", "boolean", "uuid").'),
|
|
174
|
-
addJSDoc(optionalProp('
|
|
174
|
+
addJSDoc(optionalProp('is_required', t.tsBooleanKeyword()), 'Whether the column has a NOT NULL constraint.'),
|
|
175
175
|
addJSDoc(optionalProp('default_value', t.tsStringKeyword()), 'SQL default value expression (e.g., "true", "now()").'),
|
|
176
176
|
addJSDoc(optionalProp('description', t.tsStringKeyword()), 'Comment/description for this field.'),
|
|
177
177
|
]), 'A custom field (column) to add to a blueprint table.');
|
|
@@ -416,7 +416,7 @@ export interface BlueprintField {
|
|
|
416
416
|
/** The PostgreSQL type (e.g., "text", "integer", "boolean", "uuid"). */
|
|
417
417
|
type: string;
|
|
418
418
|
/** Whether the column has a NOT NULL constraint. */
|
|
419
|
-
|
|
419
|
+
is_required?: boolean;
|
|
420
420
|
/** SQL default value expression (e.g., "true", "now()"). */
|
|
421
421
|
default_value?: string;
|
|
422
422
|
/** Comment/description for this field. */
|
|
@@ -136,7 +136,7 @@ function buildBlueprintField() {
|
|
|
136
136
|
return addJSDoc(exportInterface('BlueprintField', [
|
|
137
137
|
addJSDoc(requiredProp('name', t.tsStringKeyword()), 'The column name.'),
|
|
138
138
|
addJSDoc(requiredProp('type', t.tsStringKeyword()), 'The PostgreSQL type (e.g., "text", "integer", "boolean", "uuid").'),
|
|
139
|
-
addJSDoc(optionalProp('
|
|
139
|
+
addJSDoc(optionalProp('is_required', t.tsBooleanKeyword()), 'Whether the column has a NOT NULL constraint.'),
|
|
140
140
|
addJSDoc(optionalProp('default_value', t.tsStringKeyword()), 'SQL default value expression (e.g., "true", "now()").'),
|
|
141
141
|
addJSDoc(optionalProp('description', t.tsStringKeyword()), 'Comment/description for this field.'),
|
|
142
142
|
]), 'A custom field (column) to add to a blueprint table.');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "node-type-registry",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.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",
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"registry",
|
|
49
49
|
"graphile"
|
|
50
50
|
],
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "93deca687ce109bf90d2a0a73ea6b05b22724160"
|
|
52
52
|
}
|