@xylex-group/athena 1.6.2 → 1.7.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/README.md +47 -1
- package/dist/cli/index.cjs +77 -18
- package/dist/cli/index.cjs.map +1 -1
- package/dist/cli/index.d.cts +2 -2
- package/dist/cli/index.d.ts +2 -2
- package/dist/cli/index.js +77 -18
- package/dist/cli/index.js.map +1 -1
- package/dist/{errors-BYRK5phv.d.cts → errors-BJGgjHcI.d.cts} +1 -1
- package/dist/{errors-1b-LSTum.d.ts → errors-Bcf5Sftv.d.ts} +1 -1
- package/dist/index.cjs +572 -18
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +269 -6
- package/dist/index.d.ts +269 -6
- package/dist/index.js +569 -19
- package/dist/index.js.map +1 -1
- package/dist/{pipeline-CA2aexDl.d.cts → pipeline-BsKuBqmE.d.cts} +9 -4
- package/dist/{pipeline-BQzpSLD3.d.ts → pipeline-xQSjGbqF.d.ts} +9 -4
- package/dist/react.d.cts +3 -3
- package/dist/react.d.ts +3 -3
- package/dist/{types-v6UyGg-x.d.cts → types-wPA1Z4vQ.d.cts} +1 -1
- package/dist/{types-v6UyGg-x.d.ts → types-wPA1Z4vQ.d.ts} +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as BackendType } from './types-wPA1Z4vQ.cjs';
|
|
2
2
|
|
|
3
3
|
type ModelKey = string;
|
|
4
4
|
type ColumnKey = string;
|
|
@@ -230,6 +230,11 @@ interface GeneratorOutputConfig {
|
|
|
230
230
|
targets: GeneratorOutputTargets;
|
|
231
231
|
placeholderMap: Record<string, string>;
|
|
232
232
|
}
|
|
233
|
+
/**
|
|
234
|
+
* Schemas selected for PostgreSQL introspection. Strings may be comma-separated
|
|
235
|
+
* to support env-driven configs such as `process.env.GENERATOR_SCHEMAS`.
|
|
236
|
+
*/
|
|
237
|
+
type GeneratorSchemaSelection = string | readonly string[];
|
|
233
238
|
/**
|
|
234
239
|
* Direct PostgreSQL introspection mode (implemented).
|
|
235
240
|
*/
|
|
@@ -238,7 +243,7 @@ interface PostgresDirectProviderConfig {
|
|
|
238
243
|
mode: 'direct';
|
|
239
244
|
connectionString: string;
|
|
240
245
|
database?: string;
|
|
241
|
-
schemas?:
|
|
246
|
+
schemas?: GeneratorSchemaSelection;
|
|
242
247
|
}
|
|
243
248
|
/**
|
|
244
249
|
* Athena gateway-backed PostgreSQL introspection mode using `/gateway/query`.
|
|
@@ -249,7 +254,7 @@ interface PostgresGatewayProviderConfig {
|
|
|
249
254
|
gatewayUrl: string;
|
|
250
255
|
apiKey: string;
|
|
251
256
|
database: string;
|
|
252
|
-
schemas?:
|
|
257
|
+
schemas?: GeneratorSchemaSelection;
|
|
253
258
|
backend?: BackendType;
|
|
254
259
|
}
|
|
255
260
|
/**
|
|
@@ -335,4 +340,4 @@ interface RunGeneratorResult extends GeneratedArtifacts {
|
|
|
335
340
|
*/
|
|
336
341
|
declare function runSchemaGenerator(options?: RunGeneratorOptions): Promise<RunGeneratorResult>;
|
|
337
342
|
|
|
338
|
-
export { type AnyModelDef as A, type
|
|
343
|
+
export { type AnyModelDef as A, type RunGeneratorOptions as B, type RunGeneratorResult as C, type DatabaseDef as D, type TenantContextValue as E, runSchemaGenerator as F, type GeneratedArtifacts as G, type IntrospectionSnapshot as I, type LoadGeneratorConfigOptions as L, type ModelMetadata as M, type NormalizedAthenaGeneratorConfig as N, type RegistryDef as R, type SchemaDef as S, type TenantKeyMap as T, type UpdateOf as U, type ModelDef as a, type TenantContext as b, type RowOf as c, type ModelAt as d, type SchemaIntrospectionProvider as e, type AthenaGeneratorConfig as f, type LoadedGeneratorConfig as g, type IntrospectionColumn as h, type GeneratorProviderConfig as i, type GeneratorExperimentalFlags as j, type GeneratorSchemaSelection as k, type GeneratedArtifact as l, type GeneratorArtifactKind as m, type GeneratorFeatureFlags as n, type GeneratorNamingConfig as o, type GeneratorOutputConfig as p, type GeneratorOutputTargets as q, type InsertOf as r, type IntrospectionInspectOptions as s, type IntrospectionRelation as t, type IntrospectionSchema as u, type IntrospectionTable as v, type IntrospectionTypeKind as w, type ModelRelationKind as x, type ModelRelationMetadata as y, type NamingStyle as z };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as BackendType } from './types-wPA1Z4vQ.js';
|
|
2
2
|
|
|
3
3
|
type ModelKey = string;
|
|
4
4
|
type ColumnKey = string;
|
|
@@ -230,6 +230,11 @@ interface GeneratorOutputConfig {
|
|
|
230
230
|
targets: GeneratorOutputTargets;
|
|
231
231
|
placeholderMap: Record<string, string>;
|
|
232
232
|
}
|
|
233
|
+
/**
|
|
234
|
+
* Schemas selected for PostgreSQL introspection. Strings may be comma-separated
|
|
235
|
+
* to support env-driven configs such as `process.env.GENERATOR_SCHEMAS`.
|
|
236
|
+
*/
|
|
237
|
+
type GeneratorSchemaSelection = string | readonly string[];
|
|
233
238
|
/**
|
|
234
239
|
* Direct PostgreSQL introspection mode (implemented).
|
|
235
240
|
*/
|
|
@@ -238,7 +243,7 @@ interface PostgresDirectProviderConfig {
|
|
|
238
243
|
mode: 'direct';
|
|
239
244
|
connectionString: string;
|
|
240
245
|
database?: string;
|
|
241
|
-
schemas?:
|
|
246
|
+
schemas?: GeneratorSchemaSelection;
|
|
242
247
|
}
|
|
243
248
|
/**
|
|
244
249
|
* Athena gateway-backed PostgreSQL introspection mode using `/gateway/query`.
|
|
@@ -249,7 +254,7 @@ interface PostgresGatewayProviderConfig {
|
|
|
249
254
|
gatewayUrl: string;
|
|
250
255
|
apiKey: string;
|
|
251
256
|
database: string;
|
|
252
|
-
schemas?:
|
|
257
|
+
schemas?: GeneratorSchemaSelection;
|
|
253
258
|
backend?: BackendType;
|
|
254
259
|
}
|
|
255
260
|
/**
|
|
@@ -335,4 +340,4 @@ interface RunGeneratorResult extends GeneratedArtifacts {
|
|
|
335
340
|
*/
|
|
336
341
|
declare function runSchemaGenerator(options?: RunGeneratorOptions): Promise<RunGeneratorResult>;
|
|
337
342
|
|
|
338
|
-
export { type AnyModelDef as A, type
|
|
343
|
+
export { type AnyModelDef as A, type RunGeneratorOptions as B, type RunGeneratorResult as C, type DatabaseDef as D, type TenantContextValue as E, runSchemaGenerator as F, type GeneratedArtifacts as G, type IntrospectionSnapshot as I, type LoadGeneratorConfigOptions as L, type ModelMetadata as M, type NormalizedAthenaGeneratorConfig as N, type RegistryDef as R, type SchemaDef as S, type TenantKeyMap as T, type UpdateOf as U, type ModelDef as a, type TenantContext as b, type RowOf as c, type ModelAt as d, type SchemaIntrospectionProvider as e, type AthenaGeneratorConfig as f, type LoadedGeneratorConfig as g, type IntrospectionColumn as h, type GeneratorProviderConfig as i, type GeneratorExperimentalFlags as j, type GeneratorSchemaSelection as k, type GeneratedArtifact as l, type GeneratorArtifactKind as m, type GeneratorFeatureFlags as n, type GeneratorNamingConfig as o, type GeneratorOutputConfig as p, type GeneratorOutputTargets as q, type InsertOf as r, type IntrospectionInspectOptions as s, type IntrospectionRelation as t, type IntrospectionSchema as u, type IntrospectionTable as v, type IntrospectionTypeKind as w, type ModelRelationKind as x, type ModelRelationMetadata as y, type NamingStyle as z };
|
package/dist/react.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as AthenaGatewayHookConfig, o as AthenaGatewayHookResult } from './types-
|
|
2
|
-
export {
|
|
3
|
-
export { A as AthenaGatewayError, i as isAthenaGatewayError } from './errors-
|
|
1
|
+
import { n as AthenaGatewayHookConfig, o as AthenaGatewayHookResult } from './types-wPA1Z4vQ.cjs';
|
|
2
|
+
export { p as AthenaDeletePayload, q as AthenaFetchPayload, e as AthenaGatewayCallOptions, h as AthenaGatewayErrorCode, f as AthenaGatewayErrorDetails, r as AthenaGatewayResponse, s as AthenaInsertPayload, g as AthenaRpcCallOptions, i as AthenaRpcFilter, j as AthenaRpcFilterOperator, k as AthenaRpcOrder, l as AthenaRpcPayload, t as AthenaUpdatePayload } from './types-wPA1Z4vQ.cjs';
|
|
3
|
+
export { A as AthenaGatewayError, i as isAthenaGatewayError } from './errors-BJGgjHcI.cjs';
|
|
4
4
|
import * as react from 'react';
|
|
5
5
|
import { ReactNode } from 'react';
|
|
6
6
|
|
package/dist/react.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as AthenaGatewayHookConfig, o as AthenaGatewayHookResult } from './types-
|
|
2
|
-
export {
|
|
3
|
-
export { A as AthenaGatewayError, i as isAthenaGatewayError } from './errors-
|
|
1
|
+
import { n as AthenaGatewayHookConfig, o as AthenaGatewayHookResult } from './types-wPA1Z4vQ.js';
|
|
2
|
+
export { p as AthenaDeletePayload, q as AthenaFetchPayload, e as AthenaGatewayCallOptions, h as AthenaGatewayErrorCode, f as AthenaGatewayErrorDetails, r as AthenaGatewayResponse, s as AthenaInsertPayload, g as AthenaRpcCallOptions, i as AthenaRpcFilter, j as AthenaRpcFilterOperator, k as AthenaRpcOrder, l as AthenaRpcPayload, t as AthenaUpdatePayload } from './types-wPA1Z4vQ.js';
|
|
3
|
+
export { A as AthenaGatewayError, i as isAthenaGatewayError } from './errors-Bcf5Sftv.js';
|
|
4
4
|
import * as react from 'react';
|
|
5
5
|
import { ReactNode } from 'react';
|
|
6
6
|
|
|
@@ -192,4 +192,4 @@ interface AthenaGatewayHookResult {
|
|
|
192
192
|
baseUrl: string;
|
|
193
193
|
}
|
|
194
194
|
|
|
195
|
-
export { type
|
|
195
|
+
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, type AthenaGatewayErrorCode as h, type AthenaRpcFilter as i, type AthenaRpcFilterOperator as j, type AthenaRpcOrder as k, type AthenaRpcPayload as l, Backend as m, type AthenaGatewayHookConfig as n, type AthenaGatewayHookResult as o, type AthenaDeletePayload as p, type AthenaFetchPayload as q, type AthenaGatewayResponse as r, type AthenaInsertPayload as s, type AthenaUpdatePayload as t, type AthenaGatewayEndpointPath as u, type AthenaGatewayMethod as v };
|
|
@@ -192,4 +192,4 @@ interface AthenaGatewayHookResult {
|
|
|
192
192
|
baseUrl: string;
|
|
193
193
|
}
|
|
194
194
|
|
|
195
|
-
export { type
|
|
195
|
+
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, type AthenaGatewayErrorCode as h, type AthenaRpcFilter as i, type AthenaRpcFilterOperator as j, type AthenaRpcOrder as k, type AthenaRpcPayload as l, Backend as m, type AthenaGatewayHookConfig as n, type AthenaGatewayHookResult as o, type AthenaDeletePayload as p, type AthenaFetchPayload as q, type AthenaGatewayResponse as r, type AthenaInsertPayload as s, type AthenaUpdatePayload as t, type AthenaGatewayEndpointPath as u, type AthenaGatewayMethod as v };
|