Skip to content

Commit

Permalink
refactor: top level extension dir
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonkuhrt committed Oct 31, 2024
1 parent 0b7439f commit 5c629fb
Show file tree
Hide file tree
Showing 13 changed files with 22 additions and 22 deletions.
2 changes: 1 addition & 1 deletion src/entrypoints/extensionkit.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export { createExtension } from '../extension/extension.js'
export { createExtension as createGeneratorExtension } from '../generator/extension/create.js'
export { createExtension } from '../layers/6_client/extension/extension.js'
2 changes: 1 addition & 1 deletion src/entrypoints/main.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export { createExtension, type Extension } from '../layers/6_client/extension/extension.js'
export { createExtension, type Extension } from '../extension/extension.js'
export { type TypedDocument } from '../lib/grafaid/typed-document/__.js'
// todo figure this export out. Was just put there to resolve a type error about "...cannot be named..."
export { type Config as BuilderConfig } from '../layers/6_client/Settings/Config.js'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import type { Select } from '../../../documentBuilder/Select/__.js'
import type { Anyware } from '../../../lib/anyware/__.js'
import type { Chain } from '../../../lib/chain/__.js'
import type { AssertExtends } from '../../../lib/prelude.js'
import type { TypeFunction } from '../../../lib/type-function/__.js'
import type { Fn } from '../../../lib/type-function/TypeFunction.js'
import type { RequestPipeline } from '../../../requestPipeline/__.js'
import type { GlobalRegistry } from '../../../types/GlobalRegistry/GlobalRegistry.js'
import type { Client } from '../client.js'
import type { Context } from '../context.js'
import type { GraffleExecutionResultEnvelope } from '../handleOutput.js'
import type { Select } from '../documentBuilder/Select/__.js'
import type { Client } from '../layers/6_client/client.js'
import type { Context } from '../layers/6_client/context.js'
import type { GraffleExecutionResultEnvelope } from '../layers/6_client/handleOutput.js'
import type { Anyware } from '../lib/anyware/__.js'
import type { Chain } from '../lib/chain/__.js'
import type { AssertExtends } from '../lib/prelude.js'
import type { TypeFunction } from '../lib/type-function/__.js'
import type { Fn } from '../lib/type-function/TypeFunction.js'
import type { RequestPipeline } from '../requestPipeline/__.js'
import type { GlobalRegistry } from '../types/GlobalRegistry/GlobalRegistry.js'

export interface TypeHooks {
/**
Expand Down
2 changes: 1 addition & 1 deletion src/extensions/Introspection/Introspection.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { getIntrospectionQuery, type IntrospectionQuery } from 'graphql'
import type { Extension, SimplifyNullable } from '../../entrypoints/main.js'
import { createExtension } from '../../extension/extension.js'
import type { Context } from '../../layers/6_client/context.js'
import { createExtension } from '../../layers/6_client/extension/extension.js'
import type { HandleOutput } from '../../layers/6_client/handleOutput.js'
import type { Chain } from '../../lib/chain/__.js'
import { createConfig, type Input } from './config.js'
Expand Down
2 changes: 1 addition & 1 deletion src/extensions/Opentelemetry/Opentelemetry.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { trace, type Tracer } from '@opentelemetry/api'
import { createExtension } from '../../layers/6_client/extension/extension.js'
import { createExtension } from '../../extension/extension.js'
import { createConfig, type Input } from './config.js'

export const Opentelemetry = (input?: Input) => {
Expand Down
2 changes: 1 addition & 1 deletion src/extensions/SchemaErrors/runtime.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { createExtension, type Extension } from '../../layers/6_client/extension/extension.js'
import { createExtension, type Extension } from '../../extension/extension.js'
import { Errors } from '../../lib/errors/__.js'
import { normalizeRequestToNode } from '../../lib/grafaid/request.js'
import { type ExcludeNullAndUndefined, isString } from '../../lib/prelude.js'
Expand Down
2 changes: 1 addition & 1 deletion src/extensions/SchemaErrors/tests/SchemaError.test-d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { describe, expectTypeOf, test } from 'vitest'
import { schema } from '../../../../tests/_/schemas/kitchen-sink/schema.js'
import { type Extension } from '../../../layers/6_client/extension/extension.js'
import { type Extension } from '../../../extension/extension.js'
import { SchemaErrors } from '../runtime.js'
import { GraffleSchemaErrors } from './fixture/graffle/__.js'

Expand Down
2 changes: 1 addition & 1 deletion src/layers/6_client/chainExtensions/anyware.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { createExtension } from '../../../extension/extension.js'
import type { Anyware, Anyware as AnywareLib } from '../../../lib/anyware/__.js'
import { Chain } from '../../../lib/chain/__.js'
import type { RequestPipeline } from '../../../requestPipeline/__.js'
import { type Context } from '../context.js'
import { createExtension } from '../extension/extension.js'

export interface Anyware_ extends Chain.Extension {
context: Context
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { Extension } from '../../../extension/extension.js'
import { Chain } from '../../../lib/chain/__.js'
import type { ConfigManager } from '../../../lib/config-manager/__.js'
import { type Context } from '../context.js'
import type { Extension } from './extension.js'

export interface Use_ extends Chain.Extension {
context: Context
Expand Down
2 changes: 1 addition & 1 deletion src/layers/6_client/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import { Schema } from '../../types/Schema/__.js'
import { type Anyware_, AnywareExtension } from './chainExtensions/anyware.js'
import type { Internal_ } from './chainExtensions/internal.js'
import { type Scalar_, scalarProperties } from './chainExtensions/scalar.js'
import { type Use_, useProperties } from './chainExtensions/use.js'
import { type With_, withProperties } from './chainExtensions/with.js'
import { type Context, type ContextWithoutConfig, createContext, type TypeHooksEmpty } from './context.js'
import { type Use_, useProperties } from './extension/use.js'
import { type Gql_, gqlProperties } from './gql/gql.js'
import { type RequestMethods_, requestMethodsProperties } from './requestMethods/requestMethods.js' // todo
import { type InputStatic } from './Settings/Input.js'
Expand Down
2 changes: 1 addition & 1 deletion src/layers/6_client/context.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// import type { Anyware } from '../../lib/anyware/__.js'
// import type { RequestPipeline } from '../../requestPipeline/__.js'
import type { Extension } from '../../extension/extension.js'
import type { Schema } from '../../types/Schema/__.js'
import type { SchemaDrivenDataMap } from '../../types/SchemaDrivenDataMap/SchemaDrivenDataMap.js'
import type { Extension } from './extension/extension.js'
import type { Config } from './Settings/Config.js'
import type { InputStatic } from './Settings/Input.js'
import { inputToConfig } from './Settings/InputToConfig.js'
Expand Down
2 changes: 1 addition & 1 deletion src/layers/6_client/handleOutput.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import type { GraphQLError } from 'graphql'
import type { RunTypeHookOnRequestResult } from '../../extension/extension.js'
import { Errors } from '../../lib/errors/__.js'
import type { Grafaid } from '../../lib/grafaid/__.js'
import type { SomeObjectData } from '../../lib/grafaid/graphql.js'
Expand All @@ -13,7 +14,6 @@ import {
import type { TransportHttp } from '../../requestPipeline/Transport.js'
import type { GlobalRegistry } from '../../types/GlobalRegistry/GlobalRegistry.js'
import type { Context } from './context.js'
import type { RunTypeHookOnRequestResult } from './extension/extension.js'
import {
type Config,
type ErrorCategory,
Expand Down

0 comments on commit 5c629fb

Please sign in to comment.