@constructive-io/sdk 0.14.11 → 0.14.12

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.
@@ -3,8 +3,8 @@
3
3
  * @generated by @constructive-io/graphql-codegen
4
4
  * DO NOT EDIT - changes will be overwritten
5
5
  */
6
- import type { GraphQLAdapter, GraphQLError, QueryResult } from '@constructive-io/graphql-types';
7
- export type { GraphQLAdapter, GraphQLError, QueryResult } from '@constructive-io/graphql-types';
6
+ import type { GraphQLAdapter, GraphQLError, QueryResult } from '@constructive-io/graphql-query/runtime';
7
+ export type { GraphQLAdapter, GraphQLError, QueryResult, } from '@constructive-io/graphql-query/runtime';
8
8
  /**
9
9
  * Default adapter that uses fetch for HTTP requests.
10
10
  * This is used when no custom adapter is provided.
@@ -50,7 +50,7 @@ exports.buildCustomDocument = buildCustomDocument;
50
50
  * @generated by @constructive-io/graphql-codegen
51
51
  * DO NOT EDIT - changes will be overwritten
52
52
  */
53
- const graphql_web_1 = require("@0no-co/graphql.web");
53
+ const runtime_1 = require("@constructive-io/graphql-query/runtime");
54
54
  const t = __importStar(require("gql-ast"));
55
55
  const client_1 = require("./client");
56
56
  class QueryBuilder {
@@ -221,7 +221,7 @@ function buildFindManyDocument(operationName, queryField, select, args, filterTy
221
221
  }),
222
222
  ],
223
223
  });
224
- return { document: (0, graphql_web_1.print)(document), variables };
224
+ return { document: (0, runtime_1.print)(document), variables };
225
225
  }
226
226
  function buildFindFirstDocument(operationName, queryField, select, args, filterTypeName, connectionFieldsMap) {
227
227
  const selections = select
@@ -262,7 +262,7 @@ function buildFindFirstDocument(operationName, queryField, select, args, filterT
262
262
  }),
263
263
  ],
264
264
  });
265
- return { document: (0, graphql_web_1.print)(document), variables };
265
+ return { document: (0, runtime_1.print)(document), variables };
266
266
  }
267
267
  function buildCreateDocument(operationName, mutationField, entityField, select, data, inputTypeName, connectionFieldsMap) {
268
268
  const selections = select
@@ -342,7 +342,7 @@ function buildFindOneDocument(operationName, queryField, id, select, idArgName,
342
342
  const variableDefinitions = [
343
343
  t.variableDefinition({
344
344
  variable: t.variable({ name: idArgName }),
345
- type: (0, graphql_web_1.parseType)(idTypeName),
345
+ type: (0, runtime_1.parseType)(idTypeName),
346
346
  }),
347
347
  ];
348
348
  const queryArgs = [
@@ -370,7 +370,7 @@ function buildFindOneDocument(operationName, queryField, id, select, idArgName,
370
370
  ],
371
371
  });
372
372
  return {
373
- document: (0, graphql_web_1.print)(document),
373
+ document: (0, runtime_1.print)(document),
374
374
  variables: { [idArgName]: id },
375
375
  };
376
376
  }
