@xylex-group/athena 2.8.2 → 2.10.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 +154 -64
  2. package/dist/browser.cjs +1550 -181
  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 +1540 -182
  7. package/dist/browser.js.map +1 -1
  8. package/dist/cli/index.cjs +1337 -67
  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 +1337 -67
  13. package/dist/cli/index.js.map +1 -1
  14. package/dist/{model-form-Cx3wtvi8.d.ts → client-B7EQ_hPV.d.cts} +606 -118
  15. package/dist/{model-form-_ugfOXao.d.cts → client-BYii6dU9.d.ts} +606 -118
  16. package/dist/index.cjs +1540 -113
  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 +1530 -114
  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/{react-email-CiiSVa9F.d.cts → module-DC96HJa3.d.cts} +130 -5
  25. package/dist/{react-email-WN8UU3AL.d.ts → module-DbHlxpeR.d.ts} +130 -5
  26. package/dist/next/client.cjs +8591 -0
  27. package/dist/next/client.cjs.map +1 -0
  28. package/dist/next/client.d.cts +24 -0
  29. package/dist/next/client.d.ts +24 -0
  30. package/dist/next/client.js +8589 -0
  31. package/dist/next/client.js.map +1 -0
  32. package/dist/next/server.cjs +8709 -0
  33. package/dist/next/server.cjs.map +1 -0
  34. package/dist/next/server.d.cts +52 -0
  35. package/dist/next/server.d.ts +52 -0
  36. package/dist/next/server.js +8706 -0
  37. package/dist/next/server.js.map +1 -0
  38. package/dist/{pipeline-BtD-Uo5X.d.cts → pipeline-CmUZsXsi.d.cts} +1 -1
  39. package/dist/{pipeline-yCIZNJHE.d.ts → pipeline-DZMsPxUg.d.ts} +1 -1
  40. package/dist/react.cjs +30 -1
  41. package/dist/react.cjs.map +1 -1
  42. package/dist/react.d.cts +38 -10
  43. package/dist/react.d.ts +38 -10
  44. package/dist/react.js +30 -2
  45. package/dist/react.js.map +1 -1
  46. package/dist/shared-BMVGMnti.d.cts +35 -0
  47. package/dist/shared-DRptGBWP.d.ts +35 -0
  48. package/dist/{types-g8G6J0xE.d.cts → types-BeZIHduP.d.cts} +2 -1
  49. package/dist/{types-g8G6J0xE.d.ts → types-BeZIHduP.d.ts} +2 -1
  50. package/dist/{types-C2kiTt6-.d.ts → types-C-YvfgYh.d.cts} +26 -2
  51. package/dist/{types-89EfjLjV.d.cts → types-CRjDwmtJ.d.ts} +26 -2
  52. package/package.json +32 -14
