@settlemint/sdk-thegraph 2.1.1-mainb520d1f5 → 2.1.1-pr81ef9d7f

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.
Files changed (2) hide show
  1. package/README.md +2 -11
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -137,21 +137,12 @@ const result = await client.request(query);
137
137
 
138
138
  #### ClientOptions
139
139
 
140
- > **ClientOptions** = `object`
140
+ > **ClientOptions** = `z.infer`\<*typeof* [`ClientOptionsSchema`](#clientoptionsschema)\>
141
141
 
142
142
  Defined in: [sdk/thegraph/src/thegraph.ts:25](https://github.com/settlemint/sdk/blob/v2.1.1/sdk/thegraph/src/thegraph.ts#L25)
143
143
 
144
144
  Type definition for client options derived from the ClientOptionsSchema
145
145
 
146
- ##### Type declaration
147
-
148
- | Name | Type | Default value | Defined in |
149
- | ------ | ------ | ------ | ------ |
150
- | <a id="accesstoken"></a> `accessToken` | `string` | `ApplicationAccessTokenSchema` | [sdk/thegraph/src/thegraph.ts:17](https://github.com/settlemint/sdk/blob/v2.1.1/sdk/thegraph/src/thegraph.ts#L17) |
151
- | <a id="cache"></a> `cache?` | `"default"` \| `"force-cache"` \| `"no-cache"` \| `"no-store"` \| `"only-if-cached"` \| `"reload"` | - | [sdk/thegraph/src/thegraph.ts:19](https://github.com/settlemint/sdk/blob/v2.1.1/sdk/thegraph/src/thegraph.ts#L19) |
152
- | <a id="instances"></a> `instances` | `string`[] | - | [sdk/thegraph/src/thegraph.ts:16](https://github.com/settlemint/sdk/blob/v2.1.1/sdk/thegraph/src/thegraph.ts#L16) |
153
- | <a id="subgraphname"></a> `subgraphName` | `string` | - | [sdk/thegraph/src/thegraph.ts:18](https://github.com/settlemint/sdk/blob/v2.1.1/sdk/thegraph/src/thegraph.ts#L18) |
154
-
155
146
  ***
156
147
 
157
148
  #### RequestConfig
@@ -166,7 +157,7 @@ Type definition for GraphQL client configuration options
166
157
 
167
158
  #### ClientOptionsSchema
168
159
 
169
- > `const` **ClientOptionsSchema**: `ZodObject`\<[`ClientOptions`](#clientoptions)\>
160
+ > `const` **ClientOptionsSchema**: `ZodObject`\<\{ `accessToken`: `ZodString`; `cache`: `ZodOptional`\<`ZodEnum`\<\[`"default"`, `"force-cache"`, `"no-cache"`, `"no-store"`, `"only-if-cached"`, `"reload"`\]\>\>; `instances`: `ZodArray`\<`ZodUnion`\<\[`ZodString`, `ZodString`\]\>, `"many"`\>; `subgraphName`: `ZodString`; \}, `"strip"`, `ZodTypeAny`, \{ `accessToken`: `string`; `cache`: `"default"` \| `"force-cache"` \| `"no-cache"` \| `"no-store"` \| `"only-if-cached"` \| `"reload"`; `instances`: `string`[]; `subgraphName`: `string`; \}, \{ `accessToken`: `string`; `cache`: `"default"` \| `"force-cache"` \| `"no-cache"` \| `"no-store"` \| `"only-if-cached"` \| `"reload"`; `instances`: `string`[]; `subgraphName`: `string`; \}\>
170
161
 
171
162
  Defined in: [sdk/thegraph/src/thegraph.ts:15](https://github.com/settlemint/sdk/blob/v2.1.1/sdk/thegraph/src/thegraph.ts#L15)
172
163
 
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.1.1-mainb520d1f5",
4
+ "version": "2.1.1-pr81ef9d7f",
5
5
  "type": "module",
6
6
  "private": false,
7
7
  "license": "FSL-1.1-MIT",
@@ -52,7 +52,7 @@
52
52
  "devDependencies": {},
53
53
  "dependencies": {
54
54
  "gql.tada": "^1",
55
- "@settlemint/sdk-utils": "2.1.1-mainb520d1f5",
55
+ "@settlemint/sdk-utils": "2.1.1-pr81ef9d7f",
56
56
  "graphql-request": "^7",
57
57
  "zod": "^3"
58
58
  },