arkormx 2.0.0-next.2 → 2.0.0-next.4

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/dist/index.d.mts CHANGED
@@ -3,6 +3,101 @@ import { Command } from "@h3ravel/musket";
3
3
  import { Collection } from "@h3ravel/collect.js";
4
4
  import { PrismaClient } from "@prisma/client";
5
5
 
6
+ //#region src/types/migrations.d.ts
7
+ type SchemaColumnType = 'id' | 'uuid' | 'enum' | 'string' | 'text' | 'integer' | 'bigInteger' | 'float' | 'boolean' | 'json' | 'date' | 'timestamp';
8
+ interface SchemaColumn {
9
+ name: string;
10
+ type: SchemaColumnType;
11
+ enumName?: string;
12
+ enumValues?: string[];
13
+ map?: string;
14
+ nullable?: boolean;
15
+ unique?: boolean;
16
+ primary?: boolean;
17
+ autoIncrement?: boolean;
18
+ after?: string;
19
+ default?: unknown;
20
+ updatedAt?: boolean;
21
+ }
22
+ interface SchemaIndex {
23
+ columns: string[];
24
+ name?: string;
25
+ }
26
+ type SchemaForeignKeyAction = 'cascade' | 'restrict' | 'setNull' | 'noAction' | 'setDefault';
27
+ interface SchemaForeignKey {
28
+ column: string;
29
+ referencesTable: string;
30
+ referencesColumn: string;
31
+ onDelete?: SchemaForeignKeyAction;
32
+ relationAlias?: string;
33
+ inverseRelationAlias?: string;
34
+ fieldAlias?: string;
35
+ }
36
+ interface SchemaTableCreateOperation {
37
+ type: 'createTable';
38
+ table: string;
39
+ columns: SchemaColumn[];
40
+ indexes: SchemaIndex[];
41
+ foreignKeys: SchemaForeignKey[];
42
+ }
43
+ interface SchemaTableAlterOperation {
44
+ type: 'alterTable';
45
+ table: string;
46
+ addColumns: SchemaColumn[];
47
+ dropColumns: string[];
48
+ addIndexes: SchemaIndex[];
49
+ addForeignKeys: SchemaForeignKey[];
50
+ }
51
+ interface SchemaTableDropOperation {
52
+ type: 'dropTable';
53
+ table: string;
54
+ }
55
+ type SchemaOperation = SchemaTableCreateOperation | SchemaTableAlterOperation | SchemaTableDropOperation;
56
+ interface GenerateMigrationOptions {
57
+ directory?: string;
58
+ extension?: 'ts' | 'js';
59
+ write?: boolean;
60
+ }
61
+ interface GeneratedMigrationFile {
62
+ fileName: string;
63
+ filePath: string;
64
+ className: string;
65
+ content: string;
66
+ }
67
+ interface PrismaSchemaSyncOptions {
68
+ schemaPath?: string;
69
+ write?: boolean;
70
+ }
71
+ interface PrismaMigrationWorkflowOptions extends PrismaSchemaSyncOptions {
72
+ cwd?: string;
73
+ runGenerate?: boolean;
74
+ runMigrate?: boolean;
75
+ migrateMode?: 'dev' | 'deploy';
76
+ migrationName?: string;
77
+ }
78
+ type MigrationInstanceLike = {
79
+ up: (...args: any[]) => Promise<void> | void;
80
+ down: (...args: any[]) => Promise<void> | void;
81
+ };
82
+ interface AppliedMigrationEntry {
83
+ id: string;
84
+ file: string;
85
+ className: string;
86
+ appliedAt: string;
87
+ checksum?: string;
88
+ }
89
+ interface AppliedMigrationRun {
90
+ id: string;
91
+ appliedAt: string;
92
+ migrationIds: string[];
93
+ }
94
+ interface AppliedMigrationsState {
95
+ version: 1;
96
+ migrations: AppliedMigrationEntry[];
97
+ runs?: AppliedMigrationRun[];
98
+ }
99
+ type MigrationClass = new () => MigrationInstanceLike;
100
+ //#endregion
6
101
  //#region src/types/core.d.ts
7
102
  type CastType = 'string' | 'number' | 'boolean' | 'date' | 'json' | 'array';
