@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.
@@ -1,4 +1,4 @@
1
- import { g as BackendType } from './types-v6UyGg-x.cjs';
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?: string[];
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?: string[];
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 NamingStyle as B, type RunGeneratorOptions as C, type DatabaseDef as D, type RunGeneratorResult as E, 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 InsertOf as k, type IntrospectionInspectOptions as l, type IntrospectionRelation as m, type IntrospectionSchema as n, type IntrospectionTable as o, type IntrospectionTypeKind as p, type ModelRelationKind as q, runSchemaGenerator as r, type ModelRelationMetadata as s, type TenantContextValue as t, type GeneratedArtifact as u, type GeneratorArtifactKind as v, type GeneratorFeatureFlags as w, type GeneratorNamingConfig as x, type GeneratorOutputConfig as y, type GeneratorOutputTargets as z };
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 { g as BackendType } from './types-v6UyGg-x.js';
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?: string[];
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?: string[];
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 NamingStyle as B, type RunGeneratorOptions as C, type DatabaseDef as D, type RunGeneratorResult as E, 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 InsertOf as k, type IntrospectionInspectOptions as l, type IntrospectionRelation as m, type IntrospectionSchema as n, type IntrospectionTable as o, type IntrospectionTypeKind as p, type ModelRelationKind as q, runSchemaGenerator as r, type ModelRelationMetadata as s, type TenantContextValue as t, type GeneratedArtifact as u, type GeneratorArtifactKind as v, type GeneratorFeatureFlags as w, type GeneratorNamingConfig as x, type GeneratorOutputConfig as y, type GeneratorOutputTargets as z };
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-v6UyGg-x.cjs';
2
- export { s as AthenaDeletePayload, p as AthenaFetchPayload, A as AthenaGatewayCallOptions, m as AthenaGatewayErrorCode, e as AthenaGatewayErrorDetails, t as AthenaGatewayResponse, q as AthenaInsertPayload, f as AthenaRpcCallOptions, i as AthenaRpcFilter, j as AthenaRpcFilterOperator, k as AthenaRpcOrder, l as AthenaRpcPayload, r as AthenaUpdatePayload } from './types-v6UyGg-x.cjs';
3
- export { A as AthenaGatewayError, i as isAthenaGatewayError } from './errors-BYRK5phv.cjs';
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-v6UyGg-x.js';
2
- export { s as AthenaDeletePayload, p as AthenaFetchPayload, A as AthenaGatewayCallOptions, m as AthenaGatewayErrorCode, e as AthenaGatewayErrorDetails, t as AthenaGatewayResponse, q as AthenaInsertPayload, f as AthenaRpcCallOptions, i as AthenaRpcFilter, j as AthenaRpcFilterOperator, k as AthenaRpcOrder, l as AthenaRpcPayload, r as AthenaUpdatePayload } from './types-v6UyGg-x.js';
3
- export { A as AthenaGatewayError, i as isAthenaGatewayError } from './errors-1b-LSTum.js';
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 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 };
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 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 };
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 };
package/package.json CHANGED
@@ -91,7 +91,7 @@
91
91
  ]
92
92
  }
93
93
  },
94
- "version": "1.6.2",
94
+ "version": "1.7.0",
95
95
  "scripts": {
96
96
  "build": "tsup",
97
97
  "check:all": "pnpm lint && pnpm typecheck && pnpm test && pnpm build",