@xylex-group/athena 2.8.0 → 2.9.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.
Files changed (52) hide show
  1. package/README.md +165 -68
  2. package/dist/browser.cjs +1331 -70
  3. package/dist/browser.cjs.map +1 -1
  4. package/dist/browser.d.cts +8 -7
  5. package/dist/browser.d.ts +8 -7
  6. package/dist/browser.js +1325 -71
  7. package/dist/browser.js.map +1 -1
  8. package/dist/cli/index.cjs +1354 -117
  9. package/dist/cli/index.cjs.map +1 -1
  10. package/dist/cli/index.d.cts +3 -3
  11. package/dist/cli/index.d.ts +3 -3
  12. package/dist/cli/index.js +1354 -117
  13. package/dist/cli/index.js.map +1 -1
  14. package/dist/{model-form-DMed05gE.d.cts → client-CfAE_QOj.d.cts} +741 -132
  15. package/dist/{model-form-DXPlOnlI.d.ts → client-D6EIJdQS.d.ts} +741 -132
  16. package/dist/index.cjs +1391 -71
  17. package/dist/index.cjs.map +1 -1
  18. package/dist/index.d.cts +8 -7
  19. package/dist/index.d.ts +8 -7
  20. package/dist/index.js +1385 -72
  21. package/dist/index.js.map +1 -1
  22. package/dist/model-form-ByvyyvxB.d.ts +96 -0
  23. package/dist/model-form-DACdBLYG.d.cts +96 -0
  24. package/dist/next/client.cjs +7875 -0
  25. package/dist/next/client.cjs.map +1 -0
  26. package/dist/next/client.d.cts +25 -0
  27. package/dist/next/client.d.ts +25 -0
  28. package/dist/next/client.js +7873 -0
  29. package/dist/next/client.js.map +1 -0
  30. package/dist/next/server.cjs +7993 -0
  31. package/dist/next/server.cjs.map +1 -0
  32. package/dist/next/server.d.cts +52 -0
  33. package/dist/next/server.d.ts +52 -0
  34. package/dist/next/server.js +7990 -0
  35. package/dist/next/server.js.map +1 -0
  36. package/dist/{pipeline-D4sJRKqN.d.cts → pipeline-CmUZsXsi.d.cts} +1 -1
  37. package/dist/{pipeline-CkMnhwPI.d.ts → pipeline-DZMsPxUg.d.ts} +1 -1
  38. package/dist/{react-email-DZhDDlEl.d.cts → react-email-BvJ3fj_F.d.cts} +35 -7
  39. package/dist/{react-email-Lrz9A-BW.d.ts → react-email-PLAJuZuO.d.ts} +35 -7
  40. package/dist/react.cjs +30 -1
  41. package/dist/react.cjs.map +1 -1
  42. package/dist/react.d.cts +39 -10
  43. package/dist/react.d.ts +39 -10
  44. package/dist/react.js +30 -2
  45. package/dist/react.js.map +1 -1
  46. package/dist/shared-BW6hoLBY.d.cts +33 -0
  47. package/dist/shared-BiJvoURI.d.ts +33 -0
  48. package/dist/{types-vikz9YIO.d.cts → types-BeZIHduP.d.cts} +5 -1
  49. package/dist/{types-vikz9YIO.d.ts → types-BeZIHduP.d.ts} +5 -1
  50. package/dist/{types-CAtTGGoz.d.cts → types-C-YvfgYh.d.cts} +27 -2
  51. package/dist/{types-BzY6fETM.d.ts → types-CRjDwmtJ.d.ts} +27 -2
  52. package/package.json +37 -49
