1
1
/* eslint-disable */
2
2
3
-
4
3
import { AllTypesProps , ReturnTypes , Ops } from './const.js' ;
5
4
import fetch , { Response } from 'node-fetch' ;
6
5
import WebSocket from 'ws' ;
7
- export const HOST = "http://localhost:8080/"
8
-
6
+ export const HOST = 'http://localhost:8080/' ;
9
7
10
- export const HEADERS = { }
8
+ export const HEADERS = { } ;
11
9
export const apiSubscription = ( options : chainOptions ) => ( query : string ) => {
12
10
try {
13
11
const queryString = options [ 0 ] + '?query=' + encodeURIComponent ( query ) ;
@@ -405,7 +403,7 @@ export class GraphQLError extends Error {
405
403
return 'GraphQL Response Error' ;
406
404
}
407
405
}
408
- export type GenericOperation < O > = O extends keyof typeof Ops ? typeof Ops [ O ] : never ;
406
+ export type GenericOperation < O > = O extends keyof typeof Ops ? ( typeof Ops ) [ O ] : never ;
409
407
export type ThunderGraphQLOptions < SCLR extends ScalarDefinition > = {
410
408
scalars ?: SCLR | ScalarCoders ;
411
409
} ;
@@ -827,41 +825,43 @@ export const GRAPHQL_TYPE_SEPARATOR = `__$GRAPHQL__`;
827
825
export const $ = < Type extends GraphQLVariableType , Name extends string > ( name : Name , graphqlType : Type ) => {
828
826
return ( START_VAR_NAME + name + GRAPHQL_TYPE_SEPARATOR + graphqlType ) as unknown as Variable < Type , Name > ;
829
827
} ;
830
- type ZEUS_INTERFACES = never
831
- export type ScalarCoders = {
832
- }
833
- type ZEUS_UNIONS = never
828
+ type ZEUS_INTERFACES = never ;
829
+ export type ScalarCoders = { } ;
830
+ type ZEUS_UNIONS = never ;
834
831
835
832
export type ValueTypes = {
836
- [ "Query" ] : AliasType < {
837
- pipe ?:ValueTypes [ "Query" ] ,
838
- passSource ?:ValueTypes [ "Query" ] ,
839
- __typename ?: boolean | `@${string } `
840
- } >
841
- }
833
+ [ 'Query' ] : AliasType < {
834
+ pipe ?: ValueTypes [ 'Query' ] ;
835
+ passSource ?: ValueTypes [ 'Query' ] ;
836
+ passSourceWithArgs ?: ValueTypes [ 'Query' ] ;
837
+ __typename ?: boolean | `@${string } `;
838
+ } > ;
839
+ } ;
842
840
843
841
export type ResolverInputTypes = {
844
- [ "Query" ] : AliasType < {
845
- pipe ?:ResolverInputTypes [ "Query" ] ,
846
- passSource ?:ResolverInputTypes [ "Query" ] ,
847
- __typename ?: boolean | `@${string } `
848
- } >
849
- }
842
+ [ 'Query' ] : AliasType < {
843
+ pipe ?: ResolverInputTypes [ 'Query' ] ;
844
+ passSource ?: ResolverInputTypes [ 'Query' ] ;
845
+ passSourceWithArgs ?: ResolverInputTypes [ 'Query' ] ;
846
+ __typename ?: boolean | `@${string } `;
847
+ } > ;
848
+ } ;
850
849
851
850
export type ModelTypes = {
852
- [ "Query" ] : {
853
- pipe ?: ModelTypes [ "Query" ] | undefined ,
854
- passSource ?: ModelTypes [ "Query" ] | undefined
855
- }
856
- }
851
+ [ 'Query' ] : {
852
+ pipe ?: ModelTypes [ 'Query' ] | undefined ;
853
+ passSource ?: ModelTypes [ 'Query' ] | undefined ;
854
+ passSourceWithArgs ?: ModelTypes [ 'Query' ] | undefined ;
855
+ } ;
856
+ } ;
857
857
858
858
export type GraphQLTypes = {
859
- [ " Query" ] : {
860
- __typename : " Query" ,
861
- pipe ?: GraphQLTypes [ " Query" ] | undefined ,
862
- passSource ?: GraphQLTypes [ " Query" ] | undefined
863
- }
864
- }
865
-
859
+ [ ' Query' ] : {
860
+ __typename : ' Query' ;
861
+ pipe ?: GraphQLTypes [ ' Query' ] | undefined ;
862
+ passSourceWithArgs ?: GraphQLTypes [ ' Query' ] | undefined ;
863
+ passSource ?: ModelTypes [ 'Query' ] | undefined ;
864
+ } ;
865
+ } ;
866
866
867
- type ZEUS_VARIABLES = { }
867
+ type ZEUS_VARIABLES = { } ;
0 commit comments