@settlemint/sdk-portal 2.4.0-prfdc1cdc0 → 2.4.0
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 -10
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -926,20 +926,12 @@ Options for the GraphQL WebSocket client
|
|
|
926
926
|
|
|
927
927
|
#### ClientOptions
|
|
928
928
|
|
|
929
|
-
> **ClientOptions** = `
|
|
929
|
+
> **ClientOptions** = `z.infer`\<*typeof* [`ClientOptionsSchema`](#clientoptionsschema)\>
|
|
930
930
|
|
|
931
931
|
Defined in: [sdk/portal/src/portal.ts:25](https://github.com/settlemint/sdk/blob/v2.4.0/sdk/portal/src/portal.ts#L25)
|
|
932
932
|
|
|
933
933
|
Type representing the validated client options.
|
|
934
934
|
|
|
935
|
-
##### Type declaration
|
|
936
|
-
|
|
937
|
-
| Name | Type | Default value | Defined in |
|
|
938
|
-
| ------ | ------ | ------ | ------ |
|
|
939
|
-
| <a id="accesstoken-2"></a> `accessToken?` | `string` | - | [sdk/portal/src/portal.ts:18](https://github.com/settlemint/sdk/blob/v2.4.0/sdk/portal/src/portal.ts#L18) |
|
|
940
|
-
| <a id="cache"></a> `cache?` | `"default"` \| `"force-cache"` \| `"no-cache"` \| `"no-store"` \| `"only-if-cached"` \| `"reload"` | - | [sdk/portal/src/portal.ts:19](https://github.com/settlemint/sdk/blob/v2.4.0/sdk/portal/src/portal.ts#L19) |
|
|
941
|
-
| <a id="instance"></a> `instance` | `string` | `UrlOrPathSchema` | [sdk/portal/src/portal.ts:17](https://github.com/settlemint/sdk/blob/v2.4.0/sdk/portal/src/portal.ts#L17) |
|
|
942
|
-
|
|
943
935
|
***
|
|
944
936
|
|
|
945
937
|
#### RequestConfig
|
|
@@ -954,7 +946,7 @@ Configuration options for the GraphQL client, excluding 'url' and 'exchanges'.
|
|
|
954
946
|
|
|
955
947
|
#### ClientOptionsSchema
|
|
956
948
|
|
|
957
|
-
> `const` **ClientOptionsSchema**: `ZodObject`\<[`
|
|
949
|
+
> `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"`; \}\>\>; `instance`: `ZodUnion`\<readonly \[`ZodString`, `ZodString`\]\>; \}, `$strip`\>
|
|
958
950
|
|
|
959
951
|
Defined in: [sdk/portal/src/portal.ts:16](https://github.com/settlemint/sdk/blob/v2.4.0/sdk/portal/src/portal.ts#L16)
|
|
960
952
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@settlemint/sdk-portal",
|
|
3
3
|
"description": "Portal API client module for SettleMint SDK, providing access to smart contract portal services and APIs",
|
|
4
|
-
"version": "2.4.0
|
|
4
|
+
"version": "2.4.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"private": false,
|
|
7
7
|
"license": "FSL-1.1-MIT",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"dependencies": {
|
|
57
57
|
"gql.tada": "^1",
|
|
58
58
|
"graphql-ws": "^6",
|
|
59
|
-
"@settlemint/sdk-utils": "2.4.0
|
|
59
|
+
"@settlemint/sdk-utils": "2.4.0",
|
|
60
60
|
"graphql-request": "^7",
|
|
61
61
|
"zod": "^3.25.0"
|
|
62
62
|
},
|