@tinacms/graphql 0.0.0-be4681c-20250619070932 → 0.0.0-bf308a9-20251208040244

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.
@@ -1,7 +1,7 @@
1
1
  /**
2
2
 
3
3
  */
4
- import { type FieldDefinitionNode, type ScalarTypeDefinitionNode, type InputValueDefinitionNode, type ObjectTypeDefinitionNode, type InterfaceTypeDefinitionNode, type NamedTypeNode, type UnionTypeDefinitionNode, type TypeDefinitionNode, type DirectiveNode, type EnumTypeDefinitionNode, type InputObjectTypeDefinitionNode, type DocumentNode, type FragmentDefinitionNode, type SelectionNode, type FieldNode, type InlineFragmentNode, type OperationDefinitionNode } from 'graphql';
4
+ import { type FieldDefinitionNode, type ScalarTypeDefinitionNode, type InputValueDefinitionNode, type ObjectTypeDefinitionNode, type InterfaceTypeDefinitionNode, type NamedTypeNode, type UnionTypeDefinitionNode, type TypeDefinitionNode, type DirectiveNode, type EnumTypeDefinitionNode, type InputObjectTypeDefinitionNode, type DocumentNode, type FragmentDefinitionNode, type SelectionNode, type FieldNode, type InlineFragmentNode, type OperationDefinitionNode, type DefinitionNode } from 'graphql';
5
5
  export declare const SysFieldDefinition: {
6
6
  kind: "Field";
7
7
  name: {
@@ -153,7 +153,7 @@ export declare const astBuilder: {
153
153
  }) => DocumentNode;
154
154
  };
155
155
  type scalarNames = 'string' | 'boolean' | 'datetime' | 'image' | 'text' | 'number';
156
- export declare const extractInlineTypes: (item: TypeDefinitionNode | TypeDefinitionNode[]) => any;
156
+ export declare const extractInlineTypes: (item: DefinitionNode | DefinitionNode[]) => DefinitionNode[];
157
157
  export declare function walk(maybeNode: TypeDefinitionNode, visited?: WeakSet<WeakKey>): IterableIterator<TypeDefinitionNode>;
158
158
  export declare const NAMER: {
159
159
  dataFilterTypeNameOn: (namespace: string[]) => string;
package/dist/build.d.ts CHANGED
@@ -1,16 +1,14 @@
1
1
  /**
2
2
 
3
3
  */
4
+ import { type DocumentNode } from 'graphql';
4
5
  import type { TinaSchema, Config } from '@tinacms/schema-tools';
5
6
  export declare const buildDotTinaFiles: ({ config, flags, buildSDK, }: {
6
7
  config: Config;
7
8
  flags?: string[];
8
9
  buildSDK?: boolean;
9
10
  }) => Promise<{
10
- graphQLSchema: {
11
- kind: "Document";
12
- definitions: any;
13
- };
11
+ graphQLSchema: DocumentNode;
14
12
  tinaSchema: TinaSchema;
15
13
  lookup: Record<string, import("./database").LookupMapType>;
16
14
  fragDoc: string;
@@ -1,3 +1,3 @@
1
- import { Template } from '@tinacms/schema-tools/src';
1
+ import { Template } from '@tinacms/schema-tools';
2
2
  export declare const replaceNameOverrides: (template: Template, obj: any) => object;
3
3
  export declare const applyNameOverrides: (template: Template, obj: any) => object;
package/dist/index.d.ts CHANGED
@@ -16,10 +16,7 @@ export { createSchema } from './schema/createSchema';
16
16
  export { buildDotTinaFiles };
17
17
  export type DummyType = unknown;
18
18
  export declare const buildSchema: (config: Config, flags?: string[]) => Promise<{
19
- graphQLSchema: {
20
- kind: "Document";
21
- definitions: any;
22
- };
19
+ graphQLSchema: import("graphql").DocumentNode;
23
20
  tinaSchema: import("@tinacms/schema-tools").TinaSchema;
24
21
  lookup: Record<string, import("./database").LookupMapType>;
25
22
  fragDoc: string;