@pgpmjs/types 2.12.2 → 2.12.4

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
@@ -41,10 +41,10 @@ Common issues and solutions for pgpm, PostgreSQL, and testing.
41
41
 
42
42
  ### 🧪 Testing
43
43
 
44
- * [pgsql-test](https://github.com/constructive-io/constructive/tree/main/packages/pgsql-test): **📊 Isolated testing environments** with per-test transaction rollbacks—ideal for integration tests, complex migrations, and RLS simulation.
45
- * [supabase-test](https://github.com/constructive-io/constructive/tree/main/packages/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
- * [graphile-test](https://github.com/constructive-io/constructive/tree/main/packages/graphile-test): **🔐 Authentication mocking** for Graphile-focused test helpers and emulating row-level security contexts.
47
- * [pg-query-context](https://github.com/constructive-io/constructive/tree/main/packages/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.
44
+ * [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.
45
+ * [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
+ * [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
+ * [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.
48
48
 
49
49
  ### 🧠 Parsing & AST
50
50
 
@@ -58,25 +58,25 @@ Common issues and solutions for pgpm, PostgreSQL, and testing.
58
58
 
59
59
  ### 🚀 API & Dev Tools
60
60
 
61
- * [launchql/server](https://github.com/constructive-io/constructive/tree/main/packages/server): **⚡ Express-based API server** powered by PostGraphile to expose a secure, scalable GraphQL API over your Postgres database.
62
- * [launchql/explorer](https://github.com/constructive-io/constructive/tree/main/packages/explorer): **🔎 Visual API explorer** with GraphiQL for browsing across all databases and schemas—useful for debugging, documentation, and API prototyping.
61
+ * [@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.
62
+ * [@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.
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.
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.
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.
66
+ * [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.
67
+ * [etag-stream](https://github.com/constructive-io/constructive/tree/main/streaming/etag-stream): **🔄 ETag computation** via Node stream transformer during upload or transfer.
68
+ * [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.
69
+ * [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.
70
+ * [@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.
71
+ * [@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.
72
72
 
73
73
  ### 🧰 CLI & Codegen
74
74
 
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
- * [@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
- * [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
- * [@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
- * [@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.
75
+ * [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.
76
+ * [@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.
77
+ * [@constructive-io/graphql-codegen](https://github.com/constructive-io/constructive/tree/main/graphql/codegen): **✨ GraphQL code generation** (types, operations, SDK) from schema/endpoint introspection.
78
+ * [@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.
79
+ * [@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.
80
80
 
81
81
  ## Credits
82
82
 
package/esm/jobs.js CHANGED
@@ -38,16 +38,9 @@ export const jobsDefaults = {
38
38
  pollInterval: 1000,
39
39
  gracefulShutdown: true
40
40
  },
41
- openFaas: {
42
- gateway: {
43
- gatewayUrl: 'http://gateway:8080',
44
- callbackUrl: 'http://callback:12345',
45
- callbackPort: 12345
46
- },
47
- server: {
48
- schema: 'app_jobs',
49
- port: 3000,
50
- host: 'localhost'
51
- }
41
+ gateway: {
42
+ gatewayUrl: 'http://gateway:8080',
43
+ callbackUrl: 'http://callback:12345',
44
+ callbackPort: 12345
52
45
  }
53
46
  };
package/esm/pgpm.js CHANGED
@@ -90,18 +90,6 @@ export const pgpmDefaults = {
90
90
  supported: [],
91
91
  pollInterval: 1000,
92
92
  gracefulShutdown: true
93
- },
94
- openFaas: {
95
- gateway: {
96
- gatewayUrl: 'http://gateway:8080',
97
- callbackUrl: 'http://callback:12345',
98
- callbackPort: 12345
99
- },
100
- server: {
101
- schema: 'app_jobs',
102
- port: 3000,
103
- host: 'localhost'
104
- }
105
93
  }
106
94
  }
107
95
  };
package/jobs.d.ts CHANGED
@@ -31,10 +31,10 @@ export interface JobTaskSupportConfig {
31
31
  supported: string[];
32
32
  }
33
33
  /**
34
- * OpenFaaS job system gateway configuration
34
+ * Job HTTP gateway configuration
35
35
  */
36
36
  export interface JobGatewayConfig {
37
- /** Internal gateway URL for OpenFaaS function calls */
37
+ /** Internal gateway URL for job HTTP function calls */
38
38
  gatewayUrl: string;
39
39
  /** Callback URL for job completion notifications */
40
40
  callbackUrl: string;
@@ -156,20 +156,6 @@ export interface JobSchedulerConfig extends JobPgConfig, JobSchemaConfig, JobHos
156
156
  /** Whether to enable graceful shutdown */
157
157
  gracefulShutdown?: boolean;
158
158
  }
159
- /**
160
- * OpenFaaS worker configuration
161
- */
162
- export interface OpenFaasJobWorkerConfig extends JobWorkerConfig, JobGatewayConfig {
163
- }
164
- /**
165
- * OpenFaaS server configuration
166
- */
167
- export interface OpenFaasJobServerConfig extends JobSchemaConfig {
168
- /** Port for the job server */
169
- port: number;
170
- /** Host address for the job server */
171
- host?: string;
172
- }
173
159
  /**
174
160
  * Complete job system configuration
175
161
  */
@@ -182,15 +168,8 @@ export interface JobsConfig {
182
168
  worker?: Partial<JobWorkerConfig>;
183
169
  /** Scheduler configuration */
184
170
  scheduler?: Partial<JobSchedulerConfig>;
185
- /** OpenFaaS specific configuration */
186
- openFaas?: {
187
- /** OpenFaaS worker config */
188
- worker?: Partial<OpenFaasJobWorkerConfig>;
189
- /** OpenFaaS server config */
190
- server?: Partial<OpenFaasJobServerConfig>;
191
- /** Gateway config */
192
- gateway?: Partial<JobGatewayConfig>;
193
- };
171
+ /** Job HTTP gateway configuration */
172
+ gateway?: Partial<JobGatewayConfig>;
194
173
  }
195
174
  /**
196
175
  * Default configuration values for job system
package/jobs.js CHANGED
@@ -41,16 +41,9 @@ exports.jobsDefaults = {
41
41
  pollInterval: 1000,
42
42
  gracefulShutdown: true
43
43
  },
44
- openFaas: {
45
- gateway: {
46
- gatewayUrl: 'http://gateway:8080',
47
- callbackUrl: 'http://callback:12345',
48
- callbackPort: 12345
49
- },
50
- server: {
51
- schema: 'app_jobs',
52
- port: 3000,
53
- host: 'localhost'
54
- }
44
+ gateway: {
45
+ gatewayUrl: 'http://gateway:8080',
46
+ callbackUrl: 'http://callback:12345',
47
+ callbackPort: 12345
55
48
  }
56
49
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pgpmjs/types",
3
- "version": "2.12.2",
3
+ "version": "2.12.4",
4
4
  "author": "Constructive <developers@constructive.io>",
5
5
  "description": "PGPM types",
6
6
  "main": "index.js",
@@ -25,11 +25,11 @@
25
25
  "build": "makage build",
26
26
  "build:dev": "makage build --dev",
27
27
  "lint": "eslint . --fix",
28
- "test": "jest",
28
+ "test": "jest --passWithNoTests",
29
29
  "test:watch": "jest --watch"
30
30
  },
31
31
  "dependencies": {
32
- "pg-env": "^1.2.2"
32
+ "pg-env": "^1.2.3"
33
33
  },
34
34
  "keywords": [
35
35
  "types",
@@ -42,5 +42,5 @@
42
42
  "devDependencies": {
43
43
  "makage": "^0.1.8"
44
44
  },
45
- "gitHead": "4326e2092d0c57901e898560974d502d626c42cb"
45
+ "gitHead": "22cfe32e994e26a6490e04e28bab26d1e7e6345c"
46
46
  }
package/pgpm.d.ts CHANGED
@@ -155,7 +155,7 @@ export interface DeploymentOptions {
155
155
  }
156
156
  /**
157
157
  * Main configuration options for the PGPM framework
158
- * Note: GraphQL/Graphile options (graphile, api, features) are in @launchql/types
158
+ * Note: GraphQL/Graphile options (graphile, api, features) are in @constructive-io/graphql-types
159
159
  */
160
160
  export interface PgpmOptions {
161
161
  /** Test database configuration options */
package/pgpm.js CHANGED
@@ -94,18 +94,6 @@ exports.pgpmDefaults = {
94
94
  supported: [],
95
95
  pollInterval: 1000,
96
96
  gracefulShutdown: true
97
- },
98
- openFaas: {
99
- gateway: {
100
- gatewayUrl: 'http://gateway:8080',
101
- callbackUrl: 'http://callback:12345',
102
- callbackPort: 12345
103
- },
104
- server: {
105
- schema: 'app_jobs',
106
- port: 3000,
107
- host: 'localhost'
108
- }
109
97
  }
110
98
  }
111
99
  };