@pgpmjs/types 2.11.0 → 2.12.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.
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @launchql/types
1
+ # @pgpmjs/types
2
2
 
3
3
  <p align="center" width="100%">
4
4
  <img height="250" src="https://raw.githubusercontent.com/constructive-io/constructive/refs/heads/main/assets/outline-logo.svg" />
@@ -9,7 +9,7 @@
9
9
  <img height="20" src="https://github.com/constructive-io/constructive/actions/workflows/run-tests.yaml/badge.svg" />
10
10
  </a>
11
11
  <a href="https://github.com/constructive-io/constructive/blob/main/LICENSE"><img height="20" src="https://img.shields.io/badge/license-MIT-blue.svg"/></a>
12
- <a href="https://www.npmjs.com/package/@launchql/types"><img height="20" src="https://img.shields.io/github/package-json/v/constructive-io/constructive?filename=packages%2Ftypes%2Fpackage.json"/></a>
12
+ <a href="https://www.npmjs.com/package/@pgpmjs/types"><img height="20" src="https://img.shields.io/github/package-json/v/constructive-io/constructive?filename=packages%2Ftypes%2Fpackage.json"/></a>
13
13
  </p>
14
14
 
15
15
  ---
@@ -63,18 +63,18 @@ Common issues and solutions for pgpm, PostgreSQL, and testing.
63
63
 
64
64
  ### 🔁 Streaming & Uploads
65
65
 
