@vertikalx/vtx-backend-client 1.0.0-dev-daniel.0 → 1.0.0-dev-daniel.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. package/package.json +2 -2
  2. package/runtime/createClient.d.ts +4 -10
  3. package/schema.d.ts +0 -298
  4. package/schema.js +1 -78
  5. package/schema.js.map +1 -1
  6. package/src/api/BaseServerApi.d.ts +4 -0
  7. package/src/api/BaseServerApi.js +13 -0
  8. package/src/api/BaseServerApi.js.map +1 -0
  9. package/src/client/index.d.ts +25 -0
  10. package/src/client/index.js +44 -0
  11. package/src/client/index.js.map +1 -0
  12. package/src/client/runtime/batcher.d.ts +36 -0
  13. package/src/client/runtime/batcher.js +123 -0
  14. package/src/client/runtime/batcher.js.map +1 -0
  15. package/src/client/runtime/createClient.d.ts +23 -0
  16. package/src/client/runtime/createClient.js +28 -0
  17. package/src/client/runtime/createClient.js.map +1 -0
  18. package/src/client/runtime/error.d.ts +15 -0
  19. package/src/client/runtime/error.js +19 -0
  20. package/src/client/runtime/error.js.map +1 -0
  21. package/src/client/runtime/fetcher.d.ts +10 -0
  22. package/src/client/runtime/fetcher.js +68 -0
  23. package/src/client/runtime/fetcher.js.map +1 -0
  24. package/src/client/runtime/generateGraphqlOperation.d.ts +30 -0
  25. package/src/client/runtime/generateGraphqlOperation.js +134 -0
  26. package/src/client/runtime/generateGraphqlOperation.js.map +1 -0
  27. package/src/client/runtime/index.d.ts +11 -0
  28. package/src/client/runtime/index.js +17 -0
  29. package/src/client/runtime/index.js.map +1 -0
  30. package/src/client/runtime/linkTypeMap.d.ts +9 -0
  31. package/src/client/runtime/linkTypeMap.js +95 -0
  32. package/src/client/runtime/linkTypeMap.js.map +1 -0
  33. package/src/client/runtime/typeSelection.d.ts +28 -0
  34. package/src/client/runtime/typeSelection.js +3 -0
  35. package/src/client/runtime/typeSelection.js.map +1 -0
  36. package/src/client/runtime/types.d.ts +55 -0
  37. package/src/client/runtime/types.js +3 -0
  38. package/src/client/runtime/types.js.map +1 -0
  39. package/src/client/schema.d.ts +406 -0
  40. package/{schema.graphql → src/client/schema.graphql} +0 -131
  41. package/src/client/schema.js +109 -0
  42. package/src/client/schema.js.map +1 -0
  43. package/src/client/types.d.ts +207 -0
  44. package/{types.ts → src/client/types.js} +23 -358
  45. package/src/client/types.js.map +1 -0
  46. package/src/index.d.ts +2 -0
  47. package/src/index.js +19 -0
  48. package/src/index.js.map +1 -0
  49. package/tsconfig.lib.tsbuildinfo +1 -1
  50. package/types.d.ts +0 -128
  51. package/types.js +18 -356
  52. package/types.js.map +1 -1
  53. package/index.ts +0 -65
  54. package/runtime/batcher.ts +0 -275
  55. package/runtime/createClient.ts +0 -68
  56. package/runtime/error.ts +0 -29
  57. package/runtime/fetcher.ts +0 -97
  58. package/runtime/generateGraphqlOperation.ts +0 -225
  59. package/runtime/index.ts +0 -13
  60. package/runtime/linkTypeMap.ts +0 -156
  61. package/runtime/typeSelection.ts +0 -95
  62. package/runtime/types.ts +0 -69
  63. package/schema.ts +0 -795
