@constructive-io/graphql-codegen 4.4.0 → 4.4.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.
- package/core/generate.d.ts +2 -1
- package/core/generate.js +3 -0
- package/esm/core/generate.d.ts +2 -1
- package/esm/core/generate.js +3 -0
- package/package.json +4 -4
package/core/generate.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { CliConfig, GraphQLSDKConfigTarget } from '../types/config';
|
|
2
|
-
import type { CleanOperation, CleanTable } from '../types/schema';
|
|
2
|
+
import type { CleanOperation, CleanTable, TypeRegistry } from '../types/schema';
|
|
3
3
|
export interface GenerateOptions extends GraphQLSDKConfigTarget {
|
|
4
4
|
authorization?: string;
|
|
5
5
|
verbose?: boolean;
|
|
@@ -21,6 +21,7 @@ export interface GenerateResult {
|
|
|
21
21
|
customOperations: {
|
|
22
22
|
queries: CleanOperation[];
|
|
23
23
|
mutations: CleanOperation[];
|
|
24
|
+
typeRegistry?: TypeRegistry;
|
|
24
25
|
};
|
|
25
26
|
};
|
|
26
27
|
}
|
package/core/generate.js
CHANGED
|
@@ -239,6 +239,7 @@ async function generate(options = {}, internalOptions) {
|
|
|
239
239
|
mutations: customOperations.mutations,
|
|
240
240
|
},
|
|
241
241
|
config: { ...config, nodeHttpAdapter: useNodeHttpAdapter },
|
|
242
|
+
typeRegistry: customOperations.typeRegistry,
|
|
242
243
|
});
|
|
243
244
|
filesToWrite.push(...files.map((file) => ({
|
|
244
245
|
path: node_path_1.default.posix.join('cli', file.fileName),
|
|
@@ -372,6 +373,7 @@ async function generate(options = {}, internalOptions) {
|
|
|
372
373
|
customOperations: {
|
|
373
374
|
queries: customOperations.queries,
|
|
374
375
|
mutations: customOperations.mutations,
|
|
376
|
+
typeRegistry: customOperations.typeRegistry,
|
|
375
377
|
},
|
|
376
378
|
},
|
|
377
379
|
};
|
|
@@ -557,6 +559,7 @@ async function generateMulti(options) {
|
|
|
557
559
|
tables: result.pipelineData.tables,
|
|
558
560
|
customOperations: result.pipelineData.customOperations,
|
|
559
561
|
isAuthTarget,
|
|
562
|
+
typeRegistry: result.pipelineData.customOperations.typeRegistry,
|
|
560
563
|
});
|
|
561
564
|
}
|
|
562
565
|
}
|
package/esm/core/generate.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { CliConfig, GraphQLSDKConfigTarget } from '../types/config';
|
|
2
|
-
import type { CleanOperation, CleanTable } from '../types/schema';
|
|
2
|
+
import type { CleanOperation, CleanTable, TypeRegistry } from '../types/schema';
|
|
3
3
|
export interface GenerateOptions extends GraphQLSDKConfigTarget {
|
|
4
4
|
authorization?: string;
|
|
5
5
|
verbose?: boolean;
|
|
@@ -21,6 +21,7 @@ export interface GenerateResult {
|
|
|
21
21
|
customOperations: {
|
|
22
22
|
queries: CleanOperation[];
|
|
23
23
|
mutations: CleanOperation[];
|
|
24
|
+
typeRegistry?: TypeRegistry;
|
|
24
25
|
};
|
|
25
26
|
};
|
|
26
27
|
}
|
package/esm/core/generate.js
CHANGED
|
@@ -197,6 +197,7 @@ export async function generate(options = {}, internalOptions) {
|
|
|
197
197
|
mutations: customOperations.mutations,
|
|
198
198
|
},
|
|
199
199
|
config: { ...config, nodeHttpAdapter: useNodeHttpAdapter },
|
|
200
|
+
typeRegistry: customOperations.typeRegistry,
|
|
200
201
|
});
|
|
201
202
|
filesToWrite.push(...files.map((file) => ({
|
|
202
203
|
path: path.posix.join('cli', file.fileName),
|
|
@@ -330,6 +331,7 @@ export async function generate(options = {}, internalOptions) {
|
|
|
330
331
|
customOperations: {
|
|
331
332
|
queries: customOperations.queries,
|
|
332
333
|
mutations: customOperations.mutations,
|
|
334
|
+
typeRegistry: customOperations.typeRegistry,
|
|
333
335
|
},
|
|
334
336
|
},
|
|
335
337
|
};
|
|
@@ -515,6 +517,7 @@ export async function generateMulti(options) {
|
|
|
515
517
|
tables: result.pipelineData.tables,
|
|
516
518
|
customOperations: result.pipelineData.customOperations,
|
|
517
519
|
isAuthTarget,
|
|
520
|
+
typeRegistry: result.pipelineData.customOperations.typeRegistry,
|
|
518
521
|
});
|
|
519
522
|
}
|
|
520
523
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@constructive-io/graphql-codegen",
|
|
3
|
-
"version": "4.4.
|
|
3
|
+
"version": "4.4.2",
|
|
4
4
|
"description": "GraphQL SDK generator for Constructive databases with React Query hooks",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"graphql",
|
|
@@ -56,14 +56,14 @@
|
|
|
56
56
|
"@0no-co/graphql.web": "^1.1.2",
|
|
57
57
|
"@babel/generator": "^7.28.6",
|
|
58
58
|
"@babel/types": "^7.28.6",
|
|
59
|
-
"@constructive-io/graphql-types": "^3.1.
|
|
59
|
+
"@constructive-io/graphql-types": "^3.1.1",
|
|
60
60
|
"@inquirerer/utils": "^3.2.3",
|
|
61
61
|
"@pgpmjs/core": "^6.2.0",
|
|
62
62
|
"ajv": "^8.17.1",
|
|
63
63
|
"deepmerge": "^4.3.1",
|
|
64
64
|
"find-and-require-package-json": "^0.9.0",
|
|
65
65
|
"gql-ast": "^3.1.0",
|
|
66
|
-
"graphile-schema": "^1.2.
|
|
66
|
+
"graphile-schema": "^1.2.1",
|
|
67
67
|
"graphql": "^16.9.0",
|
|
68
68
|
"inflekt": "^0.3.1",
|
|
69
69
|
"inquirerer": "^4.4.0",
|
|
@@ -100,5 +100,5 @@
|
|
|
100
100
|
"tsx": "^4.21.0",
|
|
101
101
|
"typescript": "^5.9.3"
|
|
102
102
|
},
|
|
103
|
-
"gitHead": "
|
|
103
|
+
"gitHead": "2df0ba1ebe42ff08b498070d476da3527cf6b7cd"
|
|
104
104
|
}
|