@@ -0,0 +1,33 @@
1
+ import { aA as AthenaCreateClientAuthOptions, as as AthenaClientExperimentalOptions, b0 as AthenaHeaderBag } from './client-CfAE_QOj.cjs';
2
+ import { p as BackendConfig, q as BackendType } from './types-BeZIHduP.cjs';
3
+
4
+ interface AthenaRequestCookiesBag {
5
+ getAll(): Array<{
6
+ name: string;
7
+ value: string;
8
+ }>;
9
+ }
10
+ type AthenaRequestHeadersInput = AthenaHeaderBag | Record<string, string | null | undefined>;
11
+ type AthenaRequestCookiesInput = AthenaRequestCookiesBag | string | null | undefined;
12
+ type AthenaAdapterExperimentalOptions = Omit<AthenaClientExperimentalOptions, 'athenaStorageBackend'>;
13
+ interface AthenaAdapterBaseOptions {
14
+ env?: Record<string, string | undefined>;
15
+ url?: string | null | undefined;
16
+ gatewayUrl?: string | null | undefined;
17
+ authUrl?: string | null | undefined;
18
+ storageUrl?: string | null | undefined;
19
+ key?: string | null | undefined;
20
+ client?: string | null | undefined;
21
+ backend?: BackendConfig | BackendType;
22
+ headers?: Record<string, string>;
23
+ auth?: AthenaCreateClientAuthOptions;
24
+ forceNoCache?: boolean;
25
+ storage?: boolean;
26
+ experimental?: AthenaAdapterExperimentalOptions;
27
+ }
28
+ interface AthenaServerRequestOptions {
29
+ requestHeaders?: AthenaRequestHeadersInput;
30
+ requestCookies?: AthenaRequestCookiesInput;
31
+ }
32
+
33
+ export type { AthenaAdapterBaseOptions as A, AthenaAdapterExperimentalOptions as a, AthenaServerRequestOptions as b };
@@ -0,0 +1,33 @@
1
+ import { aA as AthenaCreateClientAuthOptions, as as AthenaClientExperimentalOptions, b0 as AthenaHeaderBag } from './client-D6EIJdQS.js';
2
+ import { p as BackendConfig, q as BackendType } from './types-BeZIHduP.js';
3
+
4
+ interface AthenaRequestCookiesBag {
5
+ getAll(): Array<{
6
+ name: string;
7
+ value: string;
8
+ }>;
9
+ }
10
+ type AthenaRequestHeadersInput = AthenaHeaderBag | Record<string, string | null | undefined>;
11
+ type AthenaRequestCookiesInput = AthenaRequestCookiesBag | string | null | undefined;
12
+ type AthenaAdapterExperimentalOptions = Omit<AthenaClientExperimentalOptions, 'athenaStorageBackend'>;
13
+ interface AthenaAdapterBaseOptions {
14
+ env?: Record<string, string | undefined>;
15
+ url?: string | null | undefined;
16
+ gatewayUrl?: string | null | undefined;
17
+ authUrl?: string | null | undefined;
18
+ storageUrl?: string | null | undefined;
19
+ key?: string | null | undefined;
20
+ client?: string | null | undefined;
21
+ backend?: BackendConfig | BackendType;
22
+ headers?: Record<string, string>;
23
+ auth?: AthenaCreateClientAuthOptions;
24
+ forceNoCache?: boolean;
25
+ storage?: boolean;
26
+ experimental?: AthenaAdapterExperimentalOptions;
27
+ }
28
+ interface AthenaServerRequestOptions {
29
+ requestHeaders?: AthenaRequestHeadersInput;
30
+ requestCookies?: AthenaRequestCookiesInput;
31
+ }
32
+
33
+ export type { AthenaAdapterBaseOptions as A, AthenaAdapterExperimentalOptions as a, AthenaServerRequestOptions as b };
@@ -113,6 +113,9 @@ interface AthenaRpcPayload<TArgs = AthenaJsonObject> {
113
113
  offset?: number;
114
114
  order?: AthenaRpcOrder;
115
115
  }
116
+ interface AthenaQueryPayload {
117
+ query: string;
118
+ }
116
119
  /** Backend type for Athena client (aligns with athena-rs) */
117
120
  type BackendType = 'athena' | 'postgrest' | 'postgresql' | 'scylladb';
118
121
  /** Backend config: type from SDK + backend-scoped options */