66
+ * [etag-hash](https://github.com/constructive-io/constructive/tree/main/packages/etag-hash): **🏷️ S3-compatible ETags** created by streaming and hashing file uploads in chunks.
67
+ * [etag-stream](https://github.com/constructive-io/constructive/tree/main/packages/etag-stream): **🔄 ETag computation** via Node stream transformer during upload or transfer.
68
+ * [uuid-hash](https://github.com/constructive-io/constructive/tree/main/packages/uuid-hash): **🆔 Deterministic UUIDs** generated from hashed content, great for deduplication and asset referencing.
69
+ * [uuid-stream](https://github.com/constructive-io/constructive/tree/main/packages/uuid-stream): **🌊 Streaming UUID generation** based on piped file content—ideal for upload pipelines.
66
70
  * [launchql/s3-streamer](https://github.com/constructive-io/constructive/tree/main/packages/s3-streamer): **📤 Direct S3 streaming** for large files with support for metadata injection and content validation.
67
- * [launchql/etag-hash](https://github.com/constructive-io/constructive/tree/main/packages/etag-hash): **🏷️ S3-compatible ETags** created by streaming and hashing file uploads in chunks.
68
- * [launchql/etag-stream](https://github.com/constructive-io/constructive/tree/main/packages/etag-stream): **🔄 ETag computation** via Node stream transformer during upload or transfer.
69
- * [launchql/uuid-hash](https://github.com/constructive-io/constructive/tree/main/packages/uuid-hash): **🆔 Deterministic UUIDs** generated from hashed content, great for deduplication and asset referencing.
70
- * [launchql/uuid-stream](https://github.com/constructive-io/constructive/tree/main/packages/uuid-stream): **🌊 Streaming UUID generation** based on piped file content—ideal for upload pipelines.
71
71
  * [launchql/upload-names](https://github.com/constructive-io/constructive/tree/main/packages/upload-names): **📂 Collision-resistant filenames** utility for structured and unique file names for uploads.
72
72
 
73
73
  ### 🧰 CLI & Codegen
74
74
 
75
75
  * [pgpm](https://github.com/constructive-io/constructive/tree/main/packages/pgpm): **🖥️ PostgreSQL Package Manager** for modular Postgres development. Works with database workspaces, scaffolding, migrations, seeding, and installing database packages.
76
76
  * [@launchql/cli](https://github.com/constructive-io/constructive/tree/main/packages/cli): **🖥️ Command-line toolkit** for managing LaunchQL projects—supports database scaffolding, migrations, seeding, code generation, and automation.
77
- * [constructive-io/constructive-gen](https://github.com/constructive-io/constructive/tree/main/packages/launchql-gen): **✨ Auto-generated GraphQL** mutations and queries dynamically built from introspected schema data.
77
+ * [launchql-gen](https://github.com/constructive-io/constructive/tree/main/packages/launchql-gen): **✨ Auto-generated GraphQL** mutations and queries dynamically built from introspected schema data.
78
78
  * [@launchql/query-builder](https://github.com/constructive-io/constructive/tree/main/packages/query-builder): **🏗️ SQL constructor** providing a robust TypeScript-based query builder for dynamic generation of `SELECT`, `INSERT`, `UPDATE`, `DELETE`, and stored procedure calls—supports advanced SQL features like `JOIN`, `GROUP BY`, and schema-qualified queries.
79
79
  * [@launchql/query](https://github.com/constructive-io/constructive/tree/main/packages/query): **🧩 Fluent GraphQL builder** for PostGraphile schemas. ⚡ Schema-aware via introspection, 🧩 composable and ergonomic for building deeply nested queries.
80
80
 
package/esm/pgpm.js CHANGED
@@ -28,32 +28,12 @@ export const pgpmDefaults = {
28
28
  password: 'password',
29
29
  database: 'postgres',
30
30
  },
31
- graphile: {
32
- schema: [],
33
- appendPlugins: [],
34
- overrideSettings: {},
35
- graphileBuildOptions: {},
36
- },
37
31
  server: {
38
32
  host: 'localhost',
39
33
  port: 3000,
40
34
  trustProxy: false,
41
35
  strictAuth: false,
42
36
  },
43
- features: {
44
- simpleInflection: true,
45
- oppositeBaseNames: true,
46
- postgis: true
47
- },
48
- api: {
49
- enableMetaApi: true,
50
- exposedSchemas: [],
51
- anonRole: 'administrator',
52
- roleName: 'administrator',
53
- defaultDatabaseId: 'hard-coded',
54
- isPublic: true,
55
- metaSchemas: ['collections_public', 'meta_public']
56
- },
57
37
  cdn: {
58
38
  bucketName: 'test-bucket',
59
39
  awsRegion: 'us-east-1',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pgpmjs/types",
3
- "version": "2.11.0",
3
+ "version": "2.12.1",
4
4
  "author": "Constructive <developers@constructive.io>",
5
5
  "description": "PGPM types",
6
6
  "main": "index.js",
@@ -29,21 +29,18 @@
29
29
  "test:watch": "jest --watch"
30
30
  },
31
31
  "dependencies": {
32
- "deepmerge": "^4.3.1",
33
- "graphile-build": "^4.14.1",
34
- "pg-env": "^1.2.1",
35
- "postgraphile": "^4.14.1"
32
+ "pg-env": "^1.2.1"
36
33
  },
37
34
  "keywords": [
38
- "graphql",
39
35
  "types",
40
36
  "typescript",
41
37
  "pgpm",
42
38
  "pgpmjs",
43
- "schema"
39
+ "postgresql",
40
+ "migrations"
44
41
  ],
45
42
  "devDependencies": {
46
43
  "makage": "^0.1.8"
47
44
  },
48
- "gitHead": "e4d5396a5d9154f4886176bb00c2b460b0f320e5"
45
+ "gitHead": "52828c38b144fdc02b6a9a0c8b0ff795d1752d53"
49
46
  }
package/pgpm.d.ts CHANGED
@@ -1,6 +1,4 @@
1
- import type { Plugin } from 'graphile-build';
2
1
  import { PgConfig } from 'pg-env';
3
- import { PostGraphileOptions } from 'postgraphile';
4
2
  import { JobsConfig } from './jobs';
5
3
  /**
6
4
  * Authentication options for test client sessions
@@ -87,30 +85,6 @@ export interface ServerOptions {
87
85
  /** Whether to enforce strict authentication */
88
86
  strictAuth?: boolean;
89
87
  }
90
- /**
91
- * Feature flags and toggles
92
- */
93
- export interface FeatureOptions {
94
- /** Use simple inflection for GraphQL field names */
95
- simpleInflection?: boolean;
96
- /** Use opposite base names for relationships */
97
- oppositeBaseNames?: boolean;
98
- /** Enable PostGIS spatial database support */
99
- postgis?: boolean;
100
- }
101
- /**
102
- * PostGraphile/Graphile configuration
103
- */
104
- export interface GraphileOptions {
105
- /** Database schema(s) to expose through GraphQL */
106
- schema?: string | string[];
107
- /** Additional Graphile plugins to load */
108
- appendPlugins?: Plugin[];
109
- /** Build options for Graphile */
110
- graphileBuildOptions?: PostGraphileOptions['graphileBuildOptions'];
111
- /** Override settings for PostGraphile */
112
- overrideSettings?: Partial<PostGraphileOptions>;
113
- }
114
88
  /**
115
89
  * CDN and file storage configuration
116
90
  */
@@ -140,25 +114,6 @@ export interface MigrationOptions {
140
114
  /** Code generation settings */
141
115
  codegen?: CodegenOptions;
142
116
  }
143
- /**
144
- * Configuration options for the LaunchQL API
145
- */
146
- export interface ApiOptions {
147
- /** Whether to enable the meta API endpoints */
148
- enableMetaApi?: boolean;
149
- /** Database schemas to expose through the API */
150
- exposedSchemas?: string[];
151
- /** Anonymous role name for unauthenticated requests */
152
- anonRole?: string;
153
- /** Default role name for authenticated requests */
154
- roleName?: string;
155
- /** Default database identifier to use */
156
- defaultDatabaseId?: string;
157
- /** Whether the API is publicly accessible */
158
- isPublic?: boolean;
159
- /** Schemas containing metadata tables */
160
- metaSchemas?: string[];
161
- }
162
117
  /**
163
118
  * Configuration for PGPM workspace
164
119
  */
@@ -200,20 +155,15 @@ export interface DeploymentOptions {
200
155
  }
201
156
  /**
202
157
  * Main configuration options for the PGPM framework
158
+ * Note: GraphQL/Graphile options (graphile, api, features) are in @launchql/types
203
159
  */
204
160
  export interface PgpmOptions {
205
161
  /** Test database configuration options */
206
162
  db?: Partial<PgTestConnectionOptions>;
207
163
  /** PostgreSQL connection configuration */
208
164
  pg?: Partial<PgConfig>;
209
- /** PostGraphile/Graphile configuration */
210
- graphile?: GraphileOptions;
211
165
  /** HTTP server configuration */
212
166
  server?: ServerOptions;
213
- /** Feature flags and toggles */
214
- features?: FeatureOptions;
215
- /** API configuration options */
216
- api?: ApiOptions;
217
167
  /** CDN and file storage configuration */
218
168
  cdn?: CDNOptions;
219
169
  /** Module deployment configuration */
package/pgpm.js CHANGED
@@ -32,32 +32,12 @@ exports.pgpmDefaults = {
32
32
  password: 'password',
33
33
  database: 'postgres',
34
34
  },
35
- graphile: {
36
- schema: [],
37
- appendPlugins: [],
38
- overrideSettings: {},
39
- graphileBuildOptions: {},
40
- },
41
35
  server: {
42
36
  host: 'localhost',
43
37
  port: 3000,
44
38
  trustProxy: false,
45
39
  strictAuth: false,
46
40
  },
47
- features: {
48
- simpleInflection: true,
49
- oppositeBaseNames: true,
50
- postgis: true
51
- },
52
- api: {
53
- enableMetaApi: true,
54
- exposedSchemas: [],
55
- anonRole: 'administrator',
56
- roleName: 'administrator',
57
- defaultDatabaseId: 'hard-coded',
58
- isPublic: true,
59
- metaSchemas: ['collections_public', 'meta_public']
60
- },
61
41
  cdn: {
62
42
  bucketName: 'test-bucket',
63
43
  awsRegion: 'us-east-1',