@powerhousedao/codegen 6.0.0-dev.102 → 6.0.0-dev.104
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/src/codegen/.hygen/templates/powerhouse/generate-custom-subgraph/resolvers.esm.t
CHANGED
|
@@ -5,10 +5,13 @@ unless_exists: true
|
|
|
5
5
|
import { type ISubgraph } from "@powerhousedao/reactor-api";
|
|
6
6
|
|
|
7
7
|
export const getResolvers = (subgraph: ISubgraph): Record<string, unknown> => {
|
|
8
|
-
const reactor = subgraph.
|
|
8
|
+
const reactor = subgraph.reactorClient;
|
|
9
9
|
|
|
10
10
|
return ({
|
|
11
11
|
Query: {
|
|
12
|
+
<%= h.changeCase.camel(subgraph) %>: () => ({}), // namespace resolver for nested queries
|
|
13
|
+
},
|
|
14
|
+
<%= h.changeCase.pascal(subgraph) %>Queries: {
|
|
12
15
|
example: async (parent: unknown, args: { driveId: string }) => {
|
|
13
16
|
return "example";
|
|
14
17
|
},
|
|
@@ -7,10 +7,14 @@ import type { DocumentNode } from "graphql";
|
|
|
7
7
|
|
|
8
8
|
export const schema: DocumentNode = gql`
|
|
9
9
|
"""
|
|
10
|
-
|
|
10
|
+
<%= h.changeCase.pascal(subgraph) %> Queries
|
|
11
11
|
"""
|
|
12
|
-
type
|
|
12
|
+
type <%= h.changeCase.pascal(subgraph) %>Queries {
|
|
13
13
|
example(driveId: String!): String
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
+
type Query {
|
|
17
|
+
<%= h.changeCase.camel(subgraph) %>: <%= h.changeCase.pascal(subgraph) %>Queries!
|
|
18
|
+
}
|
|
19
|
+
|
|
16
20
|
`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerhousedao/codegen",
|
|
3
|
-
"version": "6.0.0-dev.
|
|
3
|
+
"version": "6.0.0-dev.104",
|
|
4
4
|
"license": "AGPL-3.0-only",
|
|
5
5
|
"private": false,
|
|
6
6
|
"type": "module",
|
|
@@ -53,10 +53,10 @@
|
|
|
53
53
|
"semver": "7.7.4",
|
|
54
54
|
"ts-morph": "27.0.2",
|
|
55
55
|
"zocker": "^3.0.0",
|
|
56
|
-
"@powerhousedao/common": "6.0.0-dev.
|
|
57
|
-
"@powerhousedao/config": "6.0.0-dev.
|
|
58
|
-
"
|
|
59
|
-
"
|
|
56
|
+
"@powerhousedao/common": "6.0.0-dev.104",
|
|
57
|
+
"@powerhousedao/config": "6.0.0-dev.104",
|
|
58
|
+
"@powerhousedao/shared": "6.0.0-dev.104",
|
|
59
|
+
"document-model": "6.0.0-dev.104"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
62
|
"@types/bun": "1.3.8",
|
|
@@ -66,10 +66,10 @@
|
|
|
66
66
|
"react-dom": "19.2.4",
|
|
67
67
|
"vitest": "3.2.4",
|
|
68
68
|
"zod": "4.3.6",
|
|
69
|
-
"@powerhousedao/reactor-browser": "6.0.0-dev.
|
|
70
|
-
"@powerhousedao/
|
|
71
|
-
"
|
|
72
|
-
"
|
|
69
|
+
"@powerhousedao/reactor-browser": "6.0.0-dev.104",
|
|
70
|
+
"@powerhousedao/analytics-engine-core": "6.0.0-dev.104",
|
|
71
|
+
"@powerhousedao/design-system": "6.0.0-dev.104",
|
|
72
|
+
"document-drive": "6.0.0-dev.104"
|
|
73
73
|
},
|
|
74
74
|
"scripts": {
|
|
75
75
|
"tsc": "tsc",
|