@settlemint/sdk-hasura 2.4.0-pre98cfd17 → 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.
Files changed (2) hide show
  1. package/README.md +2 -11
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -183,21 +183,12 @@ try {
183
183
 
184
184
  #### ClientOptions
185
185
 
186
- > **ClientOptions** = `object`
186
+ > **ClientOptions** = `z.infer`\<*typeof* [`ClientOptionsSchema`](#clientoptionsschema)\>
187
187
 
188
188
  Defined in: [sdk/hasura/src/hasura.ts:27](https://github.com/settlemint/sdk/blob/v2.4.0/sdk/hasura/src/hasura.ts#L27)
189
189
 
190
190
  Type definition for client options derived from the ClientOptionsSchema.
191
191
 
192
- ##### Type declaration
193
-
194
- | Name | Type | Default value | Defined in |
195
- | ------ | ------ | ------ | ------ |
196
- | <a id="accesstoken"></a> `accessToken?` | `string` | - | [sdk/hasura/src/hasura.ts:19](https://github.com/settlemint/sdk/blob/v2.4.0/sdk/hasura/src/hasura.ts#L19) |
197
- | <a id="adminsecret"></a> `adminSecret` | `string` | - | [sdk/hasura/src/hasura.ts:20](https://github.com/settlemint/sdk/blob/v2.4.0/sdk/hasura/src/hasura.ts#L20) |
198
- | <a id="cache"></a> `cache?` | `"default"` \| `"force-cache"` \| `"no-cache"` \| `"no-store"` \| `"only-if-cached"` \| `"reload"` | - | [sdk/hasura/src/hasura.ts:21](https://github.com/settlemint/sdk/blob/v2.4.0/sdk/hasura/src/hasura.ts#L21) |
199
- | <a id="instance"></a> `instance` | `string` | `UrlOrPathSchema` | [sdk/hasura/src/hasura.ts:18](https://github.com/settlemint/sdk/blob/v2.4.0/sdk/hasura/src/hasura.ts#L18) |
200
-
201
192
  ***
202
193
 
203
194
  #### RequestConfig
@@ -212,7 +203,7 @@ Type definition for GraphQL client configuration options
212
203
 
213
204
  #### ClientOptionsSchema
214
205
 
215
- > `const` **ClientOptionsSchema**: `ZodObject`\<[`ClientOptions`](#clientoptions)\>
206
+ > `const` **ClientOptionsSchema**: `ZodObject`\<\{ `accessToken`: `ZodOptional`\<`ZodString`\>; `adminSecret`: `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"`; \}\>\>; `instance`: `ZodUnion`\<readonly \[`ZodString`, `ZodString`\]\>; \}, `$strip`\>
216
207
 
217
208
  Defined in: [sdk/hasura/src/hasura.ts:17](https://github.com/settlemint/sdk/blob/v2.4.0/sdk/hasura/src/hasura.ts#L17)
218
209
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@settlemint/sdk-hasura",
3
3
  "description": "Hasura and PostgreSQL integration module for SettleMint SDK, enabling database operations and GraphQL queries",
4
- "version": "2.4.0-pre98cfd17",
4
+ "version": "2.4.0-prec526eee",
5
5
  "type": "module",
6
6
  "private": false,
7
7
  "license": "FSL-1.1-MIT",
@@ -64,7 +64,7 @@
64
64
  },
65
65
  "dependencies": {
66
66
  "gql.tada": "^1",
67
- "@settlemint/sdk-utils": "2.4.0-pre98cfd17",
67
+ "@settlemint/sdk-utils": "2.4.0-prec526eee",
68
68
  "graphql-request": "^7",
69
69
  "zod": "^3.25.0",
70
70
  "drizzle-orm": "^0.44.0",