@constructive-io/graphql-codegen 5.7.5 → 5.10.0

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
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * Re-export error handling utilities from @constructive-io/graphql-query.
3
3
  */
4
- export { DataError, DataErrorType, PG_ERROR_CODES, createError, parseGraphQLError, isDataError, type DataErrorOptions, type GraphQLError, } from '@constructive-io/graphql-query';
4
+ export { ConstructiveError, classify, createError, format, isConstructiveError, isPublicCode, isPublicError, isRetryable, parse, parseGraphQLError, toError, type ErrorClass, type ErrorContext, type GraphQLError, type ParsedError, } from '@constructive-io/graphql-query';
package/client/error.js CHANGED
@@ -1,13 +1,18 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isDataError = exports.parseGraphQLError = exports.createError = exports.PG_ERROR_CODES = exports.DataErrorType = exports.DataError = void 0;
3
+ exports.toError = exports.parseGraphQLError = exports.parse = exports.isRetryable = exports.isPublicError = exports.isPublicCode = exports.isConstructiveError = exports.format = exports.createError = exports.classify = exports.ConstructiveError = void 0;
4
4
  /**
5
5
  * Re-export error handling utilities from @constructive-io/graphql-query.
6
6
  */
7
7
  var graphql_query_1 = require("@constructive-io/graphql-query");
8
- Object.defineProperty(exports, "DataError", { enumerable: true, get: function () { return graphql_query_1.DataError; } });
9
- Object.defineProperty(exports, "DataErrorType", { enumerable: true, get: function () { return graphql_query_1.DataErrorType; } });
10
- Object.defineProperty(exports, "PG_ERROR_CODES", { enumerable: true, get: function () { return graphql_query_1.PG_ERROR_CODES; } });
8
+ Object.defineProperty(exports, "ConstructiveError", { enumerable: true, get: function () { return graphql_query_1.ConstructiveError; } });
9
+ Object.defineProperty(exports, "classify", { enumerable: true, get: function () { return graphql_query_1.classify; } });
11
10
  Object.defineProperty(exports, "createError", { enumerable: true, get: function () { return graphql_query_1.createError; } });
11
+ Object.defineProperty(exports, "format", { enumerable: true, get: function () { return graphql_query_1.format; } });
12
+ Object.defineProperty(exports, "isConstructiveError", { enumerable: true, get: function () { return graphql_query_1.isConstructiveError; } });
13
+ Object.defineProperty(exports, "isPublicCode", { enumerable: true, get: function () { return graphql_query_1.isPublicCode; } });
14
+ Object.defineProperty(exports, "isPublicError", { enumerable: true, get: function () { return graphql_query_1.isPublicError; } });
15
+ Object.defineProperty(exports, "isRetryable", { enumerable: true, get: function () { return graphql_query_1.isRetryable; } });
16
+ Object.defineProperty(exports, "parse", { enumerable: true, get: function () { return graphql_query_1.parse; } });
12
17
  Object.defineProperty(exports, "parseGraphQLError", { enumerable: true, get: function () { return graphql_query_1.parseGraphQLError; } });
13
- Object.defineProperty(exports, "isDataError", { enumerable: true, get: function () { return graphql_query_1.isDataError; } });
18
+ Object.defineProperty(exports, "toError", { enumerable: true, get: function () { return graphql_query_1.toError; } });
package/client/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Client exports
3
3
  */
4
- export { createError, DataError, type DataErrorOptions, DataErrorType, type GraphQLError, isDataError, parseGraphQLError, PG_ERROR_CODES, } from './error';
4
+ export { classify, ConstructiveError, createError, type ErrorClass, type ErrorContext, format, type GraphQLError, isConstructiveError, isPublicCode, isPublicError, isRetryable, parse, type ParsedError, parseGraphQLError, toError, } from './error';
5
5
  export { createGraphQLClient, execute, type ExecuteOptions, type GraphQLClient, type GraphQLClientOptions, type GraphQLResponse, } from './execute';
6
6
  export { type DocumentTypeDecoration, TypedDocumentString, } from './typed-document';
package/client/index.js CHANGED
@@ -3,14 +3,19 @@
3
3
  * Client exports
4
4
  */
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.TypedDocumentString = exports.execute = exports.createGraphQLClient = exports.PG_ERROR_CODES = exports.parseGraphQLError = exports.isDataError = exports.DataErrorType = exports.DataError = exports.createError = void 0;
6
+ 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;
7
7
  var error_1 = require("./error");
8
+ Object.defineProperty(exports, "classify", { enumerable: true, get: function () { return error_1.classify; } });
9
+ Object.defineProperty(exports, "ConstructiveError", { enumerable: true, get: function () { return error_1.ConstructiveError; } });
8
10
  Object.defineProperty(exports, "createError", { enumerable: true, get: function () { return error_1.createError; } });
9
- Object.defineProperty(exports, "DataError", { enumerable: true, get: function () { return error_1.DataError; } });
10
- Object.defineProperty(exports, "DataErrorType", { enumerable: true, get: function () { return error_1.DataErrorType; } });
11
- Object.defineProperty(exports, "isDataError", { enumerable: true, get: function () { return error_1.isDataError; } });
11
+ Object.defineProperty(exports, "format", { enumerable: true, get: function () { return error_1.format; } });
12
+ Object.defineProperty(exports, "isConstructiveError", { enumerable: true, get: function () { return error_1.isConstructiveError; } });
13
+ Object.defineProperty(exports, "isPublicCode", { enumerable: true, get: function () { return error_1.isPublicCode; } });
14
+ Object.defineProperty(exports, "isPublicError", { enumerable: true, get: function () { return error_1.isPublicError; } });
15
+ Object.defineProperty(exports, "isRetryable", { enumerable: true, get: function () { return error_1.isRetryable; } });
16
+ Object.defineProperty(exports, "parse", { enumerable: true, get: function () { return error_1.parse; } });
12
17
  Object.defineProperty(exports, "parseGraphQLError", { enumerable: true, get: function () { return error_1.parseGraphQLError; } });
