@xylex-group/athena 1.6.0 → 1.6.2

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.
@@ -192,32 +192,4 @@ interface AthenaGatewayHookResult {
192
192
  baseUrl: string;
193
193
  }
194
194
 
195
- interface AthenaGatewayErrorInput {
196
- code: AthenaGatewayErrorCode;
197
- message: string;
198
- status?: number;
199
- endpoint?: AthenaGatewayEndpointPath;
200
- method?: AthenaGatewayMethod;
201
- requestId?: string;
202
- hint?: string;
203
- cause?: string;
204
- }
205
- /**
206
- * Canonical error for gateway failures.
207
- * Holds request context and machine-readable classification.
208
- */
209
- declare class AthenaGatewayError extends Error {
210
- readonly code: AthenaGatewayErrorCode;
211
- readonly status: number;
212
- readonly endpoint?: AthenaGatewayEndpointPath;
213
- readonly method?: AthenaGatewayMethod;
214
- readonly requestId?: string;
215
- readonly hint?: string;
216
- readonly causeDetail?: string;
217
- constructor(input: AthenaGatewayErrorInput);
218
- toDetails(): AthenaGatewayErrorDetails;
219
- static fromResponse<T>(response: AthenaGatewayResponse<T>, fallback: Omit<AthenaGatewayErrorInput, 'code' | 'message' | 'status'>): AthenaGatewayError;
220
- }
221
- declare function isAthenaGatewayError(error: unknown): error is AthenaGatewayError;
222
-
223
- export { type AthenaConditionValue as A, type BackendConfig as B, type BackendType as a, type AthenaConditionCastType as b, type AthenaConditionArrayValue as c, type AthenaConditionOperator as d, type AthenaGatewayCallOptions as e, type AthenaGatewayErrorDetails as f, type AthenaRpcCallOptions as g, AthenaGatewayError as h, type AthenaGatewayErrorCode as i, type AthenaRpcFilter as j, type AthenaRpcFilterOperator as k, type AthenaRpcOrder as l, type AthenaRpcPayload as m, Backend as n, isAthenaGatewayError as o, type AthenaGatewayHookConfig as p, type AthenaGatewayHookResult as q, type AthenaDeletePayload as r, type AthenaFetchPayload as s, type AthenaGatewayResponse as t, type AthenaInsertPayload as u, type AthenaUpdatePayload as v };
195
+ export { type AthenaGatewayCallOptions as A, type BackendConfig as B, type AthenaConditionValue as a, type AthenaConditionCastType as b, type AthenaConditionArrayValue as c, type AthenaConditionOperator as d, type AthenaGatewayErrorDetails as e, type AthenaRpcCallOptions as f, type BackendType as g, Backend as h, type AthenaRpcFilter as i, type AthenaRpcFilterOperator as j, type AthenaRpcOrder as k, type AthenaRpcPayload as l, type AthenaGatewayErrorCode as m, type AthenaGatewayHookConfig as n, type AthenaGatewayHookResult as o, type AthenaFetchPayload as p, type AthenaInsertPayload as q, type AthenaUpdatePayload as r, type AthenaDeletePayload as s, type AthenaGatewayResponse as t, type AthenaGatewayEndpointPath as u, type AthenaGatewayMethod as v };
@@ -192,32 +192,4 @@ interface AthenaGatewayHookResult {
192
192
  baseUrl: string;
193
193
  }
194
194
 
195
- interface AthenaGatewayErrorInput {
196
- code: AthenaGatewayErrorCode;
197
- message: string;
198
- status?: number;
199
- endpoint?: AthenaGatewayEndpointPath;
200
- method?: AthenaGatewayMethod;
201
- requestId?: string;
202
- hint?: string;
203
- cause?: string;
204
- }
205
- /**
206
- * Canonical error for gateway failures.
207
- * Holds request context and machine-readable classification.
208
- */
209
- declare class AthenaGatewayError extends Error {
210
- readonly code: AthenaGatewayErrorCode;
211
- readonly status: number;
212
- readonly endpoint?: AthenaGatewayEndpointPath;
213
- readonly method?: AthenaGatewayMethod;
214
- readonly requestId?: string;
215
- readonly hint?: string;
216
- readonly causeDetail?: string;
217
- constructor(input: AthenaGatewayErrorInput);
218
- toDetails(): AthenaGatewayErrorDetails;
219
- static fromResponse<T>(response: AthenaGatewayResponse<T>, fallback: Omit<AthenaGatewayErrorInput, 'code' | 'message' | 'status'>): AthenaGatewayError;
220
- }
221
- declare function isAthenaGatewayError(error: unknown): error is AthenaGatewayError;
222
-
223
- export { type AthenaConditionValue as A, type BackendConfig as B, type BackendType as a, type AthenaConditionCastType as b, type AthenaConditionArrayValue as c, type AthenaConditionOperator as d, type AthenaGatewayCallOptions as e, type AthenaGatewayErrorDetails as f, type AthenaRpcCallOptions as g, AthenaGatewayError as h, type AthenaGatewayErrorCode as i, type AthenaRpcFilter as j, type AthenaRpcFilterOperator as k, type AthenaRpcOrder as l, type AthenaRpcPayload as m, Backend as n, isAthenaGatewayError as o, type AthenaGatewayHookConfig as p, type AthenaGatewayHookResult as q, type AthenaDeletePayload as r, type AthenaFetchPayload as s, type AthenaGatewayResponse as t, type AthenaInsertPayload as u, type AthenaUpdatePayload as v };
195
+ export { type AthenaGatewayCallOptions as A, type BackendConfig as B, type AthenaConditionValue as a, type AthenaConditionCastType as b, type AthenaConditionArrayValue as c, type AthenaConditionOperator as d, type AthenaGatewayErrorDetails as e, type AthenaRpcCallOptions as f, type BackendType as g, Backend as h, type AthenaRpcFilter as i, type AthenaRpcFilterOperator as j, type AthenaRpcOrder as k, type AthenaRpcPayload as l, type AthenaGatewayErrorCode as m, type AthenaGatewayHookConfig as n, type AthenaGatewayHookResult as o, type AthenaFetchPayload as p, type AthenaInsertPayload as q, type AthenaUpdatePayload as r, type AthenaDeletePayload as s, type AthenaGatewayResponse as t, type AthenaGatewayEndpointPath as u, type AthenaGatewayMethod as v };
package/package.json CHANGED
@@ -23,6 +23,7 @@
23
23
  "@typescript-eslint/eslint-plugin": "^8.57.0",
24
24
  "@typescript-eslint/parser": "^8.57.0",
25
25
  "eslint": "^8.57.1",
26
+ "express": "^4.22.2",
26
27
  "react": "^18.3.1",
27
28
  "react-test-renderer": "^18.3.1",
28
29
  "tsup": "^8.5.1",
@@ -90,7 +91,7 @@
90
91
  ]
91
92
  }
92
93
  },
93
- "version": "1.6.0",
94
+ "version": "1.6.2",
94
95
  "scripts": {
95
96
  "build": "tsup",
96
97
  "check:all": "pnpm lint && pnpm typecheck && pnpm test && pnpm build",