All files / src/api/generated graphql.ts

57.14% Statements 8/14
0% Branches 0/2
25% Functions 1/4
80% Lines 8/10

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 821x                                                                                                             1x     1x   1x         1x       1x         1x     1x        
import * as z from 'zod';
 
export type Maybe<T> = T | null;
export type InputMaybe<T> = Maybe<T>;
export type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };
export type MakeOptional<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]?: Maybe<T[SubKey]> };
export type MakeMaybe<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]: Maybe<T[SubKey]> };
export type MakeEmpty<T extends { [key: string]: unknown }, K extends keyof T> = {
  [_ in K]?: never;
};
export type Incremental<T> =
  | T
  | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never };
/** All built-in and custom scalars, mapped to their actual values */
export type Scalars = {
  ID: { input: string; output: string };
  String: { input: string; output: string };
  Boolean: { input: boolean; output: boolean };
  Int: { input: number; output: number };
  Float: { input: number; output: number };
};
 
/** Build metadata exposed via GraphQL, REST, and logs. */
export type BuildInfo = {
  buildTime: Scalars['String']['output'];
  gitSha: Scalars['String']['output'];
  message?: Maybe<Scalars['String']['output']>;
  version: Scalars['String']['output'];
};
 
export type MutationRoot = {
  /**
   * Placeholder mutation - returns the input string
   *
   * This exists because GraphQL requires at least one mutation.
   * Replace with actual mutations as features are implemented.
   */
  echo: Scalars['String']['output'];
};
 
export type MutationRootEchoArgs = {
  message: Scalars['String']['input'];
};
 
export type QueryRoot = {
  /** Returns build metadata for the running service */
  buildInfo: BuildInfo;
};
 
type Properties<T> = Required<{
  [K in keyof T]: z.ZodType<T[K]>;
}>;
 
type definedNonNullAny = {};
 
export const isDefinedNonNullAny = (v: any): v is definedNonNullAny =>
  v !== undefined && v !== null;
 
export const definedNonNullAnySchema = z.any().refine((v) => isDefinedNonNullAny(v));
 
export const MutationRootSchema: z.ZodObject<Properties<MutationRoot>> = z.object({
  __typename: z.literal('MutationRoot').optional(),
  echo: z.string(),
});
 
export const MutationRootEchoArgsSchema: z.ZodObject<Properties<MutationRootEchoArgs>> = z.object({
  message: z.string(),
});
 
export const BuildInfoSchema: z.ZodObject<Properties<BuildInfo>> = z.object({
  __typename: z.literal('BuildInfo').optional(),
  buildTime: z.string(),
  gitSha: z.string(),
  message: z.string().nullish(),
  version: z.string(),
});
 
export const QueryRootSchema: z.ZodObject<Properties<QueryRoot>> = z.object({
  __typename: z.literal('QueryRoot').optional(),
  buildInfo: z.lazy(() => BuildInfoSchema),
});