graphile-settings 6.11.7 → 6.11.9
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/esm/index.d.ts +2 -2
- package/esm/index.js +1 -5
- package/esm/plugins/PublicKeySignature.js +1 -1
- package/esm/plugins/custom-inflector.js +1 -1
- package/esm/plugins/index.d.ts +7 -7
- package/esm/plugins/index.js +9 -13
- package/esm/presets/index.d.ts +1 -1
- package/esm/presigned-url-resolver.d.ts +1 -1
- package/esm/presigned-url-resolver.js +2 -2
- package/esm/upload-resolver.js +1 -1
- package/index.d.ts +2 -2
- package/index.js +2 -6
- package/package.json +26 -26
- package/plugins/PublicKeySignature.js +1 -1
- package/plugins/index.d.ts +7 -7
- package/plugins/index.js +17 -21
- package/presets/index.d.ts +1 -1
- package/presigned-url-resolver.d.ts +1 -1
- package/presigned-url-resolver.js +2 -2
- package/upload-resolver.js +1 -1
package/esm/index.d.ts
CHANGED
|
@@ -26,11 +26,11 @@
|
|
|
26
26
|
* import { MinimalPreset, InflektPreset } from 'graphile-settings/plugins';
|
|
27
27
|
* ```
|
|
28
28
|
*/
|
|
29
|
-
import { makePgService } from 'postgraphile/adaptors/pg';
|
|
30
29
|
import 'postgraphile/grafserv';
|
|
31
30
|
import 'graphile-build';
|
|
32
|
-
|
|
31
|
+
import { makePgService } from 'postgraphile/adaptors/pg';
|
|
33
32
|
export type { ConstructivePresetOptions } from './presets/constructive-preset';
|
|
33
|
+
export { ConstructivePreset, createConstructivePreset } from './presets/constructive-preset';
|
|
34
34
|
export * from './plugins/index';
|
|
35
35
|
export * from './presets/index';
|
|
36
36
|
export { makePgService };
|
package/esm/index.js
CHANGED
|
@@ -26,7 +26,6 @@
|
|
|
26
26
|
* import { MinimalPreset, InflektPreset } from 'graphile-settings/plugins';
|
|
27
27
|
* ```
|
|
28
28
|
*/
|
|
29
|
-
import { makePgService } from 'postgraphile/adaptors/pg';
|
|
30
29
|
// Import modules for type augmentation
|
|
31
30
|
// These add properties to the GraphileConfig.Preset interface:
|
|
32
31
|
// - grafserv: adds 'grafserv' property
|
|
@@ -34,10 +33,7 @@ import { makePgService } from 'postgraphile/adaptors/pg';
|
|
|
34
33
|
// - postgraphile-plugin-connection-filter: augments SchemaOptions with connectionFilter* options
|
|
35
34
|
import 'postgraphile/grafserv';
|
|
36
35
|
import 'graphile-build';
|
|
37
|
-
|
|
38
|
-
// Re-export all plugins and presets
|
|
39
|
-
// ============================================================================
|
|
40
|
-
// Main preset + factory
|
|
36
|
+
import { makePgService } from 'postgraphile/adaptors/pg';
|
|
41
37
|
export { ConstructivePreset, createConstructivePreset } from './presets/constructive-preset';
|
|
42
38
|
// Re-export all plugins for convenience
|
|
43
39
|
export * from './plugins/index';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// import Networks from '@pyramation/crypto-networks';
|
|
2
2
|
// import { verifyMessage } from '@pyramation/crypto-keys';
|
|
3
|
+
import { QuoteUtils } from '@pgsql/quotes';
|
|
3
4
|
import { context as grafastContext, lambda, object } from 'grafast';
|
|
4
5
|
import { extendSchema, gql } from 'graphile-utils';
|
|
5
|
-
import { QuoteUtils } from '@pgsql/quotes';
|
|
6
6
|
import pgQueryWithContext from 'pg-query-context';
|
|
7
7
|
const SAFE_IDENTIFIER = /^[a-z_][a-z0-9_]*$/;
|
|
8
8
|
const SAFE_CRYPTO_NETWORK = /^[a-z0-9_-]{1,64}$/i;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { distinctPluralize, fixCapitalisedPlural, pluralizeLast, singularize, singularizeLast, toCamelCase, } from 'inflekt';
|
|
2
2
|
/**
|
|
3
3
|
* Custom inflector plugin for Constructive using the inflekt library.
|
|
4
4
|
*
|
package/esm/plugins/index.d.ts
CHANGED
|
@@ -9,15 +9,15 @@ export { ConflictDetectorPlugin, ConflictDetectorPreset, } from './conflict-dete
|
|
|
9
9
|
export { InflectorLoggerPlugin, InflectorLoggerPreset, } from './inflector-logger';
|
|
10
10
|
export { EnableAllFilterColumnsPlugin, EnableAllFilterColumnsPreset, } from './enable-all-filter-columns';
|
|
11
11
|
export { ManyToManyOptInPlugin, ManyToManyOptInPreset, } from './many-to-many-preset';
|
|
12
|
-
export { createUniqueLookupPlugin, PrimaryKeyOnlyPlugin, NoUniqueLookupPlugin, PrimaryKeyOnlyPreset, NoUniqueLookupPreset, } from './primary-key-only';
|
|
13
12
|
export type { UniqueLookupOptions } from './primary-key-only';
|
|
13
|
+
export { createUniqueLookupPlugin, NoUniqueLookupPlugin, NoUniqueLookupPreset, PrimaryKeyOnlyPlugin, PrimaryKeyOnlyPreset, } from './primary-key-only';
|
|
14
14
|
export { getTablesMetaForSchema, MetaSchemaPlugin, MetaSchemaPreset, } from './meta-schema';
|
|
15
|
-
export type {
|
|
16
|
-
export { PgTypeMappingsPlugin, PgTypeMappingsPreset, } from './pg-type-mappings';
|
|
15
|
+
export type { BelongsToRelation, ConstraintsMeta, FieldMeta, ForeignKeyConstraintMeta, HasRelation, IndexMeta, InflectionMeta, ManyToManyRelation, PrimaryKeyConstraintMeta, QueryMeta, RelationsMeta, TableMeta, TypeMeta, UniqueConstraintMeta, } from 'graphile-meta';
|
|
17
16
|
export type { TypeMapping } from './pg-type-mappings';
|
|
18
|
-
export {
|
|
17
|
+
export { PgTypeMappingsPlugin, PgTypeMappingsPreset, } from './pg-type-mappings';
|
|
19
18
|
export type { PublicKeyChallengeConfig } from './PublicKeySignature';
|
|
20
|
-
export {
|
|
19
|
+
export { PublicKeySignature } from './PublicKeySignature';
|
|
20
|
+
export { _buildFieldMeta, _pgTypeToGqlType } from './meta-schema';
|
|
21
21
|
export { RequiredInputPlugin, RequiredInputPreset, } from './required-input-plugin';
|
|
22
|
-
export {
|
|
23
|
-
export
|
|
22
|
+
export type { Bm25AdapterOptions, Bm25IndexInfo, PgvectorAdapterOptions, SearchableColumn, SearchAdapter, TrgmAdapterOptions, TsvectorAdapterOptions, TsvectorCodecPluginOptions, UnifiedSearchOptions, UnifiedSearchPresetOptions, } from 'graphile-search';
|
|
23
|
+
export { Bm25CodecPlugin, Bm25CodecPreset, bm25IndexStore, createBm25Adapter, createMatchesOperatorFactory, createPgvectorAdapter, createTrgmAdapter, createTrgmOperatorFactories, createTsvectorAdapter, createTsvectorCodecPlugin, createUnifiedSearchPlugin, TsvectorCodecPlugin, TsvectorCodecPreset, UnifiedSearchPreset, VectorCodecPlugin, VectorCodecPreset, } from 'graphile-search';
|
package/esm/plugins/index.js
CHANGED
|
@@ -15,25 +15,21 @@ export { InflectorLoggerPlugin, InflectorLoggerPreset, } from './inflector-logge
|
|
|
15
15
|
export { EnableAllFilterColumnsPlugin, EnableAllFilterColumnsPreset, } from './enable-all-filter-columns';
|
|
16
16
|
// Many-to-many with opt-in behavior
|
|
17
17
|
export { ManyToManyOptInPlugin, ManyToManyOptInPreset, } from './many-to-many-preset';
|
|
18
|
-
|
|
19
|
-
export { createUniqueLookupPlugin, PrimaryKeyOnlyPlugin, NoUniqueLookupPlugin, PrimaryKeyOnlyPreset, NoUniqueLookupPreset, } from './primary-key-only';
|
|
18
|
+
export { createUniqueLookupPlugin, NoUniqueLookupPlugin, NoUniqueLookupPreset, PrimaryKeyOnlyPlugin, PrimaryKeyOnlyPreset, } from './primary-key-only';
|
|
20
19
|
// Meta schema plugin for introspection (tables, fields, indexes, constraints)
|
|
21
20
|
export { getTablesMetaForSchema, MetaSchemaPlugin, MetaSchemaPreset, } from './meta-schema';
|
|
22
|
-
// PG type mappings for custom PostgreSQL types (email, url, etc.)
|
|
23
21
|
export { PgTypeMappingsPlugin, PgTypeMappingsPreset, } from './pg-type-mappings';
|
|
24
|
-
// Public key signature plugin for crypto authentication
|
|
25
22
|
export { PublicKeySignature } from './PublicKeySignature';
|
|
26
23
|
// Internal exports for testing
|
|
27
|
-
export {
|
|
24
|
+
export { _buildFieldMeta, _pgTypeToGqlType } from './meta-schema';
|
|
28
25
|
// Required input plugin - makes @requiredInput tagged fields non-nullable in mutation inputs
|
|
29
26
|
export { RequiredInputPlugin, RequiredInputPreset, } from './required-input-plugin';
|
|
30
|
-
|
|
31
|
-
|
|
27
|
+
export { Bm25CodecPlugin, Bm25CodecPreset, bm25IndexStore, createBm25Adapter,
|
|
28
|
+
// Operator factories for connection filter integration
|
|
29
|
+
createMatchesOperatorFactory, createPgvectorAdapter, createTrgmAdapter, createTrgmOperatorFactories,
|
|
30
|
+
// Adapters
|
|
31
|
+
createTsvectorAdapter, createTsvectorCodecPlugin,
|
|
32
32
|
// Core plugin + preset
|
|
33
|
-
createUnifiedSearchPlugin,
|
|
33
|
+
createUnifiedSearchPlugin,
|
|
34
34
|
// Codec plugins (tree-shakable)
|
|
35
|
-
TsvectorCodecPlugin, TsvectorCodecPreset,
|
|
36
|
-
// Adapters
|
|
37
|
-
createTsvectorAdapter, createBm25Adapter, createTrgmAdapter, createPgvectorAdapter,
|
|
38
|
-
// Operator factories for connection filter integration
|
|
39
|
-
createMatchesOperatorFactory, createTrgmOperatorFactories, } from 'graphile-search';
|
|
35
|
+
TsvectorCodecPlugin, TsvectorCodecPreset, UnifiedSearchPreset, VectorCodecPlugin, VectorCodecPreset, } from 'graphile-search';
|
package/esm/presets/index.d.ts
CHANGED
|
@@ -4,5 +4,5 @@
|
|
|
4
4
|
* This module exports pre-configured presets that combine multiple plugins
|
|
5
5
|
* for common use cases.
|
|
6
6
|
*/
|
|
7
|
-
export { ConstructivePreset, createConstructivePreset } from './constructive-preset';
|
|
8
7
|
export type { ConstructivePresetOptions } from './constructive-preset';
|
|
8
|
+
export { ConstructivePreset, createConstructivePreset } from './constructive-preset';
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
*
|
|
11
11
|
* Follows the same lazy-init pattern as upload-resolver.ts.
|
|
12
12
|
*/
|
|
13
|
-
import type {
|
|
13
|
+
import type { BucketNameResolver, EnsureBucketProvisioned, S3Config } from 'graphile-presigned-url-plugin';
|
|
14
14
|
/**
|
|
15
15
|
* Lazily initialize and return the S3Config for the presigned URL plugin.
|
|
16
16
|
*
|
|
@@ -10,10 +10,10 @@
|
|
|
10
10
|
*
|
|
11
11
|
* Follows the same lazy-init pattern as upload-resolver.ts.
|
|
12
12
|
*/
|
|
13
|
-
import {
|
|
13
|
+
import { BucketProvisioner } from '@constructive-io/bucket-provisioner';
|
|
14
14
|
import { getEnvOptions } from '@constructive-io/graphql-env';
|
|
15
|
+
import { createS3Client } from '@constructive-io/s3-utils';
|
|
15
16
|
import { Logger } from '@pgpmjs/logger';
|
|
16
|
-
import { BucketProvisioner } from '@constructive-io/bucket-provisioner';
|
|
17
17
|
import { getBucketProvisionerConnection } from './bucket-provisioner-resolver';
|
|
18
18
|
const log = new Logger('presigned-url-resolver');
|
|
19
19
|
let s3Config = null;
|
package/esm/upload-resolver.js
CHANGED
|
@@ -15,9 +15,9 @@
|
|
|
15
15
|
* AWS_SECRET_KEY - secret key (default: 'minioadmin')
|
|
16
16
|
* CDN_ENDPOINT - S3-compatible endpoint (default: 'http://localhost:9000')
|
|
17
17
|
*/
|
|
18
|
+
import { getEnvOptions } from '@constructive-io/graphql-env';
|
|
18
19
|
import Streamer from '@constructive-io/s3-streamer';
|
|
19
20
|
import uploadNames from '@constructive-io/upload-names';
|
|
20
|
-
import { getEnvOptions } from '@constructive-io/graphql-env';
|
|
21
21
|
import { Logger } from '@pgpmjs/logger';
|
|
22
22
|
import { randomBytes } from 'crypto';
|
|
23
23
|
const log = new Logger('upload-resolver');
|
package/index.d.ts
CHANGED
|
@@ -26,11 +26,11 @@
|
|
|
26
26
|
* import { MinimalPreset, InflektPreset } from 'graphile-settings/plugins';
|
|
27
27
|
* ```
|
|
28
28
|
*/
|
|
29
|
-
import { makePgService } from 'postgraphile/adaptors/pg';
|
|
30
29
|
import 'postgraphile/grafserv';
|
|
31
30
|
import 'graphile-build';
|
|
32
|
-
|
|
31
|
+
import { makePgService } from 'postgraphile/adaptors/pg';
|
|
33
32
|
export type { ConstructivePresetOptions } from './presets/constructive-preset';
|
|
33
|
+
export { ConstructivePreset, createConstructivePreset } from './presets/constructive-preset';
|
|
34
34
|
export * from './plugins/index';
|
|
35
35
|
export * from './presets/index';
|
|
36
36
|
export { makePgService };
|
package/index.js
CHANGED
|
@@ -43,8 +43,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
43
43
|
};
|
|
44
44
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
45
45
|
exports.getBucketProvisionerConnection = exports.getPresignedUrlS3Config = exports.makePgService = exports.createConstructivePreset = exports.ConstructivePreset = void 0;
|
|
46
|
-
const pg_1 = require("postgraphile/adaptors/pg");
|
|
47
|
-
Object.defineProperty(exports, "makePgService", { enumerable: true, get: function () { return pg_1.makePgService; } });
|
|
48
46
|
// Import modules for type augmentation
|
|
49
47
|
// These add properties to the GraphileConfig.Preset interface:
|
|
50
48
|
// - grafserv: adds 'grafserv' property
|
|
@@ -52,10 +50,8 @@ Object.defineProperty(exports, "makePgService", { enumerable: true, get: functio
|
|
|
52
50
|
// - postgraphile-plugin-connection-filter: augments SchemaOptions with connectionFilter* options
|
|
53
51
|
require("postgraphile/grafserv");
|
|
54
52
|
require("graphile-build");
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
// ============================================================================
|
|
58
|
-
// Main preset + factory
|
|
53
|
+
const pg_1 = require("postgraphile/adaptors/pg");
|
|
54
|
+
Object.defineProperty(exports, "makePgService", { enumerable: true, get: function () { return pg_1.makePgService; } });
|
|
59
55
|
var constructive_preset_1 = require("./presets/constructive-preset");
|
|
60
56
|
Object.defineProperty(exports, "ConstructivePreset", { enumerable: true, get: function () { return constructive_preset_1.ConstructivePreset; } });
|
|
61
57
|
Object.defineProperty(exports, "createConstructivePreset", { enumerable: true, get: function () { return constructive_preset_1.createConstructivePreset; } });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "graphile-settings",
|
|
3
|
-
"version": "6.11.
|
|
3
|
+
"version": "6.11.9",
|
|
4
4
|
"author": "Constructive <developers@constructive.io>",
|
|
5
5
|
"description": "graphile settings",
|
|
6
6
|
"main": "index.js",
|
|
@@ -30,39 +30,39 @@
|
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@aws-sdk/client-s3": "^3.1052.0",
|
|
33
|
-
"@constructive-io/bucket-provisioner": "^0.23.
|
|
34
|
-
"@constructive-io/graphql-env": "^3.28.
|
|
35
|
-
"@constructive-io/graphql-types": "^3.27.
|
|
36
|
-
"@constructive-io/s3-streamer": "^2.38.
|
|
37
|
-
"@constructive-io/s3-utils": "^2.29.
|
|
38
|
-
"@constructive-io/upload-names": "^2.28.
|
|
33
|
+
"@constructive-io/bucket-provisioner": "^0.23.3",
|
|
34
|
+
"@constructive-io/graphql-env": "^3.28.3",
|
|
35
|
+
"@constructive-io/graphql-types": "^3.27.3",
|
|
36
|
+
"@constructive-io/s3-streamer": "^2.38.3",
|
|
37
|
+
"@constructive-io/s3-utils": "^2.29.3",
|
|
38
|
+
"@constructive-io/upload-names": "^2.28.3",
|
|
39
39
|
"@dataplan/json": "1.0.0",
|
|
40
40
|
"@dataplan/pg": "1.0.3",
|
|
41
41
|
"@graphile-contrib/pg-many-to-many": "2.0.0-rc.2",
|
|
42
|
-
"@pgpmjs/logger": "^2.23.
|
|
43
|
-
"@pgpmjs/types": "^2.49.
|
|
44
|
-
"@pgsql/quotes": "^18.
|
|
42
|
+
"@pgpmjs/logger": "^2.23.3",
|
|
43
|
+
"@pgpmjs/types": "^2.49.3",
|
|
44
|
+
"@pgsql/quotes": "^18.2.0",
|
|
45
45
|
"cors": "^2.8.6",
|
|
46
46
|
"express": "^5.2.1",
|
|
47
47
|
"grafast": "1.0.2",
|
|
48
48
|
"grafserv": "1.0.0",
|
|
49
|
-
"graphile-bucket-provisioner-plugin": "1.9.
|
|
49
|
+
"graphile-bucket-provisioner-plugin": "1.9.3",
|
|
50
50
|
"graphile-build": "5.0.2",
|
|
51
51
|
"graphile-build-pg": "5.0.2",
|
|
52
|
-
"graphile-bulk-mutations": "^1.10.
|
|
52
|
+
"graphile-bulk-mutations": "^1.10.9",
|
|
53
53
|
"graphile-config": "1.0.1",
|
|
54
|
-
"graphile-connection-filter": "^2.10.
|
|
55
|
-
"graphile-history": "^1.2.
|
|
56
|
-
"graphile-i18n": "^2.10.
|
|
57
|
-
"graphile-llm": "^1.10.
|
|
58
|
-
"graphile-ltree": "^2.10.
|
|
59
|
-
"graphile-meta": "^1.6.
|
|
60
|
-
"graphile-pg-aggregates": "^2.10.
|
|
61
|
-
"graphile-postgis": "^3.10.
|
|
62
|
-
"graphile-presigned-url-plugin": "^1.9.
|
|
63
|
-
"graphile-realtime-subscriptions": "^1.9.
|
|
64
|
-
"graphile-search": "^2.10.
|
|
65
|
-
"graphile-upload-plugin": "^2.23.
|
|
54
|
+
"graphile-connection-filter": "^2.10.9",
|
|
55
|
+
"graphile-history": "^1.2.9",
|
|
56
|
+
"graphile-i18n": "^2.10.9",
|
|
57
|
+
"graphile-llm": "^1.10.9",
|
|
58
|
+
"graphile-ltree": "^2.10.9",
|
|
59
|
+
"graphile-meta": "^1.6.4",
|
|
60
|
+
"graphile-pg-aggregates": "^2.10.9",
|
|
61
|
+
"graphile-postgis": "^3.10.9",
|
|
62
|
+
"graphile-presigned-url-plugin": "^1.9.3",
|
|
63
|
+
"graphile-realtime-subscriptions": "^1.9.3",
|
|
64
|
+
"graphile-search": "^2.10.9",
|
|
65
|
+
"graphile-upload-plugin": "^2.23.3",
|
|
66
66
|
"graphile-utils": "5.0.1",
|
|
67
67
|
"graphql": "16.13.0",
|
|
68
68
|
"inflekt": "^0.7.1",
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
"@types/express": "^5.0.6",
|
|
80
80
|
"@types/pg": "^8.20.0",
|
|
81
81
|
"@types/request-ip": "^0.0.41",
|
|
82
|
-
"graphile-test": "^5.10.
|
|
82
|
+
"graphile-test": "^5.10.9",
|
|
83
83
|
"makage": "^0.3.0",
|
|
84
84
|
"nodemon": "^3.1.14",
|
|
85
85
|
"ts-node": "^10.9.2"
|
|
@@ -91,5 +91,5 @@
|
|
|
91
91
|
"constructive",
|
|
92
92
|
"graphql"
|
|
93
93
|
],
|
|
94
|
-
"gitHead": "
|
|
94
|
+
"gitHead": "e6a7a57f88c9deb2a4acecaba2451320d1be8203"
|
|
95
95
|
}
|
|
@@ -6,9 +6,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.PublicKeySignature = void 0;
|
|
7
7
|
// import Networks from '@pyramation/crypto-networks';
|
|
8
8
|
// import { verifyMessage } from '@pyramation/crypto-keys';
|
|
9
|
+
const quotes_1 = require("@pgsql/quotes");
|
|
9
10
|
const grafast_1 = require("grafast");
|
|
10
11
|
const graphile_utils_1 = require("graphile-utils");
|
|
11
|
-
const quotes_1 = require("@pgsql/quotes");
|
|
12
12
|
const pg_query_context_1 = __importDefault(require("pg-query-context"));
|
|
13
13
|
const SAFE_IDENTIFIER = /^[a-z_][a-z0-9_]*$/;
|
|
14
14
|
const SAFE_CRYPTO_NETWORK = /^[a-z0-9_-]{1,64}$/i;
|
package/plugins/index.d.ts
CHANGED
|
@@ -9,15 +9,15 @@ export { ConflictDetectorPlugin, ConflictDetectorPreset, } from './conflict-dete
|
|
|
9
9
|
export { InflectorLoggerPlugin, InflectorLoggerPreset, } from './inflector-logger';
|
|
10
10
|
export { EnableAllFilterColumnsPlugin, EnableAllFilterColumnsPreset, } from './enable-all-filter-columns';
|
|
11
11
|
export { ManyToManyOptInPlugin, ManyToManyOptInPreset, } from './many-to-many-preset';
|
|
12
|
-
export { createUniqueLookupPlugin, PrimaryKeyOnlyPlugin, NoUniqueLookupPlugin, PrimaryKeyOnlyPreset, NoUniqueLookupPreset, } from './primary-key-only';
|
|
13
12
|
export type { UniqueLookupOptions } from './primary-key-only';
|
|
13
|
+
export { createUniqueLookupPlugin, NoUniqueLookupPlugin, NoUniqueLookupPreset, PrimaryKeyOnlyPlugin, PrimaryKeyOnlyPreset, } from './primary-key-only';
|
|
14
14
|
export { getTablesMetaForSchema, MetaSchemaPlugin, MetaSchemaPreset, } from './meta-schema';
|
|
15
|
-
export type {
|
|
16
|
-
export { PgTypeMappingsPlugin, PgTypeMappingsPreset, } from './pg-type-mappings';
|
|
15
|
+
export type { BelongsToRelation, ConstraintsMeta, FieldMeta, ForeignKeyConstraintMeta, HasRelation, IndexMeta, InflectionMeta, ManyToManyRelation, PrimaryKeyConstraintMeta, QueryMeta, RelationsMeta, TableMeta, TypeMeta, UniqueConstraintMeta, } from 'graphile-meta';
|
|
17
16
|
export type { TypeMapping } from './pg-type-mappings';
|
|
18
|
-
export {
|
|
17
|
+
export { PgTypeMappingsPlugin, PgTypeMappingsPreset, } from './pg-type-mappings';
|
|
19
18
|
export type { PublicKeyChallengeConfig } from './PublicKeySignature';
|
|
20
|
-
export {
|
|
19
|
+
export { PublicKeySignature } from './PublicKeySignature';
|
|
20
|
+
export { _buildFieldMeta, _pgTypeToGqlType } from './meta-schema';
|
|
21
21
|
export { RequiredInputPlugin, RequiredInputPreset, } from './required-input-plugin';
|
|
22
|
-
export {
|
|
23
|
-
export
|
|
22
|
+
export type { Bm25AdapterOptions, Bm25IndexInfo, PgvectorAdapterOptions, SearchableColumn, SearchAdapter, TrgmAdapterOptions, TsvectorAdapterOptions, TsvectorCodecPluginOptions, UnifiedSearchOptions, UnifiedSearchPresetOptions, } from 'graphile-search';
|
|
23
|
+
export { Bm25CodecPlugin, Bm25CodecPreset, bm25IndexStore, createBm25Adapter, createMatchesOperatorFactory, createPgvectorAdapter, createTrgmAdapter, createTrgmOperatorFactories, createTsvectorAdapter, createTsvectorCodecPlugin, createUnifiedSearchPlugin, TsvectorCodecPlugin, TsvectorCodecPreset, UnifiedSearchPreset, VectorCodecPlugin, VectorCodecPreset, } from 'graphile-search';
|
package/plugins/index.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* This module exports all custom plugins (consolidated from graphile-misc-plugins).
|
|
6
6
|
*/
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.
|
|
8
|
+
exports.VectorCodecPreset = exports.VectorCodecPlugin = exports.UnifiedSearchPreset = exports.TsvectorCodecPreset = exports.TsvectorCodecPlugin = exports.createUnifiedSearchPlugin = exports.createTsvectorCodecPlugin = exports.createTsvectorAdapter = exports.createTrgmOperatorFactories = exports.createTrgmAdapter = exports.createPgvectorAdapter = exports.createMatchesOperatorFactory = exports.createBm25Adapter = exports.bm25IndexStore = exports.Bm25CodecPreset = exports.Bm25CodecPlugin = exports.RequiredInputPreset = exports.RequiredInputPlugin = exports._pgTypeToGqlType = exports._buildFieldMeta = exports.PublicKeySignature = exports.PgTypeMappingsPreset = exports.PgTypeMappingsPlugin = exports.MetaSchemaPreset = exports.MetaSchemaPlugin = exports.getTablesMetaForSchema = exports.PrimaryKeyOnlyPreset = exports.PrimaryKeyOnlyPlugin = exports.NoUniqueLookupPreset = exports.NoUniqueLookupPlugin = exports.createUniqueLookupPlugin = exports.ManyToManyOptInPreset = exports.ManyToManyOptInPlugin = exports.EnableAllFilterColumnsPreset = exports.EnableAllFilterColumnsPlugin = exports.InflectorLoggerPreset = exports.InflectorLoggerPlugin = exports.ConflictDetectorPreset = exports.ConflictDetectorPlugin = exports.InflektPreset = exports.InflektPlugin = exports.MinimalPreset = void 0;
|
|
9
9
|
// Minimal preset - PostGraphile without Node/Relay features
|
|
10
10
|
var minimal_preset_1 = require("./minimal-preset");
|
|
11
11
|
Object.defineProperty(exports, "MinimalPreset", { enumerable: true, get: function () { return minimal_preset_1.MinimalPreset; } });
|
|
@@ -29,52 +29,48 @@ Object.defineProperty(exports, "EnableAllFilterColumnsPreset", { enumerable: tru
|
|
|
29
29
|
var many_to_many_preset_1 = require("./many-to-many-preset");
|
|
30
30
|
Object.defineProperty(exports, "ManyToManyOptInPlugin", { enumerable: true, get: function () { return many_to_many_preset_1.ManyToManyOptInPlugin; } });
|
|
31
31
|
Object.defineProperty(exports, "ManyToManyOptInPreset", { enumerable: true, get: function () { return many_to_many_preset_1.ManyToManyOptInPreset; } });
|
|
32
|
-
// Primary key only lookups (disable non-PK unique constraints)
|
|
33
32
|
var primary_key_only_1 = require("./primary-key-only");
|
|
34
33
|
Object.defineProperty(exports, "createUniqueLookupPlugin", { enumerable: true, get: function () { return primary_key_only_1.createUniqueLookupPlugin; } });
|
|
35
|
-
Object.defineProperty(exports, "PrimaryKeyOnlyPlugin", { enumerable: true, get: function () { return primary_key_only_1.PrimaryKeyOnlyPlugin; } });
|
|
36
34
|
Object.defineProperty(exports, "NoUniqueLookupPlugin", { enumerable: true, get: function () { return primary_key_only_1.NoUniqueLookupPlugin; } });
|
|
37
|
-
Object.defineProperty(exports, "PrimaryKeyOnlyPreset", { enumerable: true, get: function () { return primary_key_only_1.PrimaryKeyOnlyPreset; } });
|
|
38
35
|
Object.defineProperty(exports, "NoUniqueLookupPreset", { enumerable: true, get: function () { return primary_key_only_1.NoUniqueLookupPreset; } });
|
|
36
|
+
Object.defineProperty(exports, "PrimaryKeyOnlyPlugin", { enumerable: true, get: function () { return primary_key_only_1.PrimaryKeyOnlyPlugin; } });
|
|
37
|
+
Object.defineProperty(exports, "PrimaryKeyOnlyPreset", { enumerable: true, get: function () { return primary_key_only_1.PrimaryKeyOnlyPreset; } });
|
|
39
38
|
// Meta schema plugin for introspection (tables, fields, indexes, constraints)
|
|
40
39
|
var meta_schema_1 = require("./meta-schema");
|
|
41
40
|
Object.defineProperty(exports, "getTablesMetaForSchema", { enumerable: true, get: function () { return meta_schema_1.getTablesMetaForSchema; } });
|
|
42
41
|
Object.defineProperty(exports, "MetaSchemaPlugin", { enumerable: true, get: function () { return meta_schema_1.MetaSchemaPlugin; } });
|
|
43
42
|
Object.defineProperty(exports, "MetaSchemaPreset", { enumerable: true, get: function () { return meta_schema_1.MetaSchemaPreset; } });
|
|
44
|
-
// PG type mappings for custom PostgreSQL types (email, url, etc.)
|
|
45
43
|
var pg_type_mappings_1 = require("./pg-type-mappings");
|
|
46
44
|
Object.defineProperty(exports, "PgTypeMappingsPlugin", { enumerable: true, get: function () { return pg_type_mappings_1.PgTypeMappingsPlugin; } });
|
|
47
45
|
Object.defineProperty(exports, "PgTypeMappingsPreset", { enumerable: true, get: function () { return pg_type_mappings_1.PgTypeMappingsPreset; } });
|
|
48
|
-
// Public key signature plugin for crypto authentication
|
|
49
46
|
var PublicKeySignature_1 = require("./PublicKeySignature");
|
|
50
47
|
Object.defineProperty(exports, "PublicKeySignature", { enumerable: true, get: function () { return PublicKeySignature_1.PublicKeySignature; } });
|
|
51
48
|
// Internal exports for testing
|
|
52
49
|
var meta_schema_2 = require("./meta-schema");
|
|
53
|
-
Object.defineProperty(exports, "_pgTypeToGqlType", { enumerable: true, get: function () { return meta_schema_2._pgTypeToGqlType; } });
|
|
54
50
|
Object.defineProperty(exports, "_buildFieldMeta", { enumerable: true, get: function () { return meta_schema_2._buildFieldMeta; } });
|
|
51
|
+
Object.defineProperty(exports, "_pgTypeToGqlType", { enumerable: true, get: function () { return meta_schema_2._pgTypeToGqlType; } });
|
|
55
52
|
// Required input plugin - makes @requiredInput tagged fields non-nullable in mutation inputs
|
|
56
53
|
var required_input_plugin_1 = require("./required-input-plugin");
|
|
57
54
|
Object.defineProperty(exports, "RequiredInputPlugin", { enumerable: true, get: function () { return required_input_plugin_1.RequiredInputPlugin; } });
|
|
58
55
|
Object.defineProperty(exports, "RequiredInputPreset", { enumerable: true, get: function () { return required_input_plugin_1.RequiredInputPreset; } });
|
|
59
|
-
// Unified search — tsvector + BM25 + pg_trgm + pgvector behind a single adapter architecture
|
|
60
56
|
var graphile_search_1 = require("graphile-search");
|
|
61
|
-
// Core plugin + preset
|
|
62
|
-
Object.defineProperty(exports, "createUnifiedSearchPlugin", { enumerable: true, get: function () { return graphile_search_1.createUnifiedSearchPlugin; } });
|
|
63
|
-
Object.defineProperty(exports, "UnifiedSearchPreset", { enumerable: true, get: function () { return graphile_search_1.UnifiedSearchPreset; } });
|
|
64
|
-
// Codec plugins (tree-shakable)
|
|
65
|
-
Object.defineProperty(exports, "TsvectorCodecPlugin", { enumerable: true, get: function () { return graphile_search_1.TsvectorCodecPlugin; } });
|
|
66
|
-
Object.defineProperty(exports, "TsvectorCodecPreset", { enumerable: true, get: function () { return graphile_search_1.TsvectorCodecPreset; } });
|
|
67
|
-
Object.defineProperty(exports, "createTsvectorCodecPlugin", { enumerable: true, get: function () { return graphile_search_1.createTsvectorCodecPlugin; } });
|
|
68
57
|
Object.defineProperty(exports, "Bm25CodecPlugin", { enumerable: true, get: function () { return graphile_search_1.Bm25CodecPlugin; } });
|
|
69
58
|
Object.defineProperty(exports, "Bm25CodecPreset", { enumerable: true, get: function () { return graphile_search_1.Bm25CodecPreset; } });
|
|
70
59
|
Object.defineProperty(exports, "bm25IndexStore", { enumerable: true, get: function () { return graphile_search_1.bm25IndexStore; } });
|
|
71
|
-
Object.defineProperty(exports, "VectorCodecPlugin", { enumerable: true, get: function () { return graphile_search_1.VectorCodecPlugin; } });
|
|
72
|
-
Object.defineProperty(exports, "VectorCodecPreset", { enumerable: true, get: function () { return graphile_search_1.VectorCodecPreset; } });
|
|
73
|
-
// Adapters
|
|
74
|
-
Object.defineProperty(exports, "createTsvectorAdapter", { enumerable: true, get: function () { return graphile_search_1.createTsvectorAdapter; } });
|
|
75
60
|
Object.defineProperty(exports, "createBm25Adapter", { enumerable: true, get: function () { return graphile_search_1.createBm25Adapter; } });
|
|
76
|
-
Object.defineProperty(exports, "createTrgmAdapter", { enumerable: true, get: function () { return graphile_search_1.createTrgmAdapter; } });
|
|
77
|
-
Object.defineProperty(exports, "createPgvectorAdapter", { enumerable: true, get: function () { return graphile_search_1.createPgvectorAdapter; } });
|
|
78
61
|
// Operator factories for connection filter integration
|
|
79
62
|
Object.defineProperty(exports, "createMatchesOperatorFactory", { enumerable: true, get: function () { return graphile_search_1.createMatchesOperatorFactory; } });
|
|
63
|
+
Object.defineProperty(exports, "createPgvectorAdapter", { enumerable: true, get: function () { return graphile_search_1.createPgvectorAdapter; } });
|
|
64
|
+
Object.defineProperty(exports, "createTrgmAdapter", { enumerable: true, get: function () { return graphile_search_1.createTrgmAdapter; } });
|
|
80
65
|
Object.defineProperty(exports, "createTrgmOperatorFactories", { enumerable: true, get: function () { return graphile_search_1.createTrgmOperatorFactories; } });
|
|
66
|
+
// Adapters
|
|
67
|
+
Object.defineProperty(exports, "createTsvectorAdapter", { enumerable: true, get: function () { return graphile_search_1.createTsvectorAdapter; } });
|
|
68
|
+
Object.defineProperty(exports, "createTsvectorCodecPlugin", { enumerable: true, get: function () { return graphile_search_1.createTsvectorCodecPlugin; } });
|
|
69
|
+
// Core plugin + preset
|
|
70
|
+
Object.defineProperty(exports, "createUnifiedSearchPlugin", { enumerable: true, get: function () { return graphile_search_1.createUnifiedSearchPlugin; } });
|
|
71
|
+
// Codec plugins (tree-shakable)
|
|
72
|
+
Object.defineProperty(exports, "TsvectorCodecPlugin", { enumerable: true, get: function () { return graphile_search_1.TsvectorCodecPlugin; } });
|
|
73
|
+
Object.defineProperty(exports, "TsvectorCodecPreset", { enumerable: true, get: function () { return graphile_search_1.TsvectorCodecPreset; } });
|
|
74
|
+
Object.defineProperty(exports, "UnifiedSearchPreset", { enumerable: true, get: function () { return graphile_search_1.UnifiedSearchPreset; } });
|
|
75
|
+
Object.defineProperty(exports, "VectorCodecPlugin", { enumerable: true, get: function () { return graphile_search_1.VectorCodecPlugin; } });
|
|
76
|
+
Object.defineProperty(exports, "VectorCodecPreset", { enumerable: true, get: function () { return graphile_search_1.VectorCodecPreset; } });
|
package/presets/index.d.ts
CHANGED
|
@@ -4,5 +4,5 @@
|
|
|
4
4
|
* This module exports pre-configured presets that combine multiple plugins
|
|
5
5
|
* for common use cases.
|
|
6
6
|
*/
|
|
7
|
-
export { ConstructivePreset, createConstructivePreset } from './constructive-preset';
|
|
8
7
|
export type { ConstructivePresetOptions } from './constructive-preset';
|
|
8
|
+
export { ConstructivePreset, createConstructivePreset } from './constructive-preset';
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
*
|
|
11
11
|
* Follows the same lazy-init pattern as upload-resolver.ts.
|
|
12
12
|
*/
|
|
13
|
-
import type {
|
|
13
|
+
import type { BucketNameResolver, EnsureBucketProvisioned, S3Config } from 'graphile-presigned-url-plugin';
|
|
14
14
|
/**
|
|
15
15
|
* Lazily initialize and return the S3Config for the presigned URL plugin.
|
|
16
16
|
*
|
|
@@ -16,10 +16,10 @@ exports.getPresignedUrlS3Config = getPresignedUrlS3Config;
|
|
|
16
16
|
exports.createBucketNameResolver = createBucketNameResolver;
|
|
17
17
|
exports.getAllowedOrigins = getAllowedOrigins;
|
|
18
18
|
exports.createEnsureBucketProvisioned = createEnsureBucketProvisioned;
|
|
19
|
-
const
|
|
19
|
+
const bucket_provisioner_1 = require("@constructive-io/bucket-provisioner");
|
|
20
20
|
const graphql_env_1 = require("@constructive-io/graphql-env");
|
|
21
|
+
const s3_utils_1 = require("@constructive-io/s3-utils");
|
|
21
22
|
const logger_1 = require("@pgpmjs/logger");
|
|
22
|
-
const bucket_provisioner_1 = require("@constructive-io/bucket-provisioner");
|
|
23
23
|
const bucket_provisioner_resolver_1 = require("./bucket-provisioner-resolver");
|
|
24
24
|
const log = new logger_1.Logger('presigned-url-resolver');
|
|
25
25
|
let s3Config = null;
|
package/upload-resolver.js
CHANGED
|
@@ -21,9 +21,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
21
21
|
};
|
|
22
22
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
23
23
|
exports.constructiveUploadFieldDefinitions = void 0;
|
|
24
|
+
const graphql_env_1 = require("@constructive-io/graphql-env");
|
|
24
25
|
const s3_streamer_1 = __importDefault(require("@constructive-io/s3-streamer"));
|
|
25
26
|
const upload_names_1 = __importDefault(require("@constructive-io/upload-names"));
|
|
26
|
-
const graphql_env_1 = require("@constructive-io/graphql-env");
|
|
27
27
|
const logger_1 = require("@pgpmjs/logger");
|
|
28
28
|
const crypto_1 = require("crypto");
|
|
29
29
|
const log = new logger_1.Logger('upload-resolver');
|