@@ -0,0 +1,35 @@
1
+ import { bK as AthenaCreateClientAuthOptions, bC as AthenaClientExperimentalOptions, cb as AthenaHeaderBag } from './client-B7EQ_hPV.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
+ chatUrl?: string | null | undefined;
19
+ chatWsUrl?: string | null | undefined;
20
+ storageUrl?: string | null | undefined;
21
+ key?: string | null | undefined;
22
+ client?: string | null | undefined;
23
+ backend?: BackendConfig | BackendType;
24
+ headers?: Record<string, string>;
25
+ auth?: AthenaCreateClientAuthOptions;
26
+ forceNoCache?: boolean;
27
+ storage?: boolean;
28
+ experimental?: AthenaAdapterExperimentalOptions;
29
+ }
30
+ interface AthenaServerRequestOptions {
31
+ requestHeaders?: AthenaRequestHeadersInput;
32
+ requestCookies?: AthenaRequestCookiesInput;
33
+ }
34
+
35
+ export type { AthenaAdapterBaseOptions as A, AthenaAdapterExperimentalOptions as a, AthenaServerRequestOptions as b };
@@ -0,0 +1,35 @@
1
+ import { bK as AthenaCreateClientAuthOptions, bC as AthenaClientExperimentalOptions, cb as AthenaHeaderBag } from './client-BYii6dU9.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
+ chatUrl?: string | null | undefined;
19
+ chatWsUrl?: string | null | undefined;
20
+ storageUrl?: string | null | undefined;
21
+ key?: string | null | undefined;
22
+ client?: string | null | undefined;
23
+ backend?: BackendConfig | BackendType;
24
+ headers?: Record<string, string>;
25
+ auth?: AthenaCreateClientAuthOptions;
26
+ forceNoCache?: boolean;
27
+ storage?: boolean;
28
+ experimental?: AthenaAdapterExperimentalOptions;
29
+ }
30
+ interface AthenaServerRequestOptions {
31
+ requestHeaders?: AthenaRequestHeadersInput;
32
+ requestCookies?: AthenaRequestCookiesInput;
33
+ }
34
+
35
+ export type { AthenaAdapterBaseOptions as A, AthenaAdapterExperimentalOptions as a, AthenaServerRequestOptions as b };
@@ -145,6 +145,7 @@ interface AthenaGatewayBaseOptions {
145
145
  client?: string;
146
146
  backend?: BackendOption;
147
147
  publishEvent?: string;
148
+ forceNoCache?: boolean;
148
149
  headers?: Record<string, string>;
149
150
  userId?: string | null;
150
151
  organizationId?: string | null;
@@ -424,4 +425,4 @@ interface SchemaIntrospectionProvider {
424
425
  inspect(options?: IntrospectionInspectOptions): Promise<IntrospectionSnapshot>;
425
426
  }
426
427
 
427
- export { type AthenaGatewayMethod 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 AthenaQueryPayload as Z, type AthenaGatewayEndpointPath 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 };
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 };
@@ -145,6 +145,7 @@ interface AthenaGatewayBaseOptions {
145
145
  client?: string;
146
146
  backend?: BackendOption;
147
147
  publishEvent?: string;
148
+ forceNoCache?: boolean;
148
149
  headers?: Record<string, string>;
149
150
  userId?: string | null;
150
151
  organizationId?: string | null;
@@ -424,4 +425,4 @@ interface SchemaIntrospectionProvider {
424
425
  inspect(options?: IntrospectionInspectOptions): Promise<IntrospectionSnapshot>;
425
426
  }
426
427
 
427
- export { type AthenaGatewayMethod 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 AthenaQueryPayload as Z, type AthenaGatewayEndpointPath 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 };
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-g8G6J0xE.js';
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;
@@ -197,6 +214,13 @@ interface RunGeneratorResult extends GeneratedArtifacts {
197
214
  configPath: string;
198
215
  config: NormalizedAthenaGeneratorConfig;
199
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;
200
224
  }
201
225
 
202
- 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-g8G6J0xE.cjs';
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;
@@ -197,6 +214,13 @@ interface RunGeneratorResult extends GeneratedArtifacts {
197
214
  configPath: string;
198
215
  config: NormalizedAthenaGeneratorConfig;
199
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;
200
224
  }
201
225
 
202
- 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
@@ -38,41 +38,53 @@
38
38
  },
39
39
  "exports": {
40
40
  ".": {
41
- "types": "./dist/index.d.ts",
42
41
  "browser": {
43
- "types": "./dist/browser.d.ts",
42
+ "default": "./dist/browser.js",
44
43
  "import": "./dist/browser.js",
45
44
  "require": "./dist/browser.cjs",
46
- "default": "./dist/browser.js"
45
+ "types": "./dist/browser.d.ts"
47
46
  },
47
+ "default": "./dist/index.js",
48
48
  "import": "./dist/index.js",
49
49
  "require": "./dist/index.cjs",
50
- "default": "./dist/index.js"
50
+ "types": "./dist/index.d.ts"
51
51
  },
52
52
  "./browser": {
53
- "types": "./dist/browser.d.ts",
53
+ "default": "./dist/browser.js",
54
54
  "import": "./dist/browser.js",
55
55
  "require": "./dist/browser.cjs",
56
- "default": "./dist/browser.js"
56
+ "types": "./dist/browser.d.ts"
57
57
  },
58
58
  "./cookies": {
59
- "types": "./dist/cookies.d.ts",
59
+ "default": "./dist/cookies.js",
60
60
  "import": "./dist/cookies.js",
61
61
  "require": "./dist/cookies.cjs",
62
- "default": "./dist/cookies.js"
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"
63
75
  },
64
76
  "./package.json": "./package.json",
65
77
  "./react": {
66
- "types": "./dist/react.d.ts",
78
+ "default": "./dist/react.js",
67
79
  "import": "./dist/react.js",
68
80
  "require": "./dist/react.cjs",
69
- "default": "./dist/react.js"
81
+ "types": "./dist/react.d.ts"
70
82
  },
71
83
  "./utils": {
72
- "types": "./dist/utils.d.ts",
84
+ "default": "./dist/utils.js",
73
85
  "import": "./dist/utils.js",
74
86
  "require": "./dist/utils.cjs",
75
- "default": "./dist/utils.js"
87
+ "types": "./dist/utils.d.ts"
76
88
  }
77
89
  },
78
90
  "files": [
@@ -152,6 +164,12 @@
152
164
  "cookies": [
153
165
  "dist/cookies.d.ts"
154
166
  ],
167
+ "next/client": [
168
+ "dist/next/client.d.ts"
169
+ ],
170
+ "next/server": [
171
+ "dist/next/server.d.ts"
172
+ ],
155
173
  "react": [
156
174
  "dist/react.d.ts"
157
175
  ],
@@ -160,5 +178,5 @@
160
178
  ]
161
179
  }
162
180
  },
163
- "version": "2.8.2"
164
- }
181
+ "version": "2.10.0"
182
+ }