@@ -445,7 +445,7 @@ function buildCustomDocument(operationType, operationName, fieldName, select, ar
445
445
  : [];
446
446
  const variableDefs = variableDefinitions.map((definition) => t.variableDefinition({
447
447
  variable: t.variable({ name: definition.name }),
448
- type: (0, graphql_web_1.parseType)(definition.type),
448
+ type: (0, runtime_1.parseType)(definition.type),
449
449
  }));
450
450
  const fieldArgs = variableDefinitions.map((definition) => t.argument({
451
451
  name: definition.name,
@@ -473,7 +473,7 @@ function buildCustomDocument(operationType, operationName, fieldName, select, ar
473
473
  ],
474
474
  });
475
475
  return {
476
- document: (0, graphql_web_1.print)(document),
476
+ document: (0, runtime_1.print)(document),
477
477
  variables: (args ?? {}),
478
478
  };
479
479
  }
@@ -551,7 +551,7 @@ function buildInputMutationDocument(config) {
551
551
  variableDefinitions: [
552
552
  t.variableDefinition({
553
553
  variable: t.variable({ name: 'input' }),
554
- type: (0, graphql_web_1.parseType)(config.inputTypeName + '!'),
554
+ type: (0, runtime_1.parseType)(config.inputTypeName + '!'),
555
555
  }),
556
556
  ],
557
557
  selectionSet: t.selectionSet({
@@ -573,14 +573,14 @@ function buildInputMutationDocument(config) {
573
573
  }),
574
574
  ],
575
575
  });
576
- return (0, graphql_web_1.print)(document);
576
+ return (0, runtime_1.print)(document);
577
577
  }
578
578
  function addVariable(spec, definitions, args, variables) {
579
579
  if (spec.value === undefined || !spec.typeName)
580
580
  return;
581
581
  definitions.push(t.variableDefinition({
582
582
  variable: t.variable({ name: spec.varName }),
583
- type: (0, graphql_web_1.parseType)(spec.typeName),
583
+ type: (0, runtime_1.parseType)(spec.typeName),
584
584
  }));
585
585
  args.push(t.argument({
586
586
  name: spec.argName ?? spec.varName,
@@ -3,8 +3,8 @@
3
3
  * @generated by @constructive-io/graphql-codegen
4
4
  * DO NOT EDIT - changes will be overwritten
5
5
  */
6
- import type { GraphQLAdapter, GraphQLError, QueryResult } from '@constructive-io/graphql-types';
7
- export type { GraphQLAdapter, GraphQLError, QueryResult } from '@constructive-io/graphql-types';
6
+ import type { GraphQLAdapter, GraphQLError, QueryResult } from '@constructive-io/graphql-query/runtime';
7
+ export type { GraphQLAdapter, GraphQLError, QueryResult, } from '@constructive-io/graphql-query/runtime';
8
8
  /**
9
9
  * Default adapter that uses fetch for HTTP requests.
10
10
  * This is used when no custom adapter is provided.
@@ -50,7 +50,7 @@ exports.buildCustomDocument = buildCustomDocument;
50
50
  * @generated by @constructive-io/graphql-codegen
51
51
  * DO NOT EDIT - changes will be overwritten
52
52
  */
53
- const graphql_web_1 = require("@0no-co/graphql.web");
53
+ const runtime_1 = require("@constructive-io/graphql-query/runtime");
54
54
  const t = __importStar(require("gql-ast"));
55
55
  const client_1 = require("./client");
56
56
  class QueryBuilder {
@@ -221,7 +221,7 @@ function buildFindManyDocument(operationName, queryField, select, args, filterTy
221
221
  }),
222
222
  ],
223
223
  });
224
- return { document: (0, graphql_web_1.print)(document), variables };
224
+ return { document: (0, runtime_1.print)(document), variables };
225
225
  }
226
226
  function buildFindFirstDocument(operationName, queryField, select, args, filterTypeName, connectionFieldsMap) {
227
227
  const selections = select
@@ -262,7 +262,7 @@ function buildFindFirstDocument(operationName, queryField, select, args, filterT
262
262
  }),
263
263
  ],
264
264
  });
265
- return { document: (0, graphql_web_1.print)(document), variables };
265
+ return { document: (0, runtime_1.print)(document), variables };
266
266
  }
