@settlemint/sdk-hasura
Advanced tools
Comparing version 0.4.34-pr5d09f78 to 0.4.34-pr80b4100
@@ -20,2 +20,24 @@ import { AbstractSetupSchema, initGraphQLTada } from 'gql.tada'; | ||
type ClientOptions = z.infer<typeof ClientOptionsSchema>; | ||
/** | ||
* Schema for validating server client options for the Hasura client. | ||
* Extends the ClientOptionsSchema with additional server-specific fields. | ||
*/ | ||
declare const ServerClientOptionsSchema: z.ZodObject<z.objectUtil.extendShape<{ | ||
instance: z.ZodString; | ||
}, { | ||
accessToken: z.ZodString; | ||
adminSecret: z.ZodString; | ||
}>, "strip", z.ZodTypeAny, { | ||
instance: string; | ||
accessToken: string; | ||
adminSecret: string; | ||
}, { | ||
instance: string; | ||
accessToken: string; | ||
adminSecret: string; | ||
}>; | ||
/** | ||
* Type definition for server client options derived from the ServerClientOptionsSchema. | ||
*/ | ||
type ServerClientOptions = z.infer<typeof ServerClientOptionsSchema>; | ||
@@ -69,3 +91,3 @@ type RequestConfig = ConstructorParameters<typeof GraphQLClient>[1]; | ||
*/ | ||
declare function createServerHasuraClient<const Setup extends AbstractSetupSchema>(options: ClientOptions, requestConfig?: RequestConfig): { | ||
declare function createServerHasuraClient<const Setup extends AbstractSetupSchema>(options: ServerClientOptions, requestConfig?: RequestConfig): { | ||
client: GraphQLClient; | ||
@@ -72,0 +94,0 @@ graphql: initGraphQLTada<Setup>; |
{ | ||
"name": "@settlemint/sdk-hasura", | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
31538
210
+ Added@settlemint/sdk-utils@0.4.34-pr80b4100(transitive)
- Removed@settlemint/sdk-utils@0.4.34-pr5d09f78(transitive)