@settlemint/sdk-hasura 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
|
@@ -183,21 +183,12 @@ try {
|
|
|
183
183
|
|
|
184
184
|
#### ClientOptions
|
|
185
185
|
|
|
186
|
-
> **ClientOptions** = `
|
|
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`\<[`
|
|
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-
|
|
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/hasura.cjs",
|
|
27
25
|
"module": "./dist/hasura.js",
|
|
28
26
|
"types": "./dist/hasura.d.ts",
|
|
@@ -66,7 +64,7 @@
|
|
|
66
64
|
},
|
|
67
65
|
"dependencies": {
|
|
68
66
|
"gql.tada": "^1",
|
|
69
|
-
"@settlemint/sdk-utils": "2.4.0-
|
|
67
|
+
"@settlemint/sdk-utils": "2.4.0-prec526eee",
|
|
70
68
|
"graphql-request": "^7",
|
|
71
69
|
"zod": "^3.25.0",
|
|
72
70
|
"drizzle-orm": "^0.44.0",
|