13
- Object.defineProperty(exports, "PG_ERROR_CODES", { enumerable: true, get: function () { return error_1.PG_ERROR_CODES; } });
18
+ Object.defineProperty(exports, "toError", { enumerable: true, get: function () { return error_1.toError; } });
14
19
  var execute_1 = require("./execute");
15
20
  Object.defineProperty(exports, "createGraphQLClient", { enumerable: true, get: function () { return execute_1.createGraphQLClient; } });
16
21
  Object.defineProperty(exports, "execute", { enumerable: true, get: function () { return execute_1.execute; } });
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * Re-export error handling utilities from @constructive-io/graphql-query.
3
3
  */
4
- export { DataError, DataErrorType, PG_ERROR_CODES, createError, parseGraphQLError, isDataError, type DataErrorOptions, type GraphQLError, } from '@constructive-io/graphql-query';
4
+ export { ConstructiveError, classify, createError, format, isConstructiveError, isPublicCode, isPublicError, isRetryable, parse, parseGraphQLError, toError, type ErrorClass, type ErrorContext, type GraphQLError, type ParsedError, } from '@constructive-io/graphql-query';
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * Re-export error handling utilities from @constructive-io/graphql-query.
3
3
  */
4
- export { DataError, DataErrorType, PG_ERROR_CODES, createError, parseGraphQLError, isDataError, } from '@constructive-io/graphql-query';
4
+ export { ConstructiveError, classify, createError, format, isConstructiveError, isPublicCode, isPublicError, isRetryable, parse, parseGraphQLError, toError, } from '@constructive-io/graphql-query';
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Client exports
3
3
  */
4
- export { createError, DataError, type DataErrorOptions, DataErrorType, type GraphQLError, isDataError, parseGraphQLError, PG_ERROR_CODES, } from './error';
4
+ export { classify, ConstructiveError, createError, type ErrorClass, type ErrorContext, format, type GraphQLError, isConstructiveError, isPublicCode, isPublicError, isRetryable, parse, type ParsedError, parseGraphQLError, toError, } from './error';
5
5
  export { createGraphQLClient, execute, type ExecuteOptions, type GraphQLClient, type GraphQLClientOptions, type GraphQLResponse, } from './execute';
6
6
  export { type DocumentTypeDecoration, TypedDocumentString, } from './typed-document';
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Client exports
3
3
  */
4
- export { createError, DataError, DataErrorType, isDataError, parseGraphQLError, PG_ERROR_CODES, } from './error';
4
+ export { classify, ConstructiveError, createError, format, isConstructiveError, isPublicCode, isPublicError, isRetryable, parse, parseGraphQLError, toError, } from './error';
5
5
  export { createGraphQLClient, execute, } from './execute';
6
6
  export { TypedDocumentString, } from './typed-document';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@constructive-io/graphql-codegen",
3
- "version": "5.7.5",
3
+ "version": "5.10.0",
4
4
  "description": "GraphQL SDK generator for Constructive databases with React Query hooks",
5
5
  "keywords": [
6
6
  "graphql",
@@ -56,25 +56,25 @@
56
56
  "@0no-co/graphql.web": "^1.1.2",
57
57
  "@babel/generator": "^7.29.1",
58
58
  "@babel/types": "^7.29.0",
59
- "@constructive-io/graphql-query": "^4.5.5",
60
- "@constructive-io/graphql-types": "^3.22.0",
59
+ "@constructive-io/graphql-query": "^4.8.0",
60
+ "@constructive-io/graphql-types": "^3.24.0",
61
61
  "@inquirerer/utils": "^3.3.9",
62
- "@pgpmjs/core": "^7.9.1",
62
+ "@pgpmjs/core": "^7.11.0",
63
63
  "ajv": "^8.20.0",
64
64
  "deepmerge": "^4.3.1",
65
65
  "find-and-require-package-json": "^0.9.1",
66
- "gql-ast": "^3.17.0",
67
- "graphile-schema": "^2.5.5",
66
+ "gql-ast": "^3.19.0",
67
+ "graphile-schema": "^2.7.0",
68
68
  "graphql": "16.13.0",
69
69
  "inflekt": "^0.7.1",
70
70
  "inquirerer": "^4.9.1",
71
71
  "jiti": "^2.7.0",
72
72
  "oxfmt": "^0.51.0",
73
- "pg-cache": "^3.19.0",
74
- "pg-env": "^1.22.0",
75
- "pgsql-client": "^4.4.2",
76
- "pgsql-seed": "^3.4.2",
77
- "query-spec": "^0.5.0",
73
+ "pg-cache": "^3.21.0",
74
+ "pg-env": "^1.24.0",
75
+ "pgsql-client": "^4.6.0",
76
+ "pgsql-seed": "^3.6.0",
77
+ "query-spec": "^0.7.0",
78
78
  "undici": "^8.3.0"
79
79
  },
80
80
  "peerDependencies": {
@@ -101,5 +101,5 @@
101
101
  "tsx": "^4.21.0",
102
102
  "typescript": "^5.9.3"
103
103
  },
104
- "gitHead": "6f85eefed51d88b3a857ff36d20da44b7ebb47c9"
104
+ "gitHead": "3ba26a9dfa342feff5a2216aafea962132d51621"
105
105
  }