8
103
  interface CastHandler<T = unknown> {
@@ -49,6 +144,21 @@ interface ArkormConfig {
49
144
  urlDriver?: PaginationURLDriverFactory;
50
145
  resolveCurrentPage?: PaginationCurrentPageResolver;
51
146
  };
147
+ /**
148
+ * @property features Optional feature flags for persisted non-Prisma runtime metadata.
149
+ */
150
+ features?: {
151
+ /**
152
+ * @property persistedColumnMappings Persist migration-defined column mappings for non-Prisma adapters.
153
+ * Defaults to true.
154
+ */
155
+ persistedColumnMappings?: boolean;
156
+ /**
157
+ * @property persistedEnums Persist migration-defined enum values for non-Prisma adapters.
158
+ * Defaults to true.
159
+ */
160
+ persistedEnums?: boolean;
161
+ };
52
162
  /**
53
163
  * @property paths Optional custom paths for various generated files.
54
164
  */
@@ -294,101 +404,6 @@ interface FactoryModelConstructor<TModel> {
294
404
  type FactoryDefinition<TAttributes extends FactoryAttributes> = (sequence: number) => TAttributes;
295
405
  type FactoryState<TAttributes extends FactoryAttributes> = (attributes: TAttributes, sequence: number) => TAttributes;
296
406
  //#endregion
297
- //#region src/types/migrations.d.ts
298
- type SchemaColumnType = 'id' | 'uuid' | 'enum' | 'string' | 'text' | 'integer' | 'bigInteger' | 'float' | 'boolean' | 'json' | 'date' | 'timestamp';
299
- interface SchemaColumn {
300
- name: string;
301
- type: SchemaColumnType;
302
- enumName?: string;
303
- enumValues?: string[];
304
- map?: string;
305
- nullable?: boolean;
306
- unique?: boolean;
307
- primary?: boolean;
308
- autoIncrement?: boolean;
309
- after?: string;
310
- default?: unknown;
311
- updatedAt?: boolean;
312
- }
313
- interface SchemaIndex {
314
- columns: string[];
315
- name?: string;
316
- }
317
- type SchemaForeignKeyAction = 'cascade' | 'restrict' | 'setNull' | 'noAction' | 'setDefault';
318
- interface SchemaForeignKey {
319
- column: string;
320
- referencesTable: string;
321
- referencesColumn: string;
322
- onDelete?: SchemaForeignKeyAction;
323
- relationAlias?: string;
324
- inverseRelationAlias?: string;
325
- fieldAlias?: string;
326
- }
327
- interface SchemaTableCreateOperation {
328
- type: 'createTable';
329
- table: string;
330
- columns: SchemaColumn[];
331
- indexes: SchemaIndex[];
332
- foreignKeys: SchemaForeignKey[];
333
- }
334
- interface SchemaTableAlterOperation {
335
- type: 'alterTable';
336
- table: string;
337
- addColumns: SchemaColumn[];
338
- dropColumns: string[];
339
- addIndexes: SchemaIndex[];
340
- addForeignKeys: SchemaForeignKey[];
341
- }
342
- interface SchemaTableDropOperation {
343
- type: 'dropTable';
344
- table: string;
345
- }
346
- type SchemaOperation = SchemaTableCreateOperation | SchemaTableAlterOperation | SchemaTableDropOperation;
347
- interface GenerateMigrationOptions {
348
- directory?: string;
349
- extension?: 'ts' | 'js';
350
- write?: boolean;
351
- }
352
- interface GeneratedMigrationFile {
353
- fileName: string;
354
- filePath: string;
355
- className: string;
356
- content: string;
357
- }
358
- interface PrismaSchemaSyncOptions {
359
- schemaPath?: string;
360
- write?: boolean;
361
- }
362
- interface PrismaMigrationWorkflowOptions extends PrismaSchemaSyncOptions {
363
- cwd?: string;
364
- runGenerate?: boolean;
365
- runMigrate?: boolean;
366
- migrateMode?: 'dev' | 'deploy';
367
- migrationName?: string;
368
- }
369
- type MigrationInstanceLike = {
370
- up: (...args: any[]) => Promise<void> | void;
371
- down: (...args: any[]) => Promise<void> | void;
372
- };
373
- interface AppliedMigrationEntry {
374
- id: string;
375
- file: string;
376
- className: string;
377
- appliedAt: string;
378
- checksum?: string;
379
- }
380
- interface AppliedMigrationRun {
381
- id: string;
382
- appliedAt: string;
383
- migrationIds: string[];
384
- }
385
- interface AppliedMigrationsState {
386
- version: 1;
387
- migrations: AppliedMigrationEntry[];
388
- runs?: AppliedMigrationRun[];
389
- }
390
- type MigrationClass = new () => MigrationInstanceLike;
391
- //#endregion
392
407
  //#region src/Collection.d.ts
393
408
  declare class ArkormCollection<T = any, X = T[]> extends Collection<T, X> {}
394
409
  //#endregion
@@ -2771,6 +2786,10 @@ interface DatabaseAdapter {
2771
2786
  exists?: <TModel = unknown>(spec: SelectSpec<TModel>) => Promise<boolean>;
2772
2787
  loadRelations?: <TModel = unknown>(spec: RelationLoadSpec<TModel>) => Promise<void>;
2773
2788
  introspectModels?: (options?: AdapterModelIntrospectionOptions) => Promise<AdapterModelStructure[]>;
2789
+ executeSchemaOperations?: (operations: SchemaOperation[]) => Promise<void>;
2790
+ resetDatabase?: () => Promise<void>;
2791
+ readAppliedMigrationsState?: () => Promise<AppliedMigrationsState>;
2792
+ writeAppliedMigrationsState?: (state: AppliedMigrationsState) => Promise<void>;
2774
2793
  transaction: <TResult = unknown>(callback: (adapter: DatabaseAdapter) => TResult | Promise<TResult>, context?: AdapterTransactionContext) => Promise<TResult>;
2775
2794
  }
2776
2795
  //#endregion
@@ -2787,8 +2806,30 @@ type KyselyTableMapping = Record<string, string>;
2787
2806
  declare class KyselyDatabaseAdapter implements DatabaseAdapter {
2788
2807
  private readonly db;
2789
2808
  private readonly mapping;
2809
+ private static readonly migrationStateTable;
2810
+ private static readonly migrationRunTable;
2790
2811
  readonly capabilities: AdapterCapabilities;
2791
2812
  constructor(db: KyselyExecutor, mapping?: KyselyTableMapping);
2813
+ private quoteIdentifier;
2814
+ private quoteLiteral;
2815
+ private executeRawStatement;
2816
+ private resolveSchemaColumnName;
2817
+ private resolveSchemaIndexName;
2818
+ private resolveSchemaForeignKeyName;
2819
+ private resolveSchemaColumnType;
2820
+ private resolveSchemaColumnDefault;
2821
+ private shouldUseIdentity;
2822
+ private buildSchemaColumnDefinition;
2823
+ private buildSchemaForeignKeyConstraint;
2824
+ private buildSchemaIndexStatement;
2825
+ private ensureEnumTypes;
2826
+ private executeCreateTableOperation;
2827
+ private executeAlterTableOperation;
2828
+ private executeDropTableOperation;
2829
+ private ensureMigrationStateTables;
2830
+ private writeAppliedMigrationsStateInternal;
2831
+ private resetDatabaseInternal;
2832
+ private normalizeIntrospectionEnumValues;
2792
2833
  private introspectionTypeToTs;
2793
2834
  private resolveTable;
2794
2835
  private resolvePrimaryKey;
@@ -2914,6 +2955,10 @@ declare class KyselyDatabaseAdapter implements DatabaseAdapter {
2914
2955
  */
2915
2956
  exists<TModel = unknown>(spec: SelectSpec<TModel>): Promise<boolean>;
2916
2957
  introspectModels(options?: AdapterModelIntrospectionOptions): Promise<AdapterModelStructure[]>;
2958
+ executeSchemaOperations(operations: SchemaOperation[]): Promise<void>;
2959
+ resetDatabase(): Promise<void>;
2960
+ readAppliedMigrationsState(): Promise<AppliedMigrationsState>;
2961
+ writeAppliedMigrationsState(state: AppliedMigrationsState): Promise<void>;
2917
2962
  /**
2918
2963
  * Executes a series of database operations within a transaction.
2919
2964
  * The provided callback function is called with a new instance of the
@@ -3279,6 +3324,7 @@ declare class CliApp {
3279
3324
  private syncPrismaEnumImports;
3280
3325
  private parseModelSyncSource;
3281
3326
  private syncModelFiles;
3327
+ private applyPersistedEnumMetadata;
3282
3328
  /**
3283
3329
  * Parse Prisma enum definitions from a schema and return their member names.
3284
3330
  *
@@ -3473,6 +3519,15 @@ declare class MigrateCommand extends Command<CliApp> {
3473
3519
  private loadMigrationClassesFromFile;
3474
3520
  }
3475
3521
  //#endregion
3522
+ //#region src/cli/commands/MigrateFreshCommand.d.ts
3523
+ declare class MigrateFreshCommand extends Command<CliApp> {
3524
+ protected signature: string;
3525
+ protected description: string;
3526
+ handle(): Promise<undefined>;
3527
+ private loadAllMigrations;
3528
+ private loadMigrationClassesFromFile;
3529
+ }
3530
+ //#endregion
3476
3531
  //#region src/cli/commands/MigrateRollbackCommand.d.ts
3477
3532
  /**
3478
3533
  * Rollback migration classes from the Prisma schema and run Prisma workflow.
@@ -3506,7 +3561,7 @@ declare class MigrationHistoryCommand extends Command<CliApp> {
3506
3561
  declare class ModelsSyncCommand extends Command<CliApp> {
3507
3562
  protected signature: string;
3508
3563
  protected description: string;
3509
- handle(): Promise<void>;
3564
+ handle(): Promise<undefined>;
3510
3565
  }
3511
3566
  //#endregion
3512
3567
  //#region src/cli/commands/SeedCommand.d.ts
@@ -4112,12 +4167,61 @@ declare class UnsupportedAdapterFeatureException extends ArkormException {
4112
4167
  constructor(message: string, context?: ArkormErrorContext);
4113
4168
  }
4114
4169
  //#endregion
4170
+ //#region src/helpers/column-mappings.d.ts
4171
+ interface PersistedMetadataFeatures {
4172
+ persistedColumnMappings: boolean;
4173
+ persistedEnums: boolean;
4174
+ }
4175
+ interface PersistedTableMetadata {
4176
+ columns: Record<string, string>;
4177
+ enums: Record<string, string[]>;
4178
+ }
4179
+ interface PersistedColumnMappingsState {
4180
+ version: 1;
4181
+ tables: Record<string, PersistedTableMetadata>;
4182
+ }
4183
+ declare const resolvePersistedMetadataFeatures: (features?: ArkormConfig["features"]) => PersistedMetadataFeatures;
4184
+ declare const createEmptyPersistedColumnMappingsState: () => PersistedColumnMappingsState;
4185
+ declare const resolveColumnMappingsFilePath: (cwd: string, configuredPath?: string) => string;
4186
+ declare const resetPersistedColumnMappingsCache: () => void;
4187
+ declare const readPersistedColumnMappingsState: (filePath: string) => PersistedColumnMappingsState;
4188
+ declare const writePersistedColumnMappingsState: (filePath: string, state: PersistedColumnMappingsState) => void;
4189
+ declare const deletePersistedColumnMappingsState: (filePath: string) => void;
4190
+ declare const getPersistedTableMetadata: (table: string, options?: {
4191
+ cwd?: string;
4192
+ configuredPath?: string;
4193
+ features?: PersistedMetadataFeatures;
4194
+ strict?: boolean;
4195
+ }) => PersistedTableMetadata;
4196
+ declare const getPersistedColumnMap: (table: string, options?: {
4197
+ cwd?: string;
4198
+ configuredPath?: string;
4199
+ features?: PersistedMetadataFeatures;
4200
+ strict?: boolean;
4201
+ }) => Record<string, string>;
4202
+ declare const getPersistedEnumMap: (table: string, options?: {
4203
+ cwd?: string;
4204
+ configuredPath?: string;
4205
+ features?: PersistedMetadataFeatures;
4206
+ strict?: boolean;
4207
+ }) => Record<string, string[]>;
4208
+ declare const applyOperationsToPersistedColumnMappingsState: (state: PersistedColumnMappingsState, operations: SchemaOperation[], features?: PersistedMetadataFeatures) => PersistedColumnMappingsState;
4209
+ declare const rebuildPersistedColumnMappingsState: (state: AppliedMigrationsState, availableMigrations: [MigrationClass, string][], features?: PersistedMetadataFeatures) => Promise<PersistedColumnMappingsState>;
4210
+ declare const syncPersistedColumnMappingsFromState: (cwd: string, state: AppliedMigrationsState, availableMigrations: [MigrationClass, string][], features?: PersistedMetadataFeatures) => Promise<void>;
4211
+ declare const validatePersistedMetadataFeaturesForMigrations: (migrations: [MigrationClass, string][], features?: PersistedMetadataFeatures) => Promise<void>;
4212
+ declare const getPersistedEnumTsType: (values: string[]) => string;
4213
+ //#endregion
4115
4214
  //#region src/helpers/migration-history.d.ts
4215
+ declare const createEmptyAppliedMigrationsState: () => AppliedMigrationsState;
4216
+ declare const supportsDatabaseMigrationState: (adapter?: DatabaseAdapter) => adapter is DatabaseAdapter & Required<Pick<DatabaseAdapter, "readAppliedMigrationsState" | "writeAppliedMigrationsState">>;
4116
4217
  declare const resolveMigrationStateFilePath: (cwd: string, configuredPath?: string) => string;
4117
4218
  declare const buildMigrationIdentity: (filePath: string, className: string) => string;
4118
4219
  declare const computeMigrationChecksum: (filePath: string) => string;
4119
4220
  declare const readAppliedMigrationsState: (stateFilePath: string) => AppliedMigrationsState;
4221
+ declare const readAppliedMigrationsStateFromStore: (adapter: DatabaseAdapter | undefined, stateFilePath: string) => Promise<AppliedMigrationsState>;
4120
4222
  declare const writeAppliedMigrationsState: (stateFilePath: string, state: AppliedMigrationsState) => void;
4223
+ declare const writeAppliedMigrationsStateToStore: (adapter: DatabaseAdapter | undefined, stateFilePath: string, state: AppliedMigrationsState) => Promise<void>;
4224
+ declare const deleteAppliedMigrationsStateFromStore: (adapter: DatabaseAdapter | undefined, stateFilePath: string) => Promise<"database" | "file" | "missing-file">;
4121
4225
  declare const isMigrationApplied: (state: AppliedMigrationsState, identity: string, checksum?: string) => boolean;
4122
4226
  declare const findAppliedMigration: (state: AppliedMigrationsState, identity: string) => AppliedMigrationEntry | undefined;
4123
4227
  declare const markMigrationApplied: (state: AppliedMigrationsState, entry: AppliedMigrationEntry) => AppliedMigrationsState;
@@ -4372,6 +4476,15 @@ declare const generateMigrationFile: (name: string, options?: GenerateMigrationO
4372
4476
  * @returns A promise that resolves to an array of schema operations that would be performed.
4373
4477
  */
4374
4478
  declare const getMigrationPlan: (migration: Migration | (new () => Migration), direction?: "up" | "down") => Promise<SchemaOperation[]>;
4479
+ declare const supportsDatabaseMigrationExecution: (adapter?: DatabaseAdapter) => adapter is DatabaseAdapter & Required<Pick<DatabaseAdapter, "executeSchemaOperations">>;
4480
+ declare const supportsDatabaseReset: (adapter?: DatabaseAdapter) => adapter is DatabaseAdapter & Required<Pick<DatabaseAdapter, "resetDatabase">>;
4481
+ declare const stripPrismaSchemaModelsAndEnums: (schema: string) => string;
4482
+ declare const applyMigrationToDatabase: (adapter: DatabaseAdapter, migration: Migration | (new () => Migration)) => Promise<{
4483
+ operations: SchemaOperation[];
4484
+ }>;
4485
+ declare const applyMigrationRollbackToDatabase: (adapter: DatabaseAdapter, migration: Migration | (new () => Migration)) => Promise<{
4486
+ operations: SchemaOperation[];
4487
+ }>;
4375
4488
  /**
4376
4489
  * Apply the schema operations defined in a migration to a Prisma schema
4377
4490
  * file, updating the file on disk if specified, and return the updated
@@ -4543,4 +4656,4 @@ declare class URLDriver {
4543
4656
  url(page: number): string;
4544
4657
  }
4545
4658
  //#endregion
4546
- export { AdapterBindableModel, AdapterCapabilities, AdapterCapability, AdapterModelFieldStructure, AdapterModelIntrospectionOptions, AdapterModelStructure, AdapterTransactionContext, AggregateOperation, AggregateSelection, AggregateSpec, AppliedMigrationEntry, AppliedMigrationRun, AppliedMigrationsState, ArkormBootContext, ArkormCollection, ArkormConfig, ArkormErrorContext, ArkormException, Attribute, AttributeCreateInput, AttributeOptions, AttributeOrderBy, AttributeSchemaDelegate, AttributeSelect, AttributeUpdateInput, AttributeWhereInput, BelongsToManyRelationMetadata, BelongsToRelationMetadata, CastDefinition, CastHandler, CastMap, CastType, CliApp, ClientResolver, ColumnMap, DatabaseAdapter, DatabasePrimitive, DatabaseRow, DatabaseRows, DatabaseValue, DelegateCreateData, DelegateFindManyArgs, DelegateForModelSchema, DelegateInclude, DelegateOrderBy, DelegateRow, DelegateRows, DelegateSelect, DelegateUniqueWhere, DelegateUpdateArgs, DelegateUpdateData, DelegateWhere, DeleteManySpec, DeleteSpec, EagerLoadConstraint, EagerLoadMap, EnumBuilder, FactoryAttributes, FactoryDefinition, FactoryModelConstructor, FactoryState, ForeignKeyBuilder, GenerateMigrationOptions, GeneratedMigrationFile, GetUserConfig, GlobalScope, HasManyRelationMetadata, HasManyThroughRelationMetadata, HasOneRelationMetadata, HasOneThroughRelationMetadata, InitCommand, InlineFactory, InsertManySpec, InsertSpec, KyselyDatabaseAdapter, LengthAwarePaginator, MIGRATION_BRAND, MakeFactoryCommand, MakeMigrationCommand, MakeModelCommand, MakeSeederCommand, MigrateCommand, MigrateRollbackCommand, Migration, MigrationClass, MigrationHistoryCommand, MigrationInstanceLike, MissingDelegateException, Model, ModelAttributes, ModelAttributesOf, ModelCreateData, ModelEventDispatcher, ModelEventHandler, ModelEventHandlerConstructor, ModelEventListener, ModelEventName, ModelFactory, ModelLifecycleState, ModelMetadata, ModelNotFoundException, ModelStatic, ModelUpdateData, ModelsSyncCommand, MorphManyRelationMetadata, MorphOneRelationMetadata, MorphToManyRelationMetadata, PRISMA_ENUM_MEMBER_REGEX, PRISMA_ENUM_REGEX, PRISMA_MODEL_REGEX, PaginationCurrentPageResolver, PaginationMeta, PaginationOptions, PaginationURLDriver, PaginationURLDriverFactory, Paginator, PrismaClientLike, PrismaDatabaseAdapter, PrismaDelegateLike, PrismaDelegateMap, PrismaDelegateNameMapping, PrismaFindManyArgsLike, PrismaLikeInclude, PrismaLikeOrderBy, PrismaLikeScalarFilter, PrismaLikeSelect, PrismaLikeSortOrder, PrismaLikeWhereInput, PrismaMigrationWorkflowOptions, PrismaSchemaSyncOptions, PrismaTransactionCallback, PrismaTransactionCapableClient, PrismaTransactionOptions, QueryBuilder, QueryComparisonCondition, QueryComparisonOperator, QueryCondition, QueryConstraintException, QueryGroupCondition, QueryLogicalOperator, QueryNotCondition, QueryOrderBy, QueryRawCondition, QuerySelectColumn, QueryTarget, RelatedModelClass, RelationAggregateSpec, RelationColumnLookupSpec, RelationConstraint, RelationDefaultResolver, RelationDefaultValue, RelationFilterSpec, RelationLoadPlan, RelationLoadSpec, RelationMetadata, RelationMetadataProvider, RelationMetadataType, RelationResolutionException, RelationTableLookupSpec, RelationshipModelStatic, RuntimeModuleLoader, SEEDER_BRAND, SchemaBuilder, SchemaColumn, SchemaColumnType, SchemaForeignKey, SchemaForeignKeyAction, SchemaIndex, SchemaOperation, SchemaTableAlterOperation, SchemaTableCreateOperation, SchemaTableDropOperation, ScopeNotDefinedException, SeedCommand, Seeder, SeederCallArgument, SeederConstructor, SeederInput, SelectSpec, Serializable, SimplePaginationMeta, SoftDeleteConfig, SoftDeleteQueryMode, SortDirection, TableBuilder, URLDriver, UniqueConstraintResolutionException, UnsupportedAdapterFeatureException, UpdateManySpec, UpdateSpec, UpsertSpec, applyAlterTableOperation, applyCreateTableOperation, applyDropTableOperation, applyMigrationRollbackToPrismaSchema, applyMigrationToPrismaSchema, applyOperationsToPrismaSchema, bindAdapterToModels, buildEnumBlock, buildFieldLine, buildIndexLine, buildInverseRelationLine, buildMigrationIdentity, buildMigrationRunId, buildMigrationSource, buildModelBlock, buildRelationLine, computeMigrationChecksum, configureArkormRuntime, createKyselyAdapter, createMigrationTimestamp, createPrismaAdapter, createPrismaCompatibilityAdapter, createPrismaDatabaseAdapter, createPrismaDelegateMap, defineConfig, defineFactory, deriveCollectionFieldName, deriveInverseRelationAlias, deriveRelationAlias, deriveRelationFieldName, deriveSingularFieldName, ensureArkormConfigLoading, escapeRegex, findAppliedMigration, findEnumBlock, findModelBlock, formatDefaultValue, formatEnumDefaultValue, formatRelationAction, generateMigrationFile, getActiveTransactionClient, getDefaultStubsPath, getLastMigrationRun, getLatestAppliedMigrations, getMigrationPlan, getRuntimeAdapter, getRuntimePaginationCurrentPageResolver, getRuntimePaginationURLDriverFactory, getRuntimePrismaClient, getUserConfig, inferDelegateName, isDelegateLike, isMigrationApplied, isTransactionCapableClient, loadArkormConfig, markMigrationApplied, markMigrationRun, pad, readAppliedMigrationsState, removeAppliedMigration, resetArkormRuntimeForTests, resolveCast, resolveEnumName, resolveMigrationClassName, resolveMigrationStateFilePath, resolvePrismaType, runArkormTransaction, runMigrationWithPrisma, runPrismaCommand, toMigrationFileSlug, toModelName, writeAppliedMigrationsState };
4659
+ export { AdapterBindableModel, AdapterCapabilities, AdapterCapability, AdapterModelFieldStructure, AdapterModelIntrospectionOptions, AdapterModelStructure, AdapterTransactionContext, AggregateOperation, AggregateSelection, AggregateSpec, AppliedMigrationEntry, AppliedMigrationRun, AppliedMigrationsState, ArkormBootContext, ArkormCollection, ArkormConfig, ArkormErrorContext, ArkormException, Attribute, AttributeCreateInput, AttributeOptions, AttributeOrderBy, AttributeSchemaDelegate, AttributeSelect, AttributeUpdateInput, AttributeWhereInput, BelongsToManyRelationMetadata, BelongsToRelationMetadata, CastDefinition, CastHandler, CastMap, CastType, CliApp, ClientResolver, ColumnMap, DatabaseAdapter, DatabasePrimitive, DatabaseRow, DatabaseRows, DatabaseValue, DelegateCreateData, DelegateFindManyArgs, DelegateForModelSchema, DelegateInclude, DelegateOrderBy, DelegateRow, DelegateRows, DelegateSelect, DelegateUniqueWhere, DelegateUpdateArgs, DelegateUpdateData, DelegateWhere, DeleteManySpec, DeleteSpec, EagerLoadConstraint, EagerLoadMap, EnumBuilder, FactoryAttributes, FactoryDefinition, FactoryModelConstructor, FactoryState, ForeignKeyBuilder, GenerateMigrationOptions, GeneratedMigrationFile, GetUserConfig, GlobalScope, HasManyRelationMetadata, HasManyThroughRelationMetadata, HasOneRelationMetadata, HasOneThroughRelationMetadata, InitCommand, InlineFactory, InsertManySpec, InsertSpec, KyselyDatabaseAdapter, LengthAwarePaginator, MIGRATION_BRAND, MakeFactoryCommand, MakeMigrationCommand, MakeModelCommand, MakeSeederCommand, MigrateCommand, MigrateFreshCommand, MigrateRollbackCommand, Migration, MigrationClass, MigrationHistoryCommand, MigrationInstanceLike, MissingDelegateException, Model, ModelAttributes, ModelAttributesOf, ModelCreateData, ModelEventDispatcher, ModelEventHandler, ModelEventHandlerConstructor, ModelEventListener, ModelEventName, ModelFactory, ModelLifecycleState, ModelMetadata, ModelNotFoundException, ModelStatic, ModelUpdateData, ModelsSyncCommand, MorphManyRelationMetadata, MorphOneRelationMetadata, MorphToManyRelationMetadata, PRISMA_ENUM_MEMBER_REGEX, PRISMA_ENUM_REGEX, PRISMA_MODEL_REGEX, PaginationCurrentPageResolver, PaginationMeta, PaginationOptions, PaginationURLDriver, PaginationURLDriverFactory, Paginator, PersistedColumnMappingsState, PersistedMetadataFeatures, PersistedTableMetadata, PrismaClientLike, PrismaDatabaseAdapter, PrismaDelegateLike, PrismaDelegateMap, PrismaDelegateNameMapping, PrismaFindManyArgsLike, PrismaLikeInclude, PrismaLikeOrderBy, PrismaLikeScalarFilter, PrismaLikeSelect, PrismaLikeSortOrder, PrismaLikeWhereInput, PrismaMigrationWorkflowOptions, PrismaSchemaSyncOptions, PrismaTransactionCallback, PrismaTransactionCapableClient, PrismaTransactionOptions, QueryBuilder, QueryComparisonCondition, QueryComparisonOperator, QueryCondition, QueryConstraintException, QueryGroupCondition, QueryLogicalOperator, QueryNotCondition, QueryOrderBy, QueryRawCondition, QuerySelectColumn, QueryTarget, RelatedModelClass, RelationAggregateSpec, RelationColumnLookupSpec, RelationConstraint, RelationDefaultResolver, RelationDefaultValue, RelationFilterSpec, RelationLoadPlan, RelationLoadSpec, RelationMetadata, RelationMetadataProvider, RelationMetadataType, RelationResolutionException, RelationTableLookupSpec, RelationshipModelStatic, RuntimeModuleLoader, SEEDER_BRAND, SchemaBuilder, SchemaColumn, SchemaColumnType, SchemaForeignKey, SchemaForeignKeyAction, SchemaIndex, SchemaOperation, SchemaTableAlterOperation, SchemaTableCreateOperation, SchemaTableDropOperation, ScopeNotDefinedException, SeedCommand, Seeder, SeederCallArgument, SeederConstructor, SeederInput, SelectSpec, Serializable, SimplePaginationMeta, SoftDeleteConfig, SoftDeleteQueryMode, SortDirection, TableBuilder, URLDriver, UniqueConstraintResolutionException, UnsupportedAdapterFeatureException, UpdateManySpec, UpdateSpec, UpsertSpec, applyAlterTableOperation, applyCreateTableOperation, applyDropTableOperation, applyMigrationRollbackToDatabase, applyMigrationRollbackToPrismaSchema, applyMigrationToDatabase, applyMigrationToPrismaSchema, applyOperationsToPersistedColumnMappingsState, applyOperationsToPrismaSchema, bindAdapterToModels, buildEnumBlock, buildFieldLine, buildIndexLine, buildInverseRelationLine, buildMigrationIdentity, buildMigrationRunId, buildMigrationSource, buildModelBlock, buildRelationLine, computeMigrationChecksum, configureArkormRuntime, createEmptyAppliedMigrationsState, createEmptyPersistedColumnMappingsState, createKyselyAdapter, createMigrationTimestamp, createPrismaAdapter, createPrismaCompatibilityAdapter, createPrismaDatabaseAdapter, createPrismaDelegateMap, defineConfig, defineFactory, deleteAppliedMigrationsStateFromStore, deletePersistedColumnMappingsState, deriveCollectionFieldName, deriveInverseRelationAlias, deriveRelationAlias, deriveRelationFieldName, deriveSingularFieldName, ensureArkormConfigLoading, escapeRegex, findAppliedMigration, findEnumBlock, findModelBlock, formatDefaultValue, formatEnumDefaultValue, formatRelationAction, generateMigrationFile, getActiveTransactionClient, getDefaultStubsPath, getLastMigrationRun, getLatestAppliedMigrations, getMigrationPlan, getPersistedColumnMap, getPersistedEnumMap, getPersistedEnumTsType, getPersistedTableMetadata, getRuntimeAdapter, getRuntimePaginationCurrentPageResolver, getRuntimePaginationURLDriverFactory, getRuntimePrismaClient, getUserConfig, inferDelegateName, isDelegateLike, isMigrationApplied, isTransactionCapableClient, loadArkormConfig, markMigrationApplied, markMigrationRun, pad, readAppliedMigrationsState, readAppliedMigrationsStateFromStore, readPersistedColumnMappingsState, rebuildPersistedColumnMappingsState, removeAppliedMigration, resetArkormRuntimeForTests, resetPersistedColumnMappingsCache, resolveCast, resolveColumnMappingsFilePath, resolveEnumName, resolveMigrationClassName, resolveMigrationStateFilePath, resolvePersistedMetadataFeatures, resolvePrismaType, runArkormTransaction, runMigrationWithPrisma, runPrismaCommand, stripPrismaSchemaModelsAndEnums, supportsDatabaseMigrationExecution, supportsDatabaseMigrationState, supportsDatabaseReset, syncPersistedColumnMappingsFromState, toMigrationFileSlug, toModelName, validatePersistedMetadataFeaturesForMigrations, writeAppliedMigrationsState, writeAppliedMigrationsStateToStore, writePersistedColumnMappingsState };