@@ -142,6 +145,7 @@ interface AthenaGatewayBaseOptions {
142
145
  client?: string;
143
146
  backend?: BackendOption;
144
147
  publishEvent?: string;
148
+ forceNoCache?: boolean;
145
149
  headers?: Record<string, string>;
146
150
  userId?: string | null;
147
151
  organizationId?: string | null;
@@ -421,4 +425,4 @@ interface SchemaIntrospectionProvider {
421
425
  inspect(options?: IntrospectionInspectOptions): Promise<IntrospectionSnapshot>;
422
426
  }
423
427
 
424
- export { type AthenaConditionValue as $, type AthenaConditionCastType as A, Backend as B, type ModelDef as C, type DatabaseDef as D, type ModelMetadata as E, type ModelRelationKind as F, type ModelRelationMetadata as G, type RowOf as H, type IntrospectionSnapshot as I, type SchemaDef as J, type TenantContextValue as K, type TenantKeyMap as L, type ModelAt as M, type AnyModelDef as N, type AthenaGatewayHookConfig as O, type AthenaGatewayHookResult as P, type AthenaDeletePayload as Q, type RegistryDef as R, type SchemaIntrospectionProvider as S, type TenantContext as T, type UpdateOf as U, type AthenaFetchPayload as V, type AthenaGatewayResponse as W, type AthenaInsertPayload as X, type AthenaUpdatePayload as Y, type AthenaGatewayEndpointPath as Z, type AthenaGatewayMethod as _, type AthenaGatewayCallOptions as a, type AthenaConditionArrayValue as a0, type AthenaGatewayCondition as a1, type AthenaSortBy as a2, type AthenaConditionOperator as a3, type AthenaGatewayConnectionOptions as b, type AthenaGatewayConnectionResult as c, type AthenaGatewayErrorCode as d, type AthenaGatewayErrorDetails as e, type AthenaJsonArray as f, type AthenaJsonObject as g, type AthenaJsonPrimitive as h, type AthenaJsonValue as i, type AthenaModelTarget as j, type AthenaRpcCallOptions as k, type AthenaRpcFilter as l, type AthenaRpcFilterOperator as m, type AthenaRpcOrder as n, type AthenaRpcPayload as o, type BackendConfig as p, type BackendType as q, type InsertOf as r, type IntrospectionColumn as s, type IntrospectionInspectOptions as t, type IntrospectionRelation as u, type IntrospectionSchema as v, type IntrospectionTable as w, type IntrospectionTypeKind as x, type ModelColumnKind as y, type ModelColumnMetadata as z };
428
+ export { type AthenaQueryPayload as $, type AthenaConditionCastType as A, Backend as B, type ModelDef as C, type DatabaseDef as D, type ModelMetadata as E, type ModelRelationKind as F, type ModelRelationMetadata as G, type RowOf as H, type IntrospectionSnapshot as I, type SchemaDef as J, type TenantContextValue as K, type TenantKeyMap as L, type ModelAt as M, type AnyModelDef as N, type AthenaGatewayHookConfig as O, type AthenaGatewayHookResult as P, type AthenaDeletePayload as Q, type RegistryDef as R, type SchemaIntrospectionProvider as S, type TenantContext as T, type UpdateOf as U, type AthenaFetchPayload as V, type AthenaGatewayResponse as W, type AthenaInsertPayload as X, type AthenaUpdatePayload as Y, type AthenaGatewayEndpointPath as Z, type AthenaGatewayMethod as _, type AthenaGatewayCallOptions as a, type AthenaConditionValue as a0, type AthenaConditionArrayValue as a1, type AthenaGatewayCondition as a2, type AthenaSortBy as a3, type AthenaConditionOperator as a4, type AthenaGatewayConnectionOptions as b, type AthenaGatewayConnectionResult as c, type AthenaGatewayErrorCode as d, type AthenaGatewayErrorDetails as e, type AthenaJsonArray as f, type AthenaJsonObject as g, type AthenaJsonPrimitive as h, type AthenaJsonValue as i, type AthenaModelTarget as j, type AthenaRpcCallOptions as k, type AthenaRpcFilter as l, type AthenaRpcFilterOperator as m, type AthenaRpcOrder as n, type AthenaRpcPayload as o, type BackendConfig as p, type BackendType as q, type InsertOf as r, type IntrospectionColumn as s, type IntrospectionInspectOptions as t, type IntrospectionRelation as u, type IntrospectionSchema as v, type IntrospectionTable as w, type IntrospectionTypeKind as x, type ModelColumnKind as y, type ModelColumnMetadata as z };
@@ -113,6 +113,9 @@ interface AthenaRpcPayload<TArgs = AthenaJsonObject> {
113
113
  offset?: number;
114
114
  order?: AthenaRpcOrder;
115
115
  }
116
+ interface AthenaQueryPayload {
117
+ query: string;
118
+ }
116
119
  /** Backend type for Athena client (aligns with athena-rs) */
117
120
  type BackendType = 'athena' | 'postgrest' | 'postgresql' | 'scylladb';
118
121
  /** Backend config: type from SDK + backend-scoped options */
@@ -142,6 +145,7 @@ interface AthenaGatewayBaseOptions {
142
145
  client?: string;
143
146
  backend?: BackendOption;
144
147
  publishEvent?: string;
148
+ forceNoCache?: boolean;
145
149
  headers?: Record<string, string>;
146
150
  userId?: string | null;
147
151
  organizationId?: string | null;
@@ -421,4 +425,4 @@ interface SchemaIntrospectionProvider {
421
425
  inspect(options?: IntrospectionInspectOptions): Promise<IntrospectionSnapshot>;
422
426
  }
423
427
 
424
- export { type AthenaConditionValue as $, type AthenaConditionCastType as A, Backend as B, type ModelDef as C, type DatabaseDef as D, type ModelMetadata as E, type ModelRelationKind as F, type ModelRelationMetadata as G, type RowOf as H, type IntrospectionSnapshot as I, type SchemaDef as J, type TenantContextValue as K, type TenantKeyMap as L, type ModelAt as M, type AnyModelDef as N, type AthenaGatewayHookConfig as O, type AthenaGatewayHookResult as P, type AthenaDeletePayload as Q, type RegistryDef as R, type SchemaIntrospectionProvider as S, type TenantContext as T, type UpdateOf as U, type AthenaFetchPayload as V, type AthenaGatewayResponse as W, type AthenaInsertPayload as X, type AthenaUpdatePayload as Y, type AthenaGatewayEndpointPath as Z, type AthenaGatewayMethod as _, type AthenaGatewayCallOptions as a, type AthenaConditionArrayValue as a0, type AthenaGatewayCondition as a1, type AthenaSortBy as a2, type AthenaConditionOperator as a3, type AthenaGatewayConnectionOptions as b, type AthenaGatewayConnectionResult as c, type AthenaGatewayErrorCode as d, type AthenaGatewayErrorDetails as e, type AthenaJsonArray as f, type AthenaJsonObject as g, type AthenaJsonPrimitive as h, type AthenaJsonValue as i, type AthenaModelTarget as j, type AthenaRpcCallOptions as k, type AthenaRpcFilter as l, type AthenaRpcFilterOperator as m, type AthenaRpcOrder as n, type AthenaRpcPayload as o, type BackendConfig as p, type BackendType as q, type InsertOf as r, type IntrospectionColumn as s, type IntrospectionInspectOptions as t, type IntrospectionRelation as u, type IntrospectionSchema as v, type IntrospectionTable as w, type IntrospectionTypeKind as x, type ModelColumnKind as y, type ModelColumnMetadata as z };
428
+ export { type AthenaQueryPayload as $, type AthenaConditionCastType as A, Backend as B, type ModelDef as C, type DatabaseDef as D, type ModelMetadata as E, type ModelRelationKind as F, type ModelRelationMetadata as G, type RowOf as H, type IntrospectionSnapshot as I, type SchemaDef as J, type TenantContextValue as K, type TenantKeyMap as L, type ModelAt as M, type AnyModelDef as N, type AthenaGatewayHookConfig as O, type AthenaGatewayHookResult as P, type AthenaDeletePayload as Q, type RegistryDef as R, type SchemaIntrospectionProvider as S, type TenantContext as T, type UpdateOf as U, type AthenaFetchPayload as V, type AthenaGatewayResponse as W, type AthenaInsertPayload as X, type AthenaUpdatePayload as Y, type AthenaGatewayEndpointPath as Z, type AthenaGatewayMethod as _, type AthenaGatewayCallOptions as a, type AthenaConditionValue as a0, type AthenaConditionArrayValue as a1, type AthenaGatewayCondition as a2, type AthenaSortBy as a3, type AthenaConditionOperator as a4, type AthenaGatewayConnectionOptions as b, type AthenaGatewayConnectionResult as c, type AthenaGatewayErrorCode as d, type AthenaGatewayErrorDetails as e, type AthenaJsonArray as f, type AthenaJsonObject as g, type AthenaJsonPrimitive as h, type AthenaJsonValue as i, type AthenaModelTarget as j, type AthenaRpcCallOptions as k, type AthenaRpcFilter as l, type AthenaRpcFilterOperator as m, type AthenaRpcOrder as n, type AthenaRpcPayload as o, type BackendConfig as p, type BackendType as q, type InsertOf as r, type IntrospectionColumn as s, type IntrospectionInspectOptions as t, type IntrospectionRelation as u, type IntrospectionSchema as v, type IntrospectionTable as w, type IntrospectionTypeKind as x, type ModelColumnKind as y, type ModelColumnMetadata as z };
@@ -1,4 +1,4 @@
1
- import { q as BackendType, I as IntrospectionSnapshot, S as SchemaIntrospectionProvider } from './types-vikz9YIO.cjs';
1
+ import { q as BackendType, I as IntrospectionSnapshot, S as SchemaIntrospectionProvider } from './types-BeZIHduP.cjs';
2
2
 
3
3
  /**
4
4
  * Supported case transformations for generated symbols and path token variants.
@@ -51,12 +51,14 @@ interface GeneratorOutputTargets {
51
51
  database: string;
52
52
  registry: string;
53
53
  }
54
+ type GeneratorOutputPreset = 'legacy' | 'athena-direct';
54
55
  type GeneratorOutputFormat = 'define-model' | 'table-builder';
55
56
  /**
56
57
  * Output configuration including dynamic placeholder aliases.
57
58
  */
58
59
  interface GeneratorOutputConfig {
59
60
  format?: GeneratorOutputFormat;
61
+ preset?: GeneratorOutputPreset;
60
62
  targets?: Partial<GeneratorOutputTargets>;
61
63
  placeholderMap?: Record<string, string>;
62
64
  }
@@ -65,6 +67,7 @@ interface GeneratorOutputConfig {
65
67
  */
66
68
  interface NormalizedGeneratorOutputConfig {
67
69
  format: GeneratorOutputFormat;
70
+ preset: GeneratorOutputPreset;
68
71
  targets: GeneratorOutputTargets;
69
72
  placeholderMap: Record<string, string>;
70
73
  }
@@ -73,6 +76,18 @@ interface NormalizedGeneratorOutputConfig {
73
76
  * to support env-driven configs such as `process.env.GENERATOR_SCHEMAS`.
74
77
  */
75
78
  type GeneratorSchemaSelection = string | readonly string[];
79
+ type GeneratorTableSelection = string | readonly string[];
80
+ /**
81
+ * Optional generator-side table filters used to keep the emitted surface small.
82
+ */
83
+ interface GeneratorFilterConfig {
84
+ includeTables?: GeneratorTableSelection;
85
+ excludeTables?: GeneratorTableSelection;
86
+ }
87
+ interface NormalizedGeneratorFilterConfig {
88
+ includeTables: string[];
89
+ excludeTables: string[];
90
+ }
76
91
  /**
77
92
  * Direct PostgreSQL introspection mode (implemented).
78
93
  */
@@ -137,6 +152,7 @@ interface AthenaGeneratorConfig {
137
152
  provider: GeneratorProviderInputConfig;
138
153
  output?: GeneratorOutputConfig;
139
154
  naming?: Partial<GeneratorNamingConfig>;
155
+ filter?: GeneratorFilterConfig;
140
156
  features?: Partial<GeneratorFeatureFlags>;
141
157
  experimental?: Partial<GeneratorExperimentalFlags>;
142
158
  }
@@ -147,6 +163,7 @@ interface NormalizedAthenaGeneratorConfig {
147
163
  provider: GeneratorProviderConfig;
148
164
  output: NormalizedGeneratorOutputConfig;
149
165
  naming: GeneratorNamingConfig;
166
+ filter: NormalizedGeneratorFilterConfig;
150
167
  features: GeneratorFeatureFlags;
151
168
  experimental: GeneratorExperimentalFlags;
152
169
  internal: GeneratorInternalConfig;
@@ -195,7 +212,15 @@ interface RunGeneratorOptions {
195
212
  */
196
213
  interface RunGeneratorResult extends GeneratedArtifacts {
197
214
  configPath: string;
215
+ config: NormalizedAthenaGeneratorConfig;
198
216
  writtenFiles: string[];
217
+ skippedFiles: SkippedGeneratedArtifact[];
218
+ }
219
+ type SkippedGeneratedArtifactReason = 'protected-existing-file';
220
+ interface SkippedGeneratedArtifact {
221
+ kind: GeneratorArtifactKind;
222
+ path: string;
223
+ reason: SkippedGeneratedArtifactReason;
199
224
  }
200
225
 
201
- export type { AthenaGeneratorConfig as A, GeneratedArtifacts as G, LoadGeneratorConfigOptions as L, NormalizedAthenaGeneratorConfig as N, RunGeneratorOptions as R, LoadedGeneratorConfig as a, GeneratorProviderConfig as b, GeneratorExperimentalFlags as c, GeneratedArtifact as d, GeneratorArtifactKind as e, GeneratorFeatureFlags as f, GeneratorInternalConfig as g, GeneratorNamingConfig as h, GeneratorOutputConfig as i, GeneratorOutputFormat as j, GeneratorOutputTargets as k, GeneratorSchemaSelection as l, NamingStyle as m, NormalizedGeneratorOutputConfig as n, RunGeneratorResult as o };
226
+ export type { AthenaGeneratorConfig as A, GeneratedArtifacts as G, LoadGeneratorConfigOptions as L, NormalizedAthenaGeneratorConfig as N, RunGeneratorOptions as R, SkippedGeneratedArtifact as S, LoadedGeneratorConfig as a, GeneratorProviderConfig as b, GeneratorExperimentalFlags as c, GeneratedArtifact as d, GeneratorArtifactKind as e, GeneratorFeatureFlags as f, GeneratorFilterConfig as g, GeneratorInternalConfig as h, GeneratorNamingConfig as i, GeneratorOutputConfig as j, GeneratorOutputFormat as k, GeneratorOutputPreset as l, GeneratorOutputTargets as m, GeneratorSchemaSelection as n, GeneratorTableSelection as o, NamingStyle as p, NormalizedGeneratorFilterConfig as q, NormalizedGeneratorOutputConfig as r, RunGeneratorResult as s, SkippedGeneratedArtifactReason as t };
@@ -1,4 +1,4 @@
1
- import { q as BackendType, I as IntrospectionSnapshot, S as SchemaIntrospectionProvider } from './types-vikz9YIO.js';
1
+ import { q as BackendType, I as IntrospectionSnapshot, S as SchemaIntrospectionProvider } from './types-BeZIHduP.js';
2
2
 
3
3
  /**
4
4
  * Supported case transformations for generated symbols and path token variants.
@@ -51,12 +51,14 @@ interface GeneratorOutputTargets {
51
51
  database: string;
52
52
  registry: string;
53
53
  }
54
+ type GeneratorOutputPreset = 'legacy' | 'athena-direct';
54
55
  type GeneratorOutputFormat = 'define-model' | 'table-builder';
55
56
  /**
56
57
  * Output configuration including dynamic placeholder aliases.
57
58
  */
58
59
  interface GeneratorOutputConfig {
59
60
  format?: GeneratorOutputFormat;
61
+ preset?: GeneratorOutputPreset;
60
62
  targets?: Partial<GeneratorOutputTargets>;
61
63
  placeholderMap?: Record<string, string>;
62
64
  }
@@ -65,6 +67,7 @@ interface GeneratorOutputConfig {
65
67
  */
66
68
  interface NormalizedGeneratorOutputConfig {
67
69
  format: GeneratorOutputFormat;
70
+ preset: GeneratorOutputPreset;
68
71
  targets: GeneratorOutputTargets;
69
72
  placeholderMap: Record<string, string>;
70
73
  }
@@ -73,6 +76,18 @@ interface NormalizedGeneratorOutputConfig {
73
76
  * to support env-driven configs such as `process.env.GENERATOR_SCHEMAS`.
74
77
  */
75
78
  type GeneratorSchemaSelection = string | readonly string[];
79
+ type GeneratorTableSelection = string | readonly string[];
80
+ /**
81
+ * Optional generator-side table filters used to keep the emitted surface small.
82
+ */
83
+ interface GeneratorFilterConfig {
84
+ includeTables?: GeneratorTableSelection;
85
+ excludeTables?: GeneratorTableSelection;
86
+ }
87
+ interface NormalizedGeneratorFilterConfig {
88
+ includeTables: string[];
89
+ excludeTables: string[];
90
+ }
76
91
  /**
77
92
  * Direct PostgreSQL introspection mode (implemented).
78
93
  */
@@ -137,6 +152,7 @@ interface AthenaGeneratorConfig {
137
152
  provider: GeneratorProviderInputConfig;
138
153
  output?: GeneratorOutputConfig;
139
154
  naming?: Partial<GeneratorNamingConfig>;
155
+ filter?: GeneratorFilterConfig;
140
156
  features?: Partial<GeneratorFeatureFlags>;
141
157
  experimental?: Partial<GeneratorExperimentalFlags>;
142
158
  }
@@ -147,6 +163,7 @@ interface NormalizedAthenaGeneratorConfig {
147
163
  provider: GeneratorProviderConfig;
148
164
  output: NormalizedGeneratorOutputConfig;
149
165
  naming: GeneratorNamingConfig;
166
+ filter: NormalizedGeneratorFilterConfig;
150
167
  features: GeneratorFeatureFlags;
151
168
  experimental: GeneratorExperimentalFlags;
152
169
  internal: GeneratorInternalConfig;
@@ -195,7 +212,15 @@ interface RunGeneratorOptions {
195
212
  */
196
213
  interface RunGeneratorResult extends GeneratedArtifacts {
197
214
  configPath: string;
215
+ config: NormalizedAthenaGeneratorConfig;
198
216
  writtenFiles: string[];
217
+ skippedFiles: SkippedGeneratedArtifact[];
218
+ }
219
+ type SkippedGeneratedArtifactReason = 'protected-existing-file';
220
+ interface SkippedGeneratedArtifact {
221
+ kind: GeneratorArtifactKind;
222
+ path: string;
223
+ reason: SkippedGeneratedArtifactReason;
199
224
  }
200
225
 
201
- export type { AthenaGeneratorConfig as A, GeneratedArtifacts as G, LoadGeneratorConfigOptions as L, NormalizedAthenaGeneratorConfig as N, RunGeneratorOptions as R, LoadedGeneratorConfig as a, GeneratorProviderConfig as b, GeneratorExperimentalFlags as c, GeneratedArtifact as d, GeneratorArtifactKind as e, GeneratorFeatureFlags as f, GeneratorInternalConfig as g, GeneratorNamingConfig as h, GeneratorOutputConfig as i, GeneratorOutputFormat as j, GeneratorOutputTargets as k, GeneratorSchemaSelection as l, NamingStyle as m, NormalizedGeneratorOutputConfig as n, RunGeneratorResult as o };
226
+ export type { AthenaGeneratorConfig as A, GeneratedArtifacts as G, LoadGeneratorConfigOptions as L, NormalizedAthenaGeneratorConfig as N, RunGeneratorOptions as R, SkippedGeneratedArtifact as S, LoadedGeneratorConfig as a, GeneratorProviderConfig as b, GeneratorExperimentalFlags as c, GeneratedArtifact as d, GeneratorArtifactKind as e, GeneratorFeatureFlags as f, GeneratorFilterConfig as g, GeneratorInternalConfig as h, GeneratorNamingConfig as i, GeneratorOutputConfig as j, GeneratorOutputFormat as k, GeneratorOutputPreset as l, GeneratorOutputTargets as m, GeneratorSchemaSelection as n, GeneratorTableSelection as o, NamingStyle as p, NormalizedGeneratorFilterConfig as q, NormalizedGeneratorOutputConfig as r, RunGeneratorResult as s, SkippedGeneratedArtifactReason as t };
package/package.json CHANGED
@@ -40,69 +40,51 @@
40
40
  ".": {
41
41
  "browser": {
42
42
  "default": "./dist/browser.js",
43
- "import": {
44
- "default": "./dist/browser.js",
45
- "types": "./dist/browser.d.ts"
46
- },
47
- "require": {
48
- "default": "./dist/browser.cjs",
49
- "types": "./dist/browser.d.cts"
50
- }
43
+ "import": "./dist/browser.js",
44
+ "require": "./dist/browser.cjs",
45
+ "types": "./dist/browser.d.ts"
51
46
  },
52
47
  "default": "./dist/index.js",
53
- "import": {
54
- "default": "./dist/index.js",
55
- "types": "./dist/index.d.ts"
56
- },
57
- "require": {
58
- "default": "./dist/index.cjs",
59
- "types": "./dist/index.d.cts"
60
- }
48
+ "import": "./dist/index.js",
49
+ "require": "./dist/index.cjs",
50
+ "types": "./dist/index.d.ts"
61
51
  },
62
52
  "./browser": {
63
53
  "default": "./dist/browser.js",
64
- "import": {
65
- "default": "./dist/browser.js",
66
- "types": "./dist/browser.d.ts"
67
- },
68
- "require": {
69
- "default": "./dist/browser.cjs",
70
- "types": "./dist/browser.d.cts"
71
- }
54
+ "import": "./dist/browser.js",
55
+ "require": "./dist/browser.cjs",
56
+ "types": "./dist/browser.d.ts"
72
57
  },
73
58
  "./cookies": {
74
59
  "default": "./dist/cookies.js",
75
- "import": {
76
- "default": "./dist/cookies.js",
77
- "types": "./dist/cookies.d.ts"
78
- },
79
- "require": {
80
- "default": "./dist/cookies.cjs",
81
- "types": "./dist/cookies.d.cts"
82
- }
60
+ "import": "./dist/cookies.js",
61
+ "require": "./dist/cookies.cjs",
62
+ "types": "./dist/cookies.d.ts"
63
+ },
64
+ "./next/client": {
65
+ "default": "./dist/next/client.js",
66
+ "import": "./dist/next/client.js",
67
+ "require": "./dist/next/client.cjs",
68
+ "types": "./dist/next/client.d.ts"
69
+ },
70
+ "./next/server": {
71
+ "default": "./dist/next/server.js",
72
+ "import": "./dist/next/server.js",
73
+ "require": "./dist/next/server.cjs",
74
+ "types": "./dist/next/server.d.ts"
83
75
  },
84
76
  "./package.json": "./package.json",
85
77
  "./react": {
86
78
  "default": "./dist/react.js",
87
- "import": {
88
- "default": "./dist/react.js",
89
- "types": "./dist/react.d.ts"
90
- },
91
- "require": {
92
- "default": "./dist/react.cjs",
93
- "types": "./dist/react.d.cts"
94
- }
79
+ "import": "./dist/react.js",
80
+ "require": "./dist/react.cjs",
81
+ "types": "./dist/react.d.ts"
95
82
  },
96
83
  "./utils": {
97
84
  "default": "./dist/utils.js",
98
- "import": {
99
- "default": "./dist/utils.js",
100
- "types": "./dist/utils.d.ts"
101
- },
102
- "require": {
103
- "default": "./dist/utils.cjs",
104
- "types": "./dist/utils.d.cts"
105
- }
85
+ "import": "./dist/utils.js",
86
+ "require": "./dist/utils.cjs",
87
+ "types": "./dist/utils.d.ts"
106
88
  }
107
89
  },
108
90
  "files": [
@@ -182,6 +164,12 @@
182
164
  "cookies": [
183
165
  "dist/cookies.d.ts"
184
166
  ],
167
+ "next/client": [
168
+ "dist/next/client.d.ts"
169
+ ],
170
+ "next/server": [
171
+ "dist/next/server.d.ts"
172
+ ],
185
173
  "react": [
186
174
  "dist/react.d.ts"
187
175
  ],
@@ -190,5 +178,5 @@
190
178
  ]
191
179
  }
192
180
  },
193
- "version": "2.8.0"
181
+ "version": "2.9.0"
194
182
  }