@settlemint/sdk-thegraph 2.4.0-pre8513221 → 2.4.0-prec526eee
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/README.md +2 -11
- package/package.json +3 -5
package/README.md
CHANGED
|
@@ -135,21 +135,12 @@ const result = await client.request(query);
|
|
|
135
135
|
|
|
136
136
|
#### ClientOptions
|
|
137
137
|
|
|
138
|
-
> **ClientOptions** = `
|
|
138
|
+
> **ClientOptions** = `z.infer`\<*typeof* [`ClientOptionsSchema`](#clientoptionsschema)\>
|
|
139
139
|
|
|
140
140
|
Defined in: [sdk/thegraph/src/thegraph.ts:26](https://github.com/settlemint/sdk/blob/v2.4.0/sdk/thegraph/src/thegraph.ts#L26)
|
|
141
141
|
|
|
142
142
|
Type definition for client options derived from the ClientOptionsSchema
|
|
143
143
|
|
|
144
|
-
##### Type declaration
|
|
145
|
-
|
|
146
|
-
| Name | Type | Defined in |
|
|
147
|
-
| ------ | ------ | ------ |
|
|
148
|
-
| <a id="accesstoken"></a> `accessToken?` | `string` | [sdk/thegraph/src/thegraph.ts:18](https://github.com/settlemint/sdk/blob/v2.4.0/sdk/thegraph/src/thegraph.ts#L18) |
|
|
149
|
-
| <a id="cache"></a> `cache?` | `"default"` \| `"force-cache"` \| `"no-cache"` \| `"no-store"` \| `"only-if-cached"` \| `"reload"` | [sdk/thegraph/src/thegraph.ts:20](https://github.com/settlemint/sdk/blob/v2.4.0/sdk/thegraph/src/thegraph.ts#L20) |
|
|
150
|
-
| <a id="instances"></a> `instances` | `string`[] | [sdk/thegraph/src/thegraph.ts:17](https://github.com/settlemint/sdk/blob/v2.4.0/sdk/thegraph/src/thegraph.ts#L17) |
|
|
151
|
-
| <a id="subgraphname"></a> `subgraphName` | `string` | [sdk/thegraph/src/thegraph.ts:19](https://github.com/settlemint/sdk/blob/v2.4.0/sdk/thegraph/src/thegraph.ts#L19) |
|
|
152
|
-
|
|
153
144
|
***
|
|
154
145
|
|
|
155
146
|
#### RequestConfig
|
|
@@ -164,7 +155,7 @@ Type definition for GraphQL client configuration options
|
|
|
164
155
|
|
|
165
156
|
#### ClientOptionsSchema
|
|
166
157
|
|
|
167
|
-
> `const` **ClientOptionsSchema**: `ZodObject`\<[`
|
|
158
|
+
> `const` **ClientOptionsSchema**: `ZodObject`\<\{ `accessToken`: `ZodOptional`\<`ZodString`\>; `cache`: `ZodOptional`\<`ZodEnum`\<\{ `default`: `"default"`; `force-cache`: `"force-cache"`; `no-cache`: `"no-cache"`; `no-store`: `"no-store"`; `only-if-cached`: `"only-if-cached"`; `reload`: `"reload"`; \}\>\>; `instances`: `ZodArray`\<`ZodUnion`\<readonly \[`ZodString`, `ZodString`\]\>\>; `subgraphName`: `ZodString`; \}, `$strip`\>
|
|
168
159
|
|
|
169
160
|
Defined in: [sdk/thegraph/src/thegraph.ts:16](https://github.com/settlemint/sdk/blob/v2.4.0/sdk/thegraph/src/thegraph.ts#L16)
|
|
170
161
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@settlemint/sdk-thegraph",
|
|
3
3
|
"description": "TheGraph integration module for SettleMint SDK, enabling querying and indexing of blockchain data through subgraphs",
|
|
4
|
-
"version": "2.4.0-
|
|
4
|
+
"version": "2.4.0-prec526eee",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"private": false,
|
|
7
7
|
"license": "FSL-1.1-MIT",
|
|
@@ -20,9 +20,7 @@
|
|
|
20
20
|
"url": "https://github.com/settlemint/sdk/issues",
|
|
21
21
|
"email": "support@settlemint.com"
|
|
22
22
|
},
|
|
23
|
-
"files": [
|
|
24
|
-
"dist"
|
|
25
|
-
],
|
|
23
|
+
"files": ["dist"],
|
|
26
24
|
"main": "./dist/thegraph.cjs",
|
|
27
25
|
"module": "./dist/thegraph.js",
|
|
28
26
|
"types": "./dist/thegraph.d.ts",
|
|
@@ -54,7 +52,7 @@
|
|
|
54
52
|
"devDependencies": {},
|
|
55
53
|
"dependencies": {
|
|
56
54
|
"gql.tada": "^1",
|
|
57
|
-
"@settlemint/sdk-utils": "2.4.0-
|
|
55
|
+
"@settlemint/sdk-utils": "2.4.0-prec526eee",
|
|
58
56
|
"graphql-request": "^7",
|
|
59
57
|
"zod": "^3.25.0"
|
|
60
58
|
},
|