@settlemint/sdk-thegraph
Advanced tools
Comparing version 0.4.34-pr5d09f78 to 0.4.34-pr80b4100
@@ -7,13 +7,10 @@ import { AbstractSetupSchema, initGraphQLTada } from 'gql.tada'; | ||
/** | ||
* Schema for validating client options for the Hasura client. | ||
* Schema for validating client options for the The Graph client. | ||
*/ | ||
declare const ClientOptionsSchema: z.ZodObject<{ | ||
instance: z.ZodString; | ||
subgraph: z.ZodString; | ||
}, "strip", z.ZodTypeAny, { | ||
instance: string; | ||
subgraph: string; | ||
}, { | ||
instance: string; | ||
subgraph: string; | ||
}>; | ||
@@ -24,2 +21,21 @@ /** | ||
type ClientOptions = z.infer<typeof ClientOptionsSchema>; | ||
/** | ||
* Schema for validating server client options for the The Graph client. | ||
* Extends the ClientOptionsSchema with additional server-specific fields. | ||
*/ | ||
declare const ServerClientOptionsSchema: z.ZodObject<z.objectUtil.extendShape<{ | ||
instance: z.ZodString; | ||
}, { | ||
accessToken: z.ZodString; | ||
}>, "strip", z.ZodTypeAny, { | ||
instance: string; | ||
accessToken: string; | ||
}, { | ||
instance: string; | ||
accessToken: string; | ||
}>; | ||
/** | ||
* Type definition for server client options derived from the ServerClientOptionsSchema. | ||
*/ | ||
type ServerClientOptions = z.infer<typeof ServerClientOptionsSchema>; | ||
@@ -72,3 +88,3 @@ type RequestConfig = ConstructorParameters<typeof GraphQLClient>[1]; | ||
*/ | ||
declare function createServerTheGraphClient<const Setup extends AbstractSetupSchema>(options: ClientOptions, requestConfig?: RequestConfig): { | ||
declare function createServerTheGraphClient<const Setup extends AbstractSetupSchema>(options: ServerClientOptions, requestConfig?: RequestConfig): { | ||
client: GraphQLClient; | ||
@@ -75,0 +91,0 @@ graphql: initGraphQLTada<Setup>; |
{ | ||
"name": "@settlemint/sdk-thegraph", | ||
"description": "SettleMint SDK, integrate SettleMint into your application with ease.", | ||
"version": "0.4.34-pr5d09f78", | ||
"version": "0.4.34-pr80b4100", | ||
"type": "module", | ||
@@ -51,3 +51,3 @@ "private": false, | ||
"dependencies": { | ||
"@settlemint/sdk-utils": "0.4.34-pr5d09f78", | ||
"@settlemint/sdk-utils": "0.4.34-pr80b4100", | ||
"graphql-request": "^7", | ||
@@ -54,0 +54,0 @@ "zod": "^3" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
30847
202
+ Added@settlemint/sdk-utils@0.4.34-pr80b4100(transitive)
- Removed@settlemint/sdk-utils@0.4.34-pr5d09f78(transitive)