@@ -1,275 +0,0 @@
1
- // @ts-nocheck
2
- import type { GraphqlOperation } from './generateGraphqlOperation'
3
- import { GenqlError } from './error'
4
-
5
- type Variables = Record<string, any>
6
-
7
- type QueryError = Error & {
8
- message: string
9
-
10
- locations?: Array<{
11
- line: number
12
- column: number
13
- }>
14
- path?: any
15
- rid: string
16
- details?: Record<string, any>
17
- }
18
- type Result = {
19
- data: Record<string, any>
20
- errors: Array<QueryError>
21
- }
22
- type Fetcher = (
23
- batchedQuery: GraphqlOperation | Array<GraphqlOperation>,
24
- ) => Promise<Array<Result>>
25
- type Options = {
26
- batchInterval?: number
27
- shouldBatch?: boolean
28
- maxBatchSize?: number
29
- }
30
- type Queue = Array<{
31
- request: GraphqlOperation
32
- resolve: (...args: Array<any>) => any
33
- reject: (...args: Array<any>) => any
34
- }>
35
-
36
- /**
37
- * takes a list of requests (queue) and batches them into a single server request.
38
- * It will then resolve each individual requests promise with the appropriate data.
39
- * @private
40
- * @param {QueryBatcher} client - the client to use
41
- * @param {Queue} queue - the list of requests to batch
42
- */
43
- function dispatchQueueBatch(client: QueryBatcher, queue: Queue): void {
44
- let batchedQuery: any = queue.map((item) => item.request)
45
-
46
- if (batchedQuery.length === 1) {
47
- batchedQuery = batchedQuery[0]
48
- }
49
- (() => {
50
- try {
51
- return client.fetcher(batchedQuery);
52
- } catch(e) {
53
- return Promise.reject(e);
54
- }
55
- })().then((responses: any) => {
56
- if (queue.length === 1 && !Array.isArray(responses)) {
57
- if (responses.errors && responses.errors.length) {
58
- queue[0].reject(
59
- new GenqlError(responses.errors, responses.data),
60
- )
61
- return
62
- }
63
-
64
- queue[0].resolve(responses)
65
- return
66
- } else if (responses.length !== queue.length) {
67
- throw new Error('response length did not match query length')
68
- }
69
-
70
- for (let i = 0; i < queue.length; i++) {
71
- if (responses[i].errors && responses[i].errors.length) {
72
- queue[i].reject(
73
- new GenqlError(responses[i].errors, responses[i].data),
74
- )
75
- } else {
76
- queue[i].resolve(responses[i])
77
- }
78
- }
79
- })
80
- .catch((e) => {
81
- for (let i = 0; i < queue.length; i++) {
82
- queue[i].reject(e)
83
- }
84
- });
85
- }
86
-
87
- /**
88
- * creates a list of requests to batch according to max batch size.
89
- * @private
90
- * @param {QueryBatcher} client - the client to create list of requests from from
91
- * @param {Options} options - the options for the batch
92
- */
93
- function dispatchQueue(client: QueryBatcher, options: Options): void {
94
- const queue = client._queue
95
- const maxBatchSize = options.maxBatchSize || 0
96
- client._queue = []
97
-
98
- if (maxBatchSize > 0 && maxBatchSize < queue.length) {
99
- for (let i = 0; i < queue.length / maxBatchSize; i++) {
100
- dispatchQueueBatch(
101
- client,
102
- queue.slice(i * maxBatchSize, (i + 1) * maxBatchSize),
103
- )
104
- }
105
- } else {
106
- dispatchQueueBatch(client, queue)
107
- }
108
- }
109
- /**
110
- * Create a batcher client.
111
- * @param {Fetcher} fetcher - A function that can handle the network requests to graphql endpoint
112
- * @param {Options} options - the options to be used by client
113
- * @param {boolean} options.shouldBatch - should the client batch requests. (default true)
114
- * @param {integer} options.batchInterval - duration (in MS) of each batch window. (default 6)
115
- * @param {integer} options.maxBatchSize - max number of requests in a batch. (default 0)
116
- * @param {boolean} options.defaultHeaders - default headers to include with every request
117
- *
118
- * @example
119
- * const fetcher = batchedQuery => fetch('path/to/graphql', {
120
- * method: 'post',
121
- * headers: {
122
- * Accept: 'application/json',
123
- * 'Content-Type': 'application/json',
124
- * },
125
- * body: JSON.stringify(batchedQuery),
126
- * credentials: 'include',
127
- * })
128
- * .then(response => response.json())
129
- *
130
- * const client = new QueryBatcher(fetcher, { maxBatchSize: 10 })
131
- */
132
-
133
- export class QueryBatcher {
134
- fetcher: Fetcher
135
- _options: Options
136
- _queue: Queue
137
-
138
- constructor(
139
- fetcher: Fetcher,
140
- {
141
- batchInterval = 6,
142
- shouldBatch = true,
143
- maxBatchSize = 0,
144
- }: Options = {},
145
- ) {
146
- this.fetcher = fetcher
147
- this._options = {
148
- batchInterval,
149
- shouldBatch,
150
- maxBatchSize,
151
- }
152
- this._queue = []
153
- }
154
-
155
- /**
156
- * Fetch will send a graphql request and return the parsed json.
157
- * @param {string} query - the graphql query.
158
- * @param {Variables} variables - any variables you wish to inject as key/value pairs.
159
- * @param {[string]} operationName - the graphql operationName.
160
- * @param {Options} overrides - the client options overrides.
161
- *
162
- * @return {promise} resolves to parsed json of server response
163
- *
164
- * @example
165
- * client.fetch(`
166
- * query getHuman($id: ID!) {
167
- * human(id: $id) {
168
- * name
169
- * height
170
- * }
171
- * }
172
- * `, { id: "1001" }, 'getHuman')
173
- * .then(human => {
174
- * // do something with human
175
- * console.log(human);
176
- * });
177
- */
178
- fetch(
179
- query: string,
180
- variables?: Variables,
181
- operationName?: string,
182
- overrides: Options = {},
183
- ): Promise<Result> {
184
- const request: GraphqlOperation = {
185
- query,
186
- }
187
- const options = Object.assign({}, this._options, overrides)
188
-
189
- if (variables) {
190
- request.variables = variables
191
- }
192
-
193
- if (operationName) {
194
- request.operationName = operationName
195
- }
196
-
197
- const promise = new Promise<Result>((resolve, reject) => {
198
- this._queue.push({
199
- request,
200
- resolve,
201
- reject,
202
- })
203
-
204
- if (this._queue.length === 1) {
205
- if (options.shouldBatch) {
206
- setTimeout(
207
- () => dispatchQueue(this, options),
208
- options.batchInterval,
209
- )
210
- } else {
211
- dispatchQueue(this, options)
212
- }
213
- }
214
- })
215
- return promise
216
- }
217
-
218
- /**
219
- * Fetch will send a graphql request and return the parsed json.
220
- * @param {string} query - the graphql query.
221
- * @param {Variables} variables - any variables you wish to inject as key/value pairs.
222
- * @param {[string]} operationName - the graphql operationName.
223
- * @param {Options} overrides - the client options overrides.
224
- *
225
- * @return {Promise<Array<Result>>} resolves to parsed json of server response
226
- *
227
- * @example
228
- * client.forceFetch(`
229
- * query getHuman($id: ID!) {
230
- * human(id: $id) {
231
- * name
232
- * height
233
- * }
234
- * }
235
- * `, { id: "1001" }, 'getHuman')
236
- * .then(human => {
237
- * // do something with human
238
- * console.log(human);
239
- * });
240
- */
241
- forceFetch(
242
- query: string,
243
- variables?: Variables,
244
- operationName?: string,
245
- overrides: Options = {},
246
- ): Promise<Result> {
247
- const request: GraphqlOperation = {
248
- query,
249
- }
250
- const options = Object.assign({}, this._options, overrides, {
251
- shouldBatch: false,
252
- })
253
-
254
- if (variables) {
255
- request.variables = variables
256
- }
257
-
258
- if (operationName) {
259
- request.operationName = operationName
260
- }
261
-
262
- const promise = new Promise<Result>((resolve, reject) => {
263
- const client = new QueryBatcher(this.fetcher, this._options)
264
- client._queue = [
265
- {
266
- request,
267
- resolve,
268
- reject,
269
- },
270
- ]
271
- dispatchQueue(client, options)
272
- })
273
- return promise
274
- }
275
- }
@@ -1,68 +0,0 @@
1
- // @ts-nocheck
2
-
3
- import { type BatchOptions, createFetcher } from './fetcher'
4
- import type { ExecutionResult, LinkedType } from './types'
5
- import {
6
- generateGraphqlOperation,
7
- type GraphqlOperation,
8
- } from './generateGraphqlOperation'
9
-
10
- export type Headers =
11
- | HeadersInit
12
- | (() => HeadersInit)
13
- | (() => Promise<HeadersInit>)
14
-
15
- export type BaseFetcher = (
16
- operation: GraphqlOperation | GraphqlOperation[],
17
- ) => Promise<ExecutionResult | ExecutionResult[]>
18
-
19
- export type ClientOptions = Omit<RequestInit, 'body' | 'headers'> & {
20
- url?: string
21
- batch?: BatchOptions | boolean
22
- fetcher?: BaseFetcher
23
- fetch?: Function
24
- headers?: Headers
25
- }
26
-
27
- export const createClient = ({
28
- queryRoot,
29
- mutationRoot,
30
- subscriptionRoot,
31
- ...options
32
- }: ClientOptions & {
33
- queryRoot?: LinkedType
34
- mutationRoot?: LinkedType
35
- subscriptionRoot?: LinkedType
36
- }) => {
37
- const fetcher = createFetcher(options)
38
- const client: {
39
- query?: Function
40
- mutation?: Function
41
- } = {}
42
-
43
- if (queryRoot) {
44
- client.query = (request: any) => {
45
- if (!queryRoot) throw new Error('queryRoot argument is missing')
46
-
47
- const resultPromise = fetcher(
48
- generateGraphqlOperation('query', queryRoot, request),
49
- )
50
-
51
- return resultPromise
52
- }
53
- }
54
- if (mutationRoot) {
55
- client.mutation = (request: any) => {
56
- if (!mutationRoot)
57
- throw new Error('mutationRoot argument is missing')
58
-
59
- const resultPromise = fetcher(
60
- generateGraphqlOperation('mutation', mutationRoot, request),
61
- )
62
-
63
- return resultPromise
64
- }
65
- }
66
-
67
- return client as any
68
- }
package/runtime/error.ts DELETED
@@ -1,29 +0,0 @@
1
- // @ts-nocheck
2
- export class GenqlError extends Error {
3
- errors: Array<GraphqlError> = []
4
- /**
5
- * Partial data returned by the server
6
- */
7
- data?: any
8
- constructor(errors: any[], data: any) {
9
- let message = Array.isArray(errors)
10
- ? errors.map((x) => x?.message || '').join('\n')
11
- : ''
12
- if (!message) {
13
- message = 'GraphQL error'
14
- }
15
- super(message)
16
- this.errors = errors
17
- this.data = data
18
- }
19
- }
20
-
21
- interface GraphqlError {
22
- message: string
23
- locations?: Array<{
24
- line: number
25
- column: number
26
- }>
27
- path?: string[]
28
- extensions?: Record<string, any>
29
- }
@@ -1,97 +0,0 @@
1
- // @ts-nocheck
2
- import { QueryBatcher } from './batcher'
3
-
4
- import type { ClientOptions } from './createClient'
5
- import type { GraphqlOperation } from './generateGraphqlOperation'
6
- import { GenqlError } from './error'
7
-
8
- export interface Fetcher {
9
- (gql: GraphqlOperation): Promise<any>
10
- }
11
-
12
- export type BatchOptions = {
13
- batchInterval?: number // ms
14
- maxBatchSize?: number
15
- }
16
-
17
- const DEFAULT_BATCH_OPTIONS = {
18
- maxBatchSize: 10,
19
- batchInterval: 40,
20
- }
21
-
22
- export const createFetcher = ({
23
- url,
24
- headers = {},
25
- fetcher,
26
- fetch: _fetch,
27
- batch = false,
28
- ...rest
29
- }: ClientOptions): Fetcher => {
30
- if (!url && !fetcher) {
31
- throw new Error('url or fetcher is required')
32
- }
33
-
34
- fetcher = fetcher || (async (body) => {
35
- let headersObject =
36
- typeof headers == 'function' ? await headers() : headers
37
- headersObject = headersObject || {}
38
- if (typeof fetch === 'undefined' && !_fetch) {
39
- throw new Error(
40
- 'Global `fetch` function is not available, pass a fetch polyfill to Genql `createClient`',
41
- )
42
- }
43
- let fetchImpl = _fetch || fetch
44
- const res = await fetchImpl(url!, {
45
- headers: {
46
- 'Content-Type': 'application/json',
47
- ...headersObject,
48
- },
49
- method: 'POST',
50
- body: JSON.stringify(body),
51
- ...rest,
52
- })
53
- if (!res.ok) {
54
- throw new Error(`${res.statusText}: ${await res.text()}`)
55
- }
56
- const json = await res.json()
57
- return json
58
- })
59
-
60
- if (!batch) {
61
- return async (body) => {
62
- const json = await fetcher!(body)
63
- if (Array.isArray(json)) {
64
- return json.map((json) => {
65
- if (json?.errors?.length) {
66
- throw new GenqlError(json.errors || [], json.data)
67
- }
68
- return json.data
69
- })
70
- } else {
71
- if (json?.errors?.length) {
72
- throw new GenqlError(json.errors || [], json.data)
73
- }
74
- return json.data
75
- }
76
- }
77
- }
78
-
79
- const batcher = new QueryBatcher(
80
- async (batchedQuery) => {
81
- // console.log(batchedQuery) // [{ query: 'query{user{age}}', variables: {} }, ...]
82
- const json = await fetcher!(batchedQuery)
83
- return json as any
84
- },
85
- batch === true ? DEFAULT_BATCH_OPTIONS : batch,
86
- )
87
-
88
- return async ({ query, variables }) => {
89
- const json = await batcher.fetch(query, variables)
90
- if (json?.data) {
91
- return json.data
92
- }
93
- throw new Error(
94
- 'Genql batch fetcher returned unexpected result ' + JSON.stringify(json),
95
- )
96
- }
97
- }
@@ -1,225 +0,0 @@
1
- // @ts-nocheck
2
- import type { LinkedField, LinkedType } from './types'
3
-
4
- export interface Args {
5
- [arg: string]: any | undefined
6
- }
7
-
8
- export interface Fields {
9
- [field: string]: Request
10
- }
11
-
12
- export type Request = boolean | number | Fields
13
-
14
- export interface Variables {
15
- [name: string]: {
16
- value: any
17
- typing: [LinkedType, string]
18
- }
19
- }
20
-
21
- export interface Context {
22
- root: LinkedType
23
- varCounter: number
24
- variables: Variables
25
- fragmentCounter: number
26
- fragments: string[]
27
- }
28
-
29
- export interface GraphqlOperation {
30
- query: string
31
- variables?: { [name: string]: any }
32
- operationName?: string
33
- }
34
-
35
- const parseRequest = (
36
- request: Request | undefined,
37
- ctx: Context,
38
- path: string[],
39
- ): string => {
40
- if (typeof request === 'object' && '__args' in request) {
41
- const args: any = request.__args
42
- let fields: Request | undefined = { ...request }
43
- delete fields.__args
44
- const argNames = Object.keys(args)
45
-
46
- if (argNames.length === 0) {
47
- return parseRequest(fields, ctx, path)
48
- }
49
-
50
- const field = getFieldFromPath(ctx.root, path)
51
-
52
- const argStrings = argNames.map((argName) => {
53
- ctx.varCounter++
54
- const varName = `v${ctx.varCounter}`
55
-
56
- const typing = field.args && field.args[argName] // typeMap used here, .args
57
-
58
- if (!typing) {
59
- throw new Error(
60
- `no typing defined for argument \`${argName}\` in path \`${path.join(
61
- '.',
62
- )}\``,
63
- )
64
- }
65
-
66
- ctx.variables[varName] = {
67
- value: args[argName],
68
- typing,
69
- }
70
-
71
- return `${argName}:$${varName}`
72
- })
73
- return `(${argStrings})${parseRequest(fields, ctx, path)}`
74
- } else if (typeof request === 'object' && Object.keys(request).length > 0) {
75
- const fields = request
76
- const fieldNames = Object.keys(fields).filter((k) => Boolean(fields[k]))
77
-
78
- if (fieldNames.length === 0) {
79
- throw new Error(
80
- `field selection should not be empty: ${path.join('.')}`,
81
- )
82
- }
83
-
84
- const type =
85
- path.length > 0 ? getFieldFromPath(ctx.root, path).type : ctx.root
86
- const scalarFields = type.scalar
87
-
88
- let scalarFieldsFragment: string | undefined
89
-
90
- if (fieldNames.includes('__scalar')) {
91
- const falsyFieldNames = new Set(
92
- Object.keys(fields).filter((k) => !Boolean(fields[k])),
93
- )
94
- if (scalarFields?.length) {
95
- ctx.fragmentCounter++
96
- scalarFieldsFragment = `f${ctx.fragmentCounter}`
97
-
98
- ctx.fragments.push(
99
- `fragment ${scalarFieldsFragment} on ${
100
- type.name
101
- }{${scalarFields
102
- .filter((f) => !falsyFieldNames.has(f))
103
- .join(',')}}`,
104
- )
105
- }
106
- }
107
-
108
- const fieldsSelection = fieldNames
109
- .filter((f) => !['__scalar', '__name'].includes(f))
110
- .map((f) => {
111
- const parsed = parseRequest(fields[f], ctx, [...path, f])
112
-
113
- if (f.startsWith('on_')) {
114
- ctx.fragmentCounter++
115
- const implementationFragment = `f${ctx.fragmentCounter}`
116
-
117
- const typeMatch = f.match(/^on_(.+)/)
118
-
119
- if (!typeMatch || !typeMatch[1])
120
- throw new Error('match failed')
121
-
122
- ctx.fragments.push(
123
- `fragment ${implementationFragment} on ${typeMatch[1]}${parsed}`,
124
- )
125
-
126
- return `...${implementationFragment}`
127
- } else {
128
- return `${f}${parsed}`
129
- }
130
- })
131
- .concat(scalarFieldsFragment ? [`...${scalarFieldsFragment}`] : [])
132
- .join(',')
133
-
134
- return `{${fieldsSelection}}`
135
- } else {
136
- return ''
137
- }
138
- }
139
-
140
- export const generateGraphqlOperation = (
141
- operation: 'query' | 'mutation' | 'subscription',
142
- root: LinkedType,
143
- fields?: Fields,
144
- ): GraphqlOperation => {
145
- const ctx: Context = {
146
- root: root,
147
- varCounter: 0,
148
- variables: {},
149
- fragmentCounter: 0,
150
- fragments: [],
151
- }
152
- const result = parseRequest(fields, ctx, [])
153
-
154
- const varNames = Object.keys(ctx.variables)
155
-
156
- const varsString =
157
- varNames.length > 0
158
- ? `(${varNames.map((v) => {
159
- const variableType = ctx.variables[v].typing[1]
160
- return `$${v}:${variableType}`
161
- })})`
162
- : ''
163
-
164
- const operationName = fields?.__name || ''
165
-
166
- return {
167
- query: [
168
- `${operation} ${operationName}${varsString}${result}`,
169
- ...ctx.fragments,
170
- ].join(','),
171
- variables: Object.keys(ctx.variables).reduce<{ [name: string]: any }>(
172
- (r, v) => {
173
- r[v] = ctx.variables[v].value
174
- return r
175
- },
176
- {},
177
- ),
178
- ...(operationName ? { operationName: operationName.toString() } : {}),
179
- }
180
- }
181
-
182
- export const getFieldFromPath = (
183
- root: LinkedType | undefined,
184
- path: string[],
185
- ) => {
186
- let current: LinkedField | undefined
187
-
188
- if (!root) throw new Error('root type is not provided')
189
-
190
- if (path.length === 0) throw new Error(`path is empty`)
191
-
192
- path.forEach((f) => {
193
- const type = current ? current.type : root
194
-
195
- if (!type.fields)
196
- throw new Error(`type \`${type.name}\` does not have fields`)
197
-
198
- const possibleTypes = Object.keys(type.fields)
199
- .filter((i) => i.startsWith('on_'))
200
- .reduce(
201
- (types, fieldName) => {
202
- const field = type.fields && type.fields[fieldName]
203
- if (field) types.push(field.type)
204
- return types
205
- },
206
- [type],
207
- )
208
-
209
- let field: LinkedField | null = null
210
-
211
- possibleTypes.forEach((type) => {
212
- const found = type.fields && type.fields[f]
213
- if (found) field = found
214
- })
215
-
216
- if (!field)
217
- throw new Error(
218
- `type \`${type.name}\` does not have a field \`${f}\``,
219
- )
220
-
221
- current = field
222
- })
223
-
224
- return current as LinkedField
225
- }
package/runtime/index.ts DELETED
@@ -1,13 +0,0 @@
1
- // @ts-nocheck
2
- export { createClient } from './createClient'
3
- export type { ClientOptions } from './createClient'
4
- export type { FieldsSelection } from './typeSelection'
5
- export { generateGraphqlOperation } from './generateGraphqlOperation'
6
- export type { GraphqlOperation } from './generateGraphqlOperation'
7
- export { linkTypeMap } from './linkTypeMap'
8
- // export { Observable } from 'zen-observable-ts'
9
- export { createFetcher } from './fetcher'
10
- export { GenqlError } from './error'
11
- export const everything = {
12
- __scalar: true,
13
- }