@0xobelisk/graphql-server 1.2.0-pre.68 → 1.2.0-pre.70
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/dist/plugins/postgraphile-config.d.ts +0 -4
- package/dist/plugins/postgraphile-config.d.ts.map +1 -1
- package/dist/plugins/postgraphile-config.js +3 -49
- package/dist/plugins/postgraphile-config.js.map +1 -1
- package/package.json +1 -1
- package/src/plugins/postgraphile-config.ts +3 -52
- package/sui-indexer-schema.graphql +3134 -0
|
@@ -33,8 +33,6 @@ export declare function createPostGraphileConfig(options: PostGraphileConfigOpti
|
|
|
33
33
|
graphiqlRoute: string;
|
|
34
34
|
appendPlugins: import("postgraphile").Plugin[];
|
|
35
35
|
graphileBuildOptions: {
|
|
36
|
-
connectionFilterAllowedOperators: string[];
|
|
37
|
-
connectionFilterAllowedFieldTypes: string[];
|
|
38
36
|
connectionFilterLogicalOperators: boolean;
|
|
39
37
|
connectionFilterRelations: boolean;
|
|
40
38
|
connectionFilterComputedColumns: boolean;
|
|
@@ -80,8 +78,6 @@ export declare function createPostGraphileConfig(options: PostGraphileConfigOpti
|
|
|
80
78
|
graphiqlRoute: string;
|
|
81
79
|
appendPlugins: import("postgraphile").Plugin[];
|
|
82
80
|
graphileBuildOptions: {
|
|
83
|
-
connectionFilterAllowedOperators: string[];
|
|
84
|
-
connectionFilterAllowedFieldTypes: string[];
|
|
85
81
|
connectionFilterLogicalOperators: boolean;
|
|
86
82
|
connectionFilterRelations: boolean;
|
|
87
83
|
connectionFilterComputedColumns: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"postgraphile-config.d.ts","sourceRoot":"","sources":["../../src/plugins/postgraphile-config.ts"],"names":[],"mappings":"AASA,MAAM,WAAW,yBAAyB;IACxC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC;IACtB,OAAO,EAAE,MAAM,CAAC;IAChB,eAAe,EAAE,MAAM,CAAC;IACxB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,eAAe,EAAE,MAAM,EAAE,CAAC;IAE1B,eAAe,EAAE,OAAO,CAAC;IACzB,cAAc,EAAE,OAAO,CAAC;IACxB,YAAY,EAAE,MAAM,CAAC;CACtB;AAGD,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,yBAAyB
|
|
1
|
+
{"version":3,"file":"postgraphile-config.d.ts","sourceRoot":"","sources":["../../src/plugins/postgraphile-config.ts"],"names":[],"mappings":"AASA,MAAM,WAAW,yBAAyB;IACxC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC;IACtB,OAAO,EAAE,MAAM,CAAC;IAChB,eAAe,EAAE,MAAM,CAAC;IACxB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,eAAe,EAAE,MAAM,EAAE,CAAC;IAE1B,eAAe,EAAE,OAAO,CAAC;IACzB,cAAc,EAAE,OAAO,CAAC;IACxB,YAAY,EAAE,MAAM,CAAC;CACtB;AAGD,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6BA2F9C,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6BAAN,MAAM;;EA8ClC;AAGD,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,yBAAyB,GAAG,MAAM,CAiB/E"}
|
|
@@ -64,51 +64,6 @@ function createPostGraphileConfig(options) {
|
|
|
64
64
|
],
|
|
65
65
|
// Advanced configuration options for Connection Filter plugin
|
|
66
66
|
graphileBuildOptions: {
|
|
67
|
-
// Enable all supported operators
|
|
68
|
-
connectionFilterAllowedOperators: [
|
|
69
|
-
'isNull',
|
|
70
|
-
'equalTo',
|
|
71
|
-
'notEqualTo',
|
|
72
|
-
'distinctFrom',
|
|
73
|
-
'notDistinctFrom',
|
|
74
|
-
'lessThan',
|
|
75
|
-
'lessThanOrEqualTo',
|
|
76
|
-
'greaterThan',
|
|
77
|
-
'greaterThanOrEqualTo',
|
|
78
|
-
'in',
|
|
79
|
-
'notIn',
|
|
80
|
-
'like',
|
|
81
|
-
'notLike',
|
|
82
|
-
'ilike',
|
|
83
|
-
'notIlike',
|
|
84
|
-
'similarTo',
|
|
85
|
-
'notSimilarTo',
|
|
86
|
-
'includes',
|
|
87
|
-
'notIncludes',
|
|
88
|
-
'includesInsensitive',
|
|
89
|
-
'notIncludesInsensitive',
|
|
90
|
-
'startsWith',
|
|
91
|
-
'notStartsWith',
|
|
92
|
-
'startsWithInsensitive',
|
|
93
|
-
'notStartsWithInsensitive',
|
|
94
|
-
'endsWith',
|
|
95
|
-
'notEndsWith',
|
|
96
|
-
'endsWithInsensitive',
|
|
97
|
-
'notEndsWithInsensitive'
|
|
98
|
-
],
|
|
99
|
-
// Support filtering for all field types - explicitly allow all types
|
|
100
|
-
connectionFilterAllowedFieldTypes: [
|
|
101
|
-
'String',
|
|
102
|
-
'Int',
|
|
103
|
-
'Float',
|
|
104
|
-
'Boolean',
|
|
105
|
-
'ID',
|
|
106
|
-
'Date',
|
|
107
|
-
'Time',
|
|
108
|
-
'Datetime',
|
|
109
|
-
'JSON',
|
|
110
|
-
'BigInt'
|
|
111
|
-
],
|
|
112
67
|
// Enable logical operators (and, or, not)
|
|
113
68
|
connectionFilterLogicalOperators: true,
|
|
114
69
|
// Enable relationship filtering
|
|
@@ -168,10 +123,9 @@ function createPostGraphileConfig(options) {
|
|
|
168
123
|
// Export enhanced playground HTML generator
|
|
169
124
|
function createPlaygroundHtml(options) {
|
|
170
125
|
const { port, graphqlEndpoint, enableSubscriptions, availableTables } = options;
|
|
171
|
-
//
|
|
172
|
-
const
|
|
173
|
-
const
|
|
174
|
-
const subscriptionUrl = enableSubscriptions === 'true' ? `ws://localhost:${port}${graphqlEndpoint}` : undefined;
|
|
126
|
+
// Use relative URLs so playground connects to the same domain as the server
|
|
127
|
+
const graphqlUrl = graphqlEndpoint;
|
|
128
|
+
const subscriptionUrl = enableSubscriptions === 'true' ? graphqlEndpoint : undefined;
|
|
175
129
|
return (0, enhanced_playground_1.createEnhancedPlayground)({
|
|
176
130
|
url: graphqlUrl,
|
|
177
131
|
subscriptionUrl,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"postgraphile-config.js","sourceRoot":"","sources":["../../src/plugins/postgraphile-config.ts"],"names":[],"mappings":";;;;;AAwBA,
|
|
1
|
+
{"version":3,"file":"postgraphile-config.js","sourceRoot":"","sources":["../../src/plugins/postgraphile-config.ts"],"names":[],"mappings":";;;;;AAwBA,4DAyIC;AAGD,oDAiBC;AArLD,iDAAmD;AACnD,mDAAqD;AACrD,yEAAmE;AACnE,+DAAiE;AACjE,kHAA2E;AAC3E,oGAAgF;AAChF,+CAA8C;AAC9C,oEAA2C;AAgB3C,oCAAoC;AACpC,SAAgB,wBAAwB,CAAC,OAAkC;IACzE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,UAAU,EAAE,eAAe,EAAE,GACxF,OAAO,CAAC;IAEV,4CAA4C;IAC5C,MAAM,OAAO,GAAG,oBAAoB,IAAI,EAAE,CAAC;IAC3C,MAAM,UAAU,GAAG,GAAG,OAAO,GAAG,eAAe,EAAE,CAAC;IAClD,MAAM,eAAe,GACnB,mBAAmB,KAAK,MAAM,CAAC,CAAC,CAAC,kBAAkB,IAAI,GAAG,eAAe,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;IAE1F,4DAA4D;IAC5D,MAAM,UAAU,GAAG,IAAA,6BAAc,EAAC,CAAC,mBAAQ,CAAC,CAAC,CAAC;IAE9C,MAAM,MAAM,GAAG;QACb,iDAAiD;QACjD,QAAQ,EAAE,KAAK;QACf,eAAe,EAAE,KAAK;QACtB,cAAc,EAAE,OAAO,KAAK,aAAa;QACzC,cAAc,EAAE,O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AE,GAAG,OAAO,CAAC;IAEhF,4EAA4E;IAC5E,MAAM,UAAU,GAAG,eAAe,CAAC;IACnC,MAAM,eAAe,GAAG,mBAAmB,KAAK,MAAM,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,SAAS,CAAC;IAErF,OAAO,IAAA,8CAAwB,EAAC;QAC9B,GAAG,EAAE,UAAU;QACf,eAAe;QACf,KAAK,EAAE,gCAAgC;QACvC,QAAQ,EAAE,0BAA0B,eAAe,CAAC,MAAM,wBACxD,mBAAmB,KAAK,MAAM;YAC5B,CAAC,CAAC,mCAAmC;YACrC,CAAC,CAAC,kCACN,EAAE;KACH,CAAC,CAAC,IAAW,EAAE,IAAW,EAAE,EAAE,CAAC,CAAC;AACnC,CAAC"}
|
package/package.json
CHANGED
|
@@ -89,53 +89,6 @@ export function createPostGraphileConfig(options: PostGraphileConfigOptions) {
|
|
|
89
89
|
|
|
90
90
|
// Advanced configuration options for Connection Filter plugin
|
|
91
91
|
graphileBuildOptions: {
|
|
92
|
-
// Enable all supported operators
|
|
93
|
-
connectionFilterAllowedOperators: [
|
|
94
|
-
'isNull',
|
|
95
|
-
'equalTo',
|
|
96
|
-
'notEqualTo',
|
|
97
|
-
'distinctFrom',
|
|
98
|
-
'notDistinctFrom',
|
|
99
|
-
'lessThan',
|
|
100
|
-
'lessThanOrEqualTo',
|
|
101
|
-
'greaterThan',
|
|
102
|
-
'greaterThanOrEqualTo',
|
|
103
|
-
'in',
|
|
104
|
-
'notIn',
|
|
105
|
-
'like',
|
|
106
|
-
'notLike',
|
|
107
|
-
'ilike',
|
|
108
|
-
'notIlike',
|
|
109
|
-
'similarTo',
|
|
110
|
-
'notSimilarTo',
|
|
111
|
-
'includes',
|
|
112
|
-
'notIncludes',
|
|
113
|
-
'includesInsensitive',
|
|
114
|
-
'notIncludesInsensitive',
|
|
115
|
-
'startsWith',
|
|
116
|
-
'notStartsWith',
|
|
117
|
-
'startsWithInsensitive',
|
|
118
|
-
'notStartsWithInsensitive',
|
|
119
|
-
'endsWith',
|
|
120
|
-
'notEndsWith',
|
|
121
|
-
'endsWithInsensitive',
|
|
122
|
-
'notEndsWithInsensitive'
|
|
123
|
-
],
|
|
124
|
-
|
|
125
|
-
// Support filtering for all field types - explicitly allow all types
|
|
126
|
-
connectionFilterAllowedFieldTypes: [
|
|
127
|
-
'String',
|
|
128
|
-
'Int',
|
|
129
|
-
'Float',
|
|
130
|
-
'Boolean',
|
|
131
|
-
'ID',
|
|
132
|
-
'Date',
|
|
133
|
-
'Time',
|
|
134
|
-
'Datetime',
|
|
135
|
-
'JSON',
|
|
136
|
-
'BigInt'
|
|
137
|
-
],
|
|
138
|
-
|
|
139
92
|
// Enable logical operators (and, or, not)
|
|
140
93
|
connectionFilterLogicalOperators: true,
|
|
141
94
|
|
|
@@ -212,11 +165,9 @@ export function createPostGraphileConfig(options: PostGraphileConfigOptions) {
|
|
|
212
165
|
export function createPlaygroundHtml(options: PostGraphileConfigOptions): string {
|
|
213
166
|
const { port, graphqlEndpoint, enableSubscriptions, availableTables } = options;
|
|
214
167
|
|
|
215
|
-
//
|
|
216
|
-
const
|
|
217
|
-
const
|
|
218
|
-
const subscriptionUrl =
|
|
219
|
-
enableSubscriptions === 'true' ? `ws://localhost:${port}${graphqlEndpoint}` : undefined;
|
|
168
|
+
// Use relative URLs so playground connects to the same domain as the server
|
|
169
|
+
const graphqlUrl = graphqlEndpoint;
|
|
170
|
+
const subscriptionUrl = enableSubscriptions === 'true' ? graphqlEndpoint : undefined;
|
|
220
171
|
|
|
221
172
|
return createEnhancedPlayground({
|
|
222
173
|
url: graphqlUrl,
|