@constructive-io/errors 0.11.2 → 0.12.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/esm/registry.d.ts CHANGED
@@ -72,6 +72,10 @@ export declare const registry: {
72
72
  bytes?: number;
73
73
  limit?: number;
74
74
  }>;
75
+ readonly CONCURRENCY_LIMIT_REACHED: import("./define").DefinedError<{
76
+ limit?: number;
77
+ waitedMs?: number;
78
+ }>;
75
79
  readonly INTROSPECTION_DISABLED: import("./define").DefinedError<import("./types").EmptyContext>;
76
80
  readonly NETWORK_ERROR: import("./define").DefinedError<import("./types").EmptyContext>;
77
81
  readonly TIMEOUT_ERROR: import("./define").DefinedError<import("./types").EmptyContext>;
package/esm/registry.js CHANGED
@@ -315,6 +315,13 @@ export const registry = {
315
315
  message: 'The request body is too large.',
316
316
  positional: ['bytes', 'limit']
317
317
  }),
318
+ CONCURRENCY_LIMIT_REACHED: defineError({
319
+ code: 'CONCURRENCY_LIMIT_REACHED',
320
+ class: 'public',
321
+ http: 429,
322
+ message: 'Too many requests are in flight for this API. Please retry in a moment.',
323
+ positional: ['limit', 'waitedMs']
324
+ }),
318
325
  INTROSPECTION_DISABLED: defineError({
319
326
  code: 'INTROSPECTION_DISABLED',
320
327
  class: 'public',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@constructive-io/errors",
3
- "version": "0.11.2",
3
+ "version": "0.12.0",
4
4
  "author": "Constructive <developers@constructive.io>",
5
5
  "description": "Canonical Constructive error system: registry, codes, i18n messages, and cross-source (PostgreSQL/GraphQL/client) parsing. Zero runtime dependencies.",
6
6
  "main": "index.js",
@@ -41,5 +41,5 @@
41
41
  "makage": "^0.8.0",
42
42
  "ts-node": "^10.9.2"
43
43
  },
44
- "gitHead": "5e0bfead2856d1a062b495d343a43e543343f9b8"
44
+ "gitHead": "6e2d71a9eb4e1f49f0de0b2b594b2f811de97442"
45
45
  }
package/registry.d.ts CHANGED
@@ -72,6 +72,10 @@ export declare const registry: {
72
72
  bytes?: number;
73
73
  limit?: number;
74
74
  }>;
75
+ readonly CONCURRENCY_LIMIT_REACHED: import("./define").DefinedError<{
76
+ limit?: number;
77
+ waitedMs?: number;
78
+ }>;
75
79
  readonly INTROSPECTION_DISABLED: import("./define").DefinedError<import("./types").EmptyContext>;
76
80
  readonly NETWORK_ERROR: import("./define").DefinedError<import("./types").EmptyContext>;
77
81
  readonly TIMEOUT_ERROR: import("./define").DefinedError<import("./types").EmptyContext>;
package/registry.js CHANGED
@@ -321,6 +321,13 @@ exports.registry = {
321
321
  message: 'The request body is too large.',
322
322
  positional: ['bytes', 'limit']
323
323
  }),
324
+ CONCURRENCY_LIMIT_REACHED: (0, define_1.defineError)({
325
+ code: 'CONCURRENCY_LIMIT_REACHED',
326
+ class: 'public',
327
+ http: 429,
328
+ message: 'Too many requests are in flight for this API. Please retry in a moment.',
329
+ positional: ['limit', 'waitedMs']
330
+ }),
324
331
  INTROSPECTION_DISABLED: (0, define_1.defineError)({
325
332
  code: 'INTROSPECTION_DISABLED',
326
333
  class: 'public',