@pgpmjs/types 2.12.7 → 2.13.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/README.md CHANGED
@@ -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/@pgpmjs/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=pgpm%2Ftypes%2Fpackage.json"/></a>
13
13
  </p>
14
14
 
15
15
  ---
@@ -39,9 +39,14 @@ Common issues and solutions for pgpm, PostgreSQL, and testing.
39
39
 
40
40
  ## Related Constructive Tooling
41
41
 
42
+ ### 📦 Package Management
43
+
44
+ * [pgpm](https://github.com/constructive-io/constructive/tree/main/pgpm/pgpm): **🖥️ PostgreSQL Package Manager** for modular Postgres development. Works with database workspaces, scaffolding, migrations, seeding, and installing database packages.
45
+
42
46
  ### 🧪 Testing
43
47
 
44
48
  * [pgsql-test](https://github.com/constructive-io/constructive/tree/main/postgres/pgsql-test): **📊 Isolated testing environments** with per-test transaction rollbacks—ideal for integration tests, complex migrations, and RLS simulation.
49
+ * [pgsql-seed](https://github.com/constructive-io/constructive/tree/main/postgres/pgsql-seed): **🌱 PostgreSQL seeding utilities** for CSV, JSON, SQL data loading, and pgpm deployment.
45
50
  * [supabase-test](https://github.com/constructive-io/constructive/tree/main/postgres/supabase-test): **🧪 Supabase-native test harness** preconfigured for the local Supabase stack—per-test rollbacks, JWT/role context helpers, and CI/GitHub Actions ready.
46
51
  * [graphile-test](https://github.com/constructive-io/constructive/tree/main/graphile/graphile-test): **🔐 Authentication mocking** for Graphile-focused test helpers and emulating row-level security contexts.
47
52
  * [pg-query-context](https://github.com/constructive-io/constructive/tree/main/postgres/pg-query-context): **🔒 Session context injection** to add session-local context (e.g., `SET LOCAL`) into queries—ideal for setting `role`, `jwt.claims`, and other session settings.
@@ -55,28 +60,6 @@ Common issues and solutions for pgpm, PostgreSQL, and testing.
55
60
  * [@pgsql/types](https://www.npmjs.com/package/@pgsql/types): **📝 Type definitions** for PostgreSQL AST nodes in TypeScript.
56
61
  * [@pgsql/utils](https://www.npmjs.com/package/@pgsql/utils): **🛠️ AST utilities** for constructing and transforming PostgreSQL syntax trees.
57
62
 
58
- ### 🚀 API & Dev Tools
59
-
60
- * [@constructive-io/graphql-server](https://github.com/constructive-io/constructive/tree/main/graphql/server): **⚡ Express-based API server** powered by PostGraphile to expose a secure, scalable GraphQL API over your Postgres database.
61
- * [@constructive-io/graphql-explorer](https://github.com/constructive-io/constructive/tree/main/graphql/explorer): **🔎 Visual API explorer** with GraphiQL for browsing across all databases and schemas—useful for debugging, documentation, and API prototyping.
62
-
63
- ### 🔁 Streaming & Uploads
64
-
65
- * [etag-hash](https://github.com/constructive-io/constructive/tree/main/streaming/etag-hash): **🏷️ S3-compatible ETags** created by streaming and hashing file uploads in chunks.
66
- * [etag-stream](https://github.com/constructive-io/constructive/tree/main/streaming/etag-stream): **🔄 ETag computation** via Node stream transformer during upload or transfer.
67
- * [uuid-hash](https://github.com/constructive-io/constructive/tree/main/streaming/uuid-hash): **🆔 Deterministic UUIDs** generated from hashed content, great for deduplication and asset referencing.
68
- * [uuid-stream](https://github.com/constructive-io/constructive/tree/main/streaming/uuid-stream): **🌊 Streaming UUID generation** based on piped file content—ideal for upload pipelines.
69
- * [@constructive-io/s3-streamer](https://github.com/constructive-io/constructive/tree/main/streaming/s3-streamer): **📤 Direct S3 streaming** for large files with support for metadata injection and content validation.
70
- * [@constructive-io/upload-names](https://github.com/constructive-io/constructive/tree/main/streaming/upload-names): **📂 Collision-resistant filenames** utility for structured and unique file names for uploads.
71
-
72
- ### 🧰 CLI & Codegen
73
-
74
- * [pgpm](https://github.com/constructive-io/constructive/tree/main/pgpm/pgpm): **🖥️ PostgreSQL Package Manager** for modular Postgres development. Works with database workspaces, scaffolding, migrations, seeding, and installing database packages.
75
- * [@constructive-io/cli](https://github.com/constructive-io/constructive/tree/main/packages/cli): **🖥️ Command-line toolkit** for managing Constructive projects—supports database scaffolding, migrations, seeding, code generation, and automation.
76
- * [@constructive-io/graphql-codegen](https://github.com/constructive-io/constructive/tree/main/graphql/codegen): **✨ GraphQL code generation** (types, operations, SDK) from schema/endpoint introspection.
77
- * [@constructive-io/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.
78
- * [@constructive-io/graphql-query](https://github.com/constructive-io/constructive/tree/main/graphql/query): **🧩 Fluent GraphQL builder** for PostGraphile schemas. ⚡ Schema-aware via introspection, 🧩 composable and ergonomic for building deeply nested queries.
79
-
80
63
  ## Credits
81
64
 
82
65
  **🛠 Built by the [Constructive](https://constructive.io) team — creators of modular Postgres tooling for secure, composable backends. If you like our work, contribute on [GitHub](https://github.com/constructive-io).**
package/esm/pgpm.js CHANGED
@@ -40,6 +40,7 @@ export const pgpmDefaults = {
40
40
  strictAuth: false,
41
41
  },
42
42
  cdn: {
43
+ provider: 'minio',
43
44
  bucketName: 'test-bucket',
44
45
  awsRegion: 'us-east-1',
45
46
  awsAccessKey: 'minioadmin',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pgpmjs/types",
3
- "version": "2.12.7",
3
+ "version": "2.13.0",
4
4
  "author": "Constructive <developers@constructive.io>",
5
5
  "description": "PGPM types",
6
6
  "main": "index.js",
@@ -42,5 +42,5 @@
42
42
  "devDependencies": {
43
43
  "makage": "^0.1.9"
44
44
  },
45
- "gitHead": "f6cb102f2d19174b4f54ed2ba0c02308b1325830"
45
+ "gitHead": "f04912cac2edf6435c6add5a6ec65a11d6b79df2"
46
46
  }
package/pgpm.d.ts CHANGED
@@ -96,10 +96,16 @@ export interface ServerOptions {
96
96
  /** Whether to enforce strict authentication */
97
97
  strictAuth?: boolean;
98
98
  }
99
+ /**
100
+ * Storage provider type for CDN/bucket operations
101
+ */
102
+ export type BucketProvider = 's3' | 'minio' | 'gcs';
99
103
  /**
100
104
  * CDN and file storage configuration
101
105
  */
102
106
  export interface CDNOptions {
107
+ /** Storage provider type (s3, minio, gcs). Defaults to 'minio' for local dev */
108
+ provider?: BucketProvider;
103
109
  /** S3 bucket name for file storage */
104
110
  bucketName?: string;
105
111
  /** AWS region for S3 bucket */
@@ -108,7 +114,7 @@ export interface CDNOptions {
108
114
  awsAccessKey?: string;
109
115
  /** AWS secret key for S3 */
110
116
  awsSecretKey?: string;
111
- /** MinIO endpoint URL for local development */
117
+ /** MinIO endpoint URL for local development (only used when provider is 'minio') */
112
118
  minioEndpoint?: string;
113
119
  }
114
120
  /**
package/pgpm.js CHANGED
@@ -44,6 +44,7 @@ exports.pgpmDefaults = {
44
44
  strictAuth: false,
45
45
  },
46
46
  cdn: {
47
+ provider: 'minio',
47
48
  bucketName: 'test-bucket',
48
49
  awsRegion: 'us-east-1',
49
50
  awsAccessKey: 'minioadmin',