graphile-settings 5.6.5 → 5.7.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.
|
@@ -30,7 +30,7 @@ export interface ConstructivePresetOptions {
|
|
|
30
30
|
* its corresponding plugin preset is included; when `false` it is omitted.
|
|
31
31
|
*
|
|
32
32
|
* Calling with no arguments produces the same preset as the previous static
|
|
33
|
-
* `ConstructivePreset` (everything on except aggregates
|
|
33
|
+
* `ConstructivePreset` (everything on except aggregates).
|
|
34
34
|
*
|
|
35
35
|
* CORE PRESETS (always included):
|
|
36
36
|
* - MinimalPreset (PostGraphile without Node/Relay)
|
|
@@ -54,7 +54,7 @@ export interface ConstructivePresetOptions {
|
|
|
54
54
|
* - enableRealtime -> RealtimeSubscriptionsPreset (off by default)
|
|
55
55
|
* - enableBulk -> BulkMutationPreset (off by default)
|
|
56
56
|
* - enableI18n -> I18nPreset (off by default)
|
|
57
|
-
* - enableLlm -> (
|
|
57
|
+
* - enableLlm -> GraphileLlmPreset (auto-embed unifiedSearch, vector text fields)
|
|
58
58
|
*
|
|
59
59
|
* RELATION FILTERS (when enableConnectionFilter is true):
|
|
60
60
|
* - Forward: filter child by parent
|
|
@@ -79,7 +79,7 @@ export interface ConstructivePresetOptions {
|
|
|
79
79
|
*/
|
|
80
80
|
export declare function createConstructivePreset(options?: ConstructivePresetOptions): GraphileConfig.Preset;
|
|
81
81
|
/**
|
|
82
|
-
* Default Constructive preset -- everything enabled except aggregates
|
|
82
|
+
* Default Constructive preset -- everything enabled except aggregates.
|
|
83
83
|
* Backwards-compatible: identical to the previous static ConstructivePreset.
|
|
84
84
|
*/
|
|
85
85
|
export declare const ConstructivePreset: GraphileConfig.Preset;
|
|
@@ -8,6 +8,7 @@ import { createPostgisOperatorFactory, GraphilePostgisPreset } from 'graphile-po
|
|
|
8
8
|
import { PresignedUrlPreset } from 'graphile-presigned-url-plugin';
|
|
9
9
|
import { RealtimeSubscriptionsPreset } from 'graphile-realtime-subscriptions';
|
|
10
10
|
import { createMatchesOperatorFactory, createTrgmOperatorFactories, UnifiedSearchPreset } from 'graphile-search';
|
|
11
|
+
import { GraphileLlmPreset } from 'graphile-llm';
|
|
11
12
|
import { UploadPreset } from 'graphile-upload-plugin';
|
|
12
13
|
import { getBucketProvisionerConnection } from '../bucket-provisioner-resolver';
|
|
13
14
|
import { ConflictDetectorPreset, EnableAllFilterColumnsPreset, InflectorLoggerPreset, InflektPreset, ManyToManyOptInPreset, MetaSchemaPreset, MinimalPreset, NoUniqueLookupPreset, PgTypeMappingsPreset, RequiredInputPreset } from '../plugins';
|
|
@@ -22,7 +23,7 @@ const DEFAULTS = {
|
|
|
22
23
|
enableManyToMany: true,
|
|
23
24
|
enableConnectionFilter: true,
|
|
24
25
|
enableLtree: true,
|
|
25
|
-
enableLlm:
|
|
26
|
+
enableLlm: true,
|
|
26
27
|
enableRealtime: false,
|
|
27
28
|
enableBulk: false,
|
|
28
29
|
enableI18n: false
|
|
@@ -35,7 +36,7 @@ const DEFAULTS = {
|
|
|
35
36
|
* its corresponding plugin preset is included; when `false` it is omitted.
|
|
36
37
|
*
|
|
37
38
|
* Calling with no arguments produces the same preset as the previous static
|
|
38
|
-
* `ConstructivePreset` (everything on except aggregates
|
|
39
|
+
* `ConstructivePreset` (everything on except aggregates).
|
|
39
40
|
*
|
|
40
41
|
* CORE PRESETS (always included):
|
|
41
42
|
* - MinimalPreset (PostGraphile without Node/Relay)
|
|
@@ -59,7 +60,7 @@ const DEFAULTS = {
|
|
|
59
60
|
* - enableRealtime -> RealtimeSubscriptionsPreset (off by default)
|
|
60
61
|
* - enableBulk -> BulkMutationPreset (off by default)
|
|
61
62
|
* - enableI18n -> I18nPreset (off by default)
|
|
62
|
-
* - enableLlm -> (
|
|
63
|
+
* - enableLlm -> GraphileLlmPreset (auto-embed unifiedSearch, vector text fields)
|
|
63
64
|
*
|
|
64
65
|
* RELATION FILTERS (when enableConnectionFilter is true):
|
|
65
66
|
* - Forward: filter child by parent
|
|
@@ -139,6 +140,9 @@ export function createConstructivePreset(options) {
|
|
|
139
140
|
if (opts.enableI18n) {
|
|
140
141
|
presets.push(I18nPreset());
|
|
141
142
|
}
|
|
143
|
+
if (opts.enableLlm) {
|
|
144
|
+
presets.push(GraphileLlmPreset());
|
|
145
|
+
}
|
|
142
146
|
// ----- connectionFilterOperatorFactories -----
|
|
143
147
|
// Only include operator factories for features that are actually enabled.
|
|
144
148
|
// graphile-config replaces (not concatenates) arrays when merging presets,
|
|
@@ -184,7 +188,7 @@ export function createConstructivePreset(options) {
|
|
|
184
188
|
return preset;
|
|
185
189
|
}
|
|
186
190
|
/**
|
|
187
|
-
* Default Constructive preset -- everything enabled except aggregates
|
|
191
|
+
* Default Constructive preset -- everything enabled except aggregates.
|
|
188
192
|
* Backwards-compatible: identical to the previous static ConstructivePreset.
|
|
189
193
|
*/
|
|
190
194
|
export const ConstructivePreset = createConstructivePreset();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "graphile-settings",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.7.1",
|
|
4
4
|
"author": "Constructive <developers@constructive.io>",
|
|
5
5
|
"description": "graphile settings",
|
|
6
6
|
"main": "index.js",
|
|
@@ -53,12 +53,13 @@
|
|
|
53
53
|
"graphile-config": "1.0.1",
|
|
54
54
|
"graphile-connection-filter": "^1.12.4",
|
|
55
55
|
"graphile-i18n": "^1.2.5",
|
|
56
|
-
"graphile-
|
|
56
|
+
"graphile-llm": "^0.12.1",
|
|
57
|
+
"graphile-ltree": "^1.9.5",
|
|
57
58
|
"graphile-pg-aggregates": "^1.5.4",
|
|
58
59
|
"graphile-postgis": "^2.18.4",
|
|
59
60
|
"graphile-presigned-url-plugin": "^0.20.0",
|
|
60
|
-
"graphile-realtime-subscriptions": "^0.8.
|
|
61
|
-
"graphile-search": "^1.
|
|
61
|
+
"graphile-realtime-subscriptions": "^0.8.1",
|
|
62
|
+
"graphile-search": "^1.17.0",
|
|
62
63
|
"graphile-upload-plugin": "^2.12.0",
|
|
63
64
|
"graphile-utils": "5.0.1",
|
|
64
65
|
"graphql": "16.13.0",
|
|
@@ -88,5 +89,5 @@
|
|
|
88
89
|
"constructive",
|
|
89
90
|
"graphql"
|
|
90
91
|
],
|
|
91
|
-
"gitHead": "
|
|
92
|
+
"gitHead": "fc6f9780ea1cab2c9344c2e392649ae644e84849"
|
|
92
93
|
}
|
|
@@ -30,7 +30,7 @@ export interface ConstructivePresetOptions {
|
|
|
30
30
|
* its corresponding plugin preset is included; when `false` it is omitted.
|
|
31
31
|
*
|
|
32
32
|
* Calling with no arguments produces the same preset as the previous static
|
|
33
|
-
* `ConstructivePreset` (everything on except aggregates
|
|
33
|
+
* `ConstructivePreset` (everything on except aggregates).
|
|
34
34
|
*
|
|
35
35
|
* CORE PRESETS (always included):
|
|
36
36
|
* - MinimalPreset (PostGraphile without Node/Relay)
|
|
@@ -54,7 +54,7 @@ export interface ConstructivePresetOptions {
|
|
|
54
54
|
* - enableRealtime -> RealtimeSubscriptionsPreset (off by default)
|
|
55
55
|
* - enableBulk -> BulkMutationPreset (off by default)
|
|
56
56
|
* - enableI18n -> I18nPreset (off by default)
|
|
57
|
-
* - enableLlm -> (
|
|
57
|
+
* - enableLlm -> GraphileLlmPreset (auto-embed unifiedSearch, vector text fields)
|
|
58
58
|
*
|
|
59
59
|
* RELATION FILTERS (when enableConnectionFilter is true):
|
|
60
60
|
* - Forward: filter child by parent
|
|
@@ -79,7 +79,7 @@ export interface ConstructivePresetOptions {
|
|
|
79
79
|
*/
|
|
80
80
|
export declare function createConstructivePreset(options?: ConstructivePresetOptions): GraphileConfig.Preset;
|
|
81
81
|
/**
|
|
82
|
-
* Default Constructive preset -- everything enabled except aggregates
|
|
82
|
+
* Default Constructive preset -- everything enabled except aggregates.
|
|
83
83
|
* Backwards-compatible: identical to the previous static ConstructivePreset.
|
|
84
84
|
*/
|
|
85
85
|
export declare const ConstructivePreset: GraphileConfig.Preset;
|
|
@@ -12,6 +12,7 @@ const graphile_postgis_1 = require("graphile-postgis");
|
|
|
12
12
|
const graphile_presigned_url_plugin_1 = require("graphile-presigned-url-plugin");
|
|
13
13
|
const graphile_realtime_subscriptions_1 = require("graphile-realtime-subscriptions");
|
|
14
14
|
const graphile_search_1 = require("graphile-search");
|
|
15
|
+
const graphile_llm_1 = require("graphile-llm");
|
|
15
16
|
const graphile_upload_plugin_1 = require("graphile-upload-plugin");
|
|
16
17
|
const bucket_provisioner_resolver_1 = require("../bucket-provisioner-resolver");
|
|
17
18
|
const plugins_1 = require("../plugins");
|
|
@@ -26,7 +27,7 @@ const DEFAULTS = {
|
|
|
26
27
|
enableManyToMany: true,
|
|
27
28
|
enableConnectionFilter: true,
|
|
28
29
|
enableLtree: true,
|
|
29
|
-
enableLlm:
|
|
30
|
+
enableLlm: true,
|
|
30
31
|
enableRealtime: false,
|
|
31
32
|
enableBulk: false,
|
|
32
33
|
enableI18n: false
|
|
@@ -39,7 +40,7 @@ const DEFAULTS = {
|
|
|
39
40
|
* its corresponding plugin preset is included; when `false` it is omitted.
|
|
40
41
|
*
|
|
41
42
|
* Calling with no arguments produces the same preset as the previous static
|
|
42
|
-
* `ConstructivePreset` (everything on except aggregates
|
|
43
|
+
* `ConstructivePreset` (everything on except aggregates).
|
|
43
44
|
*
|
|
44
45
|
* CORE PRESETS (always included):
|
|
45
46
|
* - MinimalPreset (PostGraphile without Node/Relay)
|
|
@@ -63,7 +64,7 @@ const DEFAULTS = {
|
|
|
63
64
|
* - enableRealtime -> RealtimeSubscriptionsPreset (off by default)
|
|
64
65
|
* - enableBulk -> BulkMutationPreset (off by default)
|
|
65
66
|
* - enableI18n -> I18nPreset (off by default)
|
|
66
|
-
* - enableLlm -> (
|
|
67
|
+
* - enableLlm -> GraphileLlmPreset (auto-embed unifiedSearch, vector text fields)
|
|
67
68
|
*
|
|
68
69
|
* RELATION FILTERS (when enableConnectionFilter is true):
|
|
69
70
|
* - Forward: filter child by parent
|
|
@@ -143,6 +144,9 @@ function createConstructivePreset(options) {
|
|
|
143
144
|
if (opts.enableI18n) {
|
|
144
145
|
presets.push((0, graphile_i18n_1.I18nPreset)());
|
|
145
146
|
}
|
|
147
|
+
if (opts.enableLlm) {
|
|
148
|
+
presets.push((0, graphile_llm_1.GraphileLlmPreset)());
|
|
149
|
+
}
|
|
146
150
|
// ----- connectionFilterOperatorFactories -----
|
|
147
151
|
// Only include operator factories for features that are actually enabled.
|
|
148
152
|
// graphile-config replaces (not concatenates) arrays when merging presets,
|
|
@@ -188,7 +192,7 @@ function createConstructivePreset(options) {
|
|
|
188
192
|
return preset;
|
|
189
193
|
}
|
|
190
194
|
/**
|
|
191
|
-
* Default Constructive preset -- everything enabled except aggregates
|
|
195
|
+
* Default Constructive preset -- everything enabled except aggregates.
|
|
192
196
|
* Backwards-compatible: identical to the previous static ConstructivePreset.
|
|
193
197
|
*/
|
|
194
198
|
exports.ConstructivePreset = createConstructivePreset();
|