@constructive-io/graphql-codegen 4.22.1 → 4.22.2
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.
|
@@ -156,6 +156,16 @@ function generateCreateClientFile(tables, hasCustomQueries, hasCustomMutations,
|
|
|
156
156
|
statements.push(t.exportAllDeclaration(t.stringLiteral('./select-types')));
|
|
157
157
|
// Re-export all models
|
|
158
158
|
statements.push(t.exportAllDeclaration(t.stringLiteral('./models')));
|
|
159
|
+
// Re-export all input types (SecureTableProvision, RelationProvision, Blueprint, etc.)
|
|
160
|
+
statements.push(t.exportAllDeclaration(t.stringLiteral('./types')));
|
|
161
|
+
// Explicitly resolve ambiguity for types exported by both select-types and types/input-types
|
|
162
|
+
// (ConnectionResult, PageInfo are defined in both — prefer the select-types versions)
|
|
163
|
+
const ambiguousTypeExport = t.exportNamedDeclaration(null, [
|
|
164
|
+
t.exportSpecifier(t.identifier('ConnectionResult'), t.identifier('ConnectionResult')),
|
|
165
|
+
t.exportSpecifier(t.identifier('PageInfo'), t.identifier('PageInfo')),
|
|
166
|
+
], t.stringLiteral('./select-types'));
|
|
167
|
+
ambiguousTypeExport.exportKind = 'type';
|
|
168
|
+
statements.push(ambiguousTypeExport);
|
|
159
169
|
// Re-export NodeHttpAdapter when enabled (for use in any Node.js application)
|
|
160
170
|
if (options?.nodeHttpAdapter) {
|
|
161
171
|
statements.push(t.exportNamedDeclaration(null, [
|
|
@@ -117,6 +117,16 @@ export function generateCreateClientFile(tables, hasCustomQueries, hasCustomMuta
|
|
|
117
117
|
statements.push(t.exportAllDeclaration(t.stringLiteral('./select-types')));
|
|
118
118
|
// Re-export all models
|
|
119
119
|
statements.push(t.exportAllDeclaration(t.stringLiteral('./models')));
|
|
120
|
+
// Re-export all input types (SecureTableProvision, RelationProvision, Blueprint, etc.)
|
|
121
|
+
statements.push(t.exportAllDeclaration(t.stringLiteral('./types')));
|
|
122
|
+
// Explicitly resolve ambiguity for types exported by both select-types and types/input-types
|
|
123
|
+
// (ConnectionResult, PageInfo are defined in both — prefer the select-types versions)
|
|
124
|
+
const ambiguousTypeExport = t.exportNamedDeclaration(null, [
|
|
125
|
+
t.exportSpecifier(t.identifier('ConnectionResult'), t.identifier('ConnectionResult')),
|
|
126
|
+
t.exportSpecifier(t.identifier('PageInfo'), t.identifier('PageInfo')),
|
|
127
|
+
], t.stringLiteral('./select-types'));
|
|
128
|
+
ambiguousTypeExport.exportKind = 'type';
|
|
129
|
+
statements.push(ambiguousTypeExport);
|
|
120
130
|
// Re-export NodeHttpAdapter when enabled (for use in any Node.js application)
|
|
121
131
|
if (options?.nodeHttpAdapter) {
|
|
122
132
|
statements.push(t.exportNamedDeclaration(null, [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@constructive-io/graphql-codegen",
|
|
3
|
-
"version": "4.22.
|
|
3
|
+
"version": "4.22.2",
|
|
4
4
|
"description": "GraphQL SDK generator for Constructive databases with React Query hooks",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"graphql",
|
|
@@ -101,5 +101,5 @@
|
|
|
101
101
|
"tsx": "^4.21.0",
|
|
102
102
|
"typescript": "^5.9.3"
|
|
103
103
|
},
|
|
104
|
-
"gitHead": "
|
|
104
|
+
"gitHead": "bdc883757817fd7e92af6b39bdb027aae6709445"
|
|
105
105
|
}
|