267
267
  function buildCreateDocument(operationName, mutationField, entityField, select, data, inputTypeName, connectionFieldsMap) {
268
268
  const selections = select
@@ -342,7 +342,7 @@ function buildFindOneDocument(operationName, queryField, id, select, idArgName,
342
342
  const variableDefinitions = [
343
343
  t.variableDefinition({
344
344
  variable: t.variable({ name: idArgName }),
345
- type: (0, graphql_web_1.parseType)(idTypeName),
345
+ type: (0, runtime_1.parseType)(idTypeName),
346
346
  }),
347
347
  ];
348
348
  const queryArgs = [
@@ -370,7 +370,7 @@ function buildFindOneDocument(operationName, queryField, id, select, idArgName,
370
370
  ],
371
371
  });
372
372
  return {
373
- document: (0, graphql_web_1.print)(document),
373
+ document: (0, runtime_1.print)(document),
374
374
  variables: { [idArgName]: id },
375
375
  };
376
376
  }
@@ -445,7 +445,7 @@ function buildCustomDocument(operationType, operationName, fieldName, select, ar
445
445
  : [];
446
446
  const variableDefs = variableDefinitions.map((definition) => t.variableDefinition({
447
447
  variable: t.variable({ name: definition.name }),
448
- type: (0, graphql_web_1.parseType)(definition.type),
448
+ type: (0, runtime_1.parseType)(definition.type),
449
449
  }));
450
450
  const fieldArgs = variableDefinitions.map((definition) => t.argument({
451
451
  name: definition.name,
@@ -473,7 +473,7 @@ function buildCustomDocument(operationType, operationName, fieldName, select, ar
473
473
  ],
474
474
  });
475
475
  return {
476
- document: (0, graphql_web_1.print)(document),
476
+ document: (0, runtime_1.print)(document),
477
477
  variables: (args ?? {}),
478
478
  };
479
479
  }
@@ -551,7 +551,7 @@ function buildInputMutationDocument(config) {
551
551
  variableDefinitions: [
552
552
  t.variableDefinition({
553
553
  variable: t.variable({ name: 'input' }),
554
- type: (0, graphql_web_1.parseType)(config.inputTypeName + '!'),
554
+ type: (0, runtime_1.parseType)(config.inputTypeName + '!'),
555
555
  }),
556
556
  ],
557
557
  selectionSet: t.selectionSet({
@@ -573,14 +573,14 @@ function buildInputMutationDocument(config) {
573
573
  }),
574
574
  ],
575
575
  });
576
- return (0, graphql_web_1.print)(document);
576
+ return (0, runtime_1.print)(document);
577
577
  }
578
578
  function addVariable(spec, definitions, args, variables) {
579
579
  if (spec.value === undefined || !spec.typeName)
580
580
  return;
581
581
  definitions.push(t.variableDefinition({
582
582
  variable: t.variable({ name: spec.varName }),
583
- type: (0, graphql_web_1.parseType)(spec.typeName),
583
+ type: (0, runtime_1.parseType)(spec.typeName),
584
584
  }));
585
585
  args.push(t.argument({
586
586
  name: spec.argName ?? spec.varName,
@@ -3,8 +3,8 @@
3
3
  * @generated by @constructive-io/graphql-codegen
4
4
  * DO NOT EDIT - changes will be overwritten
5
5
  */
6
- import type { GraphQLAdapter, GraphQLError, QueryResult } from '@constructive-io/graphql-types';
7
- export type { GraphQLAdapter, GraphQLError, QueryResult } from '@constructive-io/graphql-types';
6
+ import type { GraphQLAdapter, GraphQLError, QueryResult } from '@constructive-io/graphql-query/runtime';
7
+ export type { GraphQLAdapter, GraphQLError, QueryResult, } from '@constructive-io/graphql-query/runtime';
8
8
  /**
9
9
  * Default adapter that uses fetch for HTTP requests.
10
10
  * This is used when no custom adapter is provided.
@@ -3,7 +3,7 @@
3
3
  * @generated by @constructive-io/graphql-codegen
4
4
  * DO NOT EDIT - changes will be overwritten
5
5
  */
6
- import { parseType, print } from '@0no-co/graphql.web';
6
+ import { parseType, print } from '@constructive-io/graphql-query/runtime';
7
7
  import * as t from 'gql-ast';
8
8
  import { GraphQLRequestError } from './client';
9
9
  export class QueryBuilder {
@@ -3,8 +3,8 @@
3
3
  * @generated by @constructive-io/graphql-codegen
4
4
  * DO NOT EDIT - changes will be overwritten
5
5
  */
6
- import type { GraphQLAdapter, GraphQLError, QueryResult } from '@constructive-io/graphql-types';
7
- export type { GraphQLAdapter, GraphQLError, QueryResult } from '@constructive-io/graphql-types';
6
+ import type { GraphQLAdapter, GraphQLError, QueryResult } from '@constructive-io/graphql-query/runtime';
7
+ export type { GraphQLAdapter, GraphQLError, QueryResult, } from '@constructive-io/graphql-query/runtime';
8
8
  /**
9
9
  * Default adapter that uses fetch for HTTP requests.
10
10
  * This is used when no custom adapter is provided.
@@ -3,7 +3,7 @@
3
3
  * @generated by @constructive-io/graphql-codegen
4
4
  * DO NOT EDIT - changes will be overwritten
5
5
  */
6
- import { parseType, print } from '@0no-co/graphql.web';
6
+ import { parseType, print } from '@constructive-io/graphql-query/runtime';
7
7
  import * as t from 'gql-ast';
8
8
  import { GraphQLRequestError } from './client';
9
9
  export class QueryBuilder {
@@ -3,8 +3,8 @@
3
3
  * @generated by @constructive-io/graphql-codegen
4
4
  * DO NOT EDIT - changes will be overwritten
5
5
  */
6
- import type { GraphQLAdapter, GraphQLError, QueryResult } from '@constructive-io/graphql-types';
7
- export type { GraphQLAdapter, GraphQLError, QueryResult } from '@constructive-io/graphql-types';
6
+ import type { GraphQLAdapter, GraphQLError, QueryResult } from '@constructive-io/graphql-query/runtime';
7
+ export type { GraphQLAdapter, GraphQLError, QueryResult, } from '@constructive-io/graphql-query/runtime';
8
8
  /**
9
9
  * Default adapter that uses fetch for HTTP requests.
10
10
  * This is used when no custom adapter is provided.
@@ -3,7 +3,7 @@
3
3
  * @generated by @constructive-io/graphql-codegen
4
4
  * DO NOT EDIT - changes will be overwritten
5
5
  */
6
- import { parseType, print } from '@0no-co/graphql.web';
6
+ import { parseType, print } from '@constructive-io/graphql-query/runtime';
7
7
  import * as t from 'gql-ast';
8
8
  import { GraphQLRequestError } from './client';
9
9
  export class QueryBuilder {
@@ -3,8 +3,8 @@
3
3
  * @generated by @constructive-io/graphql-codegen
4
4
  * DO NOT EDIT - changes will be overwritten
5
5
  */
6
- import type { GraphQLAdapter, GraphQLError, QueryResult } from '@constructive-io/graphql-types';
7
- export type { GraphQLAdapter, GraphQLError, QueryResult } from '@constructive-io/graphql-types';
6
+ import type { GraphQLAdapter, GraphQLError, QueryResult } from '@constructive-io/graphql-query/runtime';
7
+ export type { GraphQLAdapter, GraphQLError, QueryResult, } from '@constructive-io/graphql-query/runtime';
8
8
  /**
9
9
  * Default adapter that uses fetch for HTTP requests.
10
10
  * This is used when no custom adapter is provided.
@@ -3,7 +3,7 @@
3
3
  * @generated by @constructive-io/graphql-codegen
4
4
  * DO NOT EDIT - changes will be overwritten
5
5
  */
6
- import { parseType, print } from '@0no-co/graphql.web';
6
+ import { parseType, print } from '@constructive-io/graphql-query/runtime';
7
7
  import * as t from 'gql-ast';
8
8
  import { GraphQLRequestError } from './client';
9
9
  export class QueryBuilder {
@@ -3,8 +3,8 @@
3
3
  * @generated by @constructive-io/graphql-codegen
4
4
  * DO NOT EDIT - changes will be overwritten
5
5
  */
6
- import type { GraphQLAdapter, GraphQLError, QueryResult } from '@constructive-io/graphql-types';
7
- export type { GraphQLAdapter, GraphQLError, QueryResult } from '@constructive-io/graphql-types';
6
+ import type { GraphQLAdapter, GraphQLError, QueryResult } from '@constructive-io/graphql-query/runtime';
7
+ export type { GraphQLAdapter, GraphQLError, QueryResult, } from '@constructive-io/graphql-query/runtime';
8
8
  /**
9
9
  * Default adapter that uses fetch for HTTP requests.
10
10
  * This is used when no custom adapter is provided.
@@ -50,7 +50,7 @@ exports.buildCustomDocument = buildCustomDocument;
50
50
  * @generated by @constructive-io/graphql-codegen
51
51
  * DO NOT EDIT - changes will be overwritten
52
52
  */
53
- const graphql_web_1 = require("@0no-co/graphql.web");
53
+ const runtime_1 = require("@constructive-io/graphql-query/runtime");
54
54
  const t = __importStar(require("gql-ast"));
55
55
  const client_1 = require("./client");
56
56
  class QueryBuilder {
@@ -221,7 +221,7 @@ function buildFindManyDocument(operationName, queryField, select, args, filterTy
221
221
  }),
222
222
  ],
223
223
  });
224
- return { document: (0, graphql_web_1.print)(document), variables };
224
+ return { document: (0, runtime_1.print)(document), variables };
225
225
  }
226
226
  function buildFindFirstDocument(operationName, queryField, select, args, filterTypeName, connectionFieldsMap) {
227
227
  const selections = select
@@ -262,7 +262,7 @@ function buildFindFirstDocument(operationName, queryField, select, args, filterT
262
262
  }),
263
263
  ],
264
264
  });
265
- return { document: (0, graphql_web_1.print)(document), variables };
265
+ return { document: (0, runtime_1.print)(document), variables };
266
266
  }
267
267
  function buildCreateDocument(operationName, mutationField, entityField, select, data, inputTypeName, connectionFieldsMap) {
268
268
  const selections = select
@@ -342,7 +342,7 @@ function buildFindOneDocument(operationName, queryField, id, select, idArgName,
342
342
  const variableDefinitions = [
343
343
  t.variableDefinition({
344
344
  variable: t.variable({ name: idArgName }),
345
- type: (0, graphql_web_1.parseType)(idTypeName),
345
+ type: (0, runtime_1.parseType)(idTypeName),
346
346
  }),
347
347
  ];
348
348
  const queryArgs = [
@@ -370,7 +370,7 @@ function buildFindOneDocument(operationName, queryField, id, select, idArgName,
370
370
  ],
371
371
  });
372
372
  return {
373
- document: (0, graphql_web_1.print)(document),
373
+ document: (0, runtime_1.print)(document),
374
374
  variables: { [idArgName]: id },
375
375
  };
376
376
  }
@@ -445,7 +445,7 @@ function buildCustomDocument(operationType, operationName, fieldName, select, ar
445
445
  : [];
446
446
  const variableDefs = variableDefinitions.map((definition) => t.variableDefinition({
447
447
  variable: t.variable({ name: definition.name }),
448
- type: (0, graphql_web_1.parseType)(definition.type),
448
+ type: (0, runtime_1.parseType)(definition.type),
449
449
  }));
450
450
  const fieldArgs = variableDefinitions.map((definition) => t.argument({
451
451
  name: definition.name,
@@ -473,7 +473,7 @@ function buildCustomDocument(operationType, operationName, fieldName, select, ar
473
473
  ],
474
474
  });
475
475
  return {
476
- document: (0, graphql_web_1.print)(document),
476
+ document: (0, runtime_1.print)(document),
477
477
  variables: (args ?? {}),
478
478
  };
479
479
  }
@@ -551,7 +551,7 @@ function buildInputMutationDocument(config) {
551
551
  variableDefinitions: [
552
552
  t.variableDefinition({
553
553
  variable: t.variable({ name: 'input' }),
554
- type: (0, graphql_web_1.parseType)(config.inputTypeName + '!'),
554
+ type: (0, runtime_1.parseType)(config.inputTypeName + '!'),
555
555
  }),
556
556
  ],
557
557
  selectionSet: t.selectionSet({
@@ -573,14 +573,14 @@ function buildInputMutationDocument(config) {
573
573
  }),
574
574
  ],
575
575
  });
576
- return (0, graphql_web_1.print)(document);
576
+ return (0, runtime_1.print)(document);
577
577
  }
578
578
  function addVariable(spec, definitions, args, variables) {
579
579
  if (spec.value === undefined || !spec.typeName)
580
580
  return;
581
581
  definitions.push(t.variableDefinition({
582
582
  variable: t.variable({ name: spec.varName }),
583
- type: (0, graphql_web_1.parseType)(spec.typeName),
583
+ type: (0, runtime_1.parseType)(spec.typeName),
584
584
  }));
585
585
  args.push(t.argument({
586
586
  name: spec.argName ?? spec.varName,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@constructive-io/sdk",
3
- "version": "0.14.11",
3
+ "version": "0.14.12",
4
4
  "author": "Constructive <developers@constructive.io>",
5
5
  "description": "Constructive SDK - Auto-generated GraphQL types and ORM client",
6
6
  "main": "index.js",
@@ -42,16 +42,17 @@
42
42
  ],
43
43
  "dependencies": {
44
44
  "@0no-co/graphql.web": "^1.1.2",
45
+ "@constructive-io/graphql-query": "^3.15.1",
45
46
  "@constructive-io/graphql-types": "^3.5.1",
46
47
  "gql-ast": "^3.5.0",
47
48
  "graphql": "16.13.0"
48
49
  },
49
50
  "devDependencies": {
50
- "@constructive-io/graphql-codegen": "^4.31.0",
51
+ "@constructive-io/graphql-codegen": "^4.31.1",
51
52
  "@types/node": "^22.19.11",
52
53
  "makage": "^0.3.0",
53
54
  "tsx": "^4.19.0",
54
55
  "typescript": "^5.9.3"
55
56
  },
56
- "gitHead": "434a578648cb04d3ed25e79a75c654f71573292f"
57
+ "gitHead": "90b15540015a927e45846923843fc1af36f5bed7"
57
58
  }
@@ -3,8 +3,8 @@
3
3
  * @generated by @constructive-io/graphql-codegen
4
4
  * DO NOT EDIT - changes will be overwritten
5
5
  */
6
- import type { GraphQLAdapter, GraphQLError, QueryResult } from '@constructive-io/graphql-types';
7
- export type { GraphQLAdapter, GraphQLError, QueryResult } from '@constructive-io/graphql-types';
6
+ import type { GraphQLAdapter, GraphQLError, QueryResult } from '@constructive-io/graphql-query/runtime';
7
+ export type { GraphQLAdapter, GraphQLError, QueryResult, } from '@constructive-io/graphql-query/runtime';
8
8
  /**
9
9
  * Default adapter that uses fetch for HTTP requests.
10
10
  * This is used when no custom adapter is provided.
@@ -50,7 +50,7 @@ exports.buildCustomDocument = buildCustomDocument;
50
50
  * @generated by @constructive-io/graphql-codegen
51
51
  * DO NOT EDIT - changes will be overwritten
52
52
  */
53
- const graphql_web_1 = require("@0no-co/graphql.web");
53
+ const runtime_1 = require("@constructive-io/graphql-query/runtime");
54
54
  const t = __importStar(require("gql-ast"));
55
55
  const client_1 = require("./client");
56
56
  class QueryBuilder {
@@ -221,7 +221,7 @@ function buildFindManyDocument(operationName, queryField, select, args, filterTy
221
221
  }),
222
222
  ],
223
223
  });
224
- return { document: (0, graphql_web_1.print)(document), variables };
224
+ return { document: (0, runtime_1.print)(document), variables };
225
225
  }
226
226
  function buildFindFirstDocument(operationName, queryField, select, args, filterTypeName, connectionFieldsMap) {
227
227
  const selections = select
@@ -262,7 +262,7 @@ function buildFindFirstDocument(operationName, queryField, select, args, filterT
262
262
  }),
263
263
  ],
264
264
  });
265
- return { document: (0, graphql_web_1.print)(document), variables };
265
+ return { document: (0, runtime_1.print)(document), variables };
266
266
  }
267
267
  function buildCreateDocument(operationName, mutationField, entityField, select, data, inputTypeName, connectionFieldsMap) {
268
268
  const selections = select
@@ -342,7 +342,7 @@ function buildFindOneDocument(operationName, queryField, id, select, idArgName,
342
342
  const variableDefinitions = [
343
343
  t.variableDefinition({
344
344
  variable: t.variable({ name: idArgName }),
345
- type: (0, graphql_web_1.parseType)(idTypeName),
345
+ type: (0, runtime_1.parseType)(idTypeName),
346
346
  }),
347
347
  ];
348
348
  const queryArgs = [
@@ -370,7 +370,7 @@ function buildFindOneDocument(operationName, queryField, id, select, idArgName,
370
370
  ],
371
371
  });
372
372
  return {
373
- document: (0, graphql_web_1.print)(document),
373
+ document: (0, runtime_1.print)(document),
374
374
  variables: { [idArgName]: id },
375
375
  };
376
376
  }
@@ -445,7 +445,7 @@ function buildCustomDocument(operationType, operationName, fieldName, select, ar
445
445
  : [];
446
446
  const variableDefs = variableDefinitions.map((definition) => t.variableDefinition({
447
447
  variable: t.variable({ name: definition.name }),
448
- type: (0, graphql_web_1.parseType)(definition.type),
448
+ type: (0, runtime_1.parseType)(definition.type),
449
449
  }));
450
450
  const fieldArgs = variableDefinitions.map((definition) => t.argument({
451
451
  name: definition.name,
@@ -473,7 +473,7 @@ function buildCustomDocument(operationType, operationName, fieldName, select, ar
473
473
  ],
474
474
  });
475
475
  return {
476
- document: (0, graphql_web_1.print)(document),
476
+ document: (0, runtime_1.print)(document),
477
477
  variables: (args ?? {}),
478
478
  };
479
479
  }
@@ -551,7 +551,7 @@ function buildInputMutationDocument(config) {
551
551
  variableDefinitions: [
552
552
  t.variableDefinition({
553
553
  variable: t.variable({ name: 'input' }),
554
- type: (0, graphql_web_1.parseType)(config.inputTypeName + '!'),
554
+ type: (0, runtime_1.parseType)(config.inputTypeName + '!'),
555
555
  }),
556
556
  ],
557
557
  selectionSet: t.selectionSet({
@@ -573,14 +573,14 @@ function buildInputMutationDocument(config) {
573
573
  }),
574
574
  ],
575
575
  });
576
- return (0, graphql_web_1.print)(document);
576
+ return (0, runtime_1.print)(document);
577
577
  }
578
578
  function addVariable(spec, definitions, args, variables) {
579
579
  if (spec.value === undefined || !spec.typeName)
580
580
  return;
581
581
  definitions.push(t.variableDefinition({
582
582
  variable: t.variable({ name: spec.varName }),
583
- type: (0, graphql_web_1.parseType)(spec.typeName),
583
+ type: (0, runtime_1.parseType)(spec.typeName),
584
584
  }));
585
585
  args.push(t.argument({
586
586
  name: spec.argName ?? spec.varName,