arkormx 2.4.5 → 2.4.7
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/cli.mjs +160 -25
- package/dist/{index-A71-nct_.d.cts → index-Bn-2R_ax.d.mts} +155 -7
- package/dist/{index-ngpa9-9f.d.mts → index-DKqMpR3p.d.cts} +155 -7
- package/dist/index.cjs +629 -346
- package/dist/index.d.cts +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +628 -347
- package/dist/relationship/index.cjs +1 -1
- package/dist/relationship/index.d.cts +1 -1
- package/dist/relationship/index.d.mts +1 -1
- package/dist/relationship/index.mjs +1 -1
- package/dist/{relationship-DcvK5Xn-.mjs → relationship-BkNxySap.mjs} +136 -23
- package/dist/{relationship-Cku0y1Mt.cjs → relationship-CuPNAoHm.cjs} +147 -22
- package/package.json +3 -3
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Collection } from "@h3ravel/collect.js";
|
|
2
1
|
import { Kysely, Transaction } from "kysely";
|
|
3
|
-
import { Command } from "@h3ravel/musket";
|
|
4
2
|
import { PrismaClient } from "@prisma/client";
|
|
3
|
+
import { Collection } from "@h3ravel/collect.js";
|
|
4
|
+
import { Command } from "@h3ravel/musket";
|
|
5
5
|
|
|
6
6
|
//#region src/types/migrations.d.ts
|
|
7
7
|
type SchemaColumnType = 'id' | 'uuid' | 'enum' | 'string' | 'text' | 'integer' | 'bigInteger' | 'float' | 'boolean' | 'json' | 'date' | 'timestamp';
|
|
@@ -35,6 +35,14 @@ interface SchemaIndex {
|
|
|
35
35
|
columns: string[];
|
|
36
36
|
name?: string;
|
|
37
37
|
}
|
|
38
|
+
interface SchemaPrimaryKey {
|
|
39
|
+
columns: string[];
|
|
40
|
+
name?: string;
|
|
41
|
+
}
|
|
42
|
+
interface SchemaUniqueConstraint {
|
|
43
|
+
columns: string[];
|
|
44
|
+
name?: string;
|
|
45
|
+
}
|
|
38
46
|
type SchemaForeignKeyAction = 'cascade' | 'restrict' | 'setNull' | 'noAction' | 'setDefault';
|
|
39
47
|
interface SchemaForeignKey {
|
|
40
48
|
column: string;
|
|
@@ -51,6 +59,8 @@ interface SchemaTableCreateOperation {
|
|
|
51
59
|
columns: SchemaColumn[];
|
|
52
60
|
indexes: SchemaIndex[];
|
|
53
61
|
foreignKeys: SchemaForeignKey[];
|
|
62
|
+
primaryKey?: SchemaPrimaryKey;
|
|
63
|
+
uniqueConstraints?: SchemaUniqueConstraint[];
|
|
54
64
|
}
|
|
55
65
|
interface SchemaTableAlterOperation {
|
|
56
66
|
type: 'alterTable';
|
|
@@ -59,6 +69,8 @@ interface SchemaTableAlterOperation {
|
|
|
59
69
|
dropColumns: string[];
|
|
60
70
|
addIndexes: SchemaIndex[];
|
|
61
71
|
addForeignKeys: SchemaForeignKey[];
|
|
72
|
+
addPrimaryKey?: SchemaPrimaryKey;
|
|
73
|
+
addUniqueConstraints?: SchemaUniqueConstraint[];
|
|
62
74
|
}
|
|
63
75
|
interface SchemaTableDropOperation {
|
|
64
76
|
type: 'dropTable';
|
|
@@ -221,9 +233,22 @@ type FactoryAttributes = Record<string, unknown>;
|
|
|
221
233
|
type MaybePromise<T> = T | Promise<T>;
|
|
222
234
|
interface FactoryModelConstructor<TModel> {
|
|
223
235
|
new (attributes?: Record<string, unknown>): TModel;
|
|
236
|
+
readonly name: string;
|
|
237
|
+
getPrimaryKey?: () => string;
|
|
238
|
+
getRelationMetadata?: (name: string) => unknown;
|
|
239
|
+
query?: () => {
|
|
240
|
+
create: (attributes: Record<string, unknown>) => Promise<TModel>;
|
|
241
|
+
};
|
|
224
242
|
}
|
|
225
|
-
|
|
226
|
-
|
|
243
|
+
interface FactoryRelationshipResolver {
|
|
244
|
+
create: (overrides?: Record<string, unknown>) => Promise<unknown>;
|
|
245
|
+
getModelConstructor: () => FactoryModelConstructor<unknown>;
|
|
246
|
+
}
|
|
247
|
+
type FactoryAttributeResolver<TAttributes extends FactoryAttributes> = (attributes: TAttributes) => MaybePromise<unknown>;
|
|
248
|
+
type FactoryDefinitionAttributes<TAttributes extends FactoryAttributes> = { [TKey in keyof TAttributes]?: TAttributes[TKey] | FactoryRelationshipResolver | FactoryAttributeResolver<TAttributes> } & Record<string, unknown>;
|
|
249
|
+
type FactoryDefinition<TAttributes extends FactoryAttributes> = (sequence: number) => MaybePromise<FactoryDefinitionAttributes<TAttributes>>;
|
|
250
|
+
type FactoryState<TAttributes extends FactoryAttributes> = (attributes: TAttributes, sequence: number) => MaybePromise<FactoryDefinitionAttributes<TAttributes>>;
|
|
251
|
+
type FactoryCallback<TModel> = (model: TModel) => MaybePromise<void>;
|
|
227
252
|
//#endregion
|
|
228
253
|
//#region src/Collection.d.ts
|
|
229
254
|
declare class ArkormCollection<T = any, X = T[]> extends Collection<T, X> {}
|
|
@@ -1418,8 +1443,20 @@ declare abstract class ModelFactory<TModel, TAttributes extends FactoryAttribute
|
|
|
1418
1443
|
private amount;
|
|
1419
1444
|
private sequence;
|
|
1420
1445
|
private states;
|
|
1446
|
+
private configured;
|
|
1447
|
+
private afterMakingCallbacks;
|
|
1448
|
+
private afterCreatingCallbacks;
|
|
1449
|
+
private hasRelations;
|
|
1450
|
+
private forRelations;
|
|
1451
|
+
private attachedRelations;
|
|
1452
|
+
private recyclePool;
|
|
1453
|
+
private recycleOffsets;
|
|
1421
1454
|
protected abstract model: FactoryModelConstructor<TModel>;
|
|
1422
|
-
protected abstract definition(sequence: number): MaybePromise<TAttributes
|
|
1455
|
+
protected abstract definition(sequence: number): MaybePromise<FactoryDefinitionAttributes<TAttributes>>;
|
|
1456
|
+
/**
|
|
1457
|
+
* Configure states and lifecycle callbacks for each new factory instance.
|
|
1458
|
+
*/
|
|
1459
|
+
protected configure(): void;
|
|
1423
1460
|
/**
|
|
1424
1461
|
* Set the number of models to create.
|
|
1425
1462
|
*
|
|
@@ -1435,6 +1472,20 @@ declare abstract class ModelFactory<TModel, TAttributes extends FactoryAttribute
|
|
|
1435
1472
|
* @returns The factory instance for chaining.
|
|
1436
1473
|
*/
|
|
1437
1474
|
state(resolver: FactoryState<TAttributes>): this;
|
|
1475
|
+
/**
|
|
1476
|
+
* Register a callback that runs after a model is made.
|
|
1477
|
+
*
|
|
1478
|
+
* @param callback
|
|
1479
|
+
* @returns
|
|
1480
|
+
*/
|
|
1481
|
+
afterMaking(callback: FactoryCallback<TModel>): this;
|
|
1482
|
+
/**
|
|
1483
|
+
* Register a callback that runs after a model is persisted.
|
|
1484
|
+
*
|
|
1485
|
+
* @param callback
|
|
1486
|
+
* @returns
|
|
1487
|
+
*/
|
|
1488
|
+
afterCreating(callback: FactoryCallback<TModel>): this;
|
|
1438
1489
|
/**
|
|
1439
1490
|
* Create a new model instance without saving it to the database.
|
|
1440
1491
|
*
|
|
@@ -1482,6 +1533,46 @@ declare abstract class ModelFactory<TModel, TAttributes extends FactoryAttribute
|
|
|
1482
1533
|
* @returns
|
|
1483
1534
|
*/
|
|
1484
1535
|
createMany(amount?: number, overrides?: Partial<TAttributes>): Promise<TModel[]>;
|
|
1536
|
+
/**
|
|
1537
|
+
* Create related models through a has-one or has-many relationship.
|
|
1538
|
+
*
|
|
1539
|
+
* @param factory
|
|
1540
|
+
* @param relationship
|
|
1541
|
+
* @returns
|
|
1542
|
+
*/
|
|
1543
|
+
has<F extends ModelFactory<any, any>>(factory: F, relationship?: string): this;
|
|
1544
|
+
/**
|
|
1545
|
+
* Associate the created model with a parent model or factory.
|
|
1546
|
+
*
|
|
1547
|
+
* @param related
|
|
1548
|
+
* @param relationship
|
|
1549
|
+
* @returns
|
|
1550
|
+
*/
|
|
1551
|
+
for(related: ModelFactory<any, any> | Model, relationship?: string): this;
|
|
1552
|
+
/**
|
|
1553
|
+
* Create or reuse related models and attach them through a many-to-many relationship.
|
|
1554
|
+
*
|
|
1555
|
+
* @param related
|
|
1556
|
+
* @param pivot
|
|
1557
|
+
* @param relationship
|
|
1558
|
+
* @returns
|
|
1559
|
+
*/
|
|
1560
|
+
hasAttached(related: ModelFactory<any, any> | Model | Model[], pivot?: Record<string, unknown>, relationship?: string): this;
|
|
1561
|
+
/**
|
|
1562
|
+
* Reuse existing models when resolving factory-backed relationships.
|
|
1563
|
+
*
|
|
1564
|
+
* @param models
|
|
1565
|
+
* @returns
|
|
1566
|
+
*/
|
|
1567
|
+
recycle(models: Model | Model[] | {
|
|
1568
|
+
all: () => Model[];
|
|
1569
|
+
}): this;
|
|
1570
|
+
/**
|
|
1571
|
+
* Get the model contgructor
|
|
1572
|
+
*
|
|
1573
|
+
* @returns
|
|
1574
|
+
*/
|
|
1575
|
+
getModelConstructor(): FactoryModelConstructor<TModel>;
|
|
1485
1576
|
/**
|
|
1486
1577
|
* Build the attributes for a model instance, applying the factory
|
|
1487
1578
|
* definition and any defined states, and merging in any overrides.
|
|
@@ -1497,7 +1588,25 @@ declare abstract class ModelFactory<TModel, TAttributes extends FactoryAttribute
|
|
|
1497
1588
|
* @returns
|
|
1498
1589
|
*/
|
|
1499
1590
|
private buildAttributesAsync;
|
|
1591
|
+
private ensureConfigured;
|
|
1592
|
+
private resolveAttributesSync;
|
|
1593
|
+
private resolveAttributesAsync;
|
|
1594
|
+
private applyBelongsToRelationshipsSync;
|
|
1595
|
+
private applyBelongsToRelationships;
|
|
1596
|
+
private mergeBelongsToAttribute;
|
|
1597
|
+
private createPersisted;
|
|
1598
|
+
private saveModel;
|
|
1599
|
+
private createHasRelations;
|
|
1600
|
+
private createAttachedRelations;
|
|
1601
|
+
private resolveRelation;
|
|
1602
|
+
private resolveFactoryKey;
|
|
1603
|
+
private resolveFactoryModel;
|
|
1604
|
+
private inheritRecyclePool;
|
|
1605
|
+
private takeRecycledModel;
|
|
1606
|
+
private runCallbacksSync;
|
|
1607
|
+
private runCallbacks;
|
|
1500
1608
|
private static isPromiseLike;
|
|
1609
|
+
private static isFactory;
|
|
1501
1610
|
}
|
|
1502
1611
|
/**
|
|
1503
1612
|
* A helper class for defining factories using an inline definition
|
|
@@ -1512,7 +1621,7 @@ declare class InlineFactory<TModel, TAttributes extends FactoryAttributes> exten
|
|
|
1512
1621
|
private readonly resolver;
|
|
1513
1622
|
protected model: FactoryModelConstructor<TModel>;
|
|
1514
1623
|
constructor(model: FactoryModelConstructor<TModel>, resolver: FactoryDefinition<TAttributes>);
|
|
1515
|
-
protected definition(sequence: number): MaybePromise<TAttributes
|
|
1624
|
+
protected definition(sequence: number): MaybePromise<FactoryDefinitionAttributes<TAttributes>>;
|
|
1516
1625
|
}
|
|
1517
1626
|
/**
|
|
1518
1627
|
* Define a factory for a given model using an inline definition function.
|
|
@@ -3827,6 +3936,8 @@ declare class KyselyDatabaseAdapter implements DatabaseAdapter {
|
|
|
3827
3936
|
private buildSchemaColumnDefinition;
|
|
3828
3937
|
private buildSchemaForeignKeyConstraint;
|
|
3829
3938
|
private buildSchemaIndexStatement;
|
|
3939
|
+
private buildSchemaPrimaryKeyConstraint;
|
|
3940
|
+
private buildSchemaUniqueConstraint;
|
|
3830
3941
|
private ensureEnumTypes;
|
|
3831
3942
|
private executeCreateTableOperation;
|
|
3832
3943
|
private executeAlterTableOperation;
|
|
@@ -4161,6 +4272,7 @@ declare const SEEDER_BRAND: unique symbol;
|
|
|
4161
4272
|
*/
|
|
4162
4273
|
declare abstract class Seeder {
|
|
4163
4274
|
static readonly [SEEDER_BRAND] = true;
|
|
4275
|
+
private static readonly executionReport;
|
|
4164
4276
|
/**
|
|
4165
4277
|
* Defines the operations to be performed when running the seeder.
|
|
4166
4278
|
*/
|
|
@@ -4171,6 +4283,13 @@ declare abstract class Seeder {
|
|
|
4171
4283
|
* @param seeders The seeders to be run.
|
|
4172
4284
|
*/
|
|
4173
4285
|
call(...seeders: SeederCallArgument[]): Promise<void>;
|
|
4286
|
+
/**
|
|
4287
|
+
* Run seeders and return every seeder class executed, including nested calls.
|
|
4288
|
+
*
|
|
4289
|
+
* @param seeders
|
|
4290
|
+
* @returns
|
|
4291
|
+
*/
|
|
4292
|
+
static runWithReport(...seeders: SeederCallArgument[]): Promise<string[]>;
|
|
4174
4293
|
/**
|
|
4175
4294
|
* Converts a SeederInput into a Seeder instance.
|
|
4176
4295
|
*
|
|
@@ -5035,6 +5154,8 @@ declare class TableBuilder {
|
|
|
5035
5154
|
private readonly dropColumnNames;
|
|
5036
5155
|
private readonly indexes;
|
|
5037
5156
|
private readonly foreignKeys;
|
|
5157
|
+
private readonly compositeUniqueConstraints;
|
|
5158
|
+
private compositePrimaryKey?;
|
|
5038
5159
|
private latestColumnName;
|
|
5039
5160
|
/**
|
|
5040
5161
|
* Defines a primary key column in the table.
|
|
@@ -5043,6 +5164,7 @@ declare class TableBuilder {
|
|
|
5043
5164
|
* @param options
|
|
5044
5165
|
* @returns
|
|
5045
5166
|
*/
|
|
5167
|
+
primary(columns: string[], name?: string): this;
|
|
5046
5168
|
primary(columnNameOrOptions?: string | {
|
|
5047
5169
|
columnName?: string;
|
|
5048
5170
|
autoIncrement?: boolean;
|
|
@@ -5125,6 +5247,7 @@ declare class TableBuilder {
|
|
|
5125
5247
|
* When omitted, applies to the latest defined column.
|
|
5126
5248
|
* @returns The current TableBuilder instance for chaining.
|
|
5127
5249
|
*/
|
|
5250
|
+
unique(columns: string[], name?: string): this;
|
|
5128
5251
|
unique(name?: string): this;
|
|
5129
5252
|
/**
|
|
5130
5253
|
* Defines a boolean column in the table.
|
|
@@ -5278,6 +5401,14 @@ declare class TableBuilder {
|
|
|
5278
5401
|
* @returns
|
|
5279
5402
|
*/
|
|
5280
5403
|
getForeignKeys(): SchemaForeignKey[];
|
|
5404
|
+
/**
|
|
5405
|
+
* Returns a copy of the table-level composite primary key.
|
|
5406
|
+
*/
|
|
5407
|
+
getPrimaryKey(): SchemaPrimaryKey | undefined;
|
|
5408
|
+
/**
|
|
5409
|
+
* Returns copies of table-level composite unique constraints.
|
|
5410
|
+
*/
|
|
5411
|
+
getUniqueConstraints(): SchemaUniqueConstraint[];
|
|
5281
5412
|
/**
|
|
5282
5413
|
* Defines a column in the table with the given name.
|
|
5283
5414
|
*
|
|
@@ -5294,6 +5425,7 @@ declare class TableBuilder {
|
|
|
5294
5425
|
* @returns
|
|
5295
5426
|
*/
|
|
5296
5427
|
private resolveColumn;
|
|
5428
|
+
private normalizeCompositeColumns;
|
|
5297
5429
|
}
|
|
5298
5430
|
//#endregion
|
|
5299
5431
|
//#region src/database/SchemaBuilder.d.ts
|
|
@@ -5335,6 +5467,8 @@ declare class SchemaBuilder {
|
|
|
5335
5467
|
* @returns An array of schema operations for the migration.
|
|
5336
5468
|
*/
|
|
5337
5469
|
getOperations(): SchemaOperation[];
|
|
5470
|
+
private validateCompositePrimaryKey;
|
|
5471
|
+
private validateCompositeUniqueConstraints;
|
|
5338
5472
|
}
|
|
5339
5473
|
//#endregion
|
|
5340
5474
|
//#region src/database/Migration.d.ts
|
|
@@ -5629,6 +5763,20 @@ declare const findEnumBlock: (schema: string, enumName: string) => {
|
|
|
5629
5763
|
* @returns
|
|
5630
5764
|
*/
|
|
5631
5765
|
declare const buildIndexLine: (index: SchemaIndex) => string;
|
|
5766
|
+
/**
|
|
5767
|
+
* Build a Prisma model-level composite primary key definition.
|
|
5768
|
+
*
|
|
5769
|
+
* @param primaryKey
|
|
5770
|
+
* @returns
|
|
5771
|
+
*/
|
|
5772
|
+
declare const buildPrimaryKeyLine: (primaryKey: SchemaPrimaryKey) => string;
|
|
5773
|
+
/**
|
|
5774
|
+
* Build a Prisma model-level composite unique constraint definition.
|
|
5775
|
+
*
|
|
5776
|
+
* @param constraint
|
|
5777
|
+
* @returns
|
|
5778
|
+
*/
|
|
5779
|
+
declare const buildUniqueConstraintLine: (constraint: SchemaUniqueConstraint) => string;
|
|
5632
5780
|
/**
|
|
5633
5781
|
* Derive a relation field name from a foreign key column name by applying
|
|
5634
5782
|
* common conventions, such as removing "Id" suffixes and converting to camelCase.
|
|
@@ -6027,4 +6175,4 @@ declare class URLDriver {
|
|
|
6027
6175
|
url(page: number): string;
|
|
6028
6176
|
}
|
|
6029
6177
|
//#endregion
|
|
6030
|
-
export { deriveInverseRelationAlias as $, SetBasedEagerLoader as $a, PrismaTransactionContext as $i, getRegisteredPaths as $n, MigrationInstanceLike as $o, RawQuerySpec as $r, getPersistedTableMetadata as $t, resetArkormRuntimeForTests as A, AttributeWhereInput as Aa, DelegateUpdateData as Ai, MigrateRollbackCommand as An, MaybePromise as Ao, AdapterTransactionContext as Ar, getLatestAppliedMigrations as At, applyMigrationRollbackToPrismaSchema as B, ModelEventHandlerConstructor as Ba, PaginationURLDriver as Bi, Attribute as Bn, ModelMetadata as Bo, DeleteSpec as Br, writeAppliedMigrationsStateToStore as Bt, getRuntimePaginationURLDriverFactory as C, QueryBuilder as Ca, DelegateInclude as Ci, SchemaBuilder as Cn, LengthAwarePaginator as Co, AdapterCapability as Cr, buildMigrationIdentity as Ct, isQuerySchemaLike as D, AttributeSchemaDelegate as Da, DelegateSelect as Di, SeedCommand as Dn, FactoryDefinition as Do, AdapterModelIntrospectionOptions as Dr, deleteAppliedMigrationsStateFromStore as Dt, isDelegateLike as E, AttributeQuerySchema as Ea, DelegateRows as Ei, ForeignKeyBuilder as En, FactoryAttributes as Eo, AdapterModelFieldStructure as Er, createEmptyAppliedMigrationsState as Et, PRISMA_MODEL_REGEX as F, ModelAttributesOf as Fa, ModelQuerySchemaLike as Fi, MakeMigrationCommand as Fn, ColumnMap as Fo, DatabasePrimitive as Fr, readAppliedMigrationsStateFromStore as Ft, buildFieldLine as G, ModelRelationshipResult as Ga, PrismaLikeInclude as Gi, RegisteredModel as Gn, RelationMetadata as Go, QueryCondition as Gr, PersistedTimestampColumn as Gt, applyMigrationToPrismaSchema as H, ModelEventName as Ha, PrismaClientLike as Hi, Arkorm as Hn, MorphOneRelationMetadata as Ho, InsertSpec as Hr, PersistedMetadataFeatures as Ht, applyAlterTableOperation as I, ModelCreateData as Ia, ModelTableCase as Ii, MakeFactoryCommand as In, HasManyRelationMetadata as Io, DatabaseRow as Ir, removeAppliedMigration as It, buildMigrationSource as J, RelatedModelClass as Ja, PrismaLikeSelect as Ji, RuntimePathKey as Jn, AppliedMigrationRun as Jo, QueryNotCondition as Jr, deletePersistedColumnMappingsState as Jt, buildIndexLine as K, ModelUpdateData as Ka, PrismaLikeOrderBy as Ki, RuntimeConstructor as Kn, RelationMetadataType as Ko, QueryGroupCondition as Kr, applyOperationsToPersistedColumnMappingsState as Kt, applyCreateTableOperation as L, ModelDeclaredAttributeKey as La, PaginationCurrentPageResolver as Li, InitCommand as Ln, HasManyThroughRelationMetadata as Lo, DatabaseRows as Lr, resolveMigrationStateFilePath as Lt, PrimaryKeyGenerationPlanner as M, GlobalScope as Ma, EagerLoadConstraint as Mi, MigrateCommand as Mn, DatabaseTablePersistedMetadataOptions as Mo, AggregateSelection as Mr, markMigrationApplied as Mt, PRISMA_ENUM_MEMBER_REGEX as N, ModelAttributeValue as Na, EagerLoadMap as Ni, MakeSeederCommand as Nn, BelongsToManyRelationMetadata as No, AggregateSpec as Nr, markMigrationRun as Nt, isTransactionCapableClient as O, AttributeSelect as Oa, DelegateUniqueWhere as Oi, ModelsSyncCommand as On, FactoryModelConstructor as Oo, AdapterModelStructure as Or, findAppliedMigration as Ot, PRISMA_ENUM_REGEX as P, ModelAttributes as Pa, GetUserConfig as Pi, MakeModelCommand as Pn, BelongsToRelationMetadata as Po, DatabaseAdapter as Pr, readAppliedMigrationsState as Pt, deriveCollectionFieldName as Q, defineFactory as Qa, PrismaTransactionCapableClient as Qi, getRegisteredModels as Qn, MigrationClass as Qo, QueryTarget as Qr, getPersistedPrimaryKeyGeneration as Qt, applyDropTableOperation as R, ModelEventDispatcher as Ra, PaginationMeta as Ri, CliApp as Rn, HasOneRelationMetadata as Ro, DatabaseValue as Rr, supportsDatabaseMigrationState as Rt, getRuntimePaginationCurrentPageResolver as S, RelationshipModelStatic as Sa, DelegateFindManyArgs as Si, Migration as Sn, RelationTableLookupSpec as So, AdapterCapabilities as Sr, toModelName as St, getUserConfig as T, AttributeOrderBy as Ta, DelegateRow as Ti, TableBuilder as Tn, ArkormCollection as To, AdapterInspectionRequest as Tr, computeMigrationChecksum as Tt, applyOperationsToPrismaSchema as U, ModelLifecycleState as Ua, PrismaDelegateLike as Ui, Arkormx as Un, MorphToManyRelationMetadata as Uo, QueryComparisonCondition as Ur, PersistedPrimaryKeyGeneration as Ut, applyMigrationToDatabase as V, ModelEventListener as Va, PaginationURLDriverFactory as Vi, AttributeOptions as Vn, MorphManyRelationMetadata as Vo, InsertManySpec as Vr, PersistedColumnMappingsState as Vt, buildEnumBlock as W, ModelRelationshipKey as Wa, PrismaFindManyArgsLike as Wi, RegisteredFactory as Wn, PivotModelStatic as Wo, QueryComparisonOperator as Wr, PersistedTableMetadata as Wt, buildRelationLine as X, InlineFactory as Xa, PrismaLikeWhereInput as Xi, getRegisteredFactories as Xn, GenerateMigrationOptions as Xo, QueryRawCondition as Xr, getPersistedEnumMap as Xt, buildModelBlock as Y, Model as Ya, PrismaLikeSortOrder as Yi, RuntimePathMap as Yn, AppliedMigrationsState as Yo, QueryOrderBy as Yr, getPersistedColumnMap as Yt, createMigrationTimestamp as Z, ModelFactory as Za, PrismaTransactionCallback as Zi, getRegisteredMigrations as Zn, GeneratedMigrationFile as Zo, QuerySelectColumn as Zr, getPersistedEnumTsType as Zt, getActiveTransactionClient as _, TransactionCallback as _a, CastHandler as _i, MissingDelegateException as _n, RelationDefaultResolver as _o, PrismaDelegateNameMapping as _r, stripPrismaSchemaModelsAndEnums as _t, resolveRuntimeCompatibilityQuerySchema as a, QuerySchemaRow as aa, SoftDeleteQueryMode as ai, resolvePersistedMetadataFeatures as an, HasManyThroughRelation as ao, registerFactories as ar, SchemaForeignKey as as, findModelBlock as at, getRuntimeClient as b, TransactionOptions as ba, ClientResolver as bi, DB as bn, RelationResult as bo, KyselyDatabaseAdapter as br, supportsDatabaseReset as bt, createPrismaAdapter as c, QuerySchemaUniqueWhere as ca, UpdateSpec as ci, writePersistedColumnMappingsState as cn, SingleResultRelation as co, registerPaths as cr, SchemaOperation as cs, formatRelationAction as ct, bindAdapterToModels as d, QuerySchemaWhere as da, AdapterQueryInspection as di, ScopeNotDefinedException as dn, RelationTableLoader as do, SEEDER_BRAND as dr, SchemaTableDropOperation as ds, pad as dt, PrismaTransactionOptions as ea, RelationAggregateSpec as ei, getPersistedTimestampColumns as en, MorphToManyRelation as eo, getRegisteredSeeders as er, PrimaryKeyGeneration as es, deriveRelationAlias as et, configureArkormRuntime as f, RawSelectInput as fa, ArkormBootContext as fi, RelationResolutionException as fn, RelationAggregateConstraint as fo, Seeder as fr, TimestampColumnBehavior as fs, resolveEnumName as ft, getActiveTransactionAdapter as g, SoftDeleteConfig as ga, CastDefinition as gi, ModelNotFoundException as gn, RelationConstraint as go, PrismaDatabaseAdapter as gr, runPrismaCommand as gt, ensureArkormConfigLoading as h, SimplePaginationMeta as ha, ArkormDebugHandler as hi, QueryConstraintException as hn, RelationColumnLookupSpec as ho, SeederInput as hr, runMigrationWithPrisma as ht, getRuntimeCompatibilityAdapter as i, QuerySchemaOrderBy as ia, SelectSpec as ii, resolveColumnMappingsFilePath as in, HasOneRelation as io, loadSeedersFrom as ir, SchemaColumnType as is, findEnumBlock as it, runArkormTransaction as j, DelegateForModelSchema as ja, DelegateWhere as ji, MigrateFreshCommand as jn, DatabaseTableOptions as jo, AggregateOperation as jr, isMigrationApplied as jt, loadArkormConfig as k, AttributeUpdateInput as ka, DelegateUpdateArgs as ki, MigrationHistoryCommand as kn, FactoryState as ko, AdapterQueryOperation as kr, getLastMigrationRun as kt, createPrismaDelegateMap as l, QuerySchemaUpdateArgs as la, UpsertSpec as li, UnsupportedAdapterFeatureException as ln, BelongsToManyRelation as lo, registerSeeders as lr, SchemaTableAlterOperation as ls, generateMigrationFile as lt, emitRuntimeDebugEvent as m, Serializable as ma, ArkormDebugEvent as mi, QueryExecutionExceptionContext as mn, RelationAggregateType as mo, SeederConstructor as mr, resolvePrismaType as mt, PivotModel as n, QuerySchemaFindManyArgs as na, RelationLoadPlan as ni, rebuildPersistedColumnMappingsState as nn, MorphManyRelation as no, loadMigrationsFrom as nr, PrismaSchemaSyncOptions as ns, deriveSingularFieldName as nt, resolveRuntimeCompatibilityQuerySchemaOrThrow as o, QuerySchemaRows as oa, SortDirection as oi, syncPersistedColumnMappingsFromState as on, HasManyRelation as oo, registerMigrations as or, SchemaForeignKeyAction as os, formatDefaultValue as ot, defineConfig as p, RuntimeClientLike as pa, ArkormConfig as pi, QueryExecutionException as pn, RelationAggregateInput as po, SeederCallArgument as pr, resolveMigrationClassName as pt, buildInverseRelationLine as q, QuerySchemaForModel as qa, PrismaLikeScalarFilter as qi, RuntimePathInput as qn, AppliedMigrationEntry as qo, QueryLogicalOperator as qr, createEmptyPersistedColumnMappingsState as qt, RuntimeModuleLoader as r, QuerySchemaInclude as ra, RelationLoadSpec as ri, resetPersistedColumnMappingsCache as rn, HasOneThroughRelation as ro, loadModelsFrom as rr, SchemaColumn as rs, escapeRegex as rt, PrismaDelegateMap as s, QuerySchemaSelect as sa, UpdateManySpec as si, validatePersistedMetadataFeaturesForMigrations as sn, BelongsToRelation as so, registerModels as sr, SchemaIndex as ss, formatEnumDefaultValue as st, URLDriver as t, QuerySchemaCreateData as ta, RelationFilterSpec as ti, readPersistedColumnMappingsState as tn, MorphOneRelation as to, loadFactoriesFrom as tr, PrismaMigrationWorkflowOptions as ts, deriveRelationFieldName as tt, inferDelegateName as u, QuerySchemaUpdateData as ua, AdapterBindableModel as ui, UniqueConstraintResolutionException as un, Relation as uo, resetRuntimeRegistryForTests as ur, SchemaTableCreateOperation as us, getMigrationPlan as ut, getDefaultStubsPath as v, TransactionCapableClient as va, CastMap as vi, ArkormErrorContext as vn, RelationDefaultValue as vo, createPrismaCompatibilityAdapter as vr, supportsDatabaseCreation as vt, getRuntimePrismaClient as w, AttributeCreateInput as wa, DelegateOrderBy as wi, EnumBuilder as wn, Paginator as wo, AdapterDatabaseCreationResult as wr, buildMigrationRunId as wt, getRuntimeDebugHandler as x, ModelStatic as xa, DelegateCreateData as xi, MIGRATION_BRAND as xn, RelationResultCache as xo, createKyselyAdapter as xr, toMigrationFileSlug as xt, getRuntimeAdapter as y, TransactionContext as ya, CastType as yi, ArkormException as yn, RelationMetadataProvider as yo, createPrismaDatabaseAdapter as yr, supportsDatabaseMigrationExecution as yt, applyMigrationRollbackToDatabase as z, ModelEventHandler as za, PaginationOptions as zi, resolveCast as zn, HasOneThroughRelationMetadata as zo, DeleteManySpec as zr, writeAppliedMigrationsState as zt };
|
|
6178
|
+
export { createMigrationTimestamp as $, ModelFactory as $a, PrismaTransactionCallback as $i, getRegisteredMigrations as $n, AppliedMigrationEntry as $o, QuerySelectColumn as $r, getPersistedEnumTsType as $t, resetArkormRuntimeForTests as A, AttributeSelect as Aa, DelegateUniqueWhere as Ai, ModelsSyncCommand as An, FactoryCallback as Ao, AdapterModelStructure as Ar, findAppliedMigration as At, applyMigrationRollbackToPrismaSchema as B, ModelEventDispatcher as Ba, PaginationMeta as Bi, CliApp as Bn, BelongsToRelationMetadata as Bo, DatabaseValue as Br, supportsDatabaseMigrationState as Bt, getRuntimePaginationURLDriverFactory as C, ModelStatic as Ca, DelegateCreateData as Ci, MIGRATION_BRAND as Cn, RelationResultCache as Co, createKyselyAdapter as Cr, toMigrationFileSlug as Ct, isQuerySchemaLike as D, AttributeOrderBy as Da, DelegateRow as Di, TableBuilder as Dn, ArkormCollection as Do, AdapterInspectionRequest as Dr, computeMigrationChecksum as Dt, isDelegateLike as E, AttributeCreateInput as Ea, DelegateOrderBy as Ei, EnumBuilder as En, Paginator as Eo, AdapterDatabaseCreationResult as Er, buildMigrationRunId as Et, PRISMA_MODEL_REGEX as F, ModelAttributeValue as Fa, EagerLoadMap as Fi, MakeSeederCommand as Fn, FactoryState as Fo, AggregateSpec as Fr, markMigrationRun as Ft, buildFieldLine as G, ModelLifecycleState as Ga, PrismaDelegateLike as Gi, Arkormx as Gn, HasOneThroughRelationMetadata as Go, QueryComparisonCondition as Gr, PersistedPrimaryKeyGeneration as Gt, applyMigrationToPrismaSchema as H, ModelEventHandlerConstructor as Ha, PaginationURLDriver as Hi, Attribute as Hn, HasManyRelationMetadata as Ho, DeleteSpec as Hr, writeAppliedMigrationsStateToStore as Ht, applyAlterTableOperation as I, ModelAttributes as Ia, GetUserConfig as Ii, MakeModelCommand as In, MaybePromise as Io, DatabaseAdapter as Ir, readAppliedMigrationsState as It, buildMigrationSource as J, ModelUpdateData as Ja, PrismaLikeOrderBy as Ji, RuntimeConstructor as Jn, MorphOneRelationMetadata as Jo, QueryGroupCondition as Jr, applyOperationsToPersistedColumnMappingsState as Jt, buildIndexLine as K, ModelRelationshipKey as Ka, PrismaFindManyArgsLike as Ki, RegisteredFactory as Kn, ModelMetadata as Ko, QueryComparisonOperator as Kr, PersistedTableMetadata as Kt, applyCreateTableOperation as L, ModelAttributesOf as La, ModelQuerySchemaLike as Li, MakeMigrationCommand as Ln, DatabaseTableOptions as Lo, DatabasePrimitive as Lr, readAppliedMigrationsStateFromStore as Lt, PrimaryKeyGenerationPlanner as M, AttributeWhereInput as Ma, DelegateUpdateData as Mi, MigrateRollbackCommand as Mn, FactoryDefinitionAttributes as Mo, AdapterTransactionContext as Mr, getLatestAppliedMigrations as Mt, PRISMA_ENUM_MEMBER_REGEX as N, DelegateForModelSchema as Na, DelegateWhere as Ni, MigrateFreshCommand as Nn, FactoryModelConstructor as No, AggregateOperation as Nr, isMigrationApplied as Nt, isTransactionCapableClient as O, AttributeQuerySchema as Oa, DelegateRows as Oi, ForeignKeyBuilder as On, FactoryAttributeResolver as Oo, AdapterModelFieldStructure as Or, createEmptyAppliedMigrationsState as Ot, PRISMA_ENUM_REGEX as P, GlobalScope as Pa, EagerLoadConstraint as Pi, MigrateCommand as Pn, FactoryRelationshipResolver as Po, AggregateSelection as Pr, markMigrationApplied as Pt, buildUniqueConstraintLine as Q, InlineFactory as Qa, PrismaLikeWhereInput as Qi, getRegisteredFactories as Qn, RelationMetadataType as Qo, QueryRawCondition as Qr, getPersistedEnumMap as Qt, applyDropTableOperation as R, ModelCreateData as Ra, ModelTableCase as Ri, MakeFactoryCommand as Rn, DatabaseTablePersistedMetadataOptions as Ro, DatabaseRow as Rr, removeAppliedMigration as Rt, getRuntimePaginationCurrentPageResolver as S, TransactionOptions as Sa, ClientResolver as Si, DB as Sn, RelationResult as So, KyselyDatabaseAdapter as Sr, supportsDatabaseReset as St, getUserConfig as T, QueryBuilder as Ta, DelegateInclude as Ti, SchemaBuilder as Tn, LengthAwarePaginator as To, AdapterCapability as Tr, buildMigrationIdentity as Tt, applyOperationsToPrismaSchema as U, ModelEventListener as Ua, PaginationURLDriverFactory as Ui, AttributeOptions as Un, HasManyThroughRelationMetadata as Uo, InsertManySpec as Ur, PersistedColumnMappingsState as Ut, applyMigrationToDatabase as V, ModelEventHandler as Va, PaginationOptions as Vi, resolveCast as Vn, ColumnMap as Vo, DeleteManySpec as Vr, writeAppliedMigrationsState as Vt, buildEnumBlock as W, ModelEventName as Wa, PrismaClientLike as Wi, Arkorm as Wn, HasOneRelationMetadata as Wo, InsertSpec as Wr, PersistedMetadataFeatures as Wt, buildPrimaryKeyLine as X, RelatedModelClass as Xa, PrismaLikeSelect as Xi, RuntimePathKey as Xn, PivotModelStatic as Xo, QueryNotCondition as Xr, deletePersistedColumnMappingsState as Xt, buildModelBlock as Y, QuerySchemaForModel as Ya, PrismaLikeScalarFilter as Yi, RuntimePathInput as Yn, MorphToManyRelationMetadata as Yo, QueryLogicalOperator as Yr, createEmptyPersistedColumnMappingsState as Yt, buildRelationLine as Z, Model as Za, PrismaLikeSortOrder as Zi, RuntimePathMap as Zn, RelationMetadata as Zo, QueryOrderBy as Zr, getPersistedColumnMap as Zt, getActiveTransactionClient as _, SimplePaginationMeta as _a, ArkormDebugHandler as _i, QueryConstraintException as _n, RelationColumnLookupSpec as _o, SeederInput as _r, SchemaTableCreateOperation as _s, runMigrationWithPrisma as _t, resolveRuntimeCompatibilityQuerySchema as a, QuerySchemaInclude as aa, RelationLoadSpec as ai, resetPersistedColumnMappingsCache as an, HasOneThroughRelation as ao, loadModelsFrom as ar, MigrationInstanceLike as as, escapeRegex as at, getRuntimeClient as b, TransactionCapableClient as ba, CastMap as bi, ArkormErrorContext as bn, RelationDefaultValue as bo, createPrismaCompatibilityAdapter as br, TimestampColumnBehavior as bs, supportsDatabaseCreation as bt, createPrismaAdapter as c, QuerySchemaRows as ca, SortDirection as ci, syncPersistedColumnMappingsFromState as cn, HasManyRelation as co, registerMigrations as cr, PrismaSchemaSyncOptions as cs, formatDefaultValue as ct, bindAdapterToModels as d, QuerySchemaUpdateArgs as da, UpsertSpec as di, UnsupportedAdapterFeatureException as dn, BelongsToManyRelation as do, registerSeeders as dr, SchemaForeignKey as ds, generateMigrationFile as dt, PrismaTransactionCapableClient as ea, QueryTarget as ei, getPersistedPrimaryKeyGeneration as en, defineFactory as eo, getRegisteredModels as er, AppliedMigrationRun as es, deriveCollectionFieldName as et, configureArkormRuntime as f, QuerySchemaUpdateData as fa, AdapterBindableModel as fi, UniqueConstraintResolutionException as fn, Relation as fo, resetRuntimeRegistryForTests as fr, SchemaForeignKeyAction as fs, getMigrationPlan as ft, getActiveTransactionAdapter as g, Serializable as ga, ArkormDebugEvent as gi, QueryExecutionExceptionContext as gn, RelationAggregateType as go, SeederConstructor as gr, SchemaTableAlterOperation as gs, resolvePrismaType as gt, ensureArkormConfigLoading as h, RuntimeClientLike as ha, ArkormConfig as hi, QueryExecutionException as hn, RelationAggregateInput as ho, SeederCallArgument as hr, SchemaPrimaryKey as hs, resolveMigrationClassName as ht, getRuntimeCompatibilityAdapter as i, QuerySchemaFindManyArgs as ia, RelationLoadPlan as ii, rebuildPersistedColumnMappingsState as in, MorphManyRelation as io, loadMigrationsFrom as ir, MigrationClass as is, deriveSingularFieldName as it, runArkormTransaction as j, AttributeUpdateInput as ja, DelegateUpdateArgs as ji, MigrationHistoryCommand as jn, FactoryDefinition as jo, AdapterQueryOperation as jr, getLastMigrationRun as jt, loadArkormConfig as k, AttributeSchemaDelegate as ka, DelegateSelect as ki, SeedCommand as kn, FactoryAttributes as ko, AdapterModelIntrospectionOptions as kr, deleteAppliedMigrationsStateFromStore as kt, createPrismaDelegateMap as l, QuerySchemaSelect as la, UpdateManySpec as li, validatePersistedMetadataFeaturesForMigrations as ln, BelongsToRelation as lo, registerModels as lr, SchemaColumn as ls, formatEnumDefaultValue as lt, emitRuntimeDebugEvent as m, RawSelectInput as ma, ArkormBootContext as mi, RelationResolutionException as mn, RelationAggregateConstraint as mo, Seeder as mr, SchemaOperation as ms, resolveEnumName as mt, PivotModel as n, PrismaTransactionOptions as na, RelationAggregateSpec as ni, getPersistedTimestampColumns as nn, MorphToManyRelation as no, getRegisteredSeeders as nr, GenerateMigrationOptions as ns, deriveRelationAlias as nt, resolveRuntimeCompatibilityQuerySchemaOrThrow as o, QuerySchemaOrderBy as oa, SelectSpec as oi, resolveColumnMappingsFilePath as on, HasOneRelation as oo, loadSeedersFrom as or, PrimaryKeyGeneration as os, findEnumBlock as ot, defineConfig as p, QuerySchemaWhere as pa, AdapterQueryInspection as pi, ScopeNotDefinedException as pn, RelationTableLoader as po, SEEDER_BRAND as pr, SchemaIndex as ps, pad as pt, buildInverseRelationLine as q, ModelRelationshipResult as qa, PrismaLikeInclude as qi, RegisteredModel as qn, MorphManyRelationMetadata as qo, QueryCondition as qr, PersistedTimestampColumn as qt, RuntimeModuleLoader as r, QuerySchemaCreateData as ra, RelationFilterSpec as ri, readPersistedColumnMappingsState as rn, MorphOneRelation as ro, loadFactoriesFrom as rr, GeneratedMigrationFile as rs, deriveRelationFieldName as rt, PrismaDelegateMap as s, QuerySchemaRow as sa, SoftDeleteQueryMode as si, resolvePersistedMetadataFeatures as sn, HasManyThroughRelation as so, registerFactories as sr, PrismaMigrationWorkflowOptions as ss, findModelBlock as st, URLDriver as t, PrismaTransactionContext as ta, RawQuerySpec as ti, getPersistedTableMetadata as tn, SetBasedEagerLoader as to, getRegisteredPaths as tr, AppliedMigrationsState as ts, deriveInverseRelationAlias as tt, inferDelegateName as u, QuerySchemaUniqueWhere as ua, UpdateSpec as ui, writePersistedColumnMappingsState as un, SingleResultRelation as uo, registerPaths as ur, SchemaColumnType as us, formatRelationAction as ut, getDefaultStubsPath as v, SoftDeleteConfig as va, CastDefinition as vi, ModelNotFoundException as vn, RelationConstraint as vo, PrismaDatabaseAdapter as vr, SchemaTableDropOperation as vs, runPrismaCommand as vt, getRuntimePrismaClient as w, RelationshipModelStatic as wa, DelegateFindManyArgs as wi, Migration as wn, RelationTableLookupSpec as wo, AdapterCapabilities as wr, toModelName as wt, getRuntimeDebugHandler as x, TransactionContext as xa, CastType as xi, ArkormException as xn, RelationMetadataProvider as xo, createPrismaDatabaseAdapter as xr, supportsDatabaseMigrationExecution as xt, getRuntimeAdapter as y, TransactionCallback as ya, CastHandler as yi, MissingDelegateException as yn, RelationDefaultResolver as yo, PrismaDelegateNameMapping as yr, SchemaUniqueConstraint as ys, stripPrismaSchemaModelsAndEnums as yt, applyMigrationRollbackToDatabase as z, ModelDeclaredAttributeKey as za, PaginationCurrentPageResolver as zi, InitCommand as zn, BelongsToManyRelationMetadata as zo, DatabaseRows as zr, resolveMigrationStateFilePath as zt };
|