node-type-registry 0.3.1 → 0.5.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-type-registry",
3
- "version": "0.3.1",
3
+ "version": "0.5.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",
@@ -26,14 +26,17 @@
26
26
  "build:dev": "makage build --dev",
27
27
  "lint": "eslint . --fix",
28
28
  "test": "jest",
29
- "test:watch": "jest --watch"
29
+ "test:watch": "jest --watch",
30
+ "generate:seed": "ts-node src/codegen/generate-seed.ts",
31
+ "generate:types": "ts-node src/codegen/generate-types.ts"
30
32
  },
31
33
  "dependencies": {
34
+ "@babel/generator": "^7.29.0",
35
+ "@babel/types": "^7.29.0",
32
36
  "@pgsql/types": "^17.6.2",
33
37
  "@pgsql/utils": "^17.8.14",
34
- "graphile-config": "1.0.0-rc.6",
35
- "graphile-settings": "^4.16.1",
36
- "pgsql-deparser": "^17.18.1"
38
+ "pgsql-deparser": "^17.18.1",
39
+ "schema-typescript": "^0.14.2"
37
40
  },
38
41
  "devDependencies": {
39
42
  "makage": "^0.1.10"
@@ -45,5 +48,5 @@
45
48
  "registry",
46
49
  "graphile"
47
50
  ],
48
- "gitHead": "e86099de99284e17b6e99ccbe8bb1997f808cec5"
51
+ "gitHead": "deeabeceebf3300fd6424e157c9d952b0f436f43"
49
52
  }
package/esm/preset.d.ts DELETED
@@ -1,23 +0,0 @@
1
- /**
2
- * PostGraphile v5 Preset for Node Type Registry
3
- *
4
- * Opt-in preset that generates @oneOf typed GraphQL input types
5
- * (BlueprintDefinitionInput, BlueprintNodeInput, etc.) from the
6
- * TS node type definitions. Uses the existing createBlueprintTypesPlugin
7
- * factory — no DB query needed.
8
- *
9
- * This preset is NOT included in ConstructivePreset (which is for all
10
- * Constructive databases). It should only be layered on by the
11
- * constructive-db SDK codegen or other consumers that need blueprint types.
12
- *
13
- * Usage:
14
- * import { NodeTypeRegistryPreset } from 'node-type-registry/preset';
15
- *
16
- * const sdl = await buildSchemaSDL({
17
- * database: dbConfig.database,
18
- * schemas,
19
- * graphile: { extends: [NodeTypeRegistryPreset] },
20
- * });
21
- */
22
- import type { GraphileConfig } from 'graphile-config';
23
- export declare const NodeTypeRegistryPreset: GraphileConfig.Preset;
package/esm/preset.js DELETED
@@ -1,5 +0,0 @@
1
- import { createBlueprintTypesPlugin } from 'graphile-settings/plugins/blueprint-types/plugin';
2
- import { allNodeTypes } from './index';
3
- export const NodeTypeRegistryPreset = {
4
- plugins: [createBlueprintTypesPlugin(allNodeTypes)],
5
- };
package/preset.d.ts DELETED
@@ -1,23 +0,0 @@
1
- /**
2
- * PostGraphile v5 Preset for Node Type Registry
3
- *
4
- * Opt-in preset that generates @oneOf typed GraphQL input types
5
- * (BlueprintDefinitionInput, BlueprintNodeInput, etc.) from the
6
- * TS node type definitions. Uses the existing createBlueprintTypesPlugin
7
- * factory — no DB query needed.
8
- *
9
- * This preset is NOT included in ConstructivePreset (which is for all
10
- * Constructive databases). It should only be layered on by the
11
- * constructive-db SDK codegen or other consumers that need blueprint types.
12
- *
13
- * Usage:
14
- * import { NodeTypeRegistryPreset } from 'node-type-registry/preset';
15
- *
16
- * const sdl = await buildSchemaSDL({
17
- * database: dbConfig.database,
18
- * schemas,
19
- * graphile: { extends: [NodeTypeRegistryPreset] },
20
- * });
21
- */
22
- import type { GraphileConfig } from 'graphile-config';
23
- export declare const NodeTypeRegistryPreset: GraphileConfig.Preset;
package/preset.js DELETED
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.NodeTypeRegistryPreset = void 0;
4
- const plugin_1 = require("graphile-settings/plugins/blueprint-types/plugin");
5
- const index_1 = require("./index");
6
- exports.NodeTypeRegistryPreset = {
7
- plugins: [(0, plugin_1.createBlueprintTypesPlugin)(index_1.allNodeTypes)],
8
- };