@settlemint/sdk-utils
Advanced tools
Comparing version
import { z } from 'zod'; | ||
import { DotenvParseOutput } from 'dotenv'; | ||
@@ -57,2 +56,52 @@ /** | ||
type DotEnv = z.infer<typeof DotEnvSchema>; | ||
declare const DotEnvSchemaPartial: z.ZodObject<{ | ||
SETTLEMINT_ENVIRONMENT: z.ZodOptional<z.ZodString>; | ||
SETTLEMINT_INSTANCE: z.ZodOptional<z.ZodString>; | ||
SETTLEMINT_ACCESS_TOKEN: z.ZodOptional<z.ZodString>; | ||
SETTLEMINT_WORKSPACE: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>; | ||
SETTLEMINT_APPLICATION: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>; | ||
SETTLEMINT_HASURA: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>>; | ||
SETTLEMINT_HASURA_ENDPOINT: z.ZodOptional<z.ZodOptional<z.ZodString>>; | ||
SETTLEMINT_HASURA_ADMIN_SECRET: z.ZodOptional<z.ZodOptional<z.ZodString>>; | ||
SETTLEMINT_THEGRAPH: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>>; | ||
SETTLEMINT_THEGRAPH_SUBGRAPH_ENDPOINT: z.ZodOptional<z.ZodOptional<z.ZodString>>; | ||
SETTLEMINT_THEGRAPH_SUBGRAPH_ENDPOINT_FALLBACK: z.ZodOptional<z.ZodOptional<z.ZodString>>; | ||
SETTLEMINT_PORTAL: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>>; | ||
SETTLEMINT_PORTAL_GRAPHQL_ENDPOINT: z.ZodOptional<z.ZodOptional<z.ZodString>>; | ||
SETTLEMINT_PORTAL_REST_ENDPOINT: z.ZodOptional<z.ZodOptional<z.ZodString>>; | ||
SETTLEMINT_HD_PRIVATE_KEY: z.ZodOptional<z.ZodOptional<z.ZodString>>; | ||
}, "strip", z.ZodTypeAny, { | ||
SETTLEMINT_ENVIRONMENT?: string | undefined; | ||
SETTLEMINT_INSTANCE?: string | undefined; | ||
SETTLEMINT_ACCESS_TOKEN?: string | undefined; | ||
SETTLEMINT_WORKSPACE?: string | undefined; | ||
SETTLEMINT_APPLICATION?: string | undefined; | ||
SETTLEMINT_HASURA?: string | undefined; | ||
SETTLEMINT_HASURA_ENDPOINT?: string | undefined; | ||
SETTLEMINT_HASURA_ADMIN_SECRET?: string | undefined; | ||
SETTLEMINT_THEGRAPH?: string | undefined; | ||
SETTLEMINT_THEGRAPH_SUBGRAPH_ENDPOINT?: string | undefined; | ||
SETTLEMINT_THEGRAPH_SUBGRAPH_ENDPOINT_FALLBACK?: string | undefined; | ||
SETTLEMINT_PORTAL?: string | undefined; | ||
SETTLEMINT_PORTAL_GRAPHQL_ENDPOINT?: string | undefined; | ||
SETTLEMINT_PORTAL_REST_ENDPOINT?: string | undefined; | ||
SETTLEMINT_HD_PRIVATE_KEY?: string | undefined; | ||
}, { | ||
SETTLEMINT_ENVIRONMENT?: string | undefined; | ||
SETTLEMINT_INSTANCE?: string | undefined; | ||
SETTLEMINT_ACCESS_TOKEN?: string | undefined; | ||
SETTLEMINT_WORKSPACE?: string | undefined; | ||
SETTLEMINT_APPLICATION?: string | undefined; | ||
SETTLEMINT_HASURA?: string | undefined; | ||
SETTLEMINT_HASURA_ENDPOINT?: string | undefined; | ||
SETTLEMINT_HASURA_ADMIN_SECRET?: string | undefined; | ||
SETTLEMINT_THEGRAPH?: string | undefined; | ||
SETTLEMINT_THEGRAPH_SUBGRAPH_ENDPOINT?: string | undefined; | ||
SETTLEMINT_THEGRAPH_SUBGRAPH_ENDPOINT_FALLBACK?: string | undefined; | ||
SETTLEMINT_PORTAL?: string | undefined; | ||
SETTLEMINT_PORTAL_GRAPHQL_ENDPOINT?: string | undefined; | ||
SETTLEMINT_PORTAL_REST_ENDPOINT?: string | undefined; | ||
SETTLEMINT_HD_PRIVATE_KEY?: string | undefined; | ||
}>; | ||
type DotEnvPartial = z.infer<typeof DotEnvSchemaPartial>; | ||
@@ -70,3 +119,3 @@ /** | ||
*/ | ||
declare function loadEnv<T extends boolean = true>(validateEnv?: T): Promise<T extends true ? DotEnv : DotenvParseOutput>; | ||
declare function loadEnv<T extends boolean = true>(validateEnv?: T): Promise<T extends true ? DotEnv : DotEnvPartial>; | ||
@@ -73,0 +122,0 @@ declare function writeEnv(env: Partial<DotEnv>, secrets: boolean): Promise<void>; |
import { z, ZodSchema } from 'zod'; | ||
import { DotenvParseOutput } from 'dotenv'; | ||
@@ -63,2 +62,52 @@ /** | ||
type DotEnv = z.infer<typeof DotEnvSchema>; | ||
declare const DotEnvSchemaPartial: z.ZodObject<{ | ||
SETTLEMINT_ENVIRONMENT: z.ZodOptional<z.ZodString>; | ||
SETTLEMINT_INSTANCE: z.ZodOptional<z.ZodString>; | ||
SETTLEMINT_ACCESS_TOKEN: z.ZodOptional<z.ZodString>; | ||
SETTLEMINT_WORKSPACE: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>; | ||
SETTLEMINT_APPLICATION: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>; | ||
SETTLEMINT_HASURA: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>>; | ||
SETTLEMINT_HASURA_ENDPOINT: z.ZodOptional<z.ZodOptional<z.ZodString>>; | ||
SETTLEMINT_HASURA_ADMIN_SECRET: z.ZodOptional<z.ZodOptional<z.ZodString>>; | ||
SETTLEMINT_THEGRAPH: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>>; | ||
SETTLEMINT_THEGRAPH_SUBGRAPH_ENDPOINT: z.ZodOptional<z.ZodOptional<z.ZodString>>; | ||
SETTLEMINT_THEGRAPH_SUBGRAPH_ENDPOINT_FALLBACK: z.ZodOptional<z.ZodOptional<z.ZodString>>; | ||
SETTLEMINT_PORTAL: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>>; | ||
SETTLEMINT_PORTAL_GRAPHQL_ENDPOINT: z.ZodOptional<z.ZodOptional<z.ZodString>>; | ||
SETTLEMINT_PORTAL_REST_ENDPOINT: z.ZodOptional<z.ZodOptional<z.ZodString>>; | ||
SETTLEMINT_HD_PRIVATE_KEY: z.ZodOptional<z.ZodOptional<z.ZodString>>; | ||
}, "strip", z.ZodTypeAny, { | ||
SETTLEMINT_ENVIRONMENT?: string | undefined; | ||
SETTLEMINT_INSTANCE?: string | undefined; | ||
SETTLEMINT_ACCESS_TOKEN?: string | undefined; | ||
SETTLEMINT_WORKSPACE?: string | undefined; | ||
SETTLEMINT_APPLICATION?: string | undefined; | ||
SETTLEMINT_HASURA?: string | undefined; | ||
SETTLEMINT_HASURA_ENDPOINT?: string | undefined; | ||
SETTLEMINT_HASURA_ADMIN_SECRET?: string | undefined; | ||
SETTLEMINT_THEGRAPH?: string | undefined; | ||
SETTLEMINT_THEGRAPH_SUBGRAPH_ENDPOINT?: string | undefined; | ||
SETTLEMINT_THEGRAPH_SUBGRAPH_ENDPOINT_FALLBACK?: string | undefined; | ||
SETTLEMINT_PORTAL?: string | undefined; | ||
SETTLEMINT_PORTAL_GRAPHQL_ENDPOINT?: string | undefined; | ||
SETTLEMINT_PORTAL_REST_ENDPOINT?: string | undefined; | ||
SETTLEMINT_HD_PRIVATE_KEY?: string | undefined; | ||
}, { | ||
SETTLEMINT_ENVIRONMENT?: string | undefined; | ||
SETTLEMINT_INSTANCE?: string | undefined; | ||
SETTLEMINT_ACCESS_TOKEN?: string | undefined; | ||
SETTLEMINT_WORKSPACE?: string | undefined; | ||
SETTLEMINT_APPLICATION?: string | undefined; | ||
SETTLEMINT_HASURA?: string | undefined; | ||
SETTLEMINT_HASURA_ENDPOINT?: string | undefined; | ||
SETTLEMINT_HASURA_ADMIN_SECRET?: string | undefined; | ||
SETTLEMINT_THEGRAPH?: string | undefined; | ||
SETTLEMINT_THEGRAPH_SUBGRAPH_ENDPOINT?: string | undefined; | ||
SETTLEMINT_THEGRAPH_SUBGRAPH_ENDPOINT_FALLBACK?: string | undefined; | ||
SETTLEMINT_PORTAL?: string | undefined; | ||
SETTLEMINT_PORTAL_GRAPHQL_ENDPOINT?: string | undefined; | ||
SETTLEMINT_PORTAL_REST_ENDPOINT?: string | undefined; | ||
SETTLEMINT_HD_PRIVATE_KEY?: string | undefined; | ||
}>; | ||
type DotEnvPartial = z.infer<typeof DotEnvSchemaPartial>; | ||
@@ -104,3 +153,3 @@ /** | ||
*/ | ||
declare function loadEnv<T extends boolean = true>(validateEnv?: T): Promise<T extends true ? DotEnv : DotenvParseOutput>; | ||
declare function loadEnv<T extends boolean = true>(validateEnv?: T): Promise<T extends true ? DotEnv : DotEnvPartial>; | ||
@@ -117,2 +166,2 @@ declare function writeEnv(env: Partial<DotEnv>, secrets: boolean): Promise<void>; | ||
export { type AccessToken, AccessTokenSchema, type DotEnv, DotEnvSchema, type Id, IdSchema, type Url, UrlSchema, ensureFolder, ensureServer, getPackageManager, loadEnv, projectRoot, validate, writeEnv }; | ||
export { type AccessToken, AccessTokenSchema, type DotEnv, type DotEnvPartial, DotEnvSchema, DotEnvSchemaPartial, type Id, IdSchema, type Url, UrlSchema, ensureFolder, ensureServer, getPackageManager, loadEnv, projectRoot, validate, writeEnv }; |
@@ -62,2 +62,52 @@ import { z, ZodSchema } from 'zod'; | ||
type DotEnv = z.infer<typeof DotEnvSchema>; | ||
declare const DotEnvSchemaPartial: z.ZodObject<{ | ||
SETTLEMINT_ENVIRONMENT: z.ZodOptional<z.ZodString>; | ||
SETTLEMINT_INSTANCE: z.ZodOptional<z.ZodString>; | ||
SETTLEMINT_ACCESS_TOKEN: z.ZodOptional<z.ZodString>; | ||
SETTLEMINT_WORKSPACE: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>; | ||
SETTLEMINT_APPLICATION: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>; | ||
SETTLEMINT_HASURA: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>>; | ||
SETTLEMINT_HASURA_ENDPOINT: z.ZodOptional<z.ZodOptional<z.ZodString>>; | ||
SETTLEMINT_HASURA_ADMIN_SECRET: z.ZodOptional<z.ZodOptional<z.ZodString>>; | ||
SETTLEMINT_THEGRAPH: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>>; | ||
SETTLEMINT_THEGRAPH_SUBGRAPH_ENDPOINT: z.ZodOptional<z.ZodOptional<z.ZodString>>; | ||
SETTLEMINT_THEGRAPH_SUBGRAPH_ENDPOINT_FALLBACK: z.ZodOptional<z.ZodOptional<z.ZodString>>; | ||
SETTLEMINT_PORTAL: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>>; | ||
SETTLEMINT_PORTAL_GRAPHQL_ENDPOINT: z.ZodOptional<z.ZodOptional<z.ZodString>>; | ||
SETTLEMINT_PORTAL_REST_ENDPOINT: z.ZodOptional<z.ZodOptional<z.ZodString>>; | ||
SETTLEMINT_HD_PRIVATE_KEY: z.ZodOptional<z.ZodOptional<z.ZodString>>; | ||
}, "strip", z.ZodTypeAny, { | ||
SETTLEMINT_ENVIRONMENT?: string | undefined; | ||
SETTLEMINT_INSTANCE?: string | undefined; | ||
SETTLEMINT_ACCESS_TOKEN?: string | undefined; | ||
SETTLEMINT_WORKSPACE?: string | undefined; | ||
SETTLEMINT_APPLICATION?: string | undefined; | ||
SETTLEMINT_HASURA?: string | undefined; | ||
SETTLEMINT_HASURA_ENDPOINT?: string | undefined; | ||
SETTLEMINT_HASURA_ADMIN_SECRET?: string | undefined; | ||
SETTLEMINT_THEGRAPH?: string | undefined; | ||
SETTLEMINT_THEGRAPH_SUBGRAPH_ENDPOINT?: string | undefined; | ||
SETTLEMINT_THEGRAPH_SUBGRAPH_ENDPOINT_FALLBACK?: string | undefined; | ||
SETTLEMINT_PORTAL?: string | undefined; | ||
SETTLEMINT_PORTAL_GRAPHQL_ENDPOINT?: string | undefined; | ||
SETTLEMINT_PORTAL_REST_ENDPOINT?: string | undefined; | ||
SETTLEMINT_HD_PRIVATE_KEY?: string | undefined; | ||
}, { | ||
SETTLEMINT_ENVIRONMENT?: string | undefined; | ||
SETTLEMINT_INSTANCE?: string | undefined; | ||
SETTLEMINT_ACCESS_TOKEN?: string | undefined; | ||
SETTLEMINT_WORKSPACE?: string | undefined; | ||
SETTLEMINT_APPLICATION?: string | undefined; | ||
SETTLEMINT_HASURA?: string | undefined; | ||
SETTLEMINT_HASURA_ENDPOINT?: string | undefined; | ||
SETTLEMINT_HASURA_ADMIN_SECRET?: string | undefined; | ||
SETTLEMINT_THEGRAPH?: string | undefined; | ||
SETTLEMINT_THEGRAPH_SUBGRAPH_ENDPOINT?: string | undefined; | ||
SETTLEMINT_THEGRAPH_SUBGRAPH_ENDPOINT_FALLBACK?: string | undefined; | ||
SETTLEMINT_PORTAL?: string | undefined; | ||
SETTLEMINT_PORTAL_GRAPHQL_ENDPOINT?: string | undefined; | ||
SETTLEMINT_PORTAL_REST_ENDPOINT?: string | undefined; | ||
SETTLEMINT_HD_PRIVATE_KEY?: string | undefined; | ||
}>; | ||
type DotEnvPartial = z.infer<typeof DotEnvSchemaPartial>; | ||
@@ -92,2 +142,2 @@ /** | ||
export { type AccessToken, AccessTokenSchema, type DotEnv, DotEnvSchema, type Id, IdSchema, type Url, UrlSchema, validate }; | ||
export { type AccessToken, AccessTokenSchema, type DotEnv, type DotEnvPartial, DotEnvSchema, DotEnvSchemaPartial, type Id, IdSchema, type Url, UrlSchema, validate }; |
{ | ||
"name": "@settlemint/sdk-utils", | ||
"description": "SettleMint SDK, integrate SettleMint into your application with ease.", | ||
"version": "0.5.13", | ||
"version": "0.5.14-main21ed5a5", | ||
"type": "module", | ||
@@ -6,0 +6,0 @@ "private": false, |
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
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
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
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
180640
11.91%1712
9.74%