@constructive-io/graphql-query 4.11.6 → 4.11.8

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.
package/client/error.d.ts CHANGED
@@ -9,7 +9,7 @@
9
9
  * message string-matching anymore.
10
10
  */
11
11
  import { ConstructiveError } from '@constructive-io/errors';
12
- export { ConstructiveError, classify, format, isPublicCode, parse, type ErrorClass, type ErrorContext, type ParsedError, toError, } from '@constructive-io/errors';
12
+ export { classify, ConstructiveError, type ErrorClass, type ErrorContext, format, isPublicCode, parse, type ParsedError, toError, } from '@constructive-io/errors';
13
13
  /** Shape of a single GraphQL error entry in a response `errors[]` array. */
14
14
  export interface GraphQLError {
15
15
  message: string;
package/client/error.js CHANGED
@@ -10,15 +10,15 @@
10
10
  * message string-matching anymore.
11
11
  */
12
12
  Object.defineProperty(exports, "__esModule", { value: true });
13
- exports.createError = exports.toError = exports.parse = exports.isPublicCode = exports.format = exports.classify = exports.ConstructiveError = void 0;
13
+ exports.createError = exports.toError = exports.parse = exports.isPublicCode = exports.format = exports.ConstructiveError = exports.classify = void 0;
14
14
  exports.parseGraphQLError = parseGraphQLError;
15
15
  exports.isConstructiveError = isConstructiveError;
16
16
  exports.isRetryable = isRetryable;
17
17
  exports.isPublicError = isPublicError;
18
18
  const errors_1 = require("@constructive-io/errors");
19
19
  var errors_2 = require("@constructive-io/errors");
20
- Object.defineProperty(exports, "ConstructiveError", { enumerable: true, get: function () { return errors_2.ConstructiveError; } });
21
20
  Object.defineProperty(exports, "classify", { enumerable: true, get: function () { return errors_2.classify; } });
21
+ Object.defineProperty(exports, "ConstructiveError", { enumerable: true, get: function () { return errors_2.ConstructiveError; } });
22
22
  Object.defineProperty(exports, "format", { enumerable: true, get: function () { return errors_2.format; } });
23
23
  Object.defineProperty(exports, "isPublicCode", { enumerable: true, get: function () { return errors_2.isPublicCode; } });
24
24
  Object.defineProperty(exports, "parse", { enumerable: true, get: function () { return errors_2.parse; } });
package/client/index.d.ts CHANGED
@@ -3,6 +3,6 @@
3
3
  *
4
4
  * Re-exports client utilities for GraphQL execution and error handling.
5
5
  */
6
- export { TypedDocumentString, type DocumentTypeDecoration, } from './typed-document';
7
- export { ConstructiveError, classify, createError, format, isConstructiveError, isPublicCode, isPublicError, isRetryable, parse, parseGraphQLError, toError, type ErrorClass, type ErrorContext, type GraphQLError, type ParsedError, } from './error';
8
- export { execute, createGraphQLClient, type ExecuteOptions, type GraphQLResponse, type GraphQLClientOptions, type GraphQLClient, } from './execute';
6
+ export { classify, ConstructiveError, createError, type ErrorClass, type ErrorContext, format, type GraphQLError, isConstructiveError, isPublicCode, isPublicError, isRetryable, parse, type ParsedError, parseGraphQLError, toError, } from './error';
7
+ export { createGraphQLClient, execute, type ExecuteOptions, type GraphQLClient, type GraphQLClientOptions, type GraphQLResponse, } from './execute';
8
+ export { type DocumentTypeDecoration, TypedDocumentString, } from './typed-document';
package/client/index.js CHANGED
@@ -5,12 +5,10 @@
5
5
  * Re-exports client utilities for GraphQL execution and error handling.
6
6
  */
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
- exports.createGraphQLClient = exports.execute = exports.toError = exports.parseGraphQLError = exports.parse = exports.isRetryable = exports.isPublicError = exports.isPublicCode = exports.isConstructiveError = exports.format = exports.createError = exports.classify = exports.ConstructiveError = exports.TypedDocumentString = void 0;
9
- var typed_document_1 = require("./typed-document");
10
- Object.defineProperty(exports, "TypedDocumentString", { enumerable: true, get: function () { return typed_document_1.TypedDocumentString; } });
8
+ exports.TypedDocumentString = exports.execute = exports.createGraphQLClient = exports.toError = exports.parseGraphQLError = exports.parse = exports.isRetryable = exports.isPublicError = exports.isPublicCode = exports.isConstructiveError = exports.format = exports.createError = exports.ConstructiveError = exports.classify = void 0;
11
9
  var error_1 = require("./error");
12
- Object.defineProperty(exports, "ConstructiveError", { enumerable: true, get: function () { return error_1.ConstructiveError; } });
13
10
  Object.defineProperty(exports, "classify", { enumerable: true, get: function () { return error_1.classify; } });
11
+ Object.defineProperty(exports, "ConstructiveError", { enumerable: true, get: function () { return error_1.ConstructiveError; } });
14
12
  Object.defineProperty(exports, "createError", { enumerable: true, get: function () { return error_1.createError; } });
15
13
  Object.defineProperty(exports, "format", { enumerable: true, get: function () { return error_1.format; } });
16
14
  Object.defineProperty(exports, "isConstructiveError", { enumerable: true, get: function () { return error_1.isConstructiveError; } });
@@ -21,5 +19,7 @@ Object.defineProperty(exports, "parse", { enumerable: true, get: function () { r
21
19
  Object.defineProperty(exports, "parseGraphQLError", { enumerable: true, get: function () { return error_1.parseGraphQLError; } });
22
20
  Object.defineProperty(exports, "toError", { enumerable: true, get: function () { return error_1.toError; } });
23
21
  var execute_1 = require("./execute");
24
- Object.defineProperty(exports, "execute", { enumerable: true, get: function () { return execute_1.execute; } });
25
22
  Object.defineProperty(exports, "createGraphQLClient", { enumerable: true, get: function () { return execute_1.createGraphQLClient; } });
23
+ Object.defineProperty(exports, "execute", { enumerable: true, get: function () { return execute_1.execute; } });
24
+ var typed_document_1 = require("./typed-document");
25
+ Object.defineProperty(exports, "TypedDocumentString", { enumerable: true, get: function () { return typed_document_1.TypedDocumentString; } });
package/custom-ast.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import type { FieldNode } from 'graphql';
2
- import type { Field } from './types/schema';
3
2
  import type { MetaField } from './types';
3
+ import type { Field } from './types/schema';
4
4
  /**
5
5
  * Get custom AST for MetaField type - handles PostgreSQL types that need subfield selections
6
6
  */
package/esm/ast.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as t from 'gql-ast';
2
2
  import { OperationTypeNode } from 'graphql';
3
- import { toCamelCase, singularize } from 'inflekt';
3
+ import { singularize, toCamelCase } from 'inflekt';
4
4
  import { getCustomAst } from './custom-ast';
5
5
  const NON_MUTABLE_PROPS = ['createdAt', 'createdBy', 'updatedAt', 'updatedBy'];
6
6
  const objectToArray = (obj) => Object.keys(obj).map((k) => ({
@@ -9,7 +9,7 @@
9
9
  * message string-matching anymore.
10
10
  */
11
11
  import { ConstructiveError, errors, isPublicCode, parse, toError, } from '@constructive-io/errors';
12
- export { ConstructiveError, classify, format, isPublicCode, parse, toError, } from '@constructive-io/errors';
12
+ export { classify, ConstructiveError, format, isPublicCode, parse, toError, } from '@constructive-io/errors';
13
13
  /**
14
14
  * Parse any error (pg error, GraphQL error/response, `ConstructiveError`, plain
15
15
  * `Error`, or string) into a throwable {@link ConstructiveError}.
@@ -3,6 +3,6 @@
3
3
  *
4
4
  * Re-exports client utilities for GraphQL execution and error handling.
5
5
  */
6
+ export { classify, ConstructiveError, createError, format, isConstructiveError, isPublicCode, isPublicError, isRetryable, parse, parseGraphQLError, toError, } from './error';
7
+ export { createGraphQLClient, execute, } from './execute';
6
8
  export { TypedDocumentString, } from './typed-document';
7
- export { ConstructiveError, classify, createError, format, isConstructiveError, isPublicCode, isPublicError, isRetryable, parse, parseGraphQLError, toError, } from './error';
8
- export { execute, createGraphQLClient, } from './execute';
package/esm/executor.js CHANGED
@@ -5,10 +5,10 @@
5
5
  * against a PostgreSQL database using PostGraphile v5's Grafast execution engine.
6
6
  */
7
7
  import { execute } from 'grafast';
8
- import { postgraphile } from 'postgraphile';
9
- import { ConstructivePreset, makePgService } from 'graphile-settings';
10
8
  import { withPgClientFromPgService } from 'graphile-build-pg';
9
+ import { ConstructivePreset, makePgService } from 'graphile-settings';
11
10
  import { LRUCache } from 'lru-cache';
11
+ import { postgraphile } from 'postgraphile';
12
12
  /**
13
13
  * Global cache for executor instances, keyed by connection string + schemas
14
14
  */
@@ -1,3 +1,7 @@
1
+ /**
2
+ * Simplified field selection system
3
+ * Converts user-friendly selection options to internal SelectionOptions format
4
+ */
1
5
  import { fuzzyFindByName } from 'inflekt';
2
6
  const relationalFieldSetCache = new WeakMap();
3
7
  function getRelationalFieldSet(table) {
@@ -4,10 +4,10 @@
4
4
  * Re-exports all query/mutation generation functions and naming helpers.
5
5
  */
6
6
  // SELECT, FindOne, Count query generators
7
- export { buildSelect, buildFindOne, buildCount, cleanTableToMetaObject, createASTQueryBuilder, generateIntrospectionSchema, } from './select';
7
+ export { buildCount, buildFindOne, buildSelect, cleanTableToMetaObject, createASTQueryBuilder, generateIntrospectionSchema, } from './select';
8
8
  // Mutation generators (CREATE, UPDATE, DELETE)
9
- export { buildPostGraphileCreate, buildPostGraphileUpdate, buildPostGraphileDelete, } from './mutations';
9
+ export { buildPostGraphileCreate, buildPostGraphileDelete, buildPostGraphileUpdate, } from './mutations';
10
10
  // Field selection utilities
11
- export { convertToSelectionOptions, isRelationalField, getAvailableRelations, validateFieldSelection, } from './field-selector';
11
+ export { convertToSelectionOptions, getAvailableRelations, isRelationalField, validateFieldSelection, } from './field-selector';
12
12
  // Naming helpers (server-aware inflection)
13
- export { normalizeInflectionValue, toCamelCasePlural, toCamelCaseSingular, toCreateMutationName, toUpdateMutationName, toDeleteMutationName, toCreateInputTypeName, toUpdateInputTypeName, toDeleteInputTypeName, toFilterTypeName, toOrderByTypeName, toPatchFieldName, toOrderByEnumValue, } from './naming-helpers';
13
+ export { normalizeInflectionValue, toCamelCasePlural, toCamelCaseSingular, toCreateInputTypeName, toCreateMutationName, toDeleteInputTypeName, toDeleteMutationName, toFilterTypeName, toOrderByEnumValue, toOrderByTypeName, toPatchFieldName, toUpdateInputTypeName, toUpdateMutationName, } from './naming-helpers';
@@ -7,7 +7,7 @@
7
7
  *
8
8
  * Back-ported from Dashboard's `packages/data/src/query-generator.ts`.
9
9
  */
10
- import { toCamelCase, toConstantCase, pluralize } from 'inflekt';
10
+ import { pluralize, toCamelCase, toConstantCase } from 'inflekt';
11
11
  // ---------------------------------------------------------------------------
12
12
  // Internal helpers
13
13
  // ---------------------------------------------------------------------------
@@ -4,11 +4,11 @@
4
4
  */
5
5
  import * as t from 'gql-ast';
6
6
  import { Kind, OperationTypeNode, print } from 'graphql';
7
+ import { fuzzyFindByName } from 'inflekt';
7
8
  import { TypedDocumentString } from '../client/typed-document';
8
9
  import { getCustomAstForCleanField, requiresSubfieldSelection, } from '../custom-ast';
9
10
  import { QueryBuilder } from '../query-builder';
10
11
  import { convertToSelectionOptions, isRelationalField } from './field-selector';
11
- import { fuzzyFindByName } from 'inflekt';
12
12
  import { normalizeInflectionValue, toCamelCasePlural, toCamelCaseSingular, toCreateInputTypeName, toCreateMutationName, toDeleteInputTypeName, toDeleteMutationName, toFilterTypeName, toOrderByTypeName, toPatchFieldName, toUpdateInputTypeName, toUpdateMutationName, } from './naming-helpers';
13
13
  /**
14
14
  * Convert Table to MetaObject format for QueryBuilder
package/esm/index.js CHANGED
@@ -12,7 +12,7 @@
12
12
  // QueryBuilder class (runtime query builder)
13
13
  export { QueryBuilder } from './query-builder';
14
14
  // QueryExecutor (server-side execution via PostGraphile)
15
- export { QueryExecutor, createExecutor } from './executor';
15
+ export { createExecutor, QueryExecutor } from './executor';
16
16
  // AST builders (getAll, getMany, getOne, createOne, patchOne, deleteOne)
17
17
  export * from './ast';
18
18
  // Custom AST (geometry, interval, etc.)
@@ -4,6 +4,6 @@
4
4
  * Re-exports introspection utilities for converting GraphQL schemas to Table format.
5
5
  */
6
6
  export * from './infer-tables';
7
+ export * from './schema-query';
7
8
  export * from './transform';
8
9
  export * from './transform-schema';
9
- export * from './schema-query';
@@ -13,8 +13,8 @@
13
13
  * - Mutation operations: create{Name}, update{Name}, delete{Name}
14
14
  */
15
15
  import { lcFirst, pluralize, singularize, ucFirst } from 'inflekt';
16
- import { parseSmartTags, stripSmartComments } from '../utils';
17
16
  import { getBaseTypeName, isList, isNonNull, unwrapType } from '../types/introspection';
17
+ import { parseSmartTags, stripSmartComments } from '../utils';
18
18
  // ============================================================================
19
19
  // Pattern Matching Constants
20
20
  // ============================================================================
@@ -1,5 +1,5 @@
1
1
  import { print as gqlPrint } from 'graphql';
2
- import { toCamelCase, toPascalCase, toSnakeCase, pluralize } from 'inflekt';
2
+ import { pluralize, toCamelCase, toPascalCase, toSnakeCase } from 'inflekt';
3
3
  import { createOne, deleteOne, getAll, getCount, getMany, getOne, patchOne, } from './ast';
4
4
  import { validateMetaObject } from './meta-object';
5
5
  export * as MetaObject from './meta-object';
package/executor.js CHANGED
@@ -8,10 +8,10 @@
8
8
  Object.defineProperty(exports, "__esModule", { value: true });
9
9
  exports.createExecutor = exports.QueryExecutor = void 0;
10
10
  const grafast_1 = require("grafast");
11
- const postgraphile_1 = require("postgraphile");
12
- const graphile_settings_1 = require("graphile-settings");
13
11
  const graphile_build_pg_1 = require("graphile-build-pg");
12
+ const graphile_settings_1 = require("graphile-settings");
14
13
  const lru_cache_1 = require("lru-cache");
14
+ const postgraphile_1 = require("postgraphile");
15
15
  /**
16
16
  * Global cache for executor instances, keyed by connection string + schemas
17
17
  */
@@ -1,7 +1,3 @@
1
- /**
2
- * Simplified field selection system
3
- * Converts user-friendly selection options to internal SelectionOptions format
4
- */
5
1
  import type { QuerySelectionOptions } from '../types';
6
2
  import type { Table } from '../types/schema';
7
3
  import type { FieldSelection } from '../types/selection';
@@ -4,6 +4,10 @@ exports.convertToSelectionOptions = convertToSelectionOptions;
4
4
  exports.isRelationalField = isRelationalField;
5
5
  exports.getAvailableRelations = getAvailableRelations;
6
6
  exports.validateFieldSelection = validateFieldSelection;
7
+ /**
8
+ * Simplified field selection system
9
+ * Converts user-friendly selection options to internal SelectionOptions format
10
+ */
7
11
  const inflekt_1 = require("inflekt");
8
12
  const relationalFieldSetCache = new WeakMap();
9
13
  function getRelationalFieldSet(table) {
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * Re-exports all query/mutation generation functions and naming helpers.
5
5
  */
6
- export { buildSelect, buildFindOne, buildCount, cleanTableToMetaObject, createASTQueryBuilder, generateIntrospectionSchema, } from './select';
7
- export { buildPostGraphileCreate, buildPostGraphileUpdate, buildPostGraphileDelete, } from './mutations';
8
- export { convertToSelectionOptions, isRelationalField, getAvailableRelations, validateFieldSelection, } from './field-selector';
9
- export { normalizeInflectionValue, toCamelCasePlural, toCamelCaseSingular, toCreateMutationName, toUpdateMutationName, toDeleteMutationName, toCreateInputTypeName, toUpdateInputTypeName, toDeleteInputTypeName, toFilterTypeName, toOrderByTypeName, toPatchFieldName, toOrderByEnumValue, } from './naming-helpers';
6
+ export { buildCount, buildFindOne, buildSelect, cleanTableToMetaObject, createASTQueryBuilder, generateIntrospectionSchema, } from './select';
7
+ export { buildPostGraphileCreate, buildPostGraphileDelete, buildPostGraphileUpdate, } from './mutations';
8
+ export { convertToSelectionOptions, getAvailableRelations, isRelationalField, validateFieldSelection, } from './field-selector';
9
+ export { normalizeInflectionValue, toCamelCasePlural, toCamelCaseSingular, toCreateInputTypeName, toCreateMutationName, toDeleteInputTypeName, toDeleteMutationName, toFilterTypeName, toOrderByEnumValue, toOrderByTypeName, toPatchFieldName, toUpdateInputTypeName, toUpdateMutationName, } from './naming-helpers';
@@ -5,38 +5,38 @@
5
5
  * Re-exports all query/mutation generation functions and naming helpers.
6
6
  */
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
- exports.toOrderByEnumValue = exports.toPatchFieldName = exports.toOrderByTypeName = exports.toFilterTypeName = exports.toDeleteInputTypeName = exports.toUpdateInputTypeName = exports.toCreateInputTypeName = exports.toDeleteMutationName = exports.toUpdateMutationName = exports.toCreateMutationName = exports.toCamelCaseSingular = exports.toCamelCasePlural = exports.normalizeInflectionValue = exports.validateFieldSelection = exports.getAvailableRelations = exports.isRelationalField = exports.convertToSelectionOptions = exports.buildPostGraphileDelete = exports.buildPostGraphileUpdate = exports.buildPostGraphileCreate = exports.generateIntrospectionSchema = exports.createASTQueryBuilder = exports.cleanTableToMetaObject = exports.buildCount = exports.buildFindOne = exports.buildSelect = void 0;
8
+ exports.toUpdateMutationName = exports.toUpdateInputTypeName = exports.toPatchFieldName = exports.toOrderByTypeName = exports.toOrderByEnumValue = exports.toFilterTypeName = exports.toDeleteMutationName = exports.toDeleteInputTypeName = exports.toCreateMutationName = exports.toCreateInputTypeName = exports.toCamelCaseSingular = exports.toCamelCasePlural = exports.normalizeInflectionValue = exports.validateFieldSelection = exports.isRelationalField = exports.getAvailableRelations = exports.convertToSelectionOptions = exports.buildPostGraphileUpdate = exports.buildPostGraphileDelete = exports.buildPostGraphileCreate = exports.generateIntrospectionSchema = exports.createASTQueryBuilder = exports.cleanTableToMetaObject = exports.buildSelect = exports.buildFindOne = exports.buildCount = void 0;
9
9
  // SELECT, FindOne, Count query generators
10
10
  var select_1 = require("./select");
11
- Object.defineProperty(exports, "buildSelect", { enumerable: true, get: function () { return select_1.buildSelect; } });
12
- Object.defineProperty(exports, "buildFindOne", { enumerable: true, get: function () { return select_1.buildFindOne; } });
13
11
  Object.defineProperty(exports, "buildCount", { enumerable: true, get: function () { return select_1.buildCount; } });
12
+ Object.defineProperty(exports, "buildFindOne", { enumerable: true, get: function () { return select_1.buildFindOne; } });
13
+ Object.defineProperty(exports, "buildSelect", { enumerable: true, get: function () { return select_1.buildSelect; } });
14
14
  Object.defineProperty(exports, "cleanTableToMetaObject", { enumerable: true, get: function () { return select_1.cleanTableToMetaObject; } });
15
15
  Object.defineProperty(exports, "createASTQueryBuilder", { enumerable: true, get: function () { return select_1.createASTQueryBuilder; } });
16
16
  Object.defineProperty(exports, "generateIntrospectionSchema", { enumerable: true, get: function () { return select_1.generateIntrospectionSchema; } });
17
17
  // Mutation generators (CREATE, UPDATE, DELETE)
18
18
  var mutations_1 = require("./mutations");
19
19
  Object.defineProperty(exports, "buildPostGraphileCreate", { enumerable: true, get: function () { return mutations_1.buildPostGraphileCreate; } });
20
- Object.defineProperty(exports, "buildPostGraphileUpdate", { enumerable: true, get: function () { return mutations_1.buildPostGraphileUpdate; } });
21
20
  Object.defineProperty(exports, "buildPostGraphileDelete", { enumerable: true, get: function () { return mutations_1.buildPostGraphileDelete; } });
21
+ Object.defineProperty(exports, "buildPostGraphileUpdate", { enumerable: true, get: function () { return mutations_1.buildPostGraphileUpdate; } });
22
22
  // Field selection utilities
23
23
  var field_selector_1 = require("./field-selector");
24
24
  Object.defineProperty(exports, "convertToSelectionOptions", { enumerable: true, get: function () { return field_selector_1.convertToSelectionOptions; } });
25
- Object.defineProperty(exports, "isRelationalField", { enumerable: true, get: function () { return field_selector_1.isRelationalField; } });
26
25
  Object.defineProperty(exports, "getAvailableRelations", { enumerable: true, get: function () { return field_selector_1.getAvailableRelations; } });
26
+ Object.defineProperty(exports, "isRelationalField", { enumerable: true, get: function () { return field_selector_1.isRelationalField; } });
27
27
  Object.defineProperty(exports, "validateFieldSelection", { enumerable: true, get: function () { return field_selector_1.validateFieldSelection; } });
28
28
  // Naming helpers (server-aware inflection)
29
29
  var naming_helpers_1 = require("./naming-helpers");
30
30
  Object.defineProperty(exports, "normalizeInflectionValue", { enumerable: true, get: function () { return naming_helpers_1.normalizeInflectionValue; } });
31
31
  Object.defineProperty(exports, "toCamelCasePlural", { enumerable: true, get: function () { return naming_helpers_1.toCamelCasePlural; } });
32
32
  Object.defineProperty(exports, "toCamelCaseSingular", { enumerable: true, get: function () { return naming_helpers_1.toCamelCaseSingular; } });
33
- Object.defineProperty(exports, "toCreateMutationName", { enumerable: true, get: function () { return naming_helpers_1.toCreateMutationName; } });
34
- Object.defineProperty(exports, "toUpdateMutationName", { enumerable: true, get: function () { return naming_helpers_1.toUpdateMutationName; } });
35
- Object.defineProperty(exports, "toDeleteMutationName", { enumerable: true, get: function () { return naming_helpers_1.toDeleteMutationName; } });
36
33
  Object.defineProperty(exports, "toCreateInputTypeName", { enumerable: true, get: function () { return naming_helpers_1.toCreateInputTypeName; } });
37
- Object.defineProperty(exports, "toUpdateInputTypeName", { enumerable: true, get: function () { return naming_helpers_1.toUpdateInputTypeName; } });
34
+ Object.defineProperty(exports, "toCreateMutationName", { enumerable: true, get: function () { return naming_helpers_1.toCreateMutationName; } });
38
35
  Object.defineProperty(exports, "toDeleteInputTypeName", { enumerable: true, get: function () { return naming_helpers_1.toDeleteInputTypeName; } });
36
+ Object.defineProperty(exports, "toDeleteMutationName", { enumerable: true, get: function () { return naming_helpers_1.toDeleteMutationName; } });
39
37
  Object.defineProperty(exports, "toFilterTypeName", { enumerable: true, get: function () { return naming_helpers_1.toFilterTypeName; } });
38
+ Object.defineProperty(exports, "toOrderByEnumValue", { enumerable: true, get: function () { return naming_helpers_1.toOrderByEnumValue; } });
40
39
  Object.defineProperty(exports, "toOrderByTypeName", { enumerable: true, get: function () { return naming_helpers_1.toOrderByTypeName; } });
41
40
  Object.defineProperty(exports, "toPatchFieldName", { enumerable: true, get: function () { return naming_helpers_1.toPatchFieldName; } });
42
- Object.defineProperty(exports, "toOrderByEnumValue", { enumerable: true, get: function () { return naming_helpers_1.toOrderByEnumValue; } });
41
+ Object.defineProperty(exports, "toUpdateInputTypeName", { enumerable: true, get: function () { return naming_helpers_1.toUpdateInputTypeName; } });
42
+ Object.defineProperty(exports, "toUpdateMutationName", { enumerable: true, get: function () { return naming_helpers_1.toUpdateMutationName; } });
@@ -45,11 +45,11 @@ exports.buildCount = buildCount;
45
45
  */
46
46
  const t = __importStar(require("gql-ast"));
47
47
  const graphql_1 = require("graphql");
48
+ const inflekt_1 = require("inflekt");
48
49
  const typed_document_1 = require("../client/typed-document");
49
50
  const custom_ast_1 = require("../custom-ast");
50
51
  const query_builder_1 = require("../query-builder");
51
52
  const field_selector_1 = require("./field-selector");
52
- const inflekt_1 = require("inflekt");
53
53
  const naming_helpers_1 = require("./naming-helpers");
54
54
  /**
55
55
  * Convert Table to MetaObject format for QueryBuilder
package/index.d.ts CHANGED
@@ -10,7 +10,7 @@
10
10
  * Node.js-only build-time features (CLI, file output, watch mode, etc.).
11
11
  */
12
12
  export { QueryBuilder } from './query-builder';
13
- export { QueryExecutor, createExecutor } from './executor';
13
+ export { createExecutor, QueryExecutor } from './executor';
14
14
  export * from './ast';
15
15
  export * from './custom-ast';
16
16
  export * from './types';
package/index.js CHANGED
@@ -47,14 +47,14 @@ var __importStar = (this && this.__importStar) || (function () {
47
47
  };
48
48
  })();
49
49
  Object.defineProperty(exports, "__esModule", { value: true });
50
- exports.stripSmartComments = exports.parseSmartTags = exports.validateMetaObject = exports.convertFromMetaSchema = exports.MetaObject = exports.createExecutor = exports.QueryExecutor = exports.QueryBuilder = void 0;
50
+ exports.stripSmartComments = exports.parseSmartTags = exports.validateMetaObject = exports.convertFromMetaSchema = exports.MetaObject = exports.QueryExecutor = exports.createExecutor = exports.QueryBuilder = void 0;
51
51
  // QueryBuilder class (runtime query builder)
52
52
  var query_builder_1 = require("./query-builder");
53
53
  Object.defineProperty(exports, "QueryBuilder", { enumerable: true, get: function () { return query_builder_1.QueryBuilder; } });
54
54
  // QueryExecutor (server-side execution via PostGraphile)
55
55
  var executor_1 = require("./executor");
56
- Object.defineProperty(exports, "QueryExecutor", { enumerable: true, get: function () { return executor_1.QueryExecutor; } });
57
56
  Object.defineProperty(exports, "createExecutor", { enumerable: true, get: function () { return executor_1.createExecutor; } });
57
+ Object.defineProperty(exports, "QueryExecutor", { enumerable: true, get: function () { return executor_1.QueryExecutor; } });
58
58
  // AST builders (getAll, getMany, getOne, createOne, patchOne, deleteOne)
59
59
  __exportStar(require("./ast"), exports);
60
60
  // Custom AST (geometry, interval, etc.)
@@ -4,6 +4,6 @@
4
4
  * Re-exports introspection utilities for converting GraphQL schemas to Table format.
5
5
  */
6
6
  export * from './infer-tables';
7
+ export * from './schema-query';
7
8
  export * from './transform';
8
9
  export * from './transform-schema';
9
- export * from './schema-query';
@@ -20,6 +20,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
20
20
  };
21
21
  Object.defineProperty(exports, "__esModule", { value: true });
22
22
  __exportStar(require("./infer-tables"), exports);
23
+ __exportStar(require("./schema-query"), exports);
23
24
  __exportStar(require("./transform"), exports);
24
25
  __exportStar(require("./transform-schema"), exports);
25
- __exportStar(require("./schema-query"), exports);
@@ -16,8 +16,8 @@ exports.inferTablesFromIntrospection = inferTablesFromIntrospection;
16
16
  * - Mutation operations: create{Name}, update{Name}, delete{Name}
17
17
  */
18
18
  const inflekt_1 = require("inflekt");
19
- const utils_1 = require("../utils");
20
19
  const introspection_1 = require("../types/introspection");
20
+ const utils_1 = require("../utils");
21
21
  // ============================================================================
22
22
  // Pattern Matching Constants
23
23
  // ============================================================================
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@constructive-io/graphql-query",
3
- "version": "4.11.6",
3
+ "version": "4.11.8",
4
4
  "description": "Constructive GraphQL Query",
5
5
  "author": "Constructive <developers@constructive.io>",
6
6
  "main": "index.js",
@@ -32,13 +32,13 @@
32
32
  "@0no-co/graphql.web": "^1.1.2",
33
33
  "@constructive-io/errors": "^0.8.2",
34
34
  "@constructive-io/fetch": "^1.1.1",
35
- "@constructive-io/graphql-types": "^3.27.2",
35
+ "@constructive-io/graphql-types": "^3.27.3",
36
36
  "ajv": "^8.20.0",
37
37
  "gql-ast": "^3.22.2",
38
38
  "grafast": "1.0.2",
39
39
  "graphile-build-pg": "5.0.2",
40
40
  "graphile-config": "1.0.1",
41
- "graphile-settings": "^6.11.6",
41
+ "graphile-settings": "^6.11.8",
42
42
  "graphql": "16.13.0",
43
43
  "inflection": "^3.0.0",
44
44
  "inflekt": "^0.7.1",
@@ -55,5 +55,5 @@
55
55
  "devDependencies": {
56
56
  "makage": "^0.3.0"
57
57
  },
58
- "gitHead": "45cd961cf956d2d28e4d09b20db4204982c33593"
58
+ "gitHead": "c20b6be96b39bf71c0e2df0f4b51e05deacd006b"
59
59
  }
@@ -17,6 +17,6 @@
17
17
  * import type { GraphQLAdapter } from '@constructive-io/graphql-query/runtime';
18
18
  */
19
19
  export { parseType, print } from '@0no-co/graphql.web';
20
- export type { GraphQLAdapter, GraphQLError, QueryResult } from '@constructive-io/graphql-types';
21
- export { createFetch } from '@constructive-io/fetch';
22
20
  export type { FetchFunction } from '@constructive-io/fetch';
21
+ export { createFetch } from '@constructive-io/fetch';
22
+ export type { GraphQLAdapter, GraphQLError, QueryResult } from '@constructive-io/graphql-types';