arkormx 2.12.2 → 2.12.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/cli.mjs +19 -11
- package/dist/{index-3-Sgl4-j.d.cts → index-D5P29WUY.d.cts} +34 -3
- package/dist/{index-CwRrmbzl.d.mts → index-M-1ywpZN.d.mts} +34 -3
- package/dist/index.cjs +20 -12
- package/dist/index.d.cts +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +20 -12
- 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-B7dIK_Vc.cjs → relationship-DFBGmJ1I.cjs} +32 -3
- package/dist/{relationship-CrNsvYto.mjs → relationship-DG3yhhK7.mjs} +32 -3
- package/package.json +1 -1
package/dist/cli.mjs
CHANGED
|
@@ -4383,22 +4383,30 @@ var CliApp = class {
|
|
|
4383
4383
|
syncModelRegistryTypes(modelFiles) {
|
|
4384
4384
|
const registryDir = join$1(realpathSync(process.cwd()), ".arkormx");
|
|
4385
4385
|
const registryPath = join$1(registryDir, "models.d.ts");
|
|
4386
|
+
const models = modelFiles.map((filePath) => {
|
|
4387
|
+
const parsed = this.parseModelSyncSource(readFileSync$1(filePath, "utf-8"));
|
|
4388
|
+
if (!parsed) return null;
|
|
4389
|
+
return {
|
|
4390
|
+
className: parsed.className,
|
|
4391
|
+
importPath: this.resolveModelRegistryImportPath(registryPath, filePath)
|
|
4392
|
+
};
|
|
4393
|
+
}).filter((model) => model !== null).sort((left, right) => left.className.localeCompare(right.className));
|
|
4394
|
+
const nameRegistryLines = models.map((model) => {
|
|
4395
|
+
return ` ${model.className}: true`;
|
|
4396
|
+
});
|
|
4386
4397
|
const content = [
|
|
4387
4398
|
"/* eslint-disable */",
|
|
4388
4399
|
"// This file is generated by `arkorm models:sync`.",
|
|
4389
4400
|
"",
|
|
4390
4401
|
"declare module 'arkormx' {",
|
|
4391
|
-
|
|
4392
|
-
|
|
4393
|
-
|
|
4394
|
-
|
|
4395
|
-
|
|
4396
|
-
|
|
4397
|
-
|
|
4398
|
-
|
|
4399
|
-
}).filter((model) => model !== null).sort((left, right) => left.className.localeCompare(right.className)).map((model) => {
|
|
4400
|
-
return ` ${model.className}: typeof import('${model.importPath}')['${model.className}']`;
|
|
4401
|
-
}),
|
|
4402
|
+
...models.flatMap((model) => [
|
|
4403
|
+
" function getModel(",
|
|
4404
|
+
` modelName: '${model.className}',`,
|
|
4405
|
+
` ): typeof import('${model.importPath}')['${model.className}']`,
|
|
4406
|
+
""
|
|
4407
|
+
]),
|
|
4408
|
+
" interface ArkormModelNameRegistry {",
|
|
4409
|
+
...nameRegistryLines,
|
|
4402
4410
|
" }",
|
|
4403
4411
|
"}",
|
|
4404
4412
|
"",
|
|
@@ -1511,6 +1511,7 @@ declare class BelongsToManyRelation<TParent, TRelated> extends Relation<TRelated
|
|
|
1511
1511
|
private pivotModel;
|
|
1512
1512
|
private shouldAttachPivot;
|
|
1513
1513
|
private readonly pivotValues;
|
|
1514
|
+
private pivotColumnAliasCache;
|
|
1514
1515
|
constructor(parent: TParent & {
|
|
1515
1516
|
getAttribute: (key: string) => unknown;
|
|
1516
1517
|
}, related: RelationshipModelStatic, throughTable: string, foreignPivotKey: string, relatedPivotKey: string, parentKey: string, relatedKey: string);
|
|
@@ -1628,6 +1629,25 @@ declare class BelongsToManyRelation<TParent, TRelated> extends Relation<TRelated
|
|
|
1628
1629
|
private normalizeRelatedItems;
|
|
1629
1630
|
private normalizeSyncEntries;
|
|
1630
1631
|
private resolveParentPivotValue;
|
|
1632
|
+
/**
|
|
1633
|
+
* `column -> attribute` for the pivot table, memoized.
|
|
1634
|
+
*
|
|
1635
|
+
* The query adapter maps result rows back to attribute names via
|
|
1636
|
+
* `reverseColumnMap`, so a pivot column such as `permission_id` is returned
|
|
1637
|
+
* under `permissionId` whenever the pivot table has a registered column map.
|
|
1638
|
+
*/
|
|
1639
|
+
private pivotColumnAliases;
|
|
1640
|
+
/**
|
|
1641
|
+
* Read a pivot column from a selected row under whichever key it is stored.
|
|
1642
|
+
*
|
|
1643
|
+
* Rows read through the query adapter are keyed by attribute name, while
|
|
1644
|
+
* rows from the lightweight table loader keep their raw column names.
|
|
1645
|
+
* Indexing only by the raw column made `sync` (and pivot attachment during
|
|
1646
|
+
* eager loads) treat every existing row as absent, so `sync` re-inserted
|
|
1647
|
+
* rows that already existed and tripped the pivot's unique constraint. Try
|
|
1648
|
+
* the raw column first, then its attribute alias.
|
|
1649
|
+
*/
|
|
1650
|
+
private readPivotColumn;
|
|
1631
1651
|
private resolveRelatedPivotValue;
|
|
1632
1652
|
private buildPivotInsertValues;
|
|
1633
1653
|
private attachPivotToSingleResult;
|
|
@@ -3292,6 +3312,7 @@ declare abstract class Model<TSchema extends ModelQuerySchemaLike | Record<strin
|
|
|
3292
3312
|
*/
|
|
3293
3313
|
protected hasOne<TRelatedClass extends RelatedModelClass>(related: TRelatedClass, foreignKey: string, localKey?: string): HasOneRelation<this, InstanceType<TRelatedClass>>;
|
|
3294
3314
|
protected hasOne<TName extends RegisteredModelName>(related: TName, foreignKey?: string, localKey?: string): HasOneRelation<this, RegisteredModelInstance<TName>>;
|
|
3315
|
+
protected hasOne<TRelated extends Model = Model>(related: string, foreignKey?: string, localKey?: string): HasOneRelation<this, TRelated>;
|
|
3295
3316
|
protected hasOne(related: string, foreignKey?: string, localKey?: string): HasOneRelation<this, Model>;
|
|
3296
3317
|
/**
|
|
3297
3318
|
* Define a has many relationship.
|
|
@@ -3303,6 +3324,7 @@ declare abstract class Model<TSchema extends ModelQuerySchemaLike | Record<strin
|
|
|
3303
3324
|
*/
|
|
3304
3325
|
protected hasMany<TRelatedClass extends RelatedModelClass>(related: TRelatedClass, foreignKey: string, localKey?: string): HasManyRelation<this, InstanceType<TRelatedClass>>;
|
|
3305
3326
|
protected hasMany<TName extends RegisteredModelName>(related: TName, foreignKey?: string, localKey?: string): HasManyRelation<this, RegisteredModelInstance<TName>>;
|
|
3327
|
+
protected hasMany<TRelated extends Model = Model>(related: string, foreignKey?: string, localKey?: string): HasManyRelation<this, TRelated>;
|
|
3306
3328
|
protected hasMany(related: string, foreignKey?: string, localKey?: string): HasManyRelation<this, Model>;
|
|
3307
3329
|
/**
|
|
3308
3330
|
* Define a belongs to relationship.
|
|
@@ -3314,6 +3336,7 @@ declare abstract class Model<TSchema extends ModelQuerySchemaLike | Record<strin
|
|
|
3314
3336
|
*/
|
|
3315
3337
|
protected belongsTo<TRelatedClass extends RelatedModelClass>(related: TRelatedClass, foreignKey: string, ownerKey?: string): BelongsToRelation<this, InstanceType<TRelatedClass>>;
|
|
3316
3338
|
protected belongsTo<TName extends RegisteredModelName>(related: TName, foreignKey?: string, ownerKey?: string): BelongsToRelation<this, RegisteredModelInstance<TName>>;
|
|
3339
|
+
protected belongsTo<TRelated extends Model = Model>(related: string, foreignKey?: string, ownerKey?: string): BelongsToRelation<this, TRelated>;
|
|
3317
3340
|
protected belongsTo(related: string, foreignKey?: string, ownerKey?: string): BelongsToRelation<this, Model>;
|
|
3318
3341
|
/**
|
|
3319
3342
|
* Define a belongs to many relationship.
|
|
@@ -3328,6 +3351,7 @@ declare abstract class Model<TSchema extends ModelQuerySchemaLike | Record<strin
|
|
|
3328
3351
|
*/
|
|
3329
3352
|
protected belongsToMany<TRelatedClass extends RelatedModelClass>(related: TRelatedClass, throughTable: string, foreignPivotKey: string, relatedPivotKey: string, parentKey?: string, relatedKey?: string): BelongsToManyRelation<this, InstanceType<TRelatedClass>>;
|
|
3330
3353
|
protected belongsToMany<TName extends RegisteredModelName>(related: TName, throughTable: string, foreignPivotKey: string, relatedPivotKey: string, parentKey?: string, relatedKey?: string): BelongsToManyRelation<this, RegisteredModelInstance<TName>>;
|
|
3354
|
+
protected belongsToMany<TRelated extends Model = Model>(related: string, throughTable: string, foreignPivotKey: string, relatedPivotKey: string, parentKey?: string, relatedKey?: string): BelongsToManyRelation<this, TRelated>;
|
|
3331
3355
|
protected belongsToMany(related: string, throughTable: string, foreignPivotKey: string, relatedPivotKey: string, parentKey?: string, relatedKey?: string): BelongsToManyRelation<this, Model>;
|
|
3332
3356
|
/**
|
|
3333
3357
|
* Define a has one through relationship.
|
|
@@ -3342,6 +3366,7 @@ declare abstract class Model<TSchema extends ModelQuerySchemaLike | Record<strin
|
|
|
3342
3366
|
*/
|
|
3343
3367
|
protected hasOneThrough<TRelatedClass extends RelatedModelClass>(related: TRelatedClass, throughTable: string, firstKey: string, secondKey: string, localKey?: string, secondLocalKey?: string): HasOneThroughRelation<this, InstanceType<TRelatedClass>>;
|
|
3344
3368
|
protected hasOneThrough<TName extends RegisteredModelName>(related: TName, throughTable: string, firstKey: string, secondKey: string, localKey?: string, secondLocalKey?: string): HasOneThroughRelation<this, RegisteredModelInstance<TName>>;
|
|
3369
|
+
protected hasOneThrough<TRelated extends Model = Model>(related: string, throughTable: string, firstKey: string, secondKey: string, localKey?: string, secondLocalKey?: string): HasOneThroughRelation<this, TRelated>;
|
|
3345
3370
|
protected hasOneThrough(related: string, throughTable: string, firstKey: string, secondKey: string, localKey?: string, secondLocalKey?: string): HasOneThroughRelation<this, Model>;
|
|
3346
3371
|
/**
|
|
3347
3372
|
* Define a has many through relationship.
|
|
@@ -3356,6 +3381,7 @@ declare abstract class Model<TSchema extends ModelQuerySchemaLike | Record<strin
|
|
|
3356
3381
|
*/
|
|
3357
3382
|
protected hasManyThrough<TRelatedClass extends RelatedModelClass>(related: TRelatedClass, throughTable: string, firstKey: string, secondKey: string, localKey?: string, secondLocalKey?: string): HasManyThroughRelation<this, InstanceType<TRelatedClass>>;
|
|
3358
3383
|
protected hasManyThrough<TName extends RegisteredModelName>(related: TName, throughTable: string, firstKey: string, secondKey: string, localKey?: string, secondLocalKey?: string): HasManyThroughRelation<this, RegisteredModelInstance<TName>>;
|
|
3384
|
+
protected hasManyThrough<TRelated extends Model = Model>(related: string, throughTable: string, firstKey: string, secondKey: string, localKey?: string, secondLocalKey?: string): HasManyThroughRelation<this, TRelated>;
|
|
3359
3385
|
protected hasManyThrough(related: string, throughTable: string, firstKey: string, secondKey: string, localKey?: string, secondLocalKey?: string): HasManyThroughRelation<this, Model>;
|
|
3360
3386
|
/**
|
|
3361
3387
|
* Define a polymorphic one to one relationship.
|
|
@@ -3369,6 +3395,7 @@ declare abstract class Model<TSchema extends ModelQuerySchemaLike | Record<strin
|
|
|
3369
3395
|
*/
|
|
3370
3396
|
protected morphOne<TRelatedClass extends RelatedModelClass>(related: TRelatedClass, morphName: string, idColumn?: string, typeColumn?: string, localKey?: string): MorphOneRelation<this, InstanceType<TRelatedClass>>;
|
|
3371
3397
|
protected morphOne<TName extends RegisteredModelName>(related: TName, morphName: string, idColumn?: string, typeColumn?: string, localKey?: string): MorphOneRelation<this, RegisteredModelInstance<TName>>;
|
|
3398
|
+
protected morphOne<TRelated extends Model = Model>(related: string, morphName: string, idColumn?: string, typeColumn?: string, localKey?: string): MorphOneRelation<this, TRelated>;
|
|
3372
3399
|
protected morphOne(related: string, morphName: string, idColumn?: string, typeColumn?: string, localKey?: string): MorphOneRelation<this, Model>;
|
|
3373
3400
|
/**
|
|
3374
3401
|
* Define a polymorphic one to many relationship.
|
|
@@ -3382,6 +3409,7 @@ declare abstract class Model<TSchema extends ModelQuerySchemaLike | Record<strin
|
|
|
3382
3409
|
*/
|
|
3383
3410
|
protected morphMany<TRelatedClass extends RelatedModelClass>(related: TRelatedClass, morphName: string, idColumn?: string, typeColumn?: string, localKey?: string): MorphManyRelation<this, InstanceType<TRelatedClass>>;
|
|
3384
3411
|
protected morphMany<TName extends RegisteredModelName>(related: TName, morphName: string, idColumn?: string, typeColumn?: string, localKey?: string): MorphManyRelation<this, RegisteredModelInstance<TName>>;
|
|
3412
|
+
protected morphMany<TRelated extends Model = Model>(related: string, morphName: string, idColumn?: string, typeColumn?: string, localKey?: string): MorphManyRelation<this, TRelated>;
|
|
3385
3413
|
protected morphMany(related: string, morphName: string, idColumn?: string, typeColumn?: string, localKey?: string): MorphManyRelation<this, Model>;
|
|
3386
3414
|
/**
|
|
3387
3415
|
* Define the inverse side of a polymorphic relationship.
|
|
@@ -3409,6 +3437,7 @@ declare abstract class Model<TSchema extends ModelQuerySchemaLike | Record<strin
|
|
|
3409
3437
|
*/
|
|
3410
3438
|
protected morphToMany<TRelatedClass extends RelatedModelClass>(related: TRelatedClass, morphName: string, throughTable?: string, foreignPivotKey?: string, morphTypeColumn?: string, relatedPivotKey?: string, parentKey?: string, relatedKey?: string): MorphToManyRelation<this, InstanceType<TRelatedClass>>;
|
|
3411
3439
|
protected morphToMany<TName extends RegisteredModelName>(related: TName, morphName: string, throughTable?: string, foreignPivotKey?: string, morphTypeColumn?: string, relatedPivotKey?: string, parentKey?: string, relatedKey?: string): MorphToManyRelation<this, RegisteredModelInstance<TName>>;
|
|
3440
|
+
protected morphToMany<TRelated extends Model = Model>(related: string, morphName: string, throughTable?: string, foreignPivotKey?: string, morphTypeColumn?: string, relatedPivotKey?: string, parentKey?: string, relatedKey?: string): MorphToManyRelation<this, TRelated>;
|
|
3412
3441
|
protected morphToMany(related: string, morphName: string, throughTable?: string, foreignPivotKey?: string, morphTypeColumn?: string, relatedPivotKey?: string, parentKey?: string, relatedKey?: string): MorphToManyRelation<this, Model>;
|
|
3413
3442
|
/**
|
|
3414
3443
|
* Define the inverse side of a polymorphic many-to-many relationship.
|
|
@@ -3425,6 +3454,7 @@ declare abstract class Model<TSchema extends ModelQuerySchemaLike | Record<strin
|
|
|
3425
3454
|
*/
|
|
3426
3455
|
protected morphedByMany<TRelatedClass extends RelatedModelClass>(related: TRelatedClass, morphName: string, throughTable?: string, foreignPivotKey?: string, morphTypeColumn?: string, relatedPivotKey?: string, parentKey?: string, relatedKey?: string): MorphedByManyRelation<this, InstanceType<TRelatedClass>>;
|
|
3427
3456
|
protected morphedByMany<TName extends RegisteredModelName>(related: TName, morphName: string, throughTable?: string, foreignPivotKey?: string, morphTypeColumn?: string, relatedPivotKey?: string, parentKey?: string, relatedKey?: string): MorphedByManyRelation<this, RegisteredModelInstance<TName>>;
|
|
3457
|
+
protected morphedByMany<TRelated extends Model = Model>(related: string, morphName: string, throughTable?: string, foreignPivotKey?: string, morphTypeColumn?: string, relatedPivotKey?: string, parentKey?: string, relatedKey?: string): MorphedByManyRelation<this, TRelated>;
|
|
3428
3458
|
protected morphedByMany(related: string, morphName: string, throughTable?: string, foreignPivotKey?: string, morphTypeColumn?: string, relatedPivotKey?: string, parentKey?: string, relatedKey?: string): MorphedByManyRelation<this, Model>;
|
|
3429
3459
|
private resolveRelationshipModel;
|
|
3430
3460
|
private resolveDefaultHasForeignKey;
|
|
@@ -3583,6 +3613,7 @@ declare abstract class Model<TSchema extends ModelQuerySchemaLike | Record<strin
|
|
|
3583
3613
|
//#endregion
|
|
3584
3614
|
//#region src/types/model.d.ts
|
|
3585
3615
|
interface ArkormModelRegistry {}
|
|
3616
|
+
interface ArkormModelNameRegistry {}
|
|
3586
3617
|
type LowercaseString<T extends string> = Lowercase<T>;
|
|
3587
3618
|
type Simplify<TValue> = { [TKey in keyof TValue]: TValue[TKey] } & {};
|
|
3588
3619
|
type ConventionalAutoManagedKeys = 'id' | 'createdAt' | 'updatedAt' | 'deletedAt';
|
|
@@ -3675,8 +3706,8 @@ type ModelAttributeValue<TModel, TAttributes extends Record<string, unknown>, TK
|
|
|
3675
3706
|
type ModelCreateData<TModel, TDelegate extends ModelQuerySchemaLike> = TModel extends Model<any, infer TAttributes> ? TDelegate extends AttributeQuerySchema<TAttributes> ? AttributeCreateInput<TAttributes> : QuerySchemaCreateData<TDelegate> : QuerySchemaCreateData<TDelegate>;
|
|
3676
3707
|
type ModelUpdateData<TModel, TDelegate extends ModelQuerySchemaLike> = TModel extends Model<any, infer TAttributes> ? TDelegate extends AttributeQuerySchema<TAttributes> ? AttributeUpdateInput<TAttributes> : QuerySchemaUpdateData<TDelegate> : QuerySchemaUpdateData<TDelegate>;
|
|
3677
3708
|
type RelatedModelClass<TInstance = unknown> = (abstract new (attributes?: Record<string, unknown>) => TInstance) & RelationshipModelStatic;
|
|
3678
|
-
type RegisteredModelName = keyof ArkormModelRegistry & string;
|
|
3679
|
-
type RegisteredModelClass<TName extends RegisteredModelName> = ArkormModelRegistry[TName] extends RelatedModelClass ? ArkormModelRegistry[TName] :
|
|
3709
|
+
type RegisteredModelName = (keyof ArkormModelRegistry & string) | (keyof ArkormModelNameRegistry & string);
|
|
3710
|
+
type RegisteredModelClass<TName extends RegisteredModelName> = TName extends keyof ArkormModelRegistry ? ArkormModelRegistry[TName] extends RelatedModelClass ? ArkormModelRegistry[TName] : typeof Model : typeof Model;
|
|
3680
3711
|
type RegisteredModelInstance<TName extends RegisteredModelName> = RegisteredModelClass<TName> extends (abstract new (...args: any[]) => infer TInstance) ? TInstance : never;
|
|
3681
3712
|
type GlobalScope = (query: QueryBuilder<any, any>) => QueryBuilder<any, any> | void;
|
|
3682
3713
|
type ModelEventName = 'retrieved' | 'saving' | 'saved' | 'creating' | 'created' | 'updating' | 'updated' | 'deleting' | 'deleted' | 'restoring' | 'restored' | 'forceDeleting' | 'forceDeleted';
|
|
@@ -8819,4 +8850,4 @@ declare class URLDriver {
|
|
|
8819
8850
|
url(page: number): string;
|
|
8820
8851
|
}
|
|
8821
8852
|
//#endregion
|
|
8822
|
-
export { buildPrimaryKeyLine as $, ModelStatic as $a, SchemaUniqueConstraint as $c, DelegateFindManyArgs as $i, getModel as $n, json as $o, InsertSpec as $r, FactoryState as $s, createEmptyPersistedColumnMappingsState as $t, isQuerySchemaLike as A, PrismaTransactionCapableClient as Aa, PivotModelStatic as Ac, RawQuerySpec as Ai, EnumBuilder as An, ModelRelationshipResult as Ao, createPrismaDatabaseAdapter as Ar, RelationDefaultValue as As, computeMigrationChecksum as At, applyCreateTableOperation as B, QuerySchemaUniqueWhere as Ba, PrimaryKeyGeneration as Bc, UpsertSpec as Bi, MigrateCommand as Bn, AggregateExpression as Bo, AdapterQueryOperation as Br, RelatedModelFromResult as Bs, readAppliedMigrationsState as Bt, getRuntimeClient as C, PrismaLikeInclude as Ca, HasOneThroughRelationMetadata as Cc, QueryNotCondition as Ci, MissingDelegateException as Cn, ModelEventHandler as Co, Seeder as Cr, RelationTableLoader as Cs, supportsDatabaseCreation as Ct, getRuntimePrismaClient as D, PrismaLikeSortOrder as Da, MorphToManyRelationMetadata as Dc, QuerySelectColumn as Di, MIGRATION_BRAND as Dn, ModelLifecycleState as Do, PrismaDatabaseAdapter as Dr, RelationColumnLookupSpec as Ds, toModelName as Dt, getRuntimePaginationURLDriverFactory as E, PrismaLikeSelect as Ea, MorphOneRelationMetadata as Ec, QueryScalarComparisonOperator as Ei, DB as En, ModelEventName as Eo, SeederInput as Er, RelationAggregateType as Es, toMigrationFileSlug as Et, PrimaryKeyGenerationPlanner as F, QuerySchemaInclude as Fa, AppliedMigrationsState as Fc, SelectSpec as Fi, SeedCommand as Fn, RegisteredModelClass as Fo, AdapterDatabaseCreationResult as Fr, EagerLoadQueryForRelationship as Fs, getLastMigrationRun as Ft, applyMigrationToPrismaSchema as G, RuntimeClientLike as Ga, SchemaForeignKey as Gc, ArkormDebugEvent as Gi, InitCommand as Gn, avg as Go, DatabaseAdapter as Gr, ArkormCollection as Gs, writeAppliedMigrationsState as Gt, applyMigrationRollbackToDatabase as H, QuerySchemaUpdateData as Ha, PrismaSchemaSyncOptions as Hc, AdapterQueryInspection as Hi, MakeModelCommand as Hn, Expression as Ho, AggregateOperation as Hr, JoinClause as Hs, removeAppliedMigration as Ht, PRISMA_ENUM_MEMBER_REGEX as I, QuerySchemaOrderBy as Ia, GenerateMigrationOptions as Ic, SoftDeleteQueryMode as Ii, ModelsSyncCommand as In, RegisteredModelInstance as Io, AdapterInspectionRequest as Ir, EagerLoadRelations as Is, getLatestAppliedMigrations as It, buildFieldLine as J, SoftDeleteConfig as Ja, SchemaOperation as Jc, CastHandler as Ji, resolveCast as Jn, col as Jo, DatabaseRows as Jr, FactoryCallback as Js, PersistedMetadataFeatures as Jt, applyOperationsToPrismaSchema as K, Serializable as Ka, SchemaForeignKeyAction as Kc, ArkormDebugHandler as Ki, DbCommand as Kn, caseWhen as Ko, DatabasePrimitive as Kr, FactoryAttributeResolver as Ks, writeAppliedMigrationsStateToStore as Kt, PRISMA_ENUM_REGEX as L, QuerySchemaRow as La, GeneratedMigrationFile as Lc, SortDirection as Li, MigrationHistoryCommand as Ln, RegisteredModelName as Lo, AdapterModelFieldStructure as Lr, JoinOn as Ls, isMigrationApplied as Lt, loadArkormConfig as M, PrismaTransactionOptions as Ma, RelationMetadataType as Mc, RelationFilterSpec as Mi, GeneratedColumnExpression as Mn, ModelWhereInput as Mo, createKyselyAdapter as Mr, RelationResult as Ms, deleteAppliedMigrationsStateFromStore as Mt, resetArkormRuntimeForTests as N, QuerySchemaCreateData as Na, AppliedMigrationEntry as Nc, RelationLoadPlan as Ni, resolveGeneratedExpression as Nn, QuerySchemaForModel as No, AdapterCapabilities as Nr, RelationResultCache as Ns, findAppliedMigration as Nt, getUserConfig as O, PrismaLikeWhereInput as Oa, MorphToRelationMetadata as Oc, QueryTarget as Oi, Migration as On, ModelOrderByInput as Oo, PrismaDelegateNameMapping as Or, RelationConstraint as Os, buildMigrationIdentity as Ot, runArkormTransaction as P, QuerySchemaFindManyArgs as Pa, AppliedMigrationRun as Pc, RelationLoadSpec as Pi, ForeignKeyBuilder as Pn, QuerySchemaForModelInstance as Po, AdapterCapability as Pr, RelationTableLookupSpec as Ps, getLastBatchMigrations as Pt, buildModelBlock as Q, TransactionOptions as Qa, SchemaTableDropOperation as Qc, DelegateCreateData as Qi, Arkormx as Qn, fromExpressionNode as Qo, InsertManySpec as Qr, FactoryRelationshipResolver as Qs, applyOperationsToPersistedColumnMappingsState as Qt, PRISMA_MODEL_REGEX as R, QuerySchemaRows as Ra, MigrationClass as Rc, UpdateManySpec as Ri, MigrateRollbackCommand as Rn, RelatedModelClass as Ro, AdapterModelIntrospectionOptions as Rr, JoinSource as Rs, markMigrationApplied as Rt, getRuntimeAdapter as S, PrismaFindManyArgsLike as Sa, HasOneRelationMetadata as Sc, QueryLogicalOperator as Si, ModelNotFoundException as Sn, ModelEventDispatcher as So, SEEDER_BRAND as Sr, Relation as Ss, stripPrismaSchemaModelsAndEnums as St, getRuntimePaginationCurrentPageResolver as T, PrismaLikeScalarFilter as Ta, MorphManyRelationMetadata as Tc, QueryRawCondition as Ti, ArkormException as Tn, ModelEventListener as To, SeederConstructor as Tr, RelationAggregateInput as Ts, supportsDatabaseReset as Tt, applyMigrationRollbackToPrismaSchema as U, QuerySchemaWhere as Ua, SchemaColumn as Uc, ArkormBootContext as Ui, MakeMigrationCommand as Un, ExpressionBuilder as Uo, AggregateSelection as Ur, LengthAwarePaginator as Us, resolveMigrationStateFilePath as Ut, applyDropTableOperation as V, QuerySchemaUpdateArgs as Va, PrismaMigrationWorkflowOptions as Vc, AdapterBindableModel as Vi, MakeSeederCommand as Vn, CaseExpression as Vo, AdapterTransactionContext as Vr, WhereCallback as Vs, readAppliedMigrationsStateFromStore as Vt, applyMigrationToDatabase as W, RawSelectInput as Wa, SchemaColumnType as Wc, ArkormConfig as Wi, MakeFactoryCommand as Wn, JsonExpression as Wo, AggregateSpec as Wr, Paginator as Ws, supportsDatabaseMigrationState as Wt, buildInverseRelationLine as X, TransactionCapableClient as Xa, SchemaTableAlterOperation as Xc, CastType as Xi, AttributeOptions as Xn, expressionBuilder as Xo, DeleteManySpec as Xr, FactoryDefinitionAttributes as Xs, PersistedTableMetadata as Xt, buildIndexLine as Y, TransactionCallback as Ya, SchemaPrimaryKey as Yc, CastMap as Yi, Attribute as Yn, count as Yo, DatabaseValue as Yr, FactoryDefinition as Ys, PersistedPrimaryKeyGeneration as Yt, buildMigrationSource as Z, TransactionContext as Za, SchemaTableCreateOperation as Zc, ClientResolver as Zi, Arkorm as Zn, fn as Zo, DeleteSpec as Zr, FactoryModelConstructor as Zs, PersistedTimestampColumn as Zt, emitRuntimeDebugEvent as _, PaginationOptions as _a, BelongsToManyRelationMetadata as _c, QueryJoinRawConstraint as _i, ScopeNotDefinedException as _n, ModelAttributeValue as _o, registerModels as _r, HasManyThroughRelation as _s, resolveEnumName as _t, getRuntimeCompatibilityAdapter as a, DelegateUniqueWhere as aa, ColumnExpressionNode as ac, QueryDayCondition as ai, getPersistedTableMetadata as an, GroupByAggregateSpec as ao, RuntimePathMap as ar, where as as, deriveRelationAlias as at, getActiveTransactionClient as b, PrismaClientLike as ba, HasManyRelationMetadata as bc, QueryJsonCondition as bi, QueryExecutionExceptionContext as bn, ModelCreateData as bo, resetRuntimeRegistryForTests as br, SingleResultRelation as bs, runMigrationWithPrisma as bt, PrismaDelegateMap as c, DelegateWhere as ca, ExpressionNode as cc, QueryFullTextCondition as ci, rebuildPersistedColumnMappingsState as cn, AttributeCreateInput as co, getRegisteredModels as cr, defineFactory as cs, escapeRegex as ct, inferDelegateName as d, GetUserConfig as da, JsonExpressionNode as dc, QueryJoin as di, resolvePersistedMetadataFeatures as dn, AttributeSchemaDelegate as do, loadFactoriesFrom as dr, MorphedByManyRelation as ds, formatDefaultValue as dt, DelegateInclude as ea, MaybePromise as ec, PartitionedSelectSpec as ei, TimestampColumnBehavior as el, deletePersistedColumnMappingsState as en, RelationshipModelStatic as eo, RegisteredFactory as er, max as es, buildRelationLine as et, awaitConfiguredModelsRegistration as f, ModelQuerySchemaLike as fa, NullCheckExpressionNode as fc, QueryJoinBoolean as fi, syncPersistedColumnMappingsFromState as fn, AttributeSelect as fo, loadMigrationsFrom as fr, MorphToManyRelation as fs, formatEnumDefaultValue as ft, disposeArkormRuntime as g, PaginationMeta as ga, DatabaseTablePersistedMetadataOptions as gc, QueryJoinNullConstraint as gi, UniqueConstraintResolutionException as gn, GlobalScope as go, registerMigrations as gr, HasOneRelation as gs, pad as gt, defineConfig as h, PaginationCurrentPageResolver as ha, DatabaseTableOptions as hc, QueryJoinNestedConstraint as hi, UnsupportedAdapterFeatureException as hn, DelegateForModelSchema as ho, registerFactories as hr, HasOneThroughRelation as hs, getMigrationPlan as ht, RuntimeModuleLoader as i, DelegateSelect as ia, CaseExpressionNode as ic, QueryCondition as ii, getPersistedPrimaryKeyGeneration as in, GroupByAggregateRow as io, RuntimePathKey as ir, val as is, deriveInverseRelationAlias as it, isTransactionCapableClient as j, PrismaTransactionContext as ja, RelationMetadata as jc, RelationAggregateSpec as ji, TableBuilder as jn, ModelUpdateData as jo, KyselyDatabaseAdapter as jr, RelationMetadataProvider as js, createEmptyAppliedMigrationsState as jt, isDelegateLike as k, PrismaTransactionCallback as ka, MorphedByManyRelationMetadata as kc, QueryTimeCondition as ki, SchemaBuilder as kn, ModelRelationshipKey as ko, createPrismaCompatibilityAdapter as kr, RelationDefaultResolver as ks, buildMigrationRunId as kt, createPrismaAdapter as l, EagerLoadConstraint as la, FunctionExpressionNode as lc, QueryGroupByItem as li, resetPersistedColumnMappingsCache as ln, AttributeOrderBy as lo, getRegisteredPaths as lr, SetBasedEagerLoader as ls, findEnumBlock as lt, configureArkormRuntime as m, NamingCase as ma, ValueExpressionNode as mc, QueryJoinConstraint as mi, writePersistedColumnMappingsState as mn, AttributeWhereInput as mo, loadSeedersFrom as mr, MorphManyRelation as ms, generateMigrationFile as mt, PivotModel as n, DelegateRow as na, BinaryExpressionNode as nc, QueryComparisonCondition as ni, TimestampNaming as nl, getPersistedEnumMap as nn, EachCallback as no, RuntimeConstructor as nr, raw as ns, createMigrationTimestamp as nt, resolveRuntimeCompatibilityQuerySchema as o, DelegateUpdateArgs as oa, ExpressionBinaryOperator as oc, QueryExistsCondition as oi, getPersistedTimestampColumns as on, QueryBuilder as oo, getRegisteredFactories as or, InlineFactory as os, deriveRelationFieldName as ot, bindAdapterToModels as p, ModelTableCase as pa, RawExpressionNode as pc, QueryJoinColumnConstraint as pi, validatePersistedMetadataFeaturesForMigrations as pn, AttributeUpdateInput as po, loadModelsFrom as pr, MorphOneRelation as ps, formatRelationAction as pt, buildEnumBlock as q, SimplePaginationMeta as qa, SchemaIndex as qc, CastDefinition as qi, CliApp as qn, coalesce as qo, DatabaseRow as qr, FactoryAttributes as qs, PersistedColumnMappingsState as qt, LoadedRuntimeModule as r, DelegateRows as ra, CaseExpressionBranch as rc, QueryComparisonOperator as ri, getPersistedEnumTsType as rn, ExpressionSelectMap as ro, RuntimePathInput as rr, sum as rs, deriveCollectionFieldName as rt, resolveRuntimeCompatibilityQuerySchemaOrThrow as s, DelegateUpdateData as sa, ExpressionJsonCast as sc, QueryExpressionCondition as si, readPersistedColumnMappingsState as sn, ArkormModelRegistry as so, getRegisteredMigrations as sr, ModelFactory as ss, deriveSingularFieldName as st, URLDriver as t, DelegateOrderBy as ta, AggregateExpressionNode as tc, QueryColumnComparisonCondition as ti, TimestampNames as tl, getPersistedColumnMap as tn, ChunkCallback as to, RegisteredModel as tr, min as ts, buildUniqueConstraintLine as tt, createPrismaDelegateMap as u, EagerLoadMap as ua, InExpressionNode as uc, QueryGroupCondition as ui, resolveColumnMappingsFilePath as un, AttributeQuerySchema as uo, getRegisteredSeeders as ur, MorphToRelation as us, findModelBlock as ut, ensureArkormConfigLoading as v, PaginationURLDriver as va, BelongsToRelationMetadata as vc, QueryJoinType as vi, RelationResolutionException as vn, ModelAttributes as vo, registerPaths as vr, HasManyRelation as vs, resolveMigrationClassName as vt, getRuntimeDebugHandler as w, PrismaLikeOrderBy as wa, ModelMetadata as wc, QueryOrderBy as wi, ArkormErrorContext as wn, ModelEventHandlerConstructor as wo, SeederCallArgument as wr, RelationAggregateConstraint as ws, supportsDatabaseMigrationExecution as wt, getDefaultStubsPath as x, PrismaDelegateLike as xa, HasManyThroughRelationMetadata as xc, QueryJsonConditionKind as xi, QueryConstraintException as xn, ModelDeclaredAttributeKey as xo, resolveRegisteredModel as xr, BelongsToManyRelation as xs, runPrismaCommand as xt, getActiveTransactionAdapter as y, PaginationURLDriverFactory as ya, ColumnMap as yc, QueryJoinValueConstraint as yi, QueryExecutionException as yn, ModelAttributesOf as yo, registerSeeders as yr, BelongsToRelation as ys, resolvePrismaType as yt, applyAlterTableOperation as z, QuerySchemaSelect as za, MigrationInstanceLike as zc, UpdateSpec as zi, MigrateFreshCommand as zn, Model as zo, AdapterModelStructure as zr, RelatedModelForRelationship as zs, markMigrationRun as zt };
|
|
8853
|
+
export { buildPrimaryKeyLine as $, ModelStatic as $a, SchemaTableDropOperation as $c, DelegateFindManyArgs as $i, getModel as $n, fromExpressionNode as $o, InsertSpec as $r, FactoryRelationshipResolver as $s, createEmptyPersistedColumnMappingsState as $t, isQuerySchemaLike as A, PrismaTransactionCapableClient as Aa, MorphedByManyRelationMetadata as Ac, RawQuerySpec as Ai, EnumBuilder as An, ModelRelationshipKey as Ao, createPrismaDatabaseAdapter as Ar, RelationDefaultResolver as As, computeMigrationChecksum as At, applyCreateTableOperation as B, QuerySchemaUniqueWhere as Ba, MigrationInstanceLike as Bc, UpsertSpec as Bi, MigrateCommand as Bn, Model as Bo, AdapterQueryOperation as Br, RelatedModelForRelationship as Bs, readAppliedMigrationsState as Bt, getRuntimeClient as C, PrismaLikeInclude as Ca, HasOneRelationMetadata as Cc, QueryNotCondition as Ci, MissingDelegateException as Cn, ModelEventDispatcher as Co, Seeder as Cr, Relation as Cs, supportsDatabaseCreation as Ct, getRuntimePrismaClient as D, PrismaLikeSortOrder as Da, MorphOneRelationMetadata as Dc, QuerySelectColumn as Di, MIGRATION_BRAND as Dn, ModelEventName as Do, PrismaDatabaseAdapter as Dr, RelationAggregateType as Ds, toModelName as Dt, getRuntimePaginationURLDriverFactory as E, PrismaLikeSelect as Ea, MorphManyRelationMetadata as Ec, QueryScalarComparisonOperator as Ei, DB as En, ModelEventListener as Eo, SeederInput as Er, RelationAggregateInput as Es, toMigrationFileSlug as Et, PrimaryKeyGenerationPlanner as F, QuerySchemaInclude as Fa, AppliedMigrationRun as Fc, SelectSpec as Fi, SeedCommand as Fn, QuerySchemaForModelInstance as Fo, AdapterDatabaseCreationResult as Fr, RelationTableLookupSpec as Fs, getLastMigrationRun as Ft, applyMigrationToPrismaSchema as G, RuntimeClientLike as Ga, SchemaColumnType as Gc, ArkormDebugEvent as Gi, InitCommand as Gn, JsonExpression as Go, DatabaseAdapter as Gr, Paginator as Gs, writeAppliedMigrationsState as Gt, applyMigrationRollbackToDatabase as H, QuerySchemaUpdateData as Ha, PrismaMigrationWorkflowOptions as Hc, AdapterQueryInspection as Hi, MakeModelCommand as Hn, CaseExpression as Ho, AggregateOperation as Hr, WhereCallback as Hs, removeAppliedMigration as Ht, PRISMA_ENUM_MEMBER_REGEX as I, QuerySchemaOrderBy as Ia, AppliedMigrationsState as Ic, SoftDeleteQueryMode as Ii, ModelsSyncCommand as In, RegisteredModelClass as Io, AdapterInspectionRequest as Ir, EagerLoadQueryForRelationship as Is, getLatestAppliedMigrations as It, buildFieldLine as J, SoftDeleteConfig as Ja, SchemaIndex as Jc, CastHandler as Ji, resolveCast as Jn, coalesce as Jo, DatabaseRows as Jr, FactoryAttributes as Js, PersistedMetadataFeatures as Jt, applyOperationsToPrismaSchema as K, Serializable as Ka, SchemaForeignKey as Kc, ArkormDebugHandler as Ki, DbCommand as Kn, avg as Ko, DatabasePrimitive as Kr, ArkormCollection as Ks, writeAppliedMigrationsStateToStore as Kt, PRISMA_ENUM_REGEX as L, QuerySchemaRow as La, GenerateMigrationOptions as Lc, SortDirection as Li, MigrationHistoryCommand as Ln, RegisteredModelInstance as Lo, AdapterModelFieldStructure as Lr, EagerLoadRelations as Ls, isMigrationApplied as Lt, loadArkormConfig as M, PrismaTransactionOptions as Ma, RelationMetadata as Mc, RelationFilterSpec as Mi, GeneratedColumnExpression as Mn, ModelUpdateData as Mo, createKyselyAdapter as Mr, RelationMetadataProvider as Ms, deleteAppliedMigrationsStateFromStore as Mt, resetArkormRuntimeForTests as N, QuerySchemaCreateData as Na, RelationMetadataType as Nc, RelationLoadPlan as Ni, resolveGeneratedExpression as Nn, ModelWhereInput as No, AdapterCapabilities as Nr, RelationResult as Ns, findAppliedMigration as Nt, getUserConfig as O, PrismaLikeWhereInput as Oa, MorphToManyRelationMetadata as Oc, QueryTarget as Oi, Migration as On, ModelLifecycleState as Oo, PrismaDelegateNameMapping as Or, RelationColumnLookupSpec as Os, buildMigrationIdentity as Ot, runArkormTransaction as P, QuerySchemaFindManyArgs as Pa, AppliedMigrationEntry as Pc, RelationLoadSpec as Pi, ForeignKeyBuilder as Pn, QuerySchemaForModel as Po, AdapterCapability as Pr, RelationResultCache as Ps, getLastBatchMigrations as Pt, buildModelBlock as Q, TransactionOptions as Qa, SchemaTableCreateOperation as Qc, DelegateCreateData as Qi, Arkormx as Qn, fn as Qo, InsertManySpec as Qr, FactoryModelConstructor as Qs, applyOperationsToPersistedColumnMappingsState as Qt, PRISMA_MODEL_REGEX as R, QuerySchemaRows as Ra, GeneratedMigrationFile as Rc, UpdateManySpec as Ri, MigrateRollbackCommand as Rn, RegisteredModelName as Ro, AdapterModelIntrospectionOptions as Rr, JoinOn as Rs, markMigrationApplied as Rt, getRuntimeAdapter as S, PrismaFindManyArgsLike as Sa, HasManyThroughRelationMetadata as Sc, QueryLogicalOperator as Si, ModelNotFoundException as Sn, ModelDeclaredAttributeKey as So, SEEDER_BRAND as Sr, BelongsToManyRelation as Ss, stripPrismaSchemaModelsAndEnums as St, getRuntimePaginationCurrentPageResolver as T, PrismaLikeScalarFilter as Ta, ModelMetadata as Tc, QueryRawCondition as Ti, ArkormException as Tn, ModelEventHandlerConstructor as To, SeederConstructor as Tr, RelationAggregateConstraint as Ts, supportsDatabaseReset as Tt, applyMigrationRollbackToPrismaSchema as U, QuerySchemaWhere as Ua, PrismaSchemaSyncOptions as Uc, ArkormBootContext as Ui, MakeMigrationCommand as Un, Expression as Uo, AggregateSelection as Ur, JoinClause as Us, resolveMigrationStateFilePath as Ut, applyDropTableOperation as V, QuerySchemaUpdateArgs as Va, PrimaryKeyGeneration as Vc, AdapterBindableModel as Vi, MakeSeederCommand as Vn, AggregateExpression as Vo, AdapterTransactionContext as Vr, RelatedModelFromResult as Vs, readAppliedMigrationsStateFromStore as Vt, applyMigrationToDatabase as W, RawSelectInput as Wa, SchemaColumn as Wc, ArkormConfig as Wi, MakeFactoryCommand as Wn, ExpressionBuilder as Wo, AggregateSpec as Wr, LengthAwarePaginator as Ws, supportsDatabaseMigrationState as Wt, buildInverseRelationLine as X, TransactionCapableClient as Xa, SchemaPrimaryKey as Xc, CastType as Xi, AttributeOptions as Xn, count as Xo, DeleteManySpec as Xr, FactoryDefinition as Xs, PersistedTableMetadata as Xt, buildIndexLine as Y, TransactionCallback as Ya, SchemaOperation as Yc, CastMap as Yi, Attribute as Yn, col as Yo, DatabaseValue as Yr, FactoryCallback as Ys, PersistedPrimaryKeyGeneration as Yt, buildMigrationSource as Z, TransactionContext as Za, SchemaTableAlterOperation as Zc, ClientResolver as Zi, Arkorm as Zn, expressionBuilder as Zo, DeleteSpec as Zr, FactoryDefinitionAttributes as Zs, PersistedTimestampColumn as Zt, emitRuntimeDebugEvent as _, PaginationOptions as _a, DatabaseTablePersistedMetadataOptions as _c, QueryJoinRawConstraint as _i, ScopeNotDefinedException as _n, GlobalScope as _o, registerModels as _r, HasOneRelation as _s, resolveEnumName as _t, getRuntimeCompatibilityAdapter as a, DelegateUniqueWhere as aa, CaseExpressionNode as ac, QueryDayCondition as ai, getPersistedTableMetadata as an, GroupByAggregateSpec as ao, RuntimePathMap as ar, val as as, deriveRelationAlias as at, getActiveTransactionClient as b, PrismaClientLike as ba, ColumnMap as bc, QueryJsonCondition as bi, QueryExecutionExceptionContext as bn, ModelAttributesOf as bo, resetRuntimeRegistryForTests as br, BelongsToRelation as bs, runMigrationWithPrisma as bt, PrismaDelegateMap as c, DelegateWhere as ca, ExpressionJsonCast as cc, QueryFullTextCondition as ci, rebuildPersistedColumnMappingsState as cn, ArkormModelRegistry as co, getRegisteredModels as cr, ModelFactory as cs, escapeRegex as ct, inferDelegateName as d, GetUserConfig as da, InExpressionNode as dc, QueryJoin as di, resolvePersistedMetadataFeatures as dn, AttributeQuerySchema as do, loadFactoriesFrom as dr, MorphToRelation as ds, formatDefaultValue as dt, DelegateInclude as ea, FactoryState as ec, PartitionedSelectSpec as ei, SchemaUniqueConstraint as el, deletePersistedColumnMappingsState as en, RelationshipModelStatic as eo, RegisteredFactory as er, json as es, buildRelationLine as et, awaitConfiguredModelsRegistration as f, ModelQuerySchemaLike as fa, JsonExpressionNode as fc, QueryJoinBoolean as fi, syncPersistedColumnMappingsFromState as fn, AttributeSchemaDelegate as fo, loadMigrationsFrom as fr, MorphedByManyRelation as fs, formatEnumDefaultValue as ft, disposeArkormRuntime as g, PaginationMeta as ga, DatabaseTableOptions as gc, QueryJoinNullConstraint as gi, UniqueConstraintResolutionException as gn, DelegateForModelSchema as go, registerMigrations as gr, HasOneThroughRelation as gs, pad as gt, defineConfig as h, PaginationCurrentPageResolver as ha, ValueExpressionNode as hc, QueryJoinNestedConstraint as hi, UnsupportedAdapterFeatureException as hn, AttributeWhereInput as ho, registerFactories as hr, MorphManyRelation as hs, getMigrationPlan as ht, RuntimeModuleLoader as i, DelegateSelect as ia, CaseExpressionBranch as ic, QueryCondition as ii, getPersistedPrimaryKeyGeneration as in, GroupByAggregateRow as io, RuntimePathKey as ir, sum as is, deriveInverseRelationAlias as it, isTransactionCapableClient as j, PrismaTransactionContext as ja, PivotModelStatic as jc, RelationAggregateSpec as ji, TableBuilder as jn, ModelRelationshipResult as jo, KyselyDatabaseAdapter as jr, RelationDefaultValue as js, createEmptyAppliedMigrationsState as jt, isDelegateLike as k, PrismaTransactionCallback as ka, MorphToRelationMetadata as kc, QueryTimeCondition as ki, SchemaBuilder as kn, ModelOrderByInput as ko, createPrismaCompatibilityAdapter as kr, RelationConstraint as ks, buildMigrationRunId as kt, createPrismaAdapter as l, EagerLoadConstraint as la, ExpressionNode as lc, QueryGroupByItem as li, resetPersistedColumnMappingsCache as ln, AttributeCreateInput as lo, getRegisteredPaths as lr, defineFactory as ls, findEnumBlock as lt, configureArkormRuntime as m, NamingCase as ma, RawExpressionNode as mc, QueryJoinConstraint as mi, writePersistedColumnMappingsState as mn, AttributeUpdateInput as mo, loadSeedersFrom as mr, MorphOneRelation as ms, generateMigrationFile as mt, PivotModel as n, DelegateRow as na, AggregateExpressionNode as nc, QueryComparisonCondition as ni, TimestampNames as nl, getPersistedEnumMap as nn, EachCallback as no, RuntimeConstructor as nr, min as ns, createMigrationTimestamp as nt, resolveRuntimeCompatibilityQuerySchema as o, DelegateUpdateArgs as oa, ColumnExpressionNode as oc, QueryExistsCondition as oi, getPersistedTimestampColumns as on, QueryBuilder as oo, getRegisteredFactories as or, where as os, deriveRelationFieldName as ot, bindAdapterToModels as p, ModelTableCase as pa, NullCheckExpressionNode as pc, QueryJoinColumnConstraint as pi, validatePersistedMetadataFeaturesForMigrations as pn, AttributeSelect as po, loadModelsFrom as pr, MorphToManyRelation as ps, formatRelationAction as pt, buildEnumBlock as q, SimplePaginationMeta as qa, SchemaForeignKeyAction as qc, CastDefinition as qi, CliApp as qn, caseWhen as qo, DatabaseRow as qr, FactoryAttributeResolver as qs, PersistedColumnMappingsState as qt, LoadedRuntimeModule as r, DelegateRows as ra, BinaryExpressionNode as rc, QueryComparisonOperator as ri, TimestampNaming as rl, getPersistedEnumTsType as rn, ExpressionSelectMap as ro, RuntimePathInput as rr, raw as rs, deriveCollectionFieldName as rt, resolveRuntimeCompatibilityQuerySchemaOrThrow as s, DelegateUpdateData as sa, ExpressionBinaryOperator as sc, QueryExpressionCondition as si, readPersistedColumnMappingsState as sn, ArkormModelNameRegistry as so, getRegisteredMigrations as sr, InlineFactory as ss, deriveSingularFieldName as st, URLDriver as t, DelegateOrderBy as ta, MaybePromise as tc, QueryColumnComparisonCondition as ti, TimestampColumnBehavior as tl, getPersistedColumnMap as tn, ChunkCallback as to, RegisteredModel as tr, max as ts, buildUniqueConstraintLine as tt, createPrismaDelegateMap as u, EagerLoadMap as ua, FunctionExpressionNode as uc, QueryGroupCondition as ui, resolveColumnMappingsFilePath as un, AttributeOrderBy as uo, getRegisteredSeeders as ur, SetBasedEagerLoader as us, findModelBlock as ut, ensureArkormConfigLoading as v, PaginationURLDriver as va, BelongsToManyRelationMetadata as vc, QueryJoinType as vi, RelationResolutionException as vn, ModelAttributeValue as vo, registerPaths as vr, HasManyThroughRelation as vs, resolveMigrationClassName as vt, getRuntimeDebugHandler as w, PrismaLikeOrderBy as wa, HasOneThroughRelationMetadata as wc, QueryOrderBy as wi, ArkormErrorContext as wn, ModelEventHandler as wo, SeederCallArgument as wr, RelationTableLoader as ws, supportsDatabaseMigrationExecution as wt, getDefaultStubsPath as x, PrismaDelegateLike as xa, HasManyRelationMetadata as xc, QueryJsonConditionKind as xi, QueryConstraintException as xn, ModelCreateData as xo, resolveRegisteredModel as xr, SingleResultRelation as xs, runPrismaCommand as xt, getActiveTransactionAdapter as y, PaginationURLDriverFactory as ya, BelongsToRelationMetadata as yc, QueryJoinValueConstraint as yi, QueryExecutionException as yn, ModelAttributes as yo, registerSeeders as yr, HasManyRelation as ys, resolvePrismaType as yt, applyAlterTableOperation as z, QuerySchemaSelect as za, MigrationClass as zc, UpdateSpec as zi, MigrateFreshCommand as zn, RelatedModelClass as zo, AdapterModelStructure as zr, JoinSource as zs, markMigrationRun as zt };
|
|
@@ -1511,6 +1511,7 @@ declare class BelongsToManyRelation<TParent, TRelated> extends Relation<TRelated
|
|
|
1511
1511
|
private pivotModel;
|
|
1512
1512
|
private shouldAttachPivot;
|
|
1513
1513
|
private readonly pivotValues;
|
|
1514
|
+
private pivotColumnAliasCache;
|
|
1514
1515
|
constructor(parent: TParent & {
|
|
1515
1516
|
getAttribute: (key: string) => unknown;
|
|
1516
1517
|
}, related: RelationshipModelStatic, throughTable: string, foreignPivotKey: string, relatedPivotKey: string, parentKey: string, relatedKey: string);
|
|
@@ -1628,6 +1629,25 @@ declare class BelongsToManyRelation<TParent, TRelated> extends Relation<TRelated
|
|
|
1628
1629
|
private normalizeRelatedItems;
|
|
1629
1630
|
private normalizeSyncEntries;
|
|
1630
1631
|
private resolveParentPivotValue;
|
|
1632
|
+
/**
|
|
1633
|
+
* `column -> attribute` for the pivot table, memoized.
|
|
1634
|
+
*
|
|
1635
|
+
* The query adapter maps result rows back to attribute names via
|
|
1636
|
+
* `reverseColumnMap`, so a pivot column such as `permission_id` is returned
|
|
1637
|
+
* under `permissionId` whenever the pivot table has a registered column map.
|
|
1638
|
+
*/
|
|
1639
|
+
private pivotColumnAliases;
|
|
1640
|
+
/**
|
|
1641
|
+
* Read a pivot column from a selected row under whichever key it is stored.
|
|
1642
|
+
*
|
|
1643
|
+
* Rows read through the query adapter are keyed by attribute name, while
|
|
1644
|
+
* rows from the lightweight table loader keep their raw column names.
|
|
1645
|
+
* Indexing only by the raw column made `sync` (and pivot attachment during
|
|
1646
|
+
* eager loads) treat every existing row as absent, so `sync` re-inserted
|
|
1647
|
+
* rows that already existed and tripped the pivot's unique constraint. Try
|
|
1648
|
+
* the raw column first, then its attribute alias.
|
|
1649
|
+
*/
|
|
1650
|
+
private readPivotColumn;
|
|
1631
1651
|
private resolveRelatedPivotValue;
|
|
1632
1652
|
private buildPivotInsertValues;
|
|
1633
1653
|
private attachPivotToSingleResult;
|
|
@@ -3292,6 +3312,7 @@ declare abstract class Model<TSchema extends ModelQuerySchemaLike | Record<strin
|
|
|
3292
3312
|
*/
|
|
3293
3313
|
protected hasOne<TRelatedClass extends RelatedModelClass>(related: TRelatedClass, foreignKey: string, localKey?: string): HasOneRelation<this, InstanceType<TRelatedClass>>;
|
|
3294
3314
|
protected hasOne<TName extends RegisteredModelName>(related: TName, foreignKey?: string, localKey?: string): HasOneRelation<this, RegisteredModelInstance<TName>>;
|
|
3315
|
+
protected hasOne<TRelated extends Model = Model>(related: string, foreignKey?: string, localKey?: string): HasOneRelation<this, TRelated>;
|
|
3295
3316
|
protected hasOne(related: string, foreignKey?: string, localKey?: string): HasOneRelation<this, Model>;
|
|
3296
3317
|
/**
|
|
3297
3318
|
* Define a has many relationship.
|
|
@@ -3303,6 +3324,7 @@ declare abstract class Model<TSchema extends ModelQuerySchemaLike | Record<strin
|
|
|
3303
3324
|
*/
|
|
3304
3325
|
protected hasMany<TRelatedClass extends RelatedModelClass>(related: TRelatedClass, foreignKey: string, localKey?: string): HasManyRelation<this, InstanceType<TRelatedClass>>;
|
|
3305
3326
|
protected hasMany<TName extends RegisteredModelName>(related: TName, foreignKey?: string, localKey?: string): HasManyRelation<this, RegisteredModelInstance<TName>>;
|
|
3327
|
+
protected hasMany<TRelated extends Model = Model>(related: string, foreignKey?: string, localKey?: string): HasManyRelation<this, TRelated>;
|
|
3306
3328
|
protected hasMany(related: string, foreignKey?: string, localKey?: string): HasManyRelation<this, Model>;
|
|
3307
3329
|
/**
|
|
3308
3330
|
* Define a belongs to relationship.
|
|
@@ -3314,6 +3336,7 @@ declare abstract class Model<TSchema extends ModelQuerySchemaLike | Record<strin
|
|
|
3314
3336
|
*/
|
|
3315
3337
|
protected belongsTo<TRelatedClass extends RelatedModelClass>(related: TRelatedClass, foreignKey: string, ownerKey?: string): BelongsToRelation<this, InstanceType<TRelatedClass>>;
|
|
3316
3338
|
protected belongsTo<TName extends RegisteredModelName>(related: TName, foreignKey?: string, ownerKey?: string): BelongsToRelation<this, RegisteredModelInstance<TName>>;
|
|
3339
|
+
protected belongsTo<TRelated extends Model = Model>(related: string, foreignKey?: string, ownerKey?: string): BelongsToRelation<this, TRelated>;
|
|
3317
3340
|
protected belongsTo(related: string, foreignKey?: string, ownerKey?: string): BelongsToRelation<this, Model>;
|
|
3318
3341
|
/**
|
|
3319
3342
|
* Define a belongs to many relationship.
|
|
@@ -3328,6 +3351,7 @@ declare abstract class Model<TSchema extends ModelQuerySchemaLike | Record<strin
|
|
|
3328
3351
|
*/
|
|
3329
3352
|
protected belongsToMany<TRelatedClass extends RelatedModelClass>(related: TRelatedClass, throughTable: string, foreignPivotKey: string, relatedPivotKey: string, parentKey?: string, relatedKey?: string): BelongsToManyRelation<this, InstanceType<TRelatedClass>>;
|
|
3330
3353
|
protected belongsToMany<TName extends RegisteredModelName>(related: TName, throughTable: string, foreignPivotKey: string, relatedPivotKey: string, parentKey?: string, relatedKey?: string): BelongsToManyRelation<this, RegisteredModelInstance<TName>>;
|
|
3354
|
+
protected belongsToMany<TRelated extends Model = Model>(related: string, throughTable: string, foreignPivotKey: string, relatedPivotKey: string, parentKey?: string, relatedKey?: string): BelongsToManyRelation<this, TRelated>;
|
|
3331
3355
|
protected belongsToMany(related: string, throughTable: string, foreignPivotKey: string, relatedPivotKey: string, parentKey?: string, relatedKey?: string): BelongsToManyRelation<this, Model>;
|
|
3332
3356
|
/**
|
|
3333
3357
|
* Define a has one through relationship.
|
|
@@ -3342,6 +3366,7 @@ declare abstract class Model<TSchema extends ModelQuerySchemaLike | Record<strin
|
|
|
3342
3366
|
*/
|
|
3343
3367
|
protected hasOneThrough<TRelatedClass extends RelatedModelClass>(related: TRelatedClass, throughTable: string, firstKey: string, secondKey: string, localKey?: string, secondLocalKey?: string): HasOneThroughRelation<this, InstanceType<TRelatedClass>>;
|
|
3344
3368
|
protected hasOneThrough<TName extends RegisteredModelName>(related: TName, throughTable: string, firstKey: string, secondKey: string, localKey?: string, secondLocalKey?: string): HasOneThroughRelation<this, RegisteredModelInstance<TName>>;
|
|
3369
|
+
protected hasOneThrough<TRelated extends Model = Model>(related: string, throughTable: string, firstKey: string, secondKey: string, localKey?: string, secondLocalKey?: string): HasOneThroughRelation<this, TRelated>;
|
|
3345
3370
|
protected hasOneThrough(related: string, throughTable: string, firstKey: string, secondKey: string, localKey?: string, secondLocalKey?: string): HasOneThroughRelation<this, Model>;
|
|
3346
3371
|
/**
|
|
3347
3372
|
* Define a has many through relationship.
|
|
@@ -3356,6 +3381,7 @@ declare abstract class Model<TSchema extends ModelQuerySchemaLike | Record<strin
|
|
|
3356
3381
|
*/
|
|
3357
3382
|
protected hasManyThrough<TRelatedClass extends RelatedModelClass>(related: TRelatedClass, throughTable: string, firstKey: string, secondKey: string, localKey?: string, secondLocalKey?: string): HasManyThroughRelation<this, InstanceType<TRelatedClass>>;
|
|
3358
3383
|
protected hasManyThrough<TName extends RegisteredModelName>(related: TName, throughTable: string, firstKey: string, secondKey: string, localKey?: string, secondLocalKey?: string): HasManyThroughRelation<this, RegisteredModelInstance<TName>>;
|
|
3384
|
+
protected hasManyThrough<TRelated extends Model = Model>(related: string, throughTable: string, firstKey: string, secondKey: string, localKey?: string, secondLocalKey?: string): HasManyThroughRelation<this, TRelated>;
|
|
3359
3385
|
protected hasManyThrough(related: string, throughTable: string, firstKey: string, secondKey: string, localKey?: string, secondLocalKey?: string): HasManyThroughRelation<this, Model>;
|
|
3360
3386
|
/**
|
|
3361
3387
|
* Define a polymorphic one to one relationship.
|
|
@@ -3369,6 +3395,7 @@ declare abstract class Model<TSchema extends ModelQuerySchemaLike | Record<strin
|
|
|
3369
3395
|
*/
|
|
3370
3396
|
protected morphOne<TRelatedClass extends RelatedModelClass>(related: TRelatedClass, morphName: string, idColumn?: string, typeColumn?: string, localKey?: string): MorphOneRelation<this, InstanceType<TRelatedClass>>;
|
|
3371
3397
|
protected morphOne<TName extends RegisteredModelName>(related: TName, morphName: string, idColumn?: string, typeColumn?: string, localKey?: string): MorphOneRelation<this, RegisteredModelInstance<TName>>;
|
|
3398
|
+
protected morphOne<TRelated extends Model = Model>(related: string, morphName: string, idColumn?: string, typeColumn?: string, localKey?: string): MorphOneRelation<this, TRelated>;
|
|
3372
3399
|
protected morphOne(related: string, morphName: string, idColumn?: string, typeColumn?: string, localKey?: string): MorphOneRelation<this, Model>;
|
|
3373
3400
|
/**
|
|
3374
3401
|
* Define a polymorphic one to many relationship.
|
|
@@ -3382,6 +3409,7 @@ declare abstract class Model<TSchema extends ModelQuerySchemaLike | Record<strin
|
|
|
3382
3409
|
*/
|
|
3383
3410
|
protected morphMany<TRelatedClass extends RelatedModelClass>(related: TRelatedClass, morphName: string, idColumn?: string, typeColumn?: string, localKey?: string): MorphManyRelation<this, InstanceType<TRelatedClass>>;
|
|
3384
3411
|
protected morphMany<TName extends RegisteredModelName>(related: TName, morphName: string, idColumn?: string, typeColumn?: string, localKey?: string): MorphManyRelation<this, RegisteredModelInstance<TName>>;
|
|
3412
|
+
protected morphMany<TRelated extends Model = Model>(related: string, morphName: string, idColumn?: string, typeColumn?: string, localKey?: string): MorphManyRelation<this, TRelated>;
|
|
3385
3413
|
protected morphMany(related: string, morphName: string, idColumn?: string, typeColumn?: string, localKey?: string): MorphManyRelation<this, Model>;
|
|
3386
3414
|
/**
|
|
3387
3415
|
* Define the inverse side of a polymorphic relationship.
|
|
@@ -3409,6 +3437,7 @@ declare abstract class Model<TSchema extends ModelQuerySchemaLike | Record<strin
|
|
|
3409
3437
|
*/
|
|
3410
3438
|
protected morphToMany<TRelatedClass extends RelatedModelClass>(related: TRelatedClass, morphName: string, throughTable?: string, foreignPivotKey?: string, morphTypeColumn?: string, relatedPivotKey?: string, parentKey?: string, relatedKey?: string): MorphToManyRelation<this, InstanceType<TRelatedClass>>;
|
|
3411
3439
|
protected morphToMany<TName extends RegisteredModelName>(related: TName, morphName: string, throughTable?: string, foreignPivotKey?: string, morphTypeColumn?: string, relatedPivotKey?: string, parentKey?: string, relatedKey?: string): MorphToManyRelation<this, RegisteredModelInstance<TName>>;
|
|
3440
|
+
protected morphToMany<TRelated extends Model = Model>(related: string, morphName: string, throughTable?: string, foreignPivotKey?: string, morphTypeColumn?: string, relatedPivotKey?: string, parentKey?: string, relatedKey?: string): MorphToManyRelation<this, TRelated>;
|
|
3412
3441
|
protected morphToMany(related: string, morphName: string, throughTable?: string, foreignPivotKey?: string, morphTypeColumn?: string, relatedPivotKey?: string, parentKey?: string, relatedKey?: string): MorphToManyRelation<this, Model>;
|
|
3413
3442
|
/**
|
|
3414
3443
|
* Define the inverse side of a polymorphic many-to-many relationship.
|
|
@@ -3425,6 +3454,7 @@ declare abstract class Model<TSchema extends ModelQuerySchemaLike | Record<strin
|
|
|
3425
3454
|
*/
|
|
3426
3455
|
protected morphedByMany<TRelatedClass extends RelatedModelClass>(related: TRelatedClass, morphName: string, throughTable?: string, foreignPivotKey?: string, morphTypeColumn?: string, relatedPivotKey?: string, parentKey?: string, relatedKey?: string): MorphedByManyRelation<this, InstanceType<TRelatedClass>>;
|
|
3427
3456
|
protected morphedByMany<TName extends RegisteredModelName>(related: TName, morphName: string, throughTable?: string, foreignPivotKey?: string, morphTypeColumn?: string, relatedPivotKey?: string, parentKey?: string, relatedKey?: string): MorphedByManyRelation<this, RegisteredModelInstance<TName>>;
|
|
3457
|
+
protected morphedByMany<TRelated extends Model = Model>(related: string, morphName: string, throughTable?: string, foreignPivotKey?: string, morphTypeColumn?: string, relatedPivotKey?: string, parentKey?: string, relatedKey?: string): MorphedByManyRelation<this, TRelated>;
|
|
3428
3458
|
protected morphedByMany(related: string, morphName: string, throughTable?: string, foreignPivotKey?: string, morphTypeColumn?: string, relatedPivotKey?: string, parentKey?: string, relatedKey?: string): MorphedByManyRelation<this, Model>;
|
|
3429
3459
|
private resolveRelationshipModel;
|
|
3430
3460
|
private resolveDefaultHasForeignKey;
|
|
@@ -3583,6 +3613,7 @@ declare abstract class Model<TSchema extends ModelQuerySchemaLike | Record<strin
|
|
|
3583
3613
|
//#endregion
|
|
3584
3614
|
//#region src/types/model.d.ts
|
|
3585
3615
|
interface ArkormModelRegistry {}
|
|
3616
|
+
interface ArkormModelNameRegistry {}
|
|
3586
3617
|
type LowercaseString<T extends string> = Lowercase<T>;
|
|
3587
3618
|
type Simplify<TValue> = { [TKey in keyof TValue]: TValue[TKey] } & {};
|
|
3588
3619
|
type ConventionalAutoManagedKeys = 'id' | 'createdAt' | 'updatedAt' | 'deletedAt';
|
|
@@ -3675,8 +3706,8 @@ type ModelAttributeValue<TModel, TAttributes extends Record<string, unknown>, TK
|
|
|
3675
3706
|
type ModelCreateData<TModel, TDelegate extends ModelQuerySchemaLike> = TModel extends Model<any, infer TAttributes> ? TDelegate extends AttributeQuerySchema<TAttributes> ? AttributeCreateInput<TAttributes> : QuerySchemaCreateData<TDelegate> : QuerySchemaCreateData<TDelegate>;
|
|
3676
3707
|
type ModelUpdateData<TModel, TDelegate extends ModelQuerySchemaLike> = TModel extends Model<any, infer TAttributes> ? TDelegate extends AttributeQuerySchema<TAttributes> ? AttributeUpdateInput<TAttributes> : QuerySchemaUpdateData<TDelegate> : QuerySchemaUpdateData<TDelegate>;
|
|
3677
3708
|
type RelatedModelClass<TInstance = unknown> = (abstract new (attributes?: Record<string, unknown>) => TInstance) & RelationshipModelStatic;
|
|
3678
|
-
type RegisteredModelName = keyof ArkormModelRegistry & string;
|
|
3679
|
-
type RegisteredModelClass<TName extends RegisteredModelName> = ArkormModelRegistry[TName] extends RelatedModelClass ? ArkormModelRegistry[TName] :
|
|
3709
|
+
type RegisteredModelName = (keyof ArkormModelRegistry & string) | (keyof ArkormModelNameRegistry & string);
|
|
3710
|
+
type RegisteredModelClass<TName extends RegisteredModelName> = TName extends keyof ArkormModelRegistry ? ArkormModelRegistry[TName] extends RelatedModelClass ? ArkormModelRegistry[TName] : typeof Model : typeof Model;
|
|
3680
3711
|
type RegisteredModelInstance<TName extends RegisteredModelName> = RegisteredModelClass<TName> extends (abstract new (...args: any[]) => infer TInstance) ? TInstance : never;
|
|
3681
3712
|
type GlobalScope = (query: QueryBuilder<any, any>) => QueryBuilder<any, any> | void;
|
|
3682
3713
|
type ModelEventName = 'retrieved' | 'saving' | 'saved' | 'creating' | 'created' | 'updating' | 'updated' | 'deleting' | 'deleted' | 'restoring' | 'restored' | 'forceDeleting' | 'forceDeleted';
|
|
@@ -8819,4 +8850,4 @@ declare class URLDriver {
|
|
|
8819
8850
|
url(page: number): string;
|
|
8820
8851
|
}
|
|
8821
8852
|
//#endregion
|
|
8822
|
-
export { buildPrimaryKeyLine as $, ModelStatic as $a, SchemaUniqueConstraint as $c, DelegateFindManyArgs as $i, getModel as $n, json as $o, InsertSpec as $r, FactoryState as $s, createEmptyPersistedColumnMappingsState as $t, isQuerySchemaLike as A, PrismaTransactionCapableClient as Aa, PivotModelStatic as Ac, RawQuerySpec as Ai, EnumBuilder as An, ModelRelationshipResult as Ao, createPrismaDatabaseAdapter as Ar, RelationDefaultValue as As, computeMigrationChecksum as At, applyCreateTableOperation as B, QuerySchemaUniqueWhere as Ba, PrimaryKeyGeneration as Bc, UpsertSpec as Bi, MigrateCommand as Bn, AggregateExpression as Bo, AdapterQueryOperation as Br, RelatedModelFromResult as Bs, readAppliedMigrationsState as Bt, getRuntimeClient as C, PrismaLikeInclude as Ca, HasOneThroughRelationMetadata as Cc, QueryNotCondition as Ci, MissingDelegateException as Cn, ModelEventHandler as Co, Seeder as Cr, RelationTableLoader as Cs, supportsDatabaseCreation as Ct, getRuntimePrismaClient as D, PrismaLikeSortOrder as Da, MorphToManyRelationMetadata as Dc, QuerySelectColumn as Di, MIGRATION_BRAND as Dn, ModelLifecycleState as Do, PrismaDatabaseAdapter as Dr, RelationColumnLookupSpec as Ds, toModelName as Dt, getRuntimePaginationURLDriverFactory as E, PrismaLikeSelect as Ea, MorphOneRelationMetadata as Ec, QueryScalarComparisonOperator as Ei, DB as En, ModelEventName as Eo, SeederInput as Er, RelationAggregateType as Es, toMigrationFileSlug as Et, PrimaryKeyGenerationPlanner as F, QuerySchemaInclude as Fa, AppliedMigrationsState as Fc, SelectSpec as Fi, SeedCommand as Fn, RegisteredModelClass as Fo, AdapterDatabaseCreationResult as Fr, EagerLoadQueryForRelationship as Fs, getLastMigrationRun as Ft, applyMigrationToPrismaSchema as G, RuntimeClientLike as Ga, SchemaForeignKey as Gc, ArkormDebugEvent as Gi, InitCommand as Gn, avg as Go, DatabaseAdapter as Gr, ArkormCollection as Gs, writeAppliedMigrationsState as Gt, applyMigrationRollbackToDatabase as H, QuerySchemaUpdateData as Ha, PrismaSchemaSyncOptions as Hc, AdapterQueryInspection as Hi, MakeModelCommand as Hn, Expression as Ho, AggregateOperation as Hr, JoinClause as Hs, removeAppliedMigration as Ht, PRISMA_ENUM_MEMBER_REGEX as I, QuerySchemaOrderBy as Ia, GenerateMigrationOptions as Ic, SoftDeleteQueryMode as Ii, ModelsSyncCommand as In, RegisteredModelInstance as Io, AdapterInspectionRequest as Ir, EagerLoadRelations as Is, getLatestAppliedMigrations as It, buildFieldLine as J, SoftDeleteConfig as Ja, SchemaOperation as Jc, CastHandler as Ji, resolveCast as Jn, col as Jo, DatabaseRows as Jr, FactoryCallback as Js, PersistedMetadataFeatures as Jt, applyOperationsToPrismaSchema as K, Serializable as Ka, SchemaForeignKeyAction as Kc, ArkormDebugHandler as Ki, DbCommand as Kn, caseWhen as Ko, DatabasePrimitive as Kr, FactoryAttributeResolver as Ks, writeAppliedMigrationsStateToStore as Kt, PRISMA_ENUM_REGEX as L, QuerySchemaRow as La, GeneratedMigrationFile as Lc, SortDirection as Li, MigrationHistoryCommand as Ln, RegisteredModelName as Lo, AdapterModelFieldStructure as Lr, JoinOn as Ls, isMigrationApplied as Lt, loadArkormConfig as M, PrismaTransactionOptions as Ma, RelationMetadataType as Mc, RelationFilterSpec as Mi, GeneratedColumnExpression as Mn, ModelWhereInput as Mo, createKyselyAdapter as Mr, RelationResult as Ms, deleteAppliedMigrationsStateFromStore as Mt, resetArkormRuntimeForTests as N, QuerySchemaCreateData as Na, AppliedMigrationEntry as Nc, RelationLoadPlan as Ni, resolveGeneratedExpression as Nn, QuerySchemaForModel as No, AdapterCapabilities as Nr, RelationResultCache as Ns, findAppliedMigration as Nt, getUserConfig as O, PrismaLikeWhereInput as Oa, MorphToRelationMetadata as Oc, QueryTarget as Oi, Migration as On, ModelOrderByInput as Oo, PrismaDelegateNameMapping as Or, RelationConstraint as Os, buildMigrationIdentity as Ot, runArkormTransaction as P, QuerySchemaFindManyArgs as Pa, AppliedMigrationRun as Pc, RelationLoadSpec as Pi, ForeignKeyBuilder as Pn, QuerySchemaForModelInstance as Po, AdapterCapability as Pr, RelationTableLookupSpec as Ps, getLastBatchMigrations as Pt, buildModelBlock as Q, TransactionOptions as Qa, SchemaTableDropOperation as Qc, DelegateCreateData as Qi, Arkormx as Qn, fromExpressionNode as Qo, InsertManySpec as Qr, FactoryRelationshipResolver as Qs, applyOperationsToPersistedColumnMappingsState as Qt, PRISMA_MODEL_REGEX as R, QuerySchemaRows as Ra, MigrationClass as Rc, UpdateManySpec as Ri, MigrateRollbackCommand as Rn, RelatedModelClass as Ro, AdapterModelIntrospectionOptions as Rr, JoinSource as Rs, markMigrationApplied as Rt, getRuntimeAdapter as S, PrismaFindManyArgsLike as Sa, HasOneRelationMetadata as Sc, QueryLogicalOperator as Si, ModelNotFoundException as Sn, ModelEventDispatcher as So, SEEDER_BRAND as Sr, Relation as Ss, stripPrismaSchemaModelsAndEnums as St, getRuntimePaginationCurrentPageResolver as T, PrismaLikeScalarFilter as Ta, MorphManyRelationMetadata as Tc, QueryRawCondition as Ti, ArkormException as Tn, ModelEventListener as To, SeederConstructor as Tr, RelationAggregateInput as Ts, supportsDatabaseReset as Tt, applyMigrationRollbackToPrismaSchema as U, QuerySchemaWhere as Ua, SchemaColumn as Uc, ArkormBootContext as Ui, MakeMigrationCommand as Un, ExpressionBuilder as Uo, AggregateSelection as Ur, LengthAwarePaginator as Us, resolveMigrationStateFilePath as Ut, applyDropTableOperation as V, QuerySchemaUpdateArgs as Va, PrismaMigrationWorkflowOptions as Vc, AdapterBindableModel as Vi, MakeSeederCommand as Vn, CaseExpression as Vo, AdapterTransactionContext as Vr, WhereCallback as Vs, readAppliedMigrationsStateFromStore as Vt, applyMigrationToDatabase as W, RawSelectInput as Wa, SchemaColumnType as Wc, ArkormConfig as Wi, MakeFactoryCommand as Wn, JsonExpression as Wo, AggregateSpec as Wr, Paginator as Ws, supportsDatabaseMigrationState as Wt, buildInverseRelationLine as X, TransactionCapableClient as Xa, SchemaTableAlterOperation as Xc, CastType as Xi, AttributeOptions as Xn, expressionBuilder as Xo, DeleteManySpec as Xr, FactoryDefinitionAttributes as Xs, PersistedTableMetadata as Xt, buildIndexLine as Y, TransactionCallback as Ya, SchemaPrimaryKey as Yc, CastMap as Yi, Attribute as Yn, count as Yo, DatabaseValue as Yr, FactoryDefinition as Ys, PersistedPrimaryKeyGeneration as Yt, buildMigrationSource as Z, TransactionContext as Za, SchemaTableCreateOperation as Zc, ClientResolver as Zi, Arkorm as Zn, fn as Zo, DeleteSpec as Zr, FactoryModelConstructor as Zs, PersistedTimestampColumn as Zt, emitRuntimeDebugEvent as _, PaginationOptions as _a, BelongsToManyRelationMetadata as _c, QueryJoinRawConstraint as _i, ScopeNotDefinedException as _n, ModelAttributeValue as _o, registerModels as _r, HasManyThroughRelation as _s, resolveEnumName as _t, getRuntimeCompatibilityAdapter as a, DelegateUniqueWhere as aa, ColumnExpressionNode as ac, QueryDayCondition as ai, getPersistedTableMetadata as an, GroupByAggregateSpec as ao, RuntimePathMap as ar, where as as, deriveRelationAlias as at, getActiveTransactionClient as b, PrismaClientLike as ba, HasManyRelationMetadata as bc, QueryJsonCondition as bi, QueryExecutionExceptionContext as bn, ModelCreateData as bo, resetRuntimeRegistryForTests as br, SingleResultRelation as bs, runMigrationWithPrisma as bt, PrismaDelegateMap as c, DelegateWhere as ca, ExpressionNode as cc, QueryFullTextCondition as ci, rebuildPersistedColumnMappingsState as cn, AttributeCreateInput as co, getRegisteredModels as cr, defineFactory as cs, escapeRegex as ct, inferDelegateName as d, GetUserConfig as da, JsonExpressionNode as dc, QueryJoin as di, resolvePersistedMetadataFeatures as dn, AttributeSchemaDelegate as do, loadFactoriesFrom as dr, MorphedByManyRelation as ds, formatDefaultValue as dt, DelegateInclude as ea, MaybePromise as ec, PartitionedSelectSpec as ei, TimestampColumnBehavior as el, deletePersistedColumnMappingsState as en, RelationshipModelStatic as eo, RegisteredFactory as er, max as es, buildRelationLine as et, awaitConfiguredModelsRegistration as f, ModelQuerySchemaLike as fa, NullCheckExpressionNode as fc, QueryJoinBoolean as fi, syncPersistedColumnMappingsFromState as fn, AttributeSelect as fo, loadMigrationsFrom as fr, MorphToManyRelation as fs, formatEnumDefaultValue as ft, disposeArkormRuntime as g, PaginationMeta as ga, DatabaseTablePersistedMetadataOptions as gc, QueryJoinNullConstraint as gi, UniqueConstraintResolutionException as gn, GlobalScope as go, registerMigrations as gr, HasOneRelation as gs, pad as gt, defineConfig as h, PaginationCurrentPageResolver as ha, DatabaseTableOptions as hc, QueryJoinNestedConstraint as hi, UnsupportedAdapterFeatureException as hn, DelegateForModelSchema as ho, registerFactories as hr, HasOneThroughRelation as hs, getMigrationPlan as ht, RuntimeModuleLoader as i, DelegateSelect as ia, CaseExpressionNode as ic, QueryCondition as ii, getPersistedPrimaryKeyGeneration as in, GroupByAggregateRow as io, RuntimePathKey as ir, val as is, deriveInverseRelationAlias as it, isTransactionCapableClient as j, PrismaTransactionContext as ja, RelationMetadata as jc, RelationAggregateSpec as ji, TableBuilder as jn, ModelUpdateData as jo, KyselyDatabaseAdapter as jr, RelationMetadataProvider as js, createEmptyAppliedMigrationsState as jt, isDelegateLike as k, PrismaTransactionCallback as ka, MorphedByManyRelationMetadata as kc, QueryTimeCondition as ki, SchemaBuilder as kn, ModelRelationshipKey as ko, createPrismaCompatibilityAdapter as kr, RelationDefaultResolver as ks, buildMigrationRunId as kt, createPrismaAdapter as l, EagerLoadConstraint as la, FunctionExpressionNode as lc, QueryGroupByItem as li, resetPersistedColumnMappingsCache as ln, AttributeOrderBy as lo, getRegisteredPaths as lr, SetBasedEagerLoader as ls, findEnumBlock as lt, configureArkormRuntime as m, NamingCase as ma, ValueExpressionNode as mc, QueryJoinConstraint as mi, writePersistedColumnMappingsState as mn, AttributeWhereInput as mo, loadSeedersFrom as mr, MorphManyRelation as ms, generateMigrationFile as mt, PivotModel as n, DelegateRow as na, BinaryExpressionNode as nc, QueryComparisonCondition as ni, TimestampNaming as nl, getPersistedEnumMap as nn, EachCallback as no, RuntimeConstructor as nr, raw as ns, createMigrationTimestamp as nt, resolveRuntimeCompatibilityQuerySchema as o, DelegateUpdateArgs as oa, ExpressionBinaryOperator as oc, QueryExistsCondition as oi, getPersistedTimestampColumns as on, QueryBuilder as oo, getRegisteredFactories as or, InlineFactory as os, deriveRelationFieldName as ot, bindAdapterToModels as p, ModelTableCase as pa, RawExpressionNode as pc, QueryJoinColumnConstraint as pi, validatePersistedMetadataFeaturesForMigrations as pn, AttributeUpdateInput as po, loadModelsFrom as pr, MorphOneRelation as ps, formatRelationAction as pt, buildEnumBlock as q, SimplePaginationMeta as qa, SchemaIndex as qc, CastDefinition as qi, CliApp as qn, coalesce as qo, DatabaseRow as qr, FactoryAttributes as qs, PersistedColumnMappingsState as qt, LoadedRuntimeModule as r, DelegateRows as ra, CaseExpressionBranch as rc, QueryComparisonOperator as ri, getPersistedEnumTsType as rn, ExpressionSelectMap as ro, RuntimePathInput as rr, sum as rs, deriveCollectionFieldName as rt, resolveRuntimeCompatibilityQuerySchemaOrThrow as s, DelegateUpdateData as sa, ExpressionJsonCast as sc, QueryExpressionCondition as si, readPersistedColumnMappingsState as sn, ArkormModelRegistry as so, getRegisteredMigrations as sr, ModelFactory as ss, deriveSingularFieldName as st, URLDriver as t, DelegateOrderBy as ta, AggregateExpressionNode as tc, QueryColumnComparisonCondition as ti, TimestampNames as tl, getPersistedColumnMap as tn, ChunkCallback as to, RegisteredModel as tr, min as ts, buildUniqueConstraintLine as tt, createPrismaDelegateMap as u, EagerLoadMap as ua, InExpressionNode as uc, QueryGroupCondition as ui, resolveColumnMappingsFilePath as un, AttributeQuerySchema as uo, getRegisteredSeeders as ur, MorphToRelation as us, findModelBlock as ut, ensureArkormConfigLoading as v, PaginationURLDriver as va, BelongsToRelationMetadata as vc, QueryJoinType as vi, RelationResolutionException as vn, ModelAttributes as vo, registerPaths as vr, HasManyRelation as vs, resolveMigrationClassName as vt, getRuntimeDebugHandler as w, PrismaLikeOrderBy as wa, ModelMetadata as wc, QueryOrderBy as wi, ArkormErrorContext as wn, ModelEventHandlerConstructor as wo, SeederCallArgument as wr, RelationAggregateConstraint as ws, supportsDatabaseMigrationExecution as wt, getDefaultStubsPath as x, PrismaDelegateLike as xa, HasManyThroughRelationMetadata as xc, QueryJsonConditionKind as xi, QueryConstraintException as xn, ModelDeclaredAttributeKey as xo, resolveRegisteredModel as xr, BelongsToManyRelation as xs, runPrismaCommand as xt, getActiveTransactionAdapter as y, PaginationURLDriverFactory as ya, ColumnMap as yc, QueryJoinValueConstraint as yi, QueryExecutionException as yn, ModelAttributesOf as yo, registerSeeders as yr, BelongsToRelation as ys, resolvePrismaType as yt, applyAlterTableOperation as z, QuerySchemaSelect as za, MigrationInstanceLike as zc, UpdateSpec as zi, MigrateFreshCommand as zn, Model as zo, AdapterModelStructure as zr, RelatedModelForRelationship as zs, markMigrationRun as zt };
|
|
8853
|
+
export { buildPrimaryKeyLine as $, ModelStatic as $a, SchemaTableDropOperation as $c, DelegateFindManyArgs as $i, getModel as $n, fromExpressionNode as $o, InsertSpec as $r, FactoryRelationshipResolver as $s, createEmptyPersistedColumnMappingsState as $t, isQuerySchemaLike as A, PrismaTransactionCapableClient as Aa, MorphedByManyRelationMetadata as Ac, RawQuerySpec as Ai, EnumBuilder as An, ModelRelationshipKey as Ao, createPrismaDatabaseAdapter as Ar, RelationDefaultResolver as As, computeMigrationChecksum as At, applyCreateTableOperation as B, QuerySchemaUniqueWhere as Ba, MigrationInstanceLike as Bc, UpsertSpec as Bi, MigrateCommand as Bn, Model as Bo, AdapterQueryOperation as Br, RelatedModelForRelationship as Bs, readAppliedMigrationsState as Bt, getRuntimeClient as C, PrismaLikeInclude as Ca, HasOneRelationMetadata as Cc, QueryNotCondition as Ci, MissingDelegateException as Cn, ModelEventDispatcher as Co, Seeder as Cr, Relation as Cs, supportsDatabaseCreation as Ct, getRuntimePrismaClient as D, PrismaLikeSortOrder as Da, MorphOneRelationMetadata as Dc, QuerySelectColumn as Di, MIGRATION_BRAND as Dn, ModelEventName as Do, PrismaDatabaseAdapter as Dr, RelationAggregateType as Ds, toModelName as Dt, getRuntimePaginationURLDriverFactory as E, PrismaLikeSelect as Ea, MorphManyRelationMetadata as Ec, QueryScalarComparisonOperator as Ei, DB as En, ModelEventListener as Eo, SeederInput as Er, RelationAggregateInput as Es, toMigrationFileSlug as Et, PrimaryKeyGenerationPlanner as F, QuerySchemaInclude as Fa, AppliedMigrationRun as Fc, SelectSpec as Fi, SeedCommand as Fn, QuerySchemaForModelInstance as Fo, AdapterDatabaseCreationResult as Fr, RelationTableLookupSpec as Fs, getLastMigrationRun as Ft, applyMigrationToPrismaSchema as G, RuntimeClientLike as Ga, SchemaColumnType as Gc, ArkormDebugEvent as Gi, InitCommand as Gn, JsonExpression as Go, DatabaseAdapter as Gr, Paginator as Gs, writeAppliedMigrationsState as Gt, applyMigrationRollbackToDatabase as H, QuerySchemaUpdateData as Ha, PrismaMigrationWorkflowOptions as Hc, AdapterQueryInspection as Hi, MakeModelCommand as Hn, CaseExpression as Ho, AggregateOperation as Hr, WhereCallback as Hs, removeAppliedMigration as Ht, PRISMA_ENUM_MEMBER_REGEX as I, QuerySchemaOrderBy as Ia, AppliedMigrationsState as Ic, SoftDeleteQueryMode as Ii, ModelsSyncCommand as In, RegisteredModelClass as Io, AdapterInspectionRequest as Ir, EagerLoadQueryForRelationship as Is, getLatestAppliedMigrations as It, buildFieldLine as J, SoftDeleteConfig as Ja, SchemaIndex as Jc, CastHandler as Ji, resolveCast as Jn, coalesce as Jo, DatabaseRows as Jr, FactoryAttributes as Js, PersistedMetadataFeatures as Jt, applyOperationsToPrismaSchema as K, Serializable as Ka, SchemaForeignKey as Kc, ArkormDebugHandler as Ki, DbCommand as Kn, avg as Ko, DatabasePrimitive as Kr, ArkormCollection as Ks, writeAppliedMigrationsStateToStore as Kt, PRISMA_ENUM_REGEX as L, QuerySchemaRow as La, GenerateMigrationOptions as Lc, SortDirection as Li, MigrationHistoryCommand as Ln, RegisteredModelInstance as Lo, AdapterModelFieldStructure as Lr, EagerLoadRelations as Ls, isMigrationApplied as Lt, loadArkormConfig as M, PrismaTransactionOptions as Ma, RelationMetadata as Mc, RelationFilterSpec as Mi, GeneratedColumnExpression as Mn, ModelUpdateData as Mo, createKyselyAdapter as Mr, RelationMetadataProvider as Ms, deleteAppliedMigrationsStateFromStore as Mt, resetArkormRuntimeForTests as N, QuerySchemaCreateData as Na, RelationMetadataType as Nc, RelationLoadPlan as Ni, resolveGeneratedExpression as Nn, ModelWhereInput as No, AdapterCapabilities as Nr, RelationResult as Ns, findAppliedMigration as Nt, getUserConfig as O, PrismaLikeWhereInput as Oa, MorphToManyRelationMetadata as Oc, QueryTarget as Oi, Migration as On, ModelLifecycleState as Oo, PrismaDelegateNameMapping as Or, RelationColumnLookupSpec as Os, buildMigrationIdentity as Ot, runArkormTransaction as P, QuerySchemaFindManyArgs as Pa, AppliedMigrationEntry as Pc, RelationLoadSpec as Pi, ForeignKeyBuilder as Pn, QuerySchemaForModel as Po, AdapterCapability as Pr, RelationResultCache as Ps, getLastBatchMigrations as Pt, buildModelBlock as Q, TransactionOptions as Qa, SchemaTableCreateOperation as Qc, DelegateCreateData as Qi, Arkormx as Qn, fn as Qo, InsertManySpec as Qr, FactoryModelConstructor as Qs, applyOperationsToPersistedColumnMappingsState as Qt, PRISMA_MODEL_REGEX as R, QuerySchemaRows as Ra, GeneratedMigrationFile as Rc, UpdateManySpec as Ri, MigrateRollbackCommand as Rn, RegisteredModelName as Ro, AdapterModelIntrospectionOptions as Rr, JoinOn as Rs, markMigrationApplied as Rt, getRuntimeAdapter as S, PrismaFindManyArgsLike as Sa, HasManyThroughRelationMetadata as Sc, QueryLogicalOperator as Si, ModelNotFoundException as Sn, ModelDeclaredAttributeKey as So, SEEDER_BRAND as Sr, BelongsToManyRelation as Ss, stripPrismaSchemaModelsAndEnums as St, getRuntimePaginationCurrentPageResolver as T, PrismaLikeScalarFilter as Ta, ModelMetadata as Tc, QueryRawCondition as Ti, ArkormException as Tn, ModelEventHandlerConstructor as To, SeederConstructor as Tr, RelationAggregateConstraint as Ts, supportsDatabaseReset as Tt, applyMigrationRollbackToPrismaSchema as U, QuerySchemaWhere as Ua, PrismaSchemaSyncOptions as Uc, ArkormBootContext as Ui, MakeMigrationCommand as Un, Expression as Uo, AggregateSelection as Ur, JoinClause as Us, resolveMigrationStateFilePath as Ut, applyDropTableOperation as V, QuerySchemaUpdateArgs as Va, PrimaryKeyGeneration as Vc, AdapterBindableModel as Vi, MakeSeederCommand as Vn, AggregateExpression as Vo, AdapterTransactionContext as Vr, RelatedModelFromResult as Vs, readAppliedMigrationsStateFromStore as Vt, applyMigrationToDatabase as W, RawSelectInput as Wa, SchemaColumn as Wc, ArkormConfig as Wi, MakeFactoryCommand as Wn, ExpressionBuilder as Wo, AggregateSpec as Wr, LengthAwarePaginator as Ws, supportsDatabaseMigrationState as Wt, buildInverseRelationLine as X, TransactionCapableClient as Xa, SchemaPrimaryKey as Xc, CastType as Xi, AttributeOptions as Xn, count as Xo, DeleteManySpec as Xr, FactoryDefinition as Xs, PersistedTableMetadata as Xt, buildIndexLine as Y, TransactionCallback as Ya, SchemaOperation as Yc, CastMap as Yi, Attribute as Yn, col as Yo, DatabaseValue as Yr, FactoryCallback as Ys, PersistedPrimaryKeyGeneration as Yt, buildMigrationSource as Z, TransactionContext as Za, SchemaTableAlterOperation as Zc, ClientResolver as Zi, Arkorm as Zn, expressionBuilder as Zo, DeleteSpec as Zr, FactoryDefinitionAttributes as Zs, PersistedTimestampColumn as Zt, emitRuntimeDebugEvent as _, PaginationOptions as _a, DatabaseTablePersistedMetadataOptions as _c, QueryJoinRawConstraint as _i, ScopeNotDefinedException as _n, GlobalScope as _o, registerModels as _r, HasOneRelation as _s, resolveEnumName as _t, getRuntimeCompatibilityAdapter as a, DelegateUniqueWhere as aa, CaseExpressionNode as ac, QueryDayCondition as ai, getPersistedTableMetadata as an, GroupByAggregateSpec as ao, RuntimePathMap as ar, val as as, deriveRelationAlias as at, getActiveTransactionClient as b, PrismaClientLike as ba, ColumnMap as bc, QueryJsonCondition as bi, QueryExecutionExceptionContext as bn, ModelAttributesOf as bo, resetRuntimeRegistryForTests as br, BelongsToRelation as bs, runMigrationWithPrisma as bt, PrismaDelegateMap as c, DelegateWhere as ca, ExpressionJsonCast as cc, QueryFullTextCondition as ci, rebuildPersistedColumnMappingsState as cn, ArkormModelRegistry as co, getRegisteredModels as cr, ModelFactory as cs, escapeRegex as ct, inferDelegateName as d, GetUserConfig as da, InExpressionNode as dc, QueryJoin as di, resolvePersistedMetadataFeatures as dn, AttributeQuerySchema as do, loadFactoriesFrom as dr, MorphToRelation as ds, formatDefaultValue as dt, DelegateInclude as ea, FactoryState as ec, PartitionedSelectSpec as ei, SchemaUniqueConstraint as el, deletePersistedColumnMappingsState as en, RelationshipModelStatic as eo, RegisteredFactory as er, json as es, buildRelationLine as et, awaitConfiguredModelsRegistration as f, ModelQuerySchemaLike as fa, JsonExpressionNode as fc, QueryJoinBoolean as fi, syncPersistedColumnMappingsFromState as fn, AttributeSchemaDelegate as fo, loadMigrationsFrom as fr, MorphedByManyRelation as fs, formatEnumDefaultValue as ft, disposeArkormRuntime as g, PaginationMeta as ga, DatabaseTableOptions as gc, QueryJoinNullConstraint as gi, UniqueConstraintResolutionException as gn, DelegateForModelSchema as go, registerMigrations as gr, HasOneThroughRelation as gs, pad as gt, defineConfig as h, PaginationCurrentPageResolver as ha, ValueExpressionNode as hc, QueryJoinNestedConstraint as hi, UnsupportedAdapterFeatureException as hn, AttributeWhereInput as ho, registerFactories as hr, MorphManyRelation as hs, getMigrationPlan as ht, RuntimeModuleLoader as i, DelegateSelect as ia, CaseExpressionBranch as ic, QueryCondition as ii, getPersistedPrimaryKeyGeneration as in, GroupByAggregateRow as io, RuntimePathKey as ir, sum as is, deriveInverseRelationAlias as it, isTransactionCapableClient as j, PrismaTransactionContext as ja, PivotModelStatic as jc, RelationAggregateSpec as ji, TableBuilder as jn, ModelRelationshipResult as jo, KyselyDatabaseAdapter as jr, RelationDefaultValue as js, createEmptyAppliedMigrationsState as jt, isDelegateLike as k, PrismaTransactionCallback as ka, MorphToRelationMetadata as kc, QueryTimeCondition as ki, SchemaBuilder as kn, ModelOrderByInput as ko, createPrismaCompatibilityAdapter as kr, RelationConstraint as ks, buildMigrationRunId as kt, createPrismaAdapter as l, EagerLoadConstraint as la, ExpressionNode as lc, QueryGroupByItem as li, resetPersistedColumnMappingsCache as ln, AttributeCreateInput as lo, getRegisteredPaths as lr, defineFactory as ls, findEnumBlock as lt, configureArkormRuntime as m, NamingCase as ma, RawExpressionNode as mc, QueryJoinConstraint as mi, writePersistedColumnMappingsState as mn, AttributeUpdateInput as mo, loadSeedersFrom as mr, MorphOneRelation as ms, generateMigrationFile as mt, PivotModel as n, DelegateRow as na, AggregateExpressionNode as nc, QueryComparisonCondition as ni, TimestampNames as nl, getPersistedEnumMap as nn, EachCallback as no, RuntimeConstructor as nr, min as ns, createMigrationTimestamp as nt, resolveRuntimeCompatibilityQuerySchema as o, DelegateUpdateArgs as oa, ColumnExpressionNode as oc, QueryExistsCondition as oi, getPersistedTimestampColumns as on, QueryBuilder as oo, getRegisteredFactories as or, where as os, deriveRelationFieldName as ot, bindAdapterToModels as p, ModelTableCase as pa, NullCheckExpressionNode as pc, QueryJoinColumnConstraint as pi, validatePersistedMetadataFeaturesForMigrations as pn, AttributeSelect as po, loadModelsFrom as pr, MorphToManyRelation as ps, formatRelationAction as pt, buildEnumBlock as q, SimplePaginationMeta as qa, SchemaForeignKeyAction as qc, CastDefinition as qi, CliApp as qn, caseWhen as qo, DatabaseRow as qr, FactoryAttributeResolver as qs, PersistedColumnMappingsState as qt, LoadedRuntimeModule as r, DelegateRows as ra, BinaryExpressionNode as rc, QueryComparisonOperator as ri, TimestampNaming as rl, getPersistedEnumTsType as rn, ExpressionSelectMap as ro, RuntimePathInput as rr, raw as rs, deriveCollectionFieldName as rt, resolveRuntimeCompatibilityQuerySchemaOrThrow as s, DelegateUpdateData as sa, ExpressionBinaryOperator as sc, QueryExpressionCondition as si, readPersistedColumnMappingsState as sn, ArkormModelNameRegistry as so, getRegisteredMigrations as sr, InlineFactory as ss, deriveSingularFieldName as st, URLDriver as t, DelegateOrderBy as ta, MaybePromise as tc, QueryColumnComparisonCondition as ti, TimestampColumnBehavior as tl, getPersistedColumnMap as tn, ChunkCallback as to, RegisteredModel as tr, max as ts, buildUniqueConstraintLine as tt, createPrismaDelegateMap as u, EagerLoadMap as ua, FunctionExpressionNode as uc, QueryGroupCondition as ui, resolveColumnMappingsFilePath as un, AttributeOrderBy as uo, getRegisteredSeeders as ur, SetBasedEagerLoader as us, findModelBlock as ut, ensureArkormConfigLoading as v, PaginationURLDriver as va, BelongsToManyRelationMetadata as vc, QueryJoinType as vi, RelationResolutionException as vn, ModelAttributeValue as vo, registerPaths as vr, HasManyThroughRelation as vs, resolveMigrationClassName as vt, getRuntimeDebugHandler as w, PrismaLikeOrderBy as wa, HasOneThroughRelationMetadata as wc, QueryOrderBy as wi, ArkormErrorContext as wn, ModelEventHandler as wo, SeederCallArgument as wr, RelationTableLoader as ws, supportsDatabaseMigrationExecution as wt, getDefaultStubsPath as x, PrismaDelegateLike as xa, HasManyRelationMetadata as xc, QueryJsonConditionKind as xi, QueryConstraintException as xn, ModelCreateData as xo, resolveRegisteredModel as xr, SingleResultRelation as xs, runPrismaCommand as xt, getActiveTransactionAdapter as y, PaginationURLDriverFactory as ya, BelongsToRelationMetadata as yc, QueryJoinValueConstraint as yi, QueryExecutionException as yn, ModelAttributes as yo, registerSeeders as yr, HasManyRelation as ys, resolvePrismaType as yt, applyAlterTableOperation as z, QuerySchemaSelect as za, MigrationClass as zc, UpdateSpec as zi, MigrateFreshCommand as zn, RelatedModelClass as zo, AdapterModelStructure as zr, JoinSource as zs, markMigrationRun as zt };
|
package/dist/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_relationship = require('./relationship-
|
|
2
|
+
const require_relationship = require('./relationship-DFBGmJ1I.cjs');
|
|
3
3
|
let pg = require("pg");
|
|
4
4
|
let node_path = require("node:path");
|
|
5
5
|
let node_fs = require("node:fs");
|
|
@@ -3255,22 +3255,30 @@ var CliApp = class {
|
|
|
3255
3255
|
syncModelRegistryTypes(modelFiles) {
|
|
3256
3256
|
const registryDir = (0, path.join)((0, fs.realpathSync)(process.cwd()), ".arkormx");
|
|
3257
3257
|
const registryPath = (0, path.join)(registryDir, "models.d.ts");
|
|
3258
|
+
const models = modelFiles.map((filePath) => {
|
|
3259
|
+
const parsed = this.parseModelSyncSource((0, fs.readFileSync)(filePath, "utf-8"));
|
|
3260
|
+
if (!parsed) return null;
|
|
3261
|
+
return {
|
|
3262
|
+
className: parsed.className,
|
|
3263
|
+
importPath: this.resolveModelRegistryImportPath(registryPath, filePath)
|
|
3264
|
+
};
|
|
3265
|
+
}).filter((model) => model !== null).sort((left, right) => left.className.localeCompare(right.className));
|
|
3266
|
+
const nameRegistryLines = models.map((model) => {
|
|
3267
|
+
return ` ${model.className}: true`;
|
|
3268
|
+
});
|
|
3258
3269
|
const content = [
|
|
3259
3270
|
"/* eslint-disable */",
|
|
3260
3271
|
"// This file is generated by `arkorm models:sync`.",
|
|
3261
3272
|
"",
|
|
3262
3273
|
"declare module 'arkormx' {",
|
|
3263
|
-
|
|
3264
|
-
|
|
3265
|
-
|
|
3266
|
-
|
|
3267
|
-
|
|
3268
|
-
|
|
3269
|
-
|
|
3270
|
-
|
|
3271
|
-
}).filter((model) => model !== null).sort((left, right) => left.className.localeCompare(right.className)).map((model) => {
|
|
3272
|
-
return ` ${model.className}: typeof import('${model.importPath}')['${model.className}']`;
|
|
3273
|
-
}),
|
|
3274
|
+
...models.flatMap((model) => [
|
|
3275
|
+
" function getModel(",
|
|
3276
|
+
` modelName: '${model.className}',`,
|
|
3277
|
+
` ): typeof import('${model.importPath}')['${model.className}']`,
|
|
3278
|
+
""
|
|
3279
|
+
]),
|
|
3280
|
+
" interface ArkormModelNameRegistry {",
|
|
3281
|
+
...nameRegistryLines,
|
|
3274
3282
|
" }",
|
|
3275
3283
|
"}",
|
|
3276
3284
|
"",
|
package/dist/index.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as buildPrimaryKeyLine, $a as ModelStatic, $c as SchemaUniqueConstraint, $i as DelegateFindManyArgs, $n as getModel, $o as json, $r as InsertSpec, $s as FactoryState, $t as createEmptyPersistedColumnMappingsState, A as isQuerySchemaLike, Aa as PrismaTransactionCapableClient, Ac as PivotModelStatic, Ai as RawQuerySpec, An as EnumBuilder, Ao as ModelRelationshipResult, Ar as createPrismaDatabaseAdapter, As as RelationDefaultValue, At as computeMigrationChecksum, B as applyCreateTableOperation, Ba as QuerySchemaUniqueWhere, Bc as PrimaryKeyGeneration, Bi as UpsertSpec, Bn as MigrateCommand, Bo as AggregateExpression, Br as AdapterQueryOperation, Bs as RelatedModelFromResult, Bt as readAppliedMigrationsState, C as getRuntimeClient, Ca as PrismaLikeInclude, Cc as HasOneThroughRelationMetadata, Ci as QueryNotCondition, Cn as MissingDelegateException, Co as ModelEventHandler, Cr as Seeder, Ct as supportsDatabaseCreation, D as getRuntimePrismaClient, Da as PrismaLikeSortOrder, Dc as MorphToManyRelationMetadata, Di as QuerySelectColumn, Dn as MIGRATION_BRAND, Do as ModelLifecycleState, Dr as PrismaDatabaseAdapter, Ds as RelationColumnLookupSpec, Dt as toModelName, E as getRuntimePaginationURLDriverFactory, Ea as PrismaLikeSelect, Ec as MorphOneRelationMetadata, Ei as QueryScalarComparisonOperator, En as DB, Eo as ModelEventName, Er as SeederInput, Es as RelationAggregateType, Et as toMigrationFileSlug, F as PrimaryKeyGenerationPlanner, Fa as QuerySchemaInclude, Fc as AppliedMigrationsState, Fi as SelectSpec, Fn as SeedCommand, Fo as RegisteredModelClass, Fr as AdapterDatabaseCreationResult, Fs as EagerLoadQueryForRelationship, Ft as getLastMigrationRun, G as applyMigrationToPrismaSchema, Ga as RuntimeClientLike, Gc as SchemaForeignKey, Gi as ArkormDebugEvent, Gn as InitCommand, Go as avg, Gr as DatabaseAdapter, Gs as ArkormCollection, Gt as writeAppliedMigrationsState, H as applyMigrationRollbackToDatabase, Ha as QuerySchemaUpdateData, Hc as PrismaSchemaSyncOptions, Hi as AdapterQueryInspection, Hn as MakeModelCommand, Ho as Expression, Hr as AggregateOperation, Hs as JoinClause, Ht as removeAppliedMigration, I as PRISMA_ENUM_MEMBER_REGEX, Ia as QuerySchemaOrderBy, Ic as GenerateMigrationOptions, Ii as SoftDeleteQueryMode, In as ModelsSyncCommand, Io as RegisteredModelInstance, Ir as AdapterInspectionRequest, Is as EagerLoadRelations, It as getLatestAppliedMigrations, J as buildFieldLine, Ja as SoftDeleteConfig, Jc as SchemaOperation, Ji as CastHandler, Jn as resolveCast, Jo as col, Jr as DatabaseRows, Js as FactoryCallback, Jt as PersistedMetadataFeatures, K as applyOperationsToPrismaSchema, Ka as Serializable, Kc as SchemaForeignKeyAction, Ki as ArkormDebugHandler, Kn as DbCommand, Ko as caseWhen, Kr as DatabasePrimitive, Ks as FactoryAttributeResolver, Kt as writeAppliedMigrationsStateToStore, L as PRISMA_ENUM_REGEX, La as QuerySchemaRow, Lc as GeneratedMigrationFile, Li as SortDirection, Ln as MigrationHistoryCommand, Lo as RegisteredModelName, Lr as AdapterModelFieldStructure, Ls as JoinOn, Lt as isMigrationApplied, M as loadArkormConfig, Ma as PrismaTransactionOptions, Mc as RelationMetadataType, Mi as RelationFilterSpec, Mn as GeneratedColumnExpression, Mo as ModelWhereInput, Mr as createKyselyAdapter, Ms as RelationResult, Mt as deleteAppliedMigrationsStateFromStore, N as resetArkormRuntimeForTests, Na as QuerySchemaCreateData, Nc as AppliedMigrationEntry, Ni as RelationLoadPlan, Nn as resolveGeneratedExpression, No as QuerySchemaForModel, Nr as AdapterCapabilities, Ns as RelationResultCache, Nt as findAppliedMigration, O as getUserConfig, Oa as PrismaLikeWhereInput, Oc as MorphToRelationMetadata, Oi as QueryTarget, On as Migration, Oo as ModelOrderByInput, Or as PrismaDelegateNameMapping, Os as RelationConstraint, Ot as buildMigrationIdentity, P as runArkormTransaction, Pa as QuerySchemaFindManyArgs, Pc as AppliedMigrationRun, Pi as RelationLoadSpec, Pn as ForeignKeyBuilder, Po as QuerySchemaForModelInstance, Pr as AdapterCapability, Ps as RelationTableLookupSpec, Pt as getLastBatchMigrations, Q as buildModelBlock, Qa as TransactionOptions, Qc as SchemaTableDropOperation, Qi as DelegateCreateData, Qn as Arkormx, Qo as fromExpressionNode, Qr as InsertManySpec, Qs as FactoryRelationshipResolver, Qt as applyOperationsToPersistedColumnMappingsState, R as PRISMA_MODEL_REGEX, Ra as QuerySchemaRows, Rc as MigrationClass, Ri as UpdateManySpec, Rn as MigrateRollbackCommand, Ro as RelatedModelClass, Rr as AdapterModelIntrospectionOptions, Rs as JoinSource, Rt as markMigrationApplied, S as getRuntimeAdapter, Sa as PrismaFindManyArgsLike, Sc as HasOneRelationMetadata, Si as QueryLogicalOperator, Sn as ModelNotFoundException, So as ModelEventDispatcher, Sr as SEEDER_BRAND, St as stripPrismaSchemaModelsAndEnums, T as getRuntimePaginationCurrentPageResolver, Ta as PrismaLikeScalarFilter, Tc as MorphManyRelationMetadata, Ti as QueryRawCondition, Tn as ArkormException, To as ModelEventListener, Tr as SeederConstructor, Ts as RelationAggregateInput, Tt as supportsDatabaseReset, U as applyMigrationRollbackToPrismaSchema, Ua as QuerySchemaWhere, Uc as SchemaColumn, Ui as ArkormBootContext, Un as MakeMigrationCommand, Uo as ExpressionBuilder, Ur as AggregateSelection, Us as LengthAwarePaginator, Ut as resolveMigrationStateFilePath, V as applyDropTableOperation, Va as QuerySchemaUpdateArgs, Vc as PrismaMigrationWorkflowOptions, Vi as AdapterBindableModel, Vn as MakeSeederCommand, Vo as CaseExpression, Vr as AdapterTransactionContext, Vs as WhereCallback, Vt as readAppliedMigrationsStateFromStore, W as applyMigrationToDatabase, Wa as RawSelectInput, Wc as SchemaColumnType, Wi as ArkormConfig, Wn as MakeFactoryCommand, Wo as JsonExpression, Wr as AggregateSpec, Ws as Paginator, Wt as supportsDatabaseMigrationState, X as buildInverseRelationLine, Xa as TransactionCapableClient, Xc as SchemaTableAlterOperation, Xi as CastType, Xn as AttributeOptions, Xo as expressionBuilder, Xr as DeleteManySpec, Xs as FactoryDefinitionAttributes, Xt as PersistedTableMetadata, Y as buildIndexLine, Ya as TransactionCallback, Yc as SchemaPrimaryKey, Yi as CastMap, Yn as Attribute, Yo as count, Yr as DatabaseValue, Ys as FactoryDefinition, Yt as PersistedPrimaryKeyGeneration, Z as buildMigrationSource, Za as TransactionContext, Zc as SchemaTableCreateOperation, Zi as ClientResolver, Zn as Arkorm, Zo as fn, Zr as DeleteSpec, Zs as FactoryModelConstructor, Zt as PersistedTimestampColumn, _ as emitRuntimeDebugEvent, _a as PaginationOptions, _c as BelongsToManyRelationMetadata, _i as QueryJoinRawConstraint, _n as ScopeNotDefinedException, _o as ModelAttributeValue, _r as registerModels, _t as resolveEnumName, a as getRuntimeCompatibilityAdapter, aa as DelegateUniqueWhere, ac as ColumnExpressionNode, ai as QueryDayCondition, an as getPersistedTableMetadata, ao as GroupByAggregateSpec, ar as RuntimePathMap, as as where, at as deriveRelationAlias, b as getActiveTransactionClient, ba as PrismaClientLike, bc as HasManyRelationMetadata, bi as QueryJsonCondition, bn as QueryExecutionExceptionContext, bo as ModelCreateData, br as resetRuntimeRegistryForTests, bt as runMigrationWithPrisma, c as PrismaDelegateMap, ca as DelegateWhere, cc as ExpressionNode, ci as QueryFullTextCondition, cn as rebuildPersistedColumnMappingsState, co as AttributeCreateInput, cr as getRegisteredModels, cs as defineFactory, ct as escapeRegex, d as inferDelegateName, da as GetUserConfig, dc as JsonExpressionNode, di as QueryJoin, dn as resolvePersistedMetadataFeatures, do as AttributeSchemaDelegate, dr as loadFactoriesFrom, dt as formatDefaultValue, ea as DelegateInclude, ec as MaybePromise, ei as PartitionedSelectSpec, el as TimestampColumnBehavior, en as deletePersistedColumnMappingsState, eo as RelationshipModelStatic, er as RegisteredFactory, es as max, et as buildRelationLine, f as awaitConfiguredModelsRegistration, fa as ModelQuerySchemaLike, fc as NullCheckExpressionNode, fi as QueryJoinBoolean, fn as syncPersistedColumnMappingsFromState, fo as AttributeSelect, fr as loadMigrationsFrom, ft as formatEnumDefaultValue, g as disposeArkormRuntime, ga as PaginationMeta, gc as DatabaseTablePersistedMetadataOptions, gi as QueryJoinNullConstraint, gn as UniqueConstraintResolutionException, go as GlobalScope, gr as registerMigrations, gt as pad, h as defineConfig, ha as PaginationCurrentPageResolver, hc as DatabaseTableOptions, hi as QueryJoinNestedConstraint, hn as UnsupportedAdapterFeatureException, ho as DelegateForModelSchema, hr as registerFactories, ht as getMigrationPlan, i as RuntimeModuleLoader, ia as DelegateSelect, ic as CaseExpressionNode, ii as QueryCondition, in as getPersistedPrimaryKeyGeneration, io as GroupByAggregateRow, ir as RuntimePathKey, is as val, it as deriveInverseRelationAlias, j as isTransactionCapableClient, ja as PrismaTransactionContext, jc as RelationMetadata, ji as RelationAggregateSpec, jn as TableBuilder, jo as ModelUpdateData, jr as KyselyDatabaseAdapter, js as RelationMetadataProvider, jt as createEmptyAppliedMigrationsState, k as isDelegateLike, ka as PrismaTransactionCallback, kc as MorphedByManyRelationMetadata, ki as QueryTimeCondition, kn as SchemaBuilder, ko as ModelRelationshipKey, kr as createPrismaCompatibilityAdapter, ks as RelationDefaultResolver, kt as buildMigrationRunId, l as createPrismaAdapter, la as EagerLoadConstraint, lc as FunctionExpressionNode, li as QueryGroupByItem, ln as resetPersistedColumnMappingsCache, lo as AttributeOrderBy, lr as getRegisteredPaths, lt as findEnumBlock, m as configureArkormRuntime, ma as NamingCase, mc as ValueExpressionNode, mi as QueryJoinConstraint, mn as writePersistedColumnMappingsState, mo as AttributeWhereInput, mr as loadSeedersFrom, mt as generateMigrationFile, n as PivotModel, na as DelegateRow, nc as BinaryExpressionNode, ni as QueryComparisonCondition, nl as TimestampNaming, nn as getPersistedEnumMap, no as EachCallback, nr as RuntimeConstructor, ns as raw, nt as createMigrationTimestamp, o as resolveRuntimeCompatibilityQuerySchema, oa as DelegateUpdateArgs, oc as ExpressionBinaryOperator, oi as QueryExistsCondition, on as getPersistedTimestampColumns, oo as QueryBuilder, or as getRegisteredFactories, os as InlineFactory, ot as deriveRelationFieldName, p as bindAdapterToModels, pa as ModelTableCase, pc as RawExpressionNode, pi as QueryJoinColumnConstraint, pn as validatePersistedMetadataFeaturesForMigrations, po as AttributeUpdateInput, pr as loadModelsFrom, pt as formatRelationAction, q as buildEnumBlock, qa as SimplePaginationMeta, qc as SchemaIndex, qi as CastDefinition, qn as CliApp, qo as coalesce, qr as DatabaseRow, qs as FactoryAttributes, qt as PersistedColumnMappingsState, r as LoadedRuntimeModule, ra as DelegateRows, rc as CaseExpressionBranch, ri as QueryComparisonOperator, rn as getPersistedEnumTsType, ro as ExpressionSelectMap, rr as RuntimePathInput, rs as sum, rt as deriveCollectionFieldName, s as resolveRuntimeCompatibilityQuerySchemaOrThrow, sa as DelegateUpdateData, sc as ExpressionJsonCast, si as QueryExpressionCondition, sn as readPersistedColumnMappingsState, so as ArkormModelRegistry, sr as getRegisteredMigrations, ss as ModelFactory, st as deriveSingularFieldName, t as URLDriver, ta as DelegateOrderBy, tc as AggregateExpressionNode, ti as QueryColumnComparisonCondition, tl as TimestampNames, tn as getPersistedColumnMap, to as ChunkCallback, tr as RegisteredModel, ts as min, tt as buildUniqueConstraintLine, u as createPrismaDelegateMap, ua as EagerLoadMap, uc as InExpressionNode, ui as QueryGroupCondition, un as resolveColumnMappingsFilePath, uo as AttributeQuerySchema, ur as getRegisteredSeeders, ut as findModelBlock, v as ensureArkormConfigLoading, va as PaginationURLDriver, vc as BelongsToRelationMetadata, vi as QueryJoinType, vn as RelationResolutionException, vo as ModelAttributes, vr as registerPaths, vt as resolveMigrationClassName, w as getRuntimeDebugHandler, wa as PrismaLikeOrderBy, wc as ModelMetadata, wi as QueryOrderBy, wn as ArkormErrorContext, wo as ModelEventHandlerConstructor, wr as SeederCallArgument, ws as RelationAggregateConstraint, wt as supportsDatabaseMigrationExecution, x as getDefaultStubsPath, xa as PrismaDelegateLike, xc as HasManyThroughRelationMetadata, xi as QueryJsonConditionKind, xn as QueryConstraintException, xo as ModelDeclaredAttributeKey, xr as resolveRegisteredModel, xt as runPrismaCommand, y as getActiveTransactionAdapter, ya as PaginationURLDriverFactory, yc as ColumnMap, yi as QueryJoinValueConstraint, yn as QueryExecutionException, yo as ModelAttributesOf, yr as registerSeeders, yt as resolvePrismaType, z as applyAlterTableOperation, za as QuerySchemaSelect, zc as MigrationInstanceLike, zi as UpdateSpec, zn as MigrateFreshCommand, zo as Model, zr as AdapterModelStructure, zs as RelatedModelForRelationship, zt as markMigrationRun } from "./index-3-Sgl4-j.cjs";
|
|
2
|
-
export { AdapterBindableModel, AdapterCapabilities, AdapterCapability, AdapterDatabaseCreationResult, AdapterInspectionRequest, AdapterModelFieldStructure, AdapterModelIntrospectionOptions, AdapterModelStructure, AdapterQueryInspection, AdapterQueryOperation, AdapterTransactionContext, AggregateExpression, AggregateExpressionNode, AggregateOperation, AggregateSelection, AggregateSpec, AppliedMigrationEntry, AppliedMigrationRun, AppliedMigrationsState, Arkorm, ArkormBootContext, ArkormCollection, ArkormConfig, ArkormDebugEvent, ArkormDebugHandler, ArkormErrorContext, ArkormException, ArkormModelRegistry, Arkormx, Attribute, AttributeCreateInput, AttributeOptions, AttributeOrderBy, AttributeQuerySchema, AttributeSchemaDelegate, AttributeSelect, AttributeUpdateInput, AttributeWhereInput, BelongsToManyRelationMetadata, BelongsToRelationMetadata, BinaryExpressionNode, CaseExpression, CaseExpressionBranch, CaseExpressionNode, CastDefinition, CastHandler, CastMap, CastType, ChunkCallback, CliApp, ClientResolver, ColumnExpressionNode, ColumnMap, DB, DatabaseAdapter, DatabasePrimitive, DatabaseRow, DatabaseRows, DatabaseTableOptions, DatabaseTablePersistedMetadataOptions, DatabaseValue, DbCommand, DelegateCreateData, DelegateFindManyArgs, DelegateForModelSchema, DelegateInclude, DelegateOrderBy, DelegateRow, DelegateRows, DelegateSelect, DelegateUniqueWhere, DelegateUpdateArgs, DelegateUpdateData, DelegateWhere, DeleteManySpec, DeleteSpec, EachCallback, EagerLoadConstraint, EagerLoadMap, EagerLoadQueryForRelationship, EagerLoadRelations, EnumBuilder, Expression, ExpressionBinaryOperator, ExpressionBuilder, ExpressionJsonCast, ExpressionNode, ExpressionSelectMap, FactoryAttributeResolver, FactoryAttributes, FactoryCallback, FactoryDefinition, FactoryDefinitionAttributes, FactoryModelConstructor, FactoryRelationshipResolver, FactoryState, ForeignKeyBuilder, FunctionExpressionNode, GenerateMigrationOptions, GeneratedColumnExpression, GeneratedMigrationFile, GetUserConfig, GlobalScope, GroupByAggregateRow, GroupByAggregateSpec, HasManyRelationMetadata, HasManyThroughRelationMetadata, HasOneRelationMetadata, HasOneThroughRelationMetadata, InExpressionNode, InitCommand, InlineFactory, InsertManySpec, InsertSpec, JoinClause, JoinOn, JoinSource, JsonExpression, JsonExpressionNode, KyselyDatabaseAdapter, LengthAwarePaginator, LoadedRuntimeModule, MIGRATION_BRAND, MakeFactoryCommand, MakeMigrationCommand, MakeModelCommand, MakeSeederCommand, MaybePromise, MigrateCommand, MigrateFreshCommand, MigrateRollbackCommand, Migration, MigrationClass, MigrationHistoryCommand, MigrationInstanceLike, MissingDelegateException, Model, ModelAttributeValue, ModelAttributes, ModelAttributesOf, ModelCreateData, ModelDeclaredAttributeKey, ModelEventDispatcher, ModelEventHandler, ModelEventHandlerConstructor, ModelEventListener, ModelEventName, ModelFactory, ModelLifecycleState, ModelMetadata, ModelNotFoundException, ModelOrderByInput, ModelQuerySchemaLike, ModelRelationshipKey, ModelRelationshipResult, ModelStatic, ModelTableCase, ModelUpdateData, ModelWhereInput, ModelsSyncCommand, MorphManyRelationMetadata, MorphOneRelationMetadata, MorphToManyRelationMetadata, MorphToRelationMetadata, MorphedByManyRelationMetadata, NamingCase, NullCheckExpressionNode, PRISMA_ENUM_MEMBER_REGEX, PRISMA_ENUM_REGEX, PRISMA_MODEL_REGEX, PaginationCurrentPageResolver, PaginationMeta, PaginationOptions, PaginationURLDriver, PaginationURLDriverFactory, Paginator, PartitionedSelectSpec, PersistedColumnMappingsState, PersistedMetadataFeatures, PersistedPrimaryKeyGeneration, PersistedTableMetadata, PersistedTimestampColumn, PivotModel, PivotModelStatic, PrimaryKeyGeneration, PrimaryKeyGenerationPlanner, PrismaClientLike, PrismaDatabaseAdapter, PrismaDelegateLike, PrismaDelegateMap, PrismaDelegateNameMapping, PrismaFindManyArgsLike, PrismaLikeInclude, PrismaLikeOrderBy, PrismaLikeScalarFilter, PrismaLikeSelect, PrismaLikeSortOrder, PrismaLikeWhereInput, PrismaMigrationWorkflowOptions, PrismaSchemaSyncOptions, PrismaTransactionCallback, PrismaTransactionCapableClient, PrismaTransactionContext, PrismaTransactionOptions, QueryBuilder, QueryColumnComparisonCondition, QueryComparisonCondition, QueryComparisonOperator, QueryCondition, QueryConstraintException, QueryDayCondition, QueryExecutionException, QueryExecutionExceptionContext, QueryExistsCondition, QueryExpressionCondition, QueryFullTextCondition, QueryGroupByItem, QueryGroupCondition, QueryJoin, QueryJoinBoolean, QueryJoinColumnConstraint, QueryJoinConstraint, QueryJoinNestedConstraint, QueryJoinNullConstraint, QueryJoinRawConstraint, QueryJoinType, QueryJoinValueConstraint, QueryJsonCondition, QueryJsonConditionKind, QueryLogicalOperator, QueryNotCondition, QueryOrderBy, QueryRawCondition, QueryScalarComparisonOperator, QuerySchemaCreateData, QuerySchemaFindManyArgs, QuerySchemaForModel, QuerySchemaForModelInstance, QuerySchemaInclude, QuerySchemaOrderBy, QuerySchemaRow, QuerySchemaRows, QuerySchemaSelect, QuerySchemaUniqueWhere, QuerySchemaUpdateArgs, QuerySchemaUpdateData, QuerySchemaWhere, QuerySelectColumn, QueryTarget, QueryTimeCondition, RawExpressionNode, RawQuerySpec, RawSelectInput, RegisteredFactory, RegisteredModel, RegisteredModelClass, RegisteredModelInstance, RegisteredModelName, RelatedModelClass, RelatedModelForRelationship, RelatedModelFromResult, RelationAggregateConstraint, RelationAggregateInput, RelationAggregateSpec, RelationAggregateType, RelationColumnLookupSpec, RelationConstraint, RelationDefaultResolver, RelationDefaultValue, RelationFilterSpec, RelationLoadPlan, RelationLoadSpec, RelationMetadata, RelationMetadataProvider, RelationMetadataType, RelationResolutionException, RelationResult, RelationResultCache, RelationTableLookupSpec, RelationshipModelStatic, RuntimeClientLike, RuntimeConstructor, RuntimeModuleLoader, RuntimePathInput, RuntimePathKey, RuntimePathMap, SEEDER_BRAND, SchemaBuilder, SchemaColumn, SchemaColumnType, SchemaForeignKey, SchemaForeignKeyAction, SchemaIndex, SchemaOperation, SchemaPrimaryKey, SchemaTableAlterOperation, SchemaTableCreateOperation, SchemaTableDropOperation, SchemaUniqueConstraint, ScopeNotDefinedException, SeedCommand, Seeder, SeederCallArgument, SeederConstructor, SeederInput, SelectSpec, Serializable, SimplePaginationMeta, SoftDeleteConfig, SoftDeleteQueryMode, SortDirection, TableBuilder, TimestampColumnBehavior, TimestampNames, TimestampNaming, TransactionCallback, TransactionCapableClient, TransactionContext, TransactionOptions, URLDriver, UniqueConstraintResolutionException, UnsupportedAdapterFeatureException, UpdateManySpec, UpdateSpec, UpsertSpec, ValueExpressionNode, WhereCallback, applyAlterTableOperation, applyCreateTableOperation, applyDropTableOperation, applyMigrationRollbackToDatabase, applyMigrationRollbackToPrismaSchema, applyMigrationToDatabase, applyMigrationToPrismaSchema, applyOperationsToPersistedColumnMappingsState, applyOperationsToPrismaSchema, avg, awaitConfiguredModelsRegistration, bindAdapterToModels, buildEnumBlock, buildFieldLine, buildIndexLine, buildInverseRelationLine, buildMigrationIdentity, buildMigrationRunId, buildMigrationSource, buildModelBlock, buildPrimaryKeyLine, buildRelationLine, buildUniqueConstraintLine, caseWhen, coalesce, col, computeMigrationChecksum, configureArkormRuntime, count, createEmptyAppliedMigrationsState, createEmptyPersistedColumnMappingsState, createKyselyAdapter, createMigrationTimestamp, createPrismaAdapter, createPrismaCompatibilityAdapter, createPrismaDatabaseAdapter, createPrismaDelegateMap, defineConfig, defineFactory, deleteAppliedMigrationsStateFromStore, deletePersistedColumnMappingsState, deriveCollectionFieldName, deriveInverseRelationAlias, deriveRelationAlias, deriveRelationFieldName, deriveSingularFieldName, disposeArkormRuntime, emitRuntimeDebugEvent, ensureArkormConfigLoading, escapeRegex, expressionBuilder, findAppliedMigration, findEnumBlock, findModelBlock, fn, formatDefaultValue, formatEnumDefaultValue, formatRelationAction, fromExpressionNode, generateMigrationFile, getActiveTransactionAdapter, getActiveTransactionClient, getDefaultStubsPath, getLastBatchMigrations, getLastMigrationRun, getLatestAppliedMigrations, getMigrationPlan, getModel, getPersistedColumnMap, getPersistedEnumMap, getPersistedEnumTsType, getPersistedPrimaryKeyGeneration, getPersistedTableMetadata, getPersistedTimestampColumns, getRegisteredFactories, getRegisteredMigrations, getRegisteredModels, getRegisteredPaths, getRegisteredSeeders, getRuntimeAdapter, getRuntimeClient, getRuntimeCompatibilityAdapter, getRuntimeDebugHandler, getRuntimePaginationCurrentPageResolver, getRuntimePaginationURLDriverFactory, getRuntimePrismaClient, getUserConfig, inferDelegateName, isDelegateLike, isMigrationApplied, isQuerySchemaLike, isTransactionCapableClient, json, loadArkormConfig, loadFactoriesFrom, loadMigrationsFrom, loadModelsFrom, loadSeedersFrom, markMigrationApplied, markMigrationRun, max, min, pad, raw, readAppliedMigrationsState, readAppliedMigrationsStateFromStore, readPersistedColumnMappingsState, rebuildPersistedColumnMappingsState, registerFactories, registerMigrations, registerModels, registerPaths, registerSeeders, removeAppliedMigration, resetArkormRuntimeForTests, resetPersistedColumnMappingsCache, resetRuntimeRegistryForTests, resolveCast, resolveColumnMappingsFilePath, resolveEnumName, resolveGeneratedExpression, resolveMigrationClassName, resolveMigrationStateFilePath, resolvePersistedMetadataFeatures, resolvePrismaType, resolveRegisteredModel, resolveRuntimeCompatibilityQuerySchema, resolveRuntimeCompatibilityQuerySchemaOrThrow, runArkormTransaction, runMigrationWithPrisma, runPrismaCommand, stripPrismaSchemaModelsAndEnums, sum, supportsDatabaseCreation, supportsDatabaseMigrationExecution, supportsDatabaseMigrationState, supportsDatabaseReset, syncPersistedColumnMappingsFromState, toMigrationFileSlug, toModelName, val, validatePersistedMetadataFeaturesForMigrations, where, writeAppliedMigrationsState, writeAppliedMigrationsStateToStore, writePersistedColumnMappingsState };
|
|
1
|
+
import { $ as buildPrimaryKeyLine, $a as ModelStatic, $c as SchemaTableDropOperation, $i as DelegateFindManyArgs, $n as getModel, $o as fromExpressionNode, $r as InsertSpec, $s as FactoryRelationshipResolver, $t as createEmptyPersistedColumnMappingsState, A as isQuerySchemaLike, Aa as PrismaTransactionCapableClient, Ac as MorphedByManyRelationMetadata, Ai as RawQuerySpec, An as EnumBuilder, Ao as ModelRelationshipKey, Ar as createPrismaDatabaseAdapter, As as RelationDefaultResolver, At as computeMigrationChecksum, B as applyCreateTableOperation, Ba as QuerySchemaUniqueWhere, Bc as MigrationInstanceLike, Bi as UpsertSpec, Bn as MigrateCommand, Bo as Model, Br as AdapterQueryOperation, Bs as RelatedModelForRelationship, Bt as readAppliedMigrationsState, C as getRuntimeClient, Ca as PrismaLikeInclude, Cc as HasOneRelationMetadata, Ci as QueryNotCondition, Cn as MissingDelegateException, Co as ModelEventDispatcher, Cr as Seeder, Ct as supportsDatabaseCreation, D as getRuntimePrismaClient, Da as PrismaLikeSortOrder, Dc as MorphOneRelationMetadata, Di as QuerySelectColumn, Dn as MIGRATION_BRAND, Do as ModelEventName, Dr as PrismaDatabaseAdapter, Ds as RelationAggregateType, Dt as toModelName, E as getRuntimePaginationURLDriverFactory, Ea as PrismaLikeSelect, Ec as MorphManyRelationMetadata, Ei as QueryScalarComparisonOperator, En as DB, Eo as ModelEventListener, Er as SeederInput, Es as RelationAggregateInput, Et as toMigrationFileSlug, F as PrimaryKeyGenerationPlanner, Fa as QuerySchemaInclude, Fc as AppliedMigrationRun, Fi as SelectSpec, Fn as SeedCommand, Fo as QuerySchemaForModelInstance, Fr as AdapterDatabaseCreationResult, Fs as RelationTableLookupSpec, Ft as getLastMigrationRun, G as applyMigrationToPrismaSchema, Ga as RuntimeClientLike, Gc as SchemaColumnType, Gi as ArkormDebugEvent, Gn as InitCommand, Go as JsonExpression, Gr as DatabaseAdapter, Gs as Paginator, Gt as writeAppliedMigrationsState, H as applyMigrationRollbackToDatabase, Ha as QuerySchemaUpdateData, Hc as PrismaMigrationWorkflowOptions, Hi as AdapterQueryInspection, Hn as MakeModelCommand, Ho as CaseExpression, Hr as AggregateOperation, Hs as WhereCallback, Ht as removeAppliedMigration, I as PRISMA_ENUM_MEMBER_REGEX, Ia as QuerySchemaOrderBy, Ic as AppliedMigrationsState, Ii as SoftDeleteQueryMode, In as ModelsSyncCommand, Io as RegisteredModelClass, Ir as AdapterInspectionRequest, Is as EagerLoadQueryForRelationship, It as getLatestAppliedMigrations, J as buildFieldLine, Ja as SoftDeleteConfig, Jc as SchemaIndex, Ji as CastHandler, Jn as resolveCast, Jo as coalesce, Jr as DatabaseRows, Js as FactoryAttributes, Jt as PersistedMetadataFeatures, K as applyOperationsToPrismaSchema, Ka as Serializable, Kc as SchemaForeignKey, Ki as ArkormDebugHandler, Kn as DbCommand, Ko as avg, Kr as DatabasePrimitive, Ks as ArkormCollection, Kt as writeAppliedMigrationsStateToStore, L as PRISMA_ENUM_REGEX, La as QuerySchemaRow, Lc as GenerateMigrationOptions, Li as SortDirection, Ln as MigrationHistoryCommand, Lo as RegisteredModelInstance, Lr as AdapterModelFieldStructure, Ls as EagerLoadRelations, Lt as isMigrationApplied, M as loadArkormConfig, Ma as PrismaTransactionOptions, Mc as RelationMetadata, Mi as RelationFilterSpec, Mn as GeneratedColumnExpression, Mo as ModelUpdateData, Mr as createKyselyAdapter, Ms as RelationMetadataProvider, Mt as deleteAppliedMigrationsStateFromStore, N as resetArkormRuntimeForTests, Na as QuerySchemaCreateData, Nc as RelationMetadataType, Ni as RelationLoadPlan, Nn as resolveGeneratedExpression, No as ModelWhereInput, Nr as AdapterCapabilities, Ns as RelationResult, Nt as findAppliedMigration, O as getUserConfig, Oa as PrismaLikeWhereInput, Oc as MorphToManyRelationMetadata, Oi as QueryTarget, On as Migration, Oo as ModelLifecycleState, Or as PrismaDelegateNameMapping, Os as RelationColumnLookupSpec, Ot as buildMigrationIdentity, P as runArkormTransaction, Pa as QuerySchemaFindManyArgs, Pc as AppliedMigrationEntry, Pi as RelationLoadSpec, Pn as ForeignKeyBuilder, Po as QuerySchemaForModel, Pr as AdapterCapability, Ps as RelationResultCache, Pt as getLastBatchMigrations, Q as buildModelBlock, Qa as TransactionOptions, Qc as SchemaTableCreateOperation, Qi as DelegateCreateData, Qn as Arkormx, Qo as fn, Qr as InsertManySpec, Qs as FactoryModelConstructor, Qt as applyOperationsToPersistedColumnMappingsState, R as PRISMA_MODEL_REGEX, Ra as QuerySchemaRows, Rc as GeneratedMigrationFile, Ri as UpdateManySpec, Rn as MigrateRollbackCommand, Ro as RegisteredModelName, Rr as AdapterModelIntrospectionOptions, Rs as JoinOn, Rt as markMigrationApplied, S as getRuntimeAdapter, Sa as PrismaFindManyArgsLike, Sc as HasManyThroughRelationMetadata, Si as QueryLogicalOperator, Sn as ModelNotFoundException, So as ModelDeclaredAttributeKey, Sr as SEEDER_BRAND, St as stripPrismaSchemaModelsAndEnums, T as getRuntimePaginationCurrentPageResolver, Ta as PrismaLikeScalarFilter, Tc as ModelMetadata, Ti as QueryRawCondition, Tn as ArkormException, To as ModelEventHandlerConstructor, Tr as SeederConstructor, Ts as RelationAggregateConstraint, Tt as supportsDatabaseReset, U as applyMigrationRollbackToPrismaSchema, Ua as QuerySchemaWhere, Uc as PrismaSchemaSyncOptions, Ui as ArkormBootContext, Un as MakeMigrationCommand, Uo as Expression, Ur as AggregateSelection, Us as JoinClause, Ut as resolveMigrationStateFilePath, V as applyDropTableOperation, Va as QuerySchemaUpdateArgs, Vc as PrimaryKeyGeneration, Vi as AdapterBindableModel, Vn as MakeSeederCommand, Vo as AggregateExpression, Vr as AdapterTransactionContext, Vs as RelatedModelFromResult, Vt as readAppliedMigrationsStateFromStore, W as applyMigrationToDatabase, Wa as RawSelectInput, Wc as SchemaColumn, Wi as ArkormConfig, Wn as MakeFactoryCommand, Wo as ExpressionBuilder, Wr as AggregateSpec, Ws as LengthAwarePaginator, Wt as supportsDatabaseMigrationState, X as buildInverseRelationLine, Xa as TransactionCapableClient, Xc as SchemaPrimaryKey, Xi as CastType, Xn as AttributeOptions, Xo as count, Xr as DeleteManySpec, Xs as FactoryDefinition, Xt as PersistedTableMetadata, Y as buildIndexLine, Ya as TransactionCallback, Yc as SchemaOperation, Yi as CastMap, Yn as Attribute, Yo as col, Yr as DatabaseValue, Ys as FactoryCallback, Yt as PersistedPrimaryKeyGeneration, Z as buildMigrationSource, Za as TransactionContext, Zc as SchemaTableAlterOperation, Zi as ClientResolver, Zn as Arkorm, Zo as expressionBuilder, Zr as DeleteSpec, Zs as FactoryDefinitionAttributes, Zt as PersistedTimestampColumn, _ as emitRuntimeDebugEvent, _a as PaginationOptions, _c as DatabaseTablePersistedMetadataOptions, _i as QueryJoinRawConstraint, _n as ScopeNotDefinedException, _o as GlobalScope, _r as registerModels, _t as resolveEnumName, a as getRuntimeCompatibilityAdapter, aa as DelegateUniqueWhere, ac as CaseExpressionNode, ai as QueryDayCondition, an as getPersistedTableMetadata, ao as GroupByAggregateSpec, ar as RuntimePathMap, as as val, at as deriveRelationAlias, b as getActiveTransactionClient, ba as PrismaClientLike, bc as ColumnMap, bi as QueryJsonCondition, bn as QueryExecutionExceptionContext, bo as ModelAttributesOf, br as resetRuntimeRegistryForTests, bt as runMigrationWithPrisma, c as PrismaDelegateMap, ca as DelegateWhere, cc as ExpressionJsonCast, ci as QueryFullTextCondition, cn as rebuildPersistedColumnMappingsState, co as ArkormModelRegistry, cr as getRegisteredModels, cs as ModelFactory, ct as escapeRegex, d as inferDelegateName, da as GetUserConfig, dc as InExpressionNode, di as QueryJoin, dn as resolvePersistedMetadataFeatures, do as AttributeQuerySchema, dr as loadFactoriesFrom, dt as formatDefaultValue, ea as DelegateInclude, ec as FactoryState, ei as PartitionedSelectSpec, el as SchemaUniqueConstraint, en as deletePersistedColumnMappingsState, eo as RelationshipModelStatic, er as RegisteredFactory, es as json, et as buildRelationLine, f as awaitConfiguredModelsRegistration, fa as ModelQuerySchemaLike, fc as JsonExpressionNode, fi as QueryJoinBoolean, fn as syncPersistedColumnMappingsFromState, fo as AttributeSchemaDelegate, fr as loadMigrationsFrom, ft as formatEnumDefaultValue, g as disposeArkormRuntime, ga as PaginationMeta, gc as DatabaseTableOptions, gi as QueryJoinNullConstraint, gn as UniqueConstraintResolutionException, go as DelegateForModelSchema, gr as registerMigrations, gt as pad, h as defineConfig, ha as PaginationCurrentPageResolver, hc as ValueExpressionNode, hi as QueryJoinNestedConstraint, hn as UnsupportedAdapterFeatureException, ho as AttributeWhereInput, hr as registerFactories, ht as getMigrationPlan, i as RuntimeModuleLoader, ia as DelegateSelect, ic as CaseExpressionBranch, ii as QueryCondition, in as getPersistedPrimaryKeyGeneration, io as GroupByAggregateRow, ir as RuntimePathKey, is as sum, it as deriveInverseRelationAlias, j as isTransactionCapableClient, ja as PrismaTransactionContext, jc as PivotModelStatic, ji as RelationAggregateSpec, jn as TableBuilder, jo as ModelRelationshipResult, jr as KyselyDatabaseAdapter, js as RelationDefaultValue, jt as createEmptyAppliedMigrationsState, k as isDelegateLike, ka as PrismaTransactionCallback, kc as MorphToRelationMetadata, ki as QueryTimeCondition, kn as SchemaBuilder, ko as ModelOrderByInput, kr as createPrismaCompatibilityAdapter, ks as RelationConstraint, kt as buildMigrationRunId, l as createPrismaAdapter, la as EagerLoadConstraint, lc as ExpressionNode, li as QueryGroupByItem, ln as resetPersistedColumnMappingsCache, lo as AttributeCreateInput, lr as getRegisteredPaths, ls as defineFactory, lt as findEnumBlock, m as configureArkormRuntime, ma as NamingCase, mc as RawExpressionNode, mi as QueryJoinConstraint, mn as writePersistedColumnMappingsState, mo as AttributeUpdateInput, mr as loadSeedersFrom, mt as generateMigrationFile, n as PivotModel, na as DelegateRow, nc as AggregateExpressionNode, ni as QueryComparisonCondition, nl as TimestampNames, nn as getPersistedEnumMap, no as EachCallback, nr as RuntimeConstructor, ns as min, nt as createMigrationTimestamp, o as resolveRuntimeCompatibilityQuerySchema, oa as DelegateUpdateArgs, oc as ColumnExpressionNode, oi as QueryExistsCondition, on as getPersistedTimestampColumns, oo as QueryBuilder, or as getRegisteredFactories, os as where, ot as deriveRelationFieldName, p as bindAdapterToModels, pa as ModelTableCase, pc as NullCheckExpressionNode, pi as QueryJoinColumnConstraint, pn as validatePersistedMetadataFeaturesForMigrations, po as AttributeSelect, pr as loadModelsFrom, pt as formatRelationAction, q as buildEnumBlock, qa as SimplePaginationMeta, qc as SchemaForeignKeyAction, qi as CastDefinition, qn as CliApp, qo as caseWhen, qr as DatabaseRow, qs as FactoryAttributeResolver, qt as PersistedColumnMappingsState, r as LoadedRuntimeModule, ra as DelegateRows, rc as BinaryExpressionNode, ri as QueryComparisonOperator, rl as TimestampNaming, rn as getPersistedEnumTsType, ro as ExpressionSelectMap, rr as RuntimePathInput, rs as raw, rt as deriveCollectionFieldName, s as resolveRuntimeCompatibilityQuerySchemaOrThrow, sa as DelegateUpdateData, sc as ExpressionBinaryOperator, si as QueryExpressionCondition, sn as readPersistedColumnMappingsState, so as ArkormModelNameRegistry, sr as getRegisteredMigrations, ss as InlineFactory, st as deriveSingularFieldName, t as URLDriver, ta as DelegateOrderBy, tc as MaybePromise, ti as QueryColumnComparisonCondition, tl as TimestampColumnBehavior, tn as getPersistedColumnMap, to as ChunkCallback, tr as RegisteredModel, ts as max, tt as buildUniqueConstraintLine, u as createPrismaDelegateMap, ua as EagerLoadMap, uc as FunctionExpressionNode, ui as QueryGroupCondition, un as resolveColumnMappingsFilePath, uo as AttributeOrderBy, ur as getRegisteredSeeders, ut as findModelBlock, v as ensureArkormConfigLoading, va as PaginationURLDriver, vc as BelongsToManyRelationMetadata, vi as QueryJoinType, vn as RelationResolutionException, vo as ModelAttributeValue, vr as registerPaths, vt as resolveMigrationClassName, w as getRuntimeDebugHandler, wa as PrismaLikeOrderBy, wc as HasOneThroughRelationMetadata, wi as QueryOrderBy, wn as ArkormErrorContext, wo as ModelEventHandler, wr as SeederCallArgument, wt as supportsDatabaseMigrationExecution, x as getDefaultStubsPath, xa as PrismaDelegateLike, xc as HasManyRelationMetadata, xi as QueryJsonConditionKind, xn as QueryConstraintException, xo as ModelCreateData, xr as resolveRegisteredModel, xt as runPrismaCommand, y as getActiveTransactionAdapter, ya as PaginationURLDriverFactory, yc as BelongsToRelationMetadata, yi as QueryJoinValueConstraint, yn as QueryExecutionException, yo as ModelAttributes, yr as registerSeeders, yt as resolvePrismaType, z as applyAlterTableOperation, za as QuerySchemaSelect, zc as MigrationClass, zi as UpdateSpec, zn as MigrateFreshCommand, zo as RelatedModelClass, zr as AdapterModelStructure, zs as JoinSource, zt as markMigrationRun } from "./index-D5P29WUY.cjs";
|
|
2
|
+
export { AdapterBindableModel, AdapterCapabilities, AdapterCapability, AdapterDatabaseCreationResult, AdapterInspectionRequest, AdapterModelFieldStructure, AdapterModelIntrospectionOptions, AdapterModelStructure, AdapterQueryInspection, AdapterQueryOperation, AdapterTransactionContext, AggregateExpression, AggregateExpressionNode, AggregateOperation, AggregateSelection, AggregateSpec, AppliedMigrationEntry, AppliedMigrationRun, AppliedMigrationsState, Arkorm, ArkormBootContext, ArkormCollection, ArkormConfig, ArkormDebugEvent, ArkormDebugHandler, ArkormErrorContext, ArkormException, ArkormModelNameRegistry, ArkormModelRegistry, Arkormx, Attribute, AttributeCreateInput, AttributeOptions, AttributeOrderBy, AttributeQuerySchema, AttributeSchemaDelegate, AttributeSelect, AttributeUpdateInput, AttributeWhereInput, BelongsToManyRelationMetadata, BelongsToRelationMetadata, BinaryExpressionNode, CaseExpression, CaseExpressionBranch, CaseExpressionNode, CastDefinition, CastHandler, CastMap, CastType, ChunkCallback, CliApp, ClientResolver, ColumnExpressionNode, ColumnMap, DB, DatabaseAdapter, DatabasePrimitive, DatabaseRow, DatabaseRows, DatabaseTableOptions, DatabaseTablePersistedMetadataOptions, DatabaseValue, DbCommand, DelegateCreateData, DelegateFindManyArgs, DelegateForModelSchema, DelegateInclude, DelegateOrderBy, DelegateRow, DelegateRows, DelegateSelect, DelegateUniqueWhere, DelegateUpdateArgs, DelegateUpdateData, DelegateWhere, DeleteManySpec, DeleteSpec, EachCallback, EagerLoadConstraint, EagerLoadMap, EagerLoadQueryForRelationship, EagerLoadRelations, EnumBuilder, Expression, ExpressionBinaryOperator, ExpressionBuilder, ExpressionJsonCast, ExpressionNode, ExpressionSelectMap, FactoryAttributeResolver, FactoryAttributes, FactoryCallback, FactoryDefinition, FactoryDefinitionAttributes, FactoryModelConstructor, FactoryRelationshipResolver, FactoryState, ForeignKeyBuilder, FunctionExpressionNode, GenerateMigrationOptions, GeneratedColumnExpression, GeneratedMigrationFile, GetUserConfig, GlobalScope, GroupByAggregateRow, GroupByAggregateSpec, HasManyRelationMetadata, HasManyThroughRelationMetadata, HasOneRelationMetadata, HasOneThroughRelationMetadata, InExpressionNode, InitCommand, InlineFactory, InsertManySpec, InsertSpec, JoinClause, JoinOn, JoinSource, JsonExpression, JsonExpressionNode, KyselyDatabaseAdapter, LengthAwarePaginator, LoadedRuntimeModule, MIGRATION_BRAND, MakeFactoryCommand, MakeMigrationCommand, MakeModelCommand, MakeSeederCommand, MaybePromise, MigrateCommand, MigrateFreshCommand, MigrateRollbackCommand, Migration, MigrationClass, MigrationHistoryCommand, MigrationInstanceLike, MissingDelegateException, Model, ModelAttributeValue, ModelAttributes, ModelAttributesOf, ModelCreateData, ModelDeclaredAttributeKey, ModelEventDispatcher, ModelEventHandler, ModelEventHandlerConstructor, ModelEventListener, ModelEventName, ModelFactory, ModelLifecycleState, ModelMetadata, ModelNotFoundException, ModelOrderByInput, ModelQuerySchemaLike, ModelRelationshipKey, ModelRelationshipResult, ModelStatic, ModelTableCase, ModelUpdateData, ModelWhereInput, ModelsSyncCommand, MorphManyRelationMetadata, MorphOneRelationMetadata, MorphToManyRelationMetadata, MorphToRelationMetadata, MorphedByManyRelationMetadata, NamingCase, NullCheckExpressionNode, PRISMA_ENUM_MEMBER_REGEX, PRISMA_ENUM_REGEX, PRISMA_MODEL_REGEX, PaginationCurrentPageResolver, PaginationMeta, PaginationOptions, PaginationURLDriver, PaginationURLDriverFactory, Paginator, PartitionedSelectSpec, PersistedColumnMappingsState, PersistedMetadataFeatures, PersistedPrimaryKeyGeneration, PersistedTableMetadata, PersistedTimestampColumn, PivotModel, PivotModelStatic, PrimaryKeyGeneration, PrimaryKeyGenerationPlanner, PrismaClientLike, PrismaDatabaseAdapter, PrismaDelegateLike, PrismaDelegateMap, PrismaDelegateNameMapping, PrismaFindManyArgsLike, PrismaLikeInclude, PrismaLikeOrderBy, PrismaLikeScalarFilter, PrismaLikeSelect, PrismaLikeSortOrder, PrismaLikeWhereInput, PrismaMigrationWorkflowOptions, PrismaSchemaSyncOptions, PrismaTransactionCallback, PrismaTransactionCapableClient, PrismaTransactionContext, PrismaTransactionOptions, QueryBuilder, QueryColumnComparisonCondition, QueryComparisonCondition, QueryComparisonOperator, QueryCondition, QueryConstraintException, QueryDayCondition, QueryExecutionException, QueryExecutionExceptionContext, QueryExistsCondition, QueryExpressionCondition, QueryFullTextCondition, QueryGroupByItem, QueryGroupCondition, QueryJoin, QueryJoinBoolean, QueryJoinColumnConstraint, QueryJoinConstraint, QueryJoinNestedConstraint, QueryJoinNullConstraint, QueryJoinRawConstraint, QueryJoinType, QueryJoinValueConstraint, QueryJsonCondition, QueryJsonConditionKind, QueryLogicalOperator, QueryNotCondition, QueryOrderBy, QueryRawCondition, QueryScalarComparisonOperator, QuerySchemaCreateData, QuerySchemaFindManyArgs, QuerySchemaForModel, QuerySchemaForModelInstance, QuerySchemaInclude, QuerySchemaOrderBy, QuerySchemaRow, QuerySchemaRows, QuerySchemaSelect, QuerySchemaUniqueWhere, QuerySchemaUpdateArgs, QuerySchemaUpdateData, QuerySchemaWhere, QuerySelectColumn, QueryTarget, QueryTimeCondition, RawExpressionNode, RawQuerySpec, RawSelectInput, RegisteredFactory, RegisteredModel, RegisteredModelClass, RegisteredModelInstance, RegisteredModelName, RelatedModelClass, RelatedModelForRelationship, RelatedModelFromResult, RelationAggregateConstraint, RelationAggregateInput, RelationAggregateSpec, RelationAggregateType, RelationColumnLookupSpec, RelationConstraint, RelationDefaultResolver, RelationDefaultValue, RelationFilterSpec, RelationLoadPlan, RelationLoadSpec, RelationMetadata, RelationMetadataProvider, RelationMetadataType, RelationResolutionException, RelationResult, RelationResultCache, RelationTableLookupSpec, RelationshipModelStatic, RuntimeClientLike, RuntimeConstructor, RuntimeModuleLoader, RuntimePathInput, RuntimePathKey, RuntimePathMap, SEEDER_BRAND, SchemaBuilder, SchemaColumn, SchemaColumnType, SchemaForeignKey, SchemaForeignKeyAction, SchemaIndex, SchemaOperation, SchemaPrimaryKey, SchemaTableAlterOperation, SchemaTableCreateOperation, SchemaTableDropOperation, SchemaUniqueConstraint, ScopeNotDefinedException, SeedCommand, Seeder, SeederCallArgument, SeederConstructor, SeederInput, SelectSpec, Serializable, SimplePaginationMeta, SoftDeleteConfig, SoftDeleteQueryMode, SortDirection, TableBuilder, TimestampColumnBehavior, TimestampNames, TimestampNaming, TransactionCallback, TransactionCapableClient, TransactionContext, TransactionOptions, URLDriver, UniqueConstraintResolutionException, UnsupportedAdapterFeatureException, UpdateManySpec, UpdateSpec, UpsertSpec, ValueExpressionNode, WhereCallback, applyAlterTableOperation, applyCreateTableOperation, applyDropTableOperation, applyMigrationRollbackToDatabase, applyMigrationRollbackToPrismaSchema, applyMigrationToDatabase, applyMigrationToPrismaSchema, applyOperationsToPersistedColumnMappingsState, applyOperationsToPrismaSchema, avg, awaitConfiguredModelsRegistration, bindAdapterToModels, buildEnumBlock, buildFieldLine, buildIndexLine, buildInverseRelationLine, buildMigrationIdentity, buildMigrationRunId, buildMigrationSource, buildModelBlock, buildPrimaryKeyLine, buildRelationLine, buildUniqueConstraintLine, caseWhen, coalesce, col, computeMigrationChecksum, configureArkormRuntime, count, createEmptyAppliedMigrationsState, createEmptyPersistedColumnMappingsState, createKyselyAdapter, createMigrationTimestamp, createPrismaAdapter, createPrismaCompatibilityAdapter, createPrismaDatabaseAdapter, createPrismaDelegateMap, defineConfig, defineFactory, deleteAppliedMigrationsStateFromStore, deletePersistedColumnMappingsState, deriveCollectionFieldName, deriveInverseRelationAlias, deriveRelationAlias, deriveRelationFieldName, deriveSingularFieldName, disposeArkormRuntime, emitRuntimeDebugEvent, ensureArkormConfigLoading, escapeRegex, expressionBuilder, findAppliedMigration, findEnumBlock, findModelBlock, fn, formatDefaultValue, formatEnumDefaultValue, formatRelationAction, fromExpressionNode, generateMigrationFile, getActiveTransactionAdapter, getActiveTransactionClient, getDefaultStubsPath, getLastBatchMigrations, getLastMigrationRun, getLatestAppliedMigrations, getMigrationPlan, getModel, getPersistedColumnMap, getPersistedEnumMap, getPersistedEnumTsType, getPersistedPrimaryKeyGeneration, getPersistedTableMetadata, getPersistedTimestampColumns, getRegisteredFactories, getRegisteredMigrations, getRegisteredModels, getRegisteredPaths, getRegisteredSeeders, getRuntimeAdapter, getRuntimeClient, getRuntimeCompatibilityAdapter, getRuntimeDebugHandler, getRuntimePaginationCurrentPageResolver, getRuntimePaginationURLDriverFactory, getRuntimePrismaClient, getUserConfig, inferDelegateName, isDelegateLike, isMigrationApplied, isQuerySchemaLike, isTransactionCapableClient, json, loadArkormConfig, loadFactoriesFrom, loadMigrationsFrom, loadModelsFrom, loadSeedersFrom, markMigrationApplied, markMigrationRun, max, min, pad, raw, readAppliedMigrationsState, readAppliedMigrationsStateFromStore, readPersistedColumnMappingsState, rebuildPersistedColumnMappingsState, registerFactories, registerMigrations, registerModels, registerPaths, registerSeeders, removeAppliedMigration, resetArkormRuntimeForTests, resetPersistedColumnMappingsCache, resetRuntimeRegistryForTests, resolveCast, resolveColumnMappingsFilePath, resolveEnumName, resolveGeneratedExpression, resolveMigrationClassName, resolveMigrationStateFilePath, resolvePersistedMetadataFeatures, resolvePrismaType, resolveRegisteredModel, resolveRuntimeCompatibilityQuerySchema, resolveRuntimeCompatibilityQuerySchemaOrThrow, runArkormTransaction, runMigrationWithPrisma, runPrismaCommand, stripPrismaSchemaModelsAndEnums, sum, supportsDatabaseCreation, supportsDatabaseMigrationExecution, supportsDatabaseMigrationState, supportsDatabaseReset, syncPersistedColumnMappingsFromState, toMigrationFileSlug, toModelName, val, validatePersistedMetadataFeaturesForMigrations, where, writeAppliedMigrationsState, writeAppliedMigrationsStateToStore, writePersistedColumnMappingsState };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as buildPrimaryKeyLine, $a as ModelStatic, $c as SchemaUniqueConstraint, $i as DelegateFindManyArgs, $n as getModel, $o as json, $r as InsertSpec, $s as FactoryState, $t as createEmptyPersistedColumnMappingsState, A as isQuerySchemaLike, Aa as PrismaTransactionCapableClient, Ac as PivotModelStatic, Ai as RawQuerySpec, An as EnumBuilder, Ao as ModelRelationshipResult, Ar as createPrismaDatabaseAdapter, As as RelationDefaultValue, At as computeMigrationChecksum, B as applyCreateTableOperation, Ba as QuerySchemaUniqueWhere, Bc as PrimaryKeyGeneration, Bi as UpsertSpec, Bn as MigrateCommand, Bo as AggregateExpression, Br as AdapterQueryOperation, Bs as RelatedModelFromResult, Bt as readAppliedMigrationsState, C as getRuntimeClient, Ca as PrismaLikeInclude, Cc as HasOneThroughRelationMetadata, Ci as QueryNotCondition, Cn as MissingDelegateException, Co as ModelEventHandler, Cr as Seeder, Ct as supportsDatabaseCreation, D as getRuntimePrismaClient, Da as PrismaLikeSortOrder, Dc as MorphToManyRelationMetadata, Di as QuerySelectColumn, Dn as MIGRATION_BRAND, Do as ModelLifecycleState, Dr as PrismaDatabaseAdapter, Ds as RelationColumnLookupSpec, Dt as toModelName, E as getRuntimePaginationURLDriverFactory, Ea as PrismaLikeSelect, Ec as MorphOneRelationMetadata, Ei as QueryScalarComparisonOperator, En as DB, Eo as ModelEventName, Er as SeederInput, Es as RelationAggregateType, Et as toMigrationFileSlug, F as PrimaryKeyGenerationPlanner, Fa as QuerySchemaInclude, Fc as AppliedMigrationsState, Fi as SelectSpec, Fn as SeedCommand, Fo as RegisteredModelClass, Fr as AdapterDatabaseCreationResult, Fs as EagerLoadQueryForRelationship, Ft as getLastMigrationRun, G as applyMigrationToPrismaSchema, Ga as RuntimeClientLike, Gc as SchemaForeignKey, Gi as ArkormDebugEvent, Gn as InitCommand, Go as avg, Gr as DatabaseAdapter, Gs as ArkormCollection, Gt as writeAppliedMigrationsState, H as applyMigrationRollbackToDatabase, Ha as QuerySchemaUpdateData, Hc as PrismaSchemaSyncOptions, Hi as AdapterQueryInspection, Hn as MakeModelCommand, Ho as Expression, Hr as AggregateOperation, Hs as JoinClause, Ht as removeAppliedMigration, I as PRISMA_ENUM_MEMBER_REGEX, Ia as QuerySchemaOrderBy, Ic as GenerateMigrationOptions, Ii as SoftDeleteQueryMode, In as ModelsSyncCommand, Io as RegisteredModelInstance, Ir as AdapterInspectionRequest, Is as EagerLoadRelations, It as getLatestAppliedMigrations, J as buildFieldLine, Ja as SoftDeleteConfig, Jc as SchemaOperation, Ji as CastHandler, Jn as resolveCast, Jo as col, Jr as DatabaseRows, Js as FactoryCallback, Jt as PersistedMetadataFeatures, K as applyOperationsToPrismaSchema, Ka as Serializable, Kc as SchemaForeignKeyAction, Ki as ArkormDebugHandler, Kn as DbCommand, Ko as caseWhen, Kr as DatabasePrimitive, Ks as FactoryAttributeResolver, Kt as writeAppliedMigrationsStateToStore, L as PRISMA_ENUM_REGEX, La as QuerySchemaRow, Lc as GeneratedMigrationFile, Li as SortDirection, Ln as MigrationHistoryCommand, Lo as RegisteredModelName, Lr as AdapterModelFieldStructure, Ls as JoinOn, Lt as isMigrationApplied, M as loadArkormConfig, Ma as PrismaTransactionOptions, Mc as RelationMetadataType, Mi as RelationFilterSpec, Mn as GeneratedColumnExpression, Mo as ModelWhereInput, Mr as createKyselyAdapter, Ms as RelationResult, Mt as deleteAppliedMigrationsStateFromStore, N as resetArkormRuntimeForTests, Na as QuerySchemaCreateData, Nc as AppliedMigrationEntry, Ni as RelationLoadPlan, Nn as resolveGeneratedExpression, No as QuerySchemaForModel, Nr as AdapterCapabilities, Ns as RelationResultCache, Nt as findAppliedMigration, O as getUserConfig, Oa as PrismaLikeWhereInput, Oc as MorphToRelationMetadata, Oi as QueryTarget, On as Migration, Oo as ModelOrderByInput, Or as PrismaDelegateNameMapping, Os as RelationConstraint, Ot as buildMigrationIdentity, P as runArkormTransaction, Pa as QuerySchemaFindManyArgs, Pc as AppliedMigrationRun, Pi as RelationLoadSpec, Pn as ForeignKeyBuilder, Po as QuerySchemaForModelInstance, Pr as AdapterCapability, Ps as RelationTableLookupSpec, Pt as getLastBatchMigrations, Q as buildModelBlock, Qa as TransactionOptions, Qc as SchemaTableDropOperation, Qi as DelegateCreateData, Qn as Arkormx, Qo as fromExpressionNode, Qr as InsertManySpec, Qs as FactoryRelationshipResolver, Qt as applyOperationsToPersistedColumnMappingsState, R as PRISMA_MODEL_REGEX, Ra as QuerySchemaRows, Rc as MigrationClass, Ri as UpdateManySpec, Rn as MigrateRollbackCommand, Ro as RelatedModelClass, Rr as AdapterModelIntrospectionOptions, Rs as JoinSource, Rt as markMigrationApplied, S as getRuntimeAdapter, Sa as PrismaFindManyArgsLike, Sc as HasOneRelationMetadata, Si as QueryLogicalOperator, Sn as ModelNotFoundException, So as ModelEventDispatcher, Sr as SEEDER_BRAND, St as stripPrismaSchemaModelsAndEnums, T as getRuntimePaginationCurrentPageResolver, Ta as PrismaLikeScalarFilter, Tc as MorphManyRelationMetadata, Ti as QueryRawCondition, Tn as ArkormException, To as ModelEventListener, Tr as SeederConstructor, Ts as RelationAggregateInput, Tt as supportsDatabaseReset, U as applyMigrationRollbackToPrismaSchema, Ua as QuerySchemaWhere, Uc as SchemaColumn, Ui as ArkormBootContext, Un as MakeMigrationCommand, Uo as ExpressionBuilder, Ur as AggregateSelection, Us as LengthAwarePaginator, Ut as resolveMigrationStateFilePath, V as applyDropTableOperation, Va as QuerySchemaUpdateArgs, Vc as PrismaMigrationWorkflowOptions, Vi as AdapterBindableModel, Vn as MakeSeederCommand, Vo as CaseExpression, Vr as AdapterTransactionContext, Vs as WhereCallback, Vt as readAppliedMigrationsStateFromStore, W as applyMigrationToDatabase, Wa as RawSelectInput, Wc as SchemaColumnType, Wi as ArkormConfig, Wn as MakeFactoryCommand, Wo as JsonExpression, Wr as AggregateSpec, Ws as Paginator, Wt as supportsDatabaseMigrationState, X as buildInverseRelationLine, Xa as TransactionCapableClient, Xc as SchemaTableAlterOperation, Xi as CastType, Xn as AttributeOptions, Xo as expressionBuilder, Xr as DeleteManySpec, Xs as FactoryDefinitionAttributes, Xt as PersistedTableMetadata, Y as buildIndexLine, Ya as TransactionCallback, Yc as SchemaPrimaryKey, Yi as CastMap, Yn as Attribute, Yo as count, Yr as DatabaseValue, Ys as FactoryDefinition, Yt as PersistedPrimaryKeyGeneration, Z as buildMigrationSource, Za as TransactionContext, Zc as SchemaTableCreateOperation, Zi as ClientResolver, Zn as Arkorm, Zo as fn, Zr as DeleteSpec, Zs as FactoryModelConstructor, Zt as PersistedTimestampColumn, _ as emitRuntimeDebugEvent, _a as PaginationOptions, _c as BelongsToManyRelationMetadata, _i as QueryJoinRawConstraint, _n as ScopeNotDefinedException, _o as ModelAttributeValue, _r as registerModels, _t as resolveEnumName, a as getRuntimeCompatibilityAdapter, aa as DelegateUniqueWhere, ac as ColumnExpressionNode, ai as QueryDayCondition, an as getPersistedTableMetadata, ao as GroupByAggregateSpec, ar as RuntimePathMap, as as where, at as deriveRelationAlias, b as getActiveTransactionClient, ba as PrismaClientLike, bc as HasManyRelationMetadata, bi as QueryJsonCondition, bn as QueryExecutionExceptionContext, bo as ModelCreateData, br as resetRuntimeRegistryForTests, bt as runMigrationWithPrisma, c as PrismaDelegateMap, ca as DelegateWhere, cc as ExpressionNode, ci as QueryFullTextCondition, cn as rebuildPersistedColumnMappingsState, co as AttributeCreateInput, cr as getRegisteredModels, cs as defineFactory, ct as escapeRegex, d as inferDelegateName, da as GetUserConfig, dc as JsonExpressionNode, di as QueryJoin, dn as resolvePersistedMetadataFeatures, do as AttributeSchemaDelegate, dr as loadFactoriesFrom, dt as formatDefaultValue, ea as DelegateInclude, ec as MaybePromise, ei as PartitionedSelectSpec, el as TimestampColumnBehavior, en as deletePersistedColumnMappingsState, eo as RelationshipModelStatic, er as RegisteredFactory, es as max, et as buildRelationLine, f as awaitConfiguredModelsRegistration, fa as ModelQuerySchemaLike, fc as NullCheckExpressionNode, fi as QueryJoinBoolean, fn as syncPersistedColumnMappingsFromState, fo as AttributeSelect, fr as loadMigrationsFrom, ft as formatEnumDefaultValue, g as disposeArkormRuntime, ga as PaginationMeta, gc as DatabaseTablePersistedMetadataOptions, gi as QueryJoinNullConstraint, gn as UniqueConstraintResolutionException, go as GlobalScope, gr as registerMigrations, gt as pad, h as defineConfig, ha as PaginationCurrentPageResolver, hc as DatabaseTableOptions, hi as QueryJoinNestedConstraint, hn as UnsupportedAdapterFeatureException, ho as DelegateForModelSchema, hr as registerFactories, ht as getMigrationPlan, i as RuntimeModuleLoader, ia as DelegateSelect, ic as CaseExpressionNode, ii as QueryCondition, in as getPersistedPrimaryKeyGeneration, io as GroupByAggregateRow, ir as RuntimePathKey, is as val, it as deriveInverseRelationAlias, j as isTransactionCapableClient, ja as PrismaTransactionContext, jc as RelationMetadata, ji as RelationAggregateSpec, jn as TableBuilder, jo as ModelUpdateData, jr as KyselyDatabaseAdapter, js as RelationMetadataProvider, jt as createEmptyAppliedMigrationsState, k as isDelegateLike, ka as PrismaTransactionCallback, kc as MorphedByManyRelationMetadata, ki as QueryTimeCondition, kn as SchemaBuilder, ko as ModelRelationshipKey, kr as createPrismaCompatibilityAdapter, ks as RelationDefaultResolver, kt as buildMigrationRunId, l as createPrismaAdapter, la as EagerLoadConstraint, lc as FunctionExpressionNode, li as QueryGroupByItem, ln as resetPersistedColumnMappingsCache, lo as AttributeOrderBy, lr as getRegisteredPaths, lt as findEnumBlock, m as configureArkormRuntime, ma as NamingCase, mc as ValueExpressionNode, mi as QueryJoinConstraint, mn as writePersistedColumnMappingsState, mo as AttributeWhereInput, mr as loadSeedersFrom, mt as generateMigrationFile, n as PivotModel, na as DelegateRow, nc as BinaryExpressionNode, ni as QueryComparisonCondition, nl as TimestampNaming, nn as getPersistedEnumMap, no as EachCallback, nr as RuntimeConstructor, ns as raw, nt as createMigrationTimestamp, o as resolveRuntimeCompatibilityQuerySchema, oa as DelegateUpdateArgs, oc as ExpressionBinaryOperator, oi as QueryExistsCondition, on as getPersistedTimestampColumns, oo as QueryBuilder, or as getRegisteredFactories, os as InlineFactory, ot as deriveRelationFieldName, p as bindAdapterToModels, pa as ModelTableCase, pc as RawExpressionNode, pi as QueryJoinColumnConstraint, pn as validatePersistedMetadataFeaturesForMigrations, po as AttributeUpdateInput, pr as loadModelsFrom, pt as formatRelationAction, q as buildEnumBlock, qa as SimplePaginationMeta, qc as SchemaIndex, qi as CastDefinition, qn as CliApp, qo as coalesce, qr as DatabaseRow, qs as FactoryAttributes, qt as PersistedColumnMappingsState, r as LoadedRuntimeModule, ra as DelegateRows, rc as CaseExpressionBranch, ri as QueryComparisonOperator, rn as getPersistedEnumTsType, ro as ExpressionSelectMap, rr as RuntimePathInput, rs as sum, rt as deriveCollectionFieldName, s as resolveRuntimeCompatibilityQuerySchemaOrThrow, sa as DelegateUpdateData, sc as ExpressionJsonCast, si as QueryExpressionCondition, sn as readPersistedColumnMappingsState, so as ArkormModelRegistry, sr as getRegisteredMigrations, ss as ModelFactory, st as deriveSingularFieldName, t as URLDriver, ta as DelegateOrderBy, tc as AggregateExpressionNode, ti as QueryColumnComparisonCondition, tl as TimestampNames, tn as getPersistedColumnMap, to as ChunkCallback, tr as RegisteredModel, ts as min, tt as buildUniqueConstraintLine, u as createPrismaDelegateMap, ua as EagerLoadMap, uc as InExpressionNode, ui as QueryGroupCondition, un as resolveColumnMappingsFilePath, uo as AttributeQuerySchema, ur as getRegisteredSeeders, ut as findModelBlock, v as ensureArkormConfigLoading, va as PaginationURLDriver, vc as BelongsToRelationMetadata, vi as QueryJoinType, vn as RelationResolutionException, vo as ModelAttributes, vr as registerPaths, vt as resolveMigrationClassName, w as getRuntimeDebugHandler, wa as PrismaLikeOrderBy, wc as ModelMetadata, wi as QueryOrderBy, wn as ArkormErrorContext, wo as ModelEventHandlerConstructor, wr as SeederCallArgument, ws as RelationAggregateConstraint, wt as supportsDatabaseMigrationExecution, x as getDefaultStubsPath, xa as PrismaDelegateLike, xc as HasManyThroughRelationMetadata, xi as QueryJsonConditionKind, xn as QueryConstraintException, xo as ModelDeclaredAttributeKey, xr as resolveRegisteredModel, xt as runPrismaCommand, y as getActiveTransactionAdapter, ya as PaginationURLDriverFactory, yc as ColumnMap, yi as QueryJoinValueConstraint, yn as QueryExecutionException, yo as ModelAttributesOf, yr as registerSeeders, yt as resolvePrismaType, z as applyAlterTableOperation, za as QuerySchemaSelect, zc as MigrationInstanceLike, zi as UpdateSpec, zn as MigrateFreshCommand, zo as Model, zr as AdapterModelStructure, zs as RelatedModelForRelationship, zt as markMigrationRun } from "./index-CwRrmbzl.mjs";
|
|
2
|
-
export { AdapterBindableModel, AdapterCapabilities, AdapterCapability, AdapterDatabaseCreationResult, AdapterInspectionRequest, AdapterModelFieldStructure, AdapterModelIntrospectionOptions, AdapterModelStructure, AdapterQueryInspection, AdapterQueryOperation, AdapterTransactionContext, AggregateExpression, AggregateExpressionNode, AggregateOperation, AggregateSelection, AggregateSpec, AppliedMigrationEntry, AppliedMigrationRun, AppliedMigrationsState, Arkorm, ArkormBootContext, ArkormCollection, ArkormConfig, ArkormDebugEvent, ArkormDebugHandler, ArkormErrorContext, ArkormException, ArkormModelRegistry, Arkormx, Attribute, AttributeCreateInput, AttributeOptions, AttributeOrderBy, AttributeQuerySchema, AttributeSchemaDelegate, AttributeSelect, AttributeUpdateInput, AttributeWhereInput, BelongsToManyRelationMetadata, BelongsToRelationMetadata, BinaryExpressionNode, CaseExpression, CaseExpressionBranch, CaseExpressionNode, CastDefinition, CastHandler, CastMap, CastType, ChunkCallback, CliApp, ClientResolver, ColumnExpressionNode, ColumnMap, DB, DatabaseAdapter, DatabasePrimitive, DatabaseRow, DatabaseRows, DatabaseTableOptions, DatabaseTablePersistedMetadataOptions, DatabaseValue, DbCommand, DelegateCreateData, DelegateFindManyArgs, DelegateForModelSchema, DelegateInclude, DelegateOrderBy, DelegateRow, DelegateRows, DelegateSelect, DelegateUniqueWhere, DelegateUpdateArgs, DelegateUpdateData, DelegateWhere, DeleteManySpec, DeleteSpec, EachCallback, EagerLoadConstraint, EagerLoadMap, EagerLoadQueryForRelationship, EagerLoadRelations, EnumBuilder, Expression, ExpressionBinaryOperator, ExpressionBuilder, ExpressionJsonCast, ExpressionNode, ExpressionSelectMap, FactoryAttributeResolver, FactoryAttributes, FactoryCallback, FactoryDefinition, FactoryDefinitionAttributes, FactoryModelConstructor, FactoryRelationshipResolver, FactoryState, ForeignKeyBuilder, FunctionExpressionNode, GenerateMigrationOptions, GeneratedColumnExpression, GeneratedMigrationFile, GetUserConfig, GlobalScope, GroupByAggregateRow, GroupByAggregateSpec, HasManyRelationMetadata, HasManyThroughRelationMetadata, HasOneRelationMetadata, HasOneThroughRelationMetadata, InExpressionNode, InitCommand, InlineFactory, InsertManySpec, InsertSpec, JoinClause, JoinOn, JoinSource, JsonExpression, JsonExpressionNode, KyselyDatabaseAdapter, LengthAwarePaginator, LoadedRuntimeModule, MIGRATION_BRAND, MakeFactoryCommand, MakeMigrationCommand, MakeModelCommand, MakeSeederCommand, MaybePromise, MigrateCommand, MigrateFreshCommand, MigrateRollbackCommand, Migration, MigrationClass, MigrationHistoryCommand, MigrationInstanceLike, MissingDelegateException, Model, ModelAttributeValue, ModelAttributes, ModelAttributesOf, ModelCreateData, ModelDeclaredAttributeKey, ModelEventDispatcher, ModelEventHandler, ModelEventHandlerConstructor, ModelEventListener, ModelEventName, ModelFactory, ModelLifecycleState, ModelMetadata, ModelNotFoundException, ModelOrderByInput, ModelQuerySchemaLike, ModelRelationshipKey, ModelRelationshipResult, ModelStatic, ModelTableCase, ModelUpdateData, ModelWhereInput, ModelsSyncCommand, MorphManyRelationMetadata, MorphOneRelationMetadata, MorphToManyRelationMetadata, MorphToRelationMetadata, MorphedByManyRelationMetadata, NamingCase, NullCheckExpressionNode, PRISMA_ENUM_MEMBER_REGEX, PRISMA_ENUM_REGEX, PRISMA_MODEL_REGEX, PaginationCurrentPageResolver, PaginationMeta, PaginationOptions, PaginationURLDriver, PaginationURLDriverFactory, Paginator, PartitionedSelectSpec, PersistedColumnMappingsState, PersistedMetadataFeatures, PersistedPrimaryKeyGeneration, PersistedTableMetadata, PersistedTimestampColumn, PivotModel, PivotModelStatic, PrimaryKeyGeneration, PrimaryKeyGenerationPlanner, PrismaClientLike, PrismaDatabaseAdapter, PrismaDelegateLike, PrismaDelegateMap, PrismaDelegateNameMapping, PrismaFindManyArgsLike, PrismaLikeInclude, PrismaLikeOrderBy, PrismaLikeScalarFilter, PrismaLikeSelect, PrismaLikeSortOrder, PrismaLikeWhereInput, PrismaMigrationWorkflowOptions, PrismaSchemaSyncOptions, PrismaTransactionCallback, PrismaTransactionCapableClient, PrismaTransactionContext, PrismaTransactionOptions, QueryBuilder, QueryColumnComparisonCondition, QueryComparisonCondition, QueryComparisonOperator, QueryCondition, QueryConstraintException, QueryDayCondition, QueryExecutionException, QueryExecutionExceptionContext, QueryExistsCondition, QueryExpressionCondition, QueryFullTextCondition, QueryGroupByItem, QueryGroupCondition, QueryJoin, QueryJoinBoolean, QueryJoinColumnConstraint, QueryJoinConstraint, QueryJoinNestedConstraint, QueryJoinNullConstraint, QueryJoinRawConstraint, QueryJoinType, QueryJoinValueConstraint, QueryJsonCondition, QueryJsonConditionKind, QueryLogicalOperator, QueryNotCondition, QueryOrderBy, QueryRawCondition, QueryScalarComparisonOperator, QuerySchemaCreateData, QuerySchemaFindManyArgs, QuerySchemaForModel, QuerySchemaForModelInstance, QuerySchemaInclude, QuerySchemaOrderBy, QuerySchemaRow, QuerySchemaRows, QuerySchemaSelect, QuerySchemaUniqueWhere, QuerySchemaUpdateArgs, QuerySchemaUpdateData, QuerySchemaWhere, QuerySelectColumn, QueryTarget, QueryTimeCondition, RawExpressionNode, RawQuerySpec, RawSelectInput, RegisteredFactory, RegisteredModel, RegisteredModelClass, RegisteredModelInstance, RegisteredModelName, RelatedModelClass, RelatedModelForRelationship, RelatedModelFromResult, RelationAggregateConstraint, RelationAggregateInput, RelationAggregateSpec, RelationAggregateType, RelationColumnLookupSpec, RelationConstraint, RelationDefaultResolver, RelationDefaultValue, RelationFilterSpec, RelationLoadPlan, RelationLoadSpec, RelationMetadata, RelationMetadataProvider, RelationMetadataType, RelationResolutionException, RelationResult, RelationResultCache, RelationTableLookupSpec, RelationshipModelStatic, RuntimeClientLike, RuntimeConstructor, RuntimeModuleLoader, RuntimePathInput, RuntimePathKey, RuntimePathMap, SEEDER_BRAND, SchemaBuilder, SchemaColumn, SchemaColumnType, SchemaForeignKey, SchemaForeignKeyAction, SchemaIndex, SchemaOperation, SchemaPrimaryKey, SchemaTableAlterOperation, SchemaTableCreateOperation, SchemaTableDropOperation, SchemaUniqueConstraint, ScopeNotDefinedException, SeedCommand, Seeder, SeederCallArgument, SeederConstructor, SeederInput, SelectSpec, Serializable, SimplePaginationMeta, SoftDeleteConfig, SoftDeleteQueryMode, SortDirection, TableBuilder, TimestampColumnBehavior, TimestampNames, TimestampNaming, TransactionCallback, TransactionCapableClient, TransactionContext, TransactionOptions, URLDriver, UniqueConstraintResolutionException, UnsupportedAdapterFeatureException, UpdateManySpec, UpdateSpec, UpsertSpec, ValueExpressionNode, WhereCallback, applyAlterTableOperation, applyCreateTableOperation, applyDropTableOperation, applyMigrationRollbackToDatabase, applyMigrationRollbackToPrismaSchema, applyMigrationToDatabase, applyMigrationToPrismaSchema, applyOperationsToPersistedColumnMappingsState, applyOperationsToPrismaSchema, avg, awaitConfiguredModelsRegistration, bindAdapterToModels, buildEnumBlock, buildFieldLine, buildIndexLine, buildInverseRelationLine, buildMigrationIdentity, buildMigrationRunId, buildMigrationSource, buildModelBlock, buildPrimaryKeyLine, buildRelationLine, buildUniqueConstraintLine, caseWhen, coalesce, col, computeMigrationChecksum, configureArkormRuntime, count, createEmptyAppliedMigrationsState, createEmptyPersistedColumnMappingsState, createKyselyAdapter, createMigrationTimestamp, createPrismaAdapter, createPrismaCompatibilityAdapter, createPrismaDatabaseAdapter, createPrismaDelegateMap, defineConfig, defineFactory, deleteAppliedMigrationsStateFromStore, deletePersistedColumnMappingsState, deriveCollectionFieldName, deriveInverseRelationAlias, deriveRelationAlias, deriveRelationFieldName, deriveSingularFieldName, disposeArkormRuntime, emitRuntimeDebugEvent, ensureArkormConfigLoading, escapeRegex, expressionBuilder, findAppliedMigration, findEnumBlock, findModelBlock, fn, formatDefaultValue, formatEnumDefaultValue, formatRelationAction, fromExpressionNode, generateMigrationFile, getActiveTransactionAdapter, getActiveTransactionClient, getDefaultStubsPath, getLastBatchMigrations, getLastMigrationRun, getLatestAppliedMigrations, getMigrationPlan, getModel, getPersistedColumnMap, getPersistedEnumMap, getPersistedEnumTsType, getPersistedPrimaryKeyGeneration, getPersistedTableMetadata, getPersistedTimestampColumns, getRegisteredFactories, getRegisteredMigrations, getRegisteredModels, getRegisteredPaths, getRegisteredSeeders, getRuntimeAdapter, getRuntimeClient, getRuntimeCompatibilityAdapter, getRuntimeDebugHandler, getRuntimePaginationCurrentPageResolver, getRuntimePaginationURLDriverFactory, getRuntimePrismaClient, getUserConfig, inferDelegateName, isDelegateLike, isMigrationApplied, isQuerySchemaLike, isTransactionCapableClient, json, loadArkormConfig, loadFactoriesFrom, loadMigrationsFrom, loadModelsFrom, loadSeedersFrom, markMigrationApplied, markMigrationRun, max, min, pad, raw, readAppliedMigrationsState, readAppliedMigrationsStateFromStore, readPersistedColumnMappingsState, rebuildPersistedColumnMappingsState, registerFactories, registerMigrations, registerModels, registerPaths, registerSeeders, removeAppliedMigration, resetArkormRuntimeForTests, resetPersistedColumnMappingsCache, resetRuntimeRegistryForTests, resolveCast, resolveColumnMappingsFilePath, resolveEnumName, resolveGeneratedExpression, resolveMigrationClassName, resolveMigrationStateFilePath, resolvePersistedMetadataFeatures, resolvePrismaType, resolveRegisteredModel, resolveRuntimeCompatibilityQuerySchema, resolveRuntimeCompatibilityQuerySchemaOrThrow, runArkormTransaction, runMigrationWithPrisma, runPrismaCommand, stripPrismaSchemaModelsAndEnums, sum, supportsDatabaseCreation, supportsDatabaseMigrationExecution, supportsDatabaseMigrationState, supportsDatabaseReset, syncPersistedColumnMappingsFromState, toMigrationFileSlug, toModelName, val, validatePersistedMetadataFeaturesForMigrations, where, writeAppliedMigrationsState, writeAppliedMigrationsStateToStore, writePersistedColumnMappingsState };
|
|
1
|
+
import { $ as buildPrimaryKeyLine, $a as ModelStatic, $c as SchemaTableDropOperation, $i as DelegateFindManyArgs, $n as getModel, $o as fromExpressionNode, $r as InsertSpec, $s as FactoryRelationshipResolver, $t as createEmptyPersistedColumnMappingsState, A as isQuerySchemaLike, Aa as PrismaTransactionCapableClient, Ac as MorphedByManyRelationMetadata, Ai as RawQuerySpec, An as EnumBuilder, Ao as ModelRelationshipKey, Ar as createPrismaDatabaseAdapter, As as RelationDefaultResolver, At as computeMigrationChecksum, B as applyCreateTableOperation, Ba as QuerySchemaUniqueWhere, Bc as MigrationInstanceLike, Bi as UpsertSpec, Bn as MigrateCommand, Bo as Model, Br as AdapterQueryOperation, Bs as RelatedModelForRelationship, Bt as readAppliedMigrationsState, C as getRuntimeClient, Ca as PrismaLikeInclude, Cc as HasOneRelationMetadata, Ci as QueryNotCondition, Cn as MissingDelegateException, Co as ModelEventDispatcher, Cr as Seeder, Ct as supportsDatabaseCreation, D as getRuntimePrismaClient, Da as PrismaLikeSortOrder, Dc as MorphOneRelationMetadata, Di as QuerySelectColumn, Dn as MIGRATION_BRAND, Do as ModelEventName, Dr as PrismaDatabaseAdapter, Ds as RelationAggregateType, Dt as toModelName, E as getRuntimePaginationURLDriverFactory, Ea as PrismaLikeSelect, Ec as MorphManyRelationMetadata, Ei as QueryScalarComparisonOperator, En as DB, Eo as ModelEventListener, Er as SeederInput, Es as RelationAggregateInput, Et as toMigrationFileSlug, F as PrimaryKeyGenerationPlanner, Fa as QuerySchemaInclude, Fc as AppliedMigrationRun, Fi as SelectSpec, Fn as SeedCommand, Fo as QuerySchemaForModelInstance, Fr as AdapterDatabaseCreationResult, Fs as RelationTableLookupSpec, Ft as getLastMigrationRun, G as applyMigrationToPrismaSchema, Ga as RuntimeClientLike, Gc as SchemaColumnType, Gi as ArkormDebugEvent, Gn as InitCommand, Go as JsonExpression, Gr as DatabaseAdapter, Gs as Paginator, Gt as writeAppliedMigrationsState, H as applyMigrationRollbackToDatabase, Ha as QuerySchemaUpdateData, Hc as PrismaMigrationWorkflowOptions, Hi as AdapterQueryInspection, Hn as MakeModelCommand, Ho as CaseExpression, Hr as AggregateOperation, Hs as WhereCallback, Ht as removeAppliedMigration, I as PRISMA_ENUM_MEMBER_REGEX, Ia as QuerySchemaOrderBy, Ic as AppliedMigrationsState, Ii as SoftDeleteQueryMode, In as ModelsSyncCommand, Io as RegisteredModelClass, Ir as AdapterInspectionRequest, Is as EagerLoadQueryForRelationship, It as getLatestAppliedMigrations, J as buildFieldLine, Ja as SoftDeleteConfig, Jc as SchemaIndex, Ji as CastHandler, Jn as resolveCast, Jo as coalesce, Jr as DatabaseRows, Js as FactoryAttributes, Jt as PersistedMetadataFeatures, K as applyOperationsToPrismaSchema, Ka as Serializable, Kc as SchemaForeignKey, Ki as ArkormDebugHandler, Kn as DbCommand, Ko as avg, Kr as DatabasePrimitive, Ks as ArkormCollection, Kt as writeAppliedMigrationsStateToStore, L as PRISMA_ENUM_REGEX, La as QuerySchemaRow, Lc as GenerateMigrationOptions, Li as SortDirection, Ln as MigrationHistoryCommand, Lo as RegisteredModelInstance, Lr as AdapterModelFieldStructure, Ls as EagerLoadRelations, Lt as isMigrationApplied, M as loadArkormConfig, Ma as PrismaTransactionOptions, Mc as RelationMetadata, Mi as RelationFilterSpec, Mn as GeneratedColumnExpression, Mo as ModelUpdateData, Mr as createKyselyAdapter, Ms as RelationMetadataProvider, Mt as deleteAppliedMigrationsStateFromStore, N as resetArkormRuntimeForTests, Na as QuerySchemaCreateData, Nc as RelationMetadataType, Ni as RelationLoadPlan, Nn as resolveGeneratedExpression, No as ModelWhereInput, Nr as AdapterCapabilities, Ns as RelationResult, Nt as findAppliedMigration, O as getUserConfig, Oa as PrismaLikeWhereInput, Oc as MorphToManyRelationMetadata, Oi as QueryTarget, On as Migration, Oo as ModelLifecycleState, Or as PrismaDelegateNameMapping, Os as RelationColumnLookupSpec, Ot as buildMigrationIdentity, P as runArkormTransaction, Pa as QuerySchemaFindManyArgs, Pc as AppliedMigrationEntry, Pi as RelationLoadSpec, Pn as ForeignKeyBuilder, Po as QuerySchemaForModel, Pr as AdapterCapability, Ps as RelationResultCache, Pt as getLastBatchMigrations, Q as buildModelBlock, Qa as TransactionOptions, Qc as SchemaTableCreateOperation, Qi as DelegateCreateData, Qn as Arkormx, Qo as fn, Qr as InsertManySpec, Qs as FactoryModelConstructor, Qt as applyOperationsToPersistedColumnMappingsState, R as PRISMA_MODEL_REGEX, Ra as QuerySchemaRows, Rc as GeneratedMigrationFile, Ri as UpdateManySpec, Rn as MigrateRollbackCommand, Ro as RegisteredModelName, Rr as AdapterModelIntrospectionOptions, Rs as JoinOn, Rt as markMigrationApplied, S as getRuntimeAdapter, Sa as PrismaFindManyArgsLike, Sc as HasManyThroughRelationMetadata, Si as QueryLogicalOperator, Sn as ModelNotFoundException, So as ModelDeclaredAttributeKey, Sr as SEEDER_BRAND, St as stripPrismaSchemaModelsAndEnums, T as getRuntimePaginationCurrentPageResolver, Ta as PrismaLikeScalarFilter, Tc as ModelMetadata, Ti as QueryRawCondition, Tn as ArkormException, To as ModelEventHandlerConstructor, Tr as SeederConstructor, Ts as RelationAggregateConstraint, Tt as supportsDatabaseReset, U as applyMigrationRollbackToPrismaSchema, Ua as QuerySchemaWhere, Uc as PrismaSchemaSyncOptions, Ui as ArkormBootContext, Un as MakeMigrationCommand, Uo as Expression, Ur as AggregateSelection, Us as JoinClause, Ut as resolveMigrationStateFilePath, V as applyDropTableOperation, Va as QuerySchemaUpdateArgs, Vc as PrimaryKeyGeneration, Vi as AdapterBindableModel, Vn as MakeSeederCommand, Vo as AggregateExpression, Vr as AdapterTransactionContext, Vs as RelatedModelFromResult, Vt as readAppliedMigrationsStateFromStore, W as applyMigrationToDatabase, Wa as RawSelectInput, Wc as SchemaColumn, Wi as ArkormConfig, Wn as MakeFactoryCommand, Wo as ExpressionBuilder, Wr as AggregateSpec, Ws as LengthAwarePaginator, Wt as supportsDatabaseMigrationState, X as buildInverseRelationLine, Xa as TransactionCapableClient, Xc as SchemaPrimaryKey, Xi as CastType, Xn as AttributeOptions, Xo as count, Xr as DeleteManySpec, Xs as FactoryDefinition, Xt as PersistedTableMetadata, Y as buildIndexLine, Ya as TransactionCallback, Yc as SchemaOperation, Yi as CastMap, Yn as Attribute, Yo as col, Yr as DatabaseValue, Ys as FactoryCallback, Yt as PersistedPrimaryKeyGeneration, Z as buildMigrationSource, Za as TransactionContext, Zc as SchemaTableAlterOperation, Zi as ClientResolver, Zn as Arkorm, Zo as expressionBuilder, Zr as DeleteSpec, Zs as FactoryDefinitionAttributes, Zt as PersistedTimestampColumn, _ as emitRuntimeDebugEvent, _a as PaginationOptions, _c as DatabaseTablePersistedMetadataOptions, _i as QueryJoinRawConstraint, _n as ScopeNotDefinedException, _o as GlobalScope, _r as registerModels, _t as resolveEnumName, a as getRuntimeCompatibilityAdapter, aa as DelegateUniqueWhere, ac as CaseExpressionNode, ai as QueryDayCondition, an as getPersistedTableMetadata, ao as GroupByAggregateSpec, ar as RuntimePathMap, as as val, at as deriveRelationAlias, b as getActiveTransactionClient, ba as PrismaClientLike, bc as ColumnMap, bi as QueryJsonCondition, bn as QueryExecutionExceptionContext, bo as ModelAttributesOf, br as resetRuntimeRegistryForTests, bt as runMigrationWithPrisma, c as PrismaDelegateMap, ca as DelegateWhere, cc as ExpressionJsonCast, ci as QueryFullTextCondition, cn as rebuildPersistedColumnMappingsState, co as ArkormModelRegistry, cr as getRegisteredModels, cs as ModelFactory, ct as escapeRegex, d as inferDelegateName, da as GetUserConfig, dc as InExpressionNode, di as QueryJoin, dn as resolvePersistedMetadataFeatures, do as AttributeQuerySchema, dr as loadFactoriesFrom, dt as formatDefaultValue, ea as DelegateInclude, ec as FactoryState, ei as PartitionedSelectSpec, el as SchemaUniqueConstraint, en as deletePersistedColumnMappingsState, eo as RelationshipModelStatic, er as RegisteredFactory, es as json, et as buildRelationLine, f as awaitConfiguredModelsRegistration, fa as ModelQuerySchemaLike, fc as JsonExpressionNode, fi as QueryJoinBoolean, fn as syncPersistedColumnMappingsFromState, fo as AttributeSchemaDelegate, fr as loadMigrationsFrom, ft as formatEnumDefaultValue, g as disposeArkormRuntime, ga as PaginationMeta, gc as DatabaseTableOptions, gi as QueryJoinNullConstraint, gn as UniqueConstraintResolutionException, go as DelegateForModelSchema, gr as registerMigrations, gt as pad, h as defineConfig, ha as PaginationCurrentPageResolver, hc as ValueExpressionNode, hi as QueryJoinNestedConstraint, hn as UnsupportedAdapterFeatureException, ho as AttributeWhereInput, hr as registerFactories, ht as getMigrationPlan, i as RuntimeModuleLoader, ia as DelegateSelect, ic as CaseExpressionBranch, ii as QueryCondition, in as getPersistedPrimaryKeyGeneration, io as GroupByAggregateRow, ir as RuntimePathKey, is as sum, it as deriveInverseRelationAlias, j as isTransactionCapableClient, ja as PrismaTransactionContext, jc as PivotModelStatic, ji as RelationAggregateSpec, jn as TableBuilder, jo as ModelRelationshipResult, jr as KyselyDatabaseAdapter, js as RelationDefaultValue, jt as createEmptyAppliedMigrationsState, k as isDelegateLike, ka as PrismaTransactionCallback, kc as MorphToRelationMetadata, ki as QueryTimeCondition, kn as SchemaBuilder, ko as ModelOrderByInput, kr as createPrismaCompatibilityAdapter, ks as RelationConstraint, kt as buildMigrationRunId, l as createPrismaAdapter, la as EagerLoadConstraint, lc as ExpressionNode, li as QueryGroupByItem, ln as resetPersistedColumnMappingsCache, lo as AttributeCreateInput, lr as getRegisteredPaths, ls as defineFactory, lt as findEnumBlock, m as configureArkormRuntime, ma as NamingCase, mc as RawExpressionNode, mi as QueryJoinConstraint, mn as writePersistedColumnMappingsState, mo as AttributeUpdateInput, mr as loadSeedersFrom, mt as generateMigrationFile, n as PivotModel, na as DelegateRow, nc as AggregateExpressionNode, ni as QueryComparisonCondition, nl as TimestampNames, nn as getPersistedEnumMap, no as EachCallback, nr as RuntimeConstructor, ns as min, nt as createMigrationTimestamp, o as resolveRuntimeCompatibilityQuerySchema, oa as DelegateUpdateArgs, oc as ColumnExpressionNode, oi as QueryExistsCondition, on as getPersistedTimestampColumns, oo as QueryBuilder, or as getRegisteredFactories, os as where, ot as deriveRelationFieldName, p as bindAdapterToModels, pa as ModelTableCase, pc as NullCheckExpressionNode, pi as QueryJoinColumnConstraint, pn as validatePersistedMetadataFeaturesForMigrations, po as AttributeSelect, pr as loadModelsFrom, pt as formatRelationAction, q as buildEnumBlock, qa as SimplePaginationMeta, qc as SchemaForeignKeyAction, qi as CastDefinition, qn as CliApp, qo as caseWhen, qr as DatabaseRow, qs as FactoryAttributeResolver, qt as PersistedColumnMappingsState, r as LoadedRuntimeModule, ra as DelegateRows, rc as BinaryExpressionNode, ri as QueryComparisonOperator, rl as TimestampNaming, rn as getPersistedEnumTsType, ro as ExpressionSelectMap, rr as RuntimePathInput, rs as raw, rt as deriveCollectionFieldName, s as resolveRuntimeCompatibilityQuerySchemaOrThrow, sa as DelegateUpdateData, sc as ExpressionBinaryOperator, si as QueryExpressionCondition, sn as readPersistedColumnMappingsState, so as ArkormModelNameRegistry, sr as getRegisteredMigrations, ss as InlineFactory, st as deriveSingularFieldName, t as URLDriver, ta as DelegateOrderBy, tc as MaybePromise, ti as QueryColumnComparisonCondition, tl as TimestampColumnBehavior, tn as getPersistedColumnMap, to as ChunkCallback, tr as RegisteredModel, ts as max, tt as buildUniqueConstraintLine, u as createPrismaDelegateMap, ua as EagerLoadMap, uc as FunctionExpressionNode, ui as QueryGroupCondition, un as resolveColumnMappingsFilePath, uo as AttributeOrderBy, ur as getRegisteredSeeders, ut as findModelBlock, v as ensureArkormConfigLoading, va as PaginationURLDriver, vc as BelongsToManyRelationMetadata, vi as QueryJoinType, vn as RelationResolutionException, vo as ModelAttributeValue, vr as registerPaths, vt as resolveMigrationClassName, w as getRuntimeDebugHandler, wa as PrismaLikeOrderBy, wc as HasOneThroughRelationMetadata, wi as QueryOrderBy, wn as ArkormErrorContext, wo as ModelEventHandler, wr as SeederCallArgument, wt as supportsDatabaseMigrationExecution, x as getDefaultStubsPath, xa as PrismaDelegateLike, xc as HasManyRelationMetadata, xi as QueryJsonConditionKind, xn as QueryConstraintException, xo as ModelCreateData, xr as resolveRegisteredModel, xt as runPrismaCommand, y as getActiveTransactionAdapter, ya as PaginationURLDriverFactory, yc as BelongsToRelationMetadata, yi as QueryJoinValueConstraint, yn as QueryExecutionException, yo as ModelAttributes, yr as registerSeeders, yt as resolvePrismaType, z as applyAlterTableOperation, za as QuerySchemaSelect, zc as MigrationClass, zi as UpdateSpec, zn as MigrateFreshCommand, zo as RelatedModelClass, zr as AdapterModelStructure, zs as JoinSource, zt as markMigrationRun } from "./index-M-1ywpZN.mjs";
|
|
2
|
+
export { AdapterBindableModel, AdapterCapabilities, AdapterCapability, AdapterDatabaseCreationResult, AdapterInspectionRequest, AdapterModelFieldStructure, AdapterModelIntrospectionOptions, AdapterModelStructure, AdapterQueryInspection, AdapterQueryOperation, AdapterTransactionContext, AggregateExpression, AggregateExpressionNode, AggregateOperation, AggregateSelection, AggregateSpec, AppliedMigrationEntry, AppliedMigrationRun, AppliedMigrationsState, Arkorm, ArkormBootContext, ArkormCollection, ArkormConfig, ArkormDebugEvent, ArkormDebugHandler, ArkormErrorContext, ArkormException, ArkormModelNameRegistry, ArkormModelRegistry, Arkormx, Attribute, AttributeCreateInput, AttributeOptions, AttributeOrderBy, AttributeQuerySchema, AttributeSchemaDelegate, AttributeSelect, AttributeUpdateInput, AttributeWhereInput, BelongsToManyRelationMetadata, BelongsToRelationMetadata, BinaryExpressionNode, CaseExpression, CaseExpressionBranch, CaseExpressionNode, CastDefinition, CastHandler, CastMap, CastType, ChunkCallback, CliApp, ClientResolver, ColumnExpressionNode, ColumnMap, DB, DatabaseAdapter, DatabasePrimitive, DatabaseRow, DatabaseRows, DatabaseTableOptions, DatabaseTablePersistedMetadataOptions, DatabaseValue, DbCommand, DelegateCreateData, DelegateFindManyArgs, DelegateForModelSchema, DelegateInclude, DelegateOrderBy, DelegateRow, DelegateRows, DelegateSelect, DelegateUniqueWhere, DelegateUpdateArgs, DelegateUpdateData, DelegateWhere, DeleteManySpec, DeleteSpec, EachCallback, EagerLoadConstraint, EagerLoadMap, EagerLoadQueryForRelationship, EagerLoadRelations, EnumBuilder, Expression, ExpressionBinaryOperator, ExpressionBuilder, ExpressionJsonCast, ExpressionNode, ExpressionSelectMap, FactoryAttributeResolver, FactoryAttributes, FactoryCallback, FactoryDefinition, FactoryDefinitionAttributes, FactoryModelConstructor, FactoryRelationshipResolver, FactoryState, ForeignKeyBuilder, FunctionExpressionNode, GenerateMigrationOptions, GeneratedColumnExpression, GeneratedMigrationFile, GetUserConfig, GlobalScope, GroupByAggregateRow, GroupByAggregateSpec, HasManyRelationMetadata, HasManyThroughRelationMetadata, HasOneRelationMetadata, HasOneThroughRelationMetadata, InExpressionNode, InitCommand, InlineFactory, InsertManySpec, InsertSpec, JoinClause, JoinOn, JoinSource, JsonExpression, JsonExpressionNode, KyselyDatabaseAdapter, LengthAwarePaginator, LoadedRuntimeModule, MIGRATION_BRAND, MakeFactoryCommand, MakeMigrationCommand, MakeModelCommand, MakeSeederCommand, MaybePromise, MigrateCommand, MigrateFreshCommand, MigrateRollbackCommand, Migration, MigrationClass, MigrationHistoryCommand, MigrationInstanceLike, MissingDelegateException, Model, ModelAttributeValue, ModelAttributes, ModelAttributesOf, ModelCreateData, ModelDeclaredAttributeKey, ModelEventDispatcher, ModelEventHandler, ModelEventHandlerConstructor, ModelEventListener, ModelEventName, ModelFactory, ModelLifecycleState, ModelMetadata, ModelNotFoundException, ModelOrderByInput, ModelQuerySchemaLike, ModelRelationshipKey, ModelRelationshipResult, ModelStatic, ModelTableCase, ModelUpdateData, ModelWhereInput, ModelsSyncCommand, MorphManyRelationMetadata, MorphOneRelationMetadata, MorphToManyRelationMetadata, MorphToRelationMetadata, MorphedByManyRelationMetadata, NamingCase, NullCheckExpressionNode, PRISMA_ENUM_MEMBER_REGEX, PRISMA_ENUM_REGEX, PRISMA_MODEL_REGEX, PaginationCurrentPageResolver, PaginationMeta, PaginationOptions, PaginationURLDriver, PaginationURLDriverFactory, Paginator, PartitionedSelectSpec, PersistedColumnMappingsState, PersistedMetadataFeatures, PersistedPrimaryKeyGeneration, PersistedTableMetadata, PersistedTimestampColumn, PivotModel, PivotModelStatic, PrimaryKeyGeneration, PrimaryKeyGenerationPlanner, PrismaClientLike, PrismaDatabaseAdapter, PrismaDelegateLike, PrismaDelegateMap, PrismaDelegateNameMapping, PrismaFindManyArgsLike, PrismaLikeInclude, PrismaLikeOrderBy, PrismaLikeScalarFilter, PrismaLikeSelect, PrismaLikeSortOrder, PrismaLikeWhereInput, PrismaMigrationWorkflowOptions, PrismaSchemaSyncOptions, PrismaTransactionCallback, PrismaTransactionCapableClient, PrismaTransactionContext, PrismaTransactionOptions, QueryBuilder, QueryColumnComparisonCondition, QueryComparisonCondition, QueryComparisonOperator, QueryCondition, QueryConstraintException, QueryDayCondition, QueryExecutionException, QueryExecutionExceptionContext, QueryExistsCondition, QueryExpressionCondition, QueryFullTextCondition, QueryGroupByItem, QueryGroupCondition, QueryJoin, QueryJoinBoolean, QueryJoinColumnConstraint, QueryJoinConstraint, QueryJoinNestedConstraint, QueryJoinNullConstraint, QueryJoinRawConstraint, QueryJoinType, QueryJoinValueConstraint, QueryJsonCondition, QueryJsonConditionKind, QueryLogicalOperator, QueryNotCondition, QueryOrderBy, QueryRawCondition, QueryScalarComparisonOperator, QuerySchemaCreateData, QuerySchemaFindManyArgs, QuerySchemaForModel, QuerySchemaForModelInstance, QuerySchemaInclude, QuerySchemaOrderBy, QuerySchemaRow, QuerySchemaRows, QuerySchemaSelect, QuerySchemaUniqueWhere, QuerySchemaUpdateArgs, QuerySchemaUpdateData, QuerySchemaWhere, QuerySelectColumn, QueryTarget, QueryTimeCondition, RawExpressionNode, RawQuerySpec, RawSelectInput, RegisteredFactory, RegisteredModel, RegisteredModelClass, RegisteredModelInstance, RegisteredModelName, RelatedModelClass, RelatedModelForRelationship, RelatedModelFromResult, RelationAggregateConstraint, RelationAggregateInput, RelationAggregateSpec, RelationAggregateType, RelationColumnLookupSpec, RelationConstraint, RelationDefaultResolver, RelationDefaultValue, RelationFilterSpec, RelationLoadPlan, RelationLoadSpec, RelationMetadata, RelationMetadataProvider, RelationMetadataType, RelationResolutionException, RelationResult, RelationResultCache, RelationTableLookupSpec, RelationshipModelStatic, RuntimeClientLike, RuntimeConstructor, RuntimeModuleLoader, RuntimePathInput, RuntimePathKey, RuntimePathMap, SEEDER_BRAND, SchemaBuilder, SchemaColumn, SchemaColumnType, SchemaForeignKey, SchemaForeignKeyAction, SchemaIndex, SchemaOperation, SchemaPrimaryKey, SchemaTableAlterOperation, SchemaTableCreateOperation, SchemaTableDropOperation, SchemaUniqueConstraint, ScopeNotDefinedException, SeedCommand, Seeder, SeederCallArgument, SeederConstructor, SeederInput, SelectSpec, Serializable, SimplePaginationMeta, SoftDeleteConfig, SoftDeleteQueryMode, SortDirection, TableBuilder, TimestampColumnBehavior, TimestampNames, TimestampNaming, TransactionCallback, TransactionCapableClient, TransactionContext, TransactionOptions, URLDriver, UniqueConstraintResolutionException, UnsupportedAdapterFeatureException, UpdateManySpec, UpdateSpec, UpsertSpec, ValueExpressionNode, WhereCallback, applyAlterTableOperation, applyCreateTableOperation, applyDropTableOperation, applyMigrationRollbackToDatabase, applyMigrationRollbackToPrismaSchema, applyMigrationToDatabase, applyMigrationToPrismaSchema, applyOperationsToPersistedColumnMappingsState, applyOperationsToPrismaSchema, avg, awaitConfiguredModelsRegistration, bindAdapterToModels, buildEnumBlock, buildFieldLine, buildIndexLine, buildInverseRelationLine, buildMigrationIdentity, buildMigrationRunId, buildMigrationSource, buildModelBlock, buildPrimaryKeyLine, buildRelationLine, buildUniqueConstraintLine, caseWhen, coalesce, col, computeMigrationChecksum, configureArkormRuntime, count, createEmptyAppliedMigrationsState, createEmptyPersistedColumnMappingsState, createKyselyAdapter, createMigrationTimestamp, createPrismaAdapter, createPrismaCompatibilityAdapter, createPrismaDatabaseAdapter, createPrismaDelegateMap, defineConfig, defineFactory, deleteAppliedMigrationsStateFromStore, deletePersistedColumnMappingsState, deriveCollectionFieldName, deriveInverseRelationAlias, deriveRelationAlias, deriveRelationFieldName, deriveSingularFieldName, disposeArkormRuntime, emitRuntimeDebugEvent, ensureArkormConfigLoading, escapeRegex, expressionBuilder, findAppliedMigration, findEnumBlock, findModelBlock, fn, formatDefaultValue, formatEnumDefaultValue, formatRelationAction, fromExpressionNode, generateMigrationFile, getActiveTransactionAdapter, getActiveTransactionClient, getDefaultStubsPath, getLastBatchMigrations, getLastMigrationRun, getLatestAppliedMigrations, getMigrationPlan, getModel, getPersistedColumnMap, getPersistedEnumMap, getPersistedEnumTsType, getPersistedPrimaryKeyGeneration, getPersistedTableMetadata, getPersistedTimestampColumns, getRegisteredFactories, getRegisteredMigrations, getRegisteredModels, getRegisteredPaths, getRegisteredSeeders, getRuntimeAdapter, getRuntimeClient, getRuntimeCompatibilityAdapter, getRuntimeDebugHandler, getRuntimePaginationCurrentPageResolver, getRuntimePaginationURLDriverFactory, getRuntimePrismaClient, getUserConfig, inferDelegateName, isDelegateLike, isMigrationApplied, isQuerySchemaLike, isTransactionCapableClient, json, loadArkormConfig, loadFactoriesFrom, loadMigrationsFrom, loadModelsFrom, loadSeedersFrom, markMigrationApplied, markMigrationRun, max, min, pad, raw, readAppliedMigrationsState, readAppliedMigrationsStateFromStore, readPersistedColumnMappingsState, rebuildPersistedColumnMappingsState, registerFactories, registerMigrations, registerModels, registerPaths, registerSeeders, removeAppliedMigration, resetArkormRuntimeForTests, resetPersistedColumnMappingsCache, resetRuntimeRegistryForTests, resolveCast, resolveColumnMappingsFilePath, resolveEnumName, resolveGeneratedExpression, resolveMigrationClassName, resolveMigrationStateFilePath, resolvePersistedMetadataFeatures, resolvePrismaType, resolveRegisteredModel, resolveRuntimeCompatibilityQuerySchema, resolveRuntimeCompatibilityQuerySchemaOrThrow, runArkormTransaction, runMigrationWithPrisma, runPrismaCommand, stripPrismaSchemaModelsAndEnums, sum, supportsDatabaseCreation, supportsDatabaseMigrationExecution, supportsDatabaseMigrationState, supportsDatabaseReset, syncPersistedColumnMappingsFromState, toMigrationFileSlug, toModelName, val, validatePersistedMetadataFeaturesForMigrations, where, writeAppliedMigrationsState, writeAppliedMigrationsStateToStore, writePersistedColumnMappingsState };
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as buildPrimaryKeyLine, $n as readAppliedMigrationsState, $t as bindAdapterToModels, A as resetPersistedColumnMappingsCache, An as registerFactories, At as EnumBuilder, B as applyCreateTableOperation, Bn as ForeignKeyBuilder, Bt as col, C as getPersistedEnumMap, Cn as getRegisteredModels, Ct as supportsDatabaseCreation, D as getPersistedTimestampColumns, Dn as loadMigrationsFrom, Dt as toModelName, E as getPersistedTableMetadata, En as loadFactoriesFrom, Et as toMigrationFileSlug, F as writePersistedColumnMappingsState, Fn as resetRuntimeRegistryForTests, Ft as Expression, G as applyMigrationToPrismaSchema, Gn as deleteAppliedMigrationsStateFromStore, Gt as json, H as applyMigrationRollbackToDatabase, Hn as buildMigrationRunId, Ht as expressionBuilder, I as PRISMA_ENUM_MEMBER_REGEX, In as resolveRegisteredModel, It as JsonExpression, J as buildFieldLine, Jn as getLastMigrationRun, Jt as raw, K as applyOperationsToPrismaSchema, Kn as findAppliedMigration, Kt as max, L as PRISMA_ENUM_REGEX, Ln as UnsupportedAdapterFeatureException, Lt as avg, M as resolvePersistedMetadataFeatures, Mn as registerModels, Mt as resolveGeneratedExpression, N as syncPersistedColumnMappingsFromState, Nn as registerPaths, Nt as AggregateExpression, O as readPersistedColumnMappingsState, On as loadModelsFrom, Ot as isMigrationPlanningActive, P as validatePersistedMetadataFeaturesForMigrations, Pn as registerSeeders, Pt as CaseExpression, Q as buildModelBlock, Qn as markMigrationRun, Qt as awaitConfiguredModelsRegistration, R as PRISMA_MODEL_REGEX, Rn as RuntimeModuleLoader, Rt as caseWhen, S as getPersistedColumnMap, Sn as getRegisteredMigrations, St as stripPrismaSchemaModelsAndEnums, T as getPersistedPrimaryKeyGeneration, Tn as getRegisteredSeeders, Tt as supportsDatabaseReset, U as applyMigrationRollbackToPrismaSchema, Un as computeMigrationChecksum, Ut as fn, V as applyDropTableOperation, Vn as buildMigrationIdentity, Vt as count, W as applyMigrationToDatabase, Wn as createEmptyAppliedMigrationsState, Wt as fromExpressionNode, X as buildInverseRelationLine, Xn as isMigrationApplied, Xt as val, Y as buildIndexLine, Yn as getLatestAppliedMigrations, Yt as sum, Z as buildMigrationSource, Zn as markMigrationApplied, Zt as where, _ as SetBasedEagerLoader, _n as isTransactionCapableClient, _t as resolveEnumName, a as MorphManyRelation, an as getActiveTransactionAdapter, ar as writeAppliedMigrationsStateToStore, at as deriveRelationAlias, b as createEmptyPersistedColumnMappingsState, bn as runArkormTransaction, bt as runMigrationWithPrisma, c as HasManyThroughRelation, cn as getRuntimeAdapter, cr as ArkormException, ct as escapeRegex, dn as getRuntimePaginationCurrentPageResolver, dt as formatDefaultValue, en as configureArkormRuntime, er as readAppliedMigrationsStateFromStore, et as buildRelationLine, f as BelongsToManyRelation, fn as getRuntimePaginationURLDriverFactory, ft as formatEnumDefaultValue, g as URLDriver, gn as isQuerySchemaLike, gt as pad, h as Paginator, hn as isDelegateLike, ht as getMigrationPlan, i as MorphOneRelation, in as ensureArkormConfigLoading, ir as writeAppliedMigrationsState, it as deriveInverseRelationAlias, j as resolveColumnMappingsFilePath, jn as registerMigrations, jt as TableBuilder, k as rebuildPersistedColumnMappingsState, kn as loadSeedersFrom, kt as SchemaBuilder, l as HasManyRelation, ln as getRuntimeClient, lt as findEnumBlock, m as LengthAwarePaginator, mn as getUserConfig, mt as generateMigrationFile, n as MorphedByManyRelation, nn as disposeArkormRuntime, nr as resolveMigrationStateFilePath, nt as createMigrationTimestamp, o as HasOneThroughRelation, on as getActiveTransactionClient, or as RelationResolutionException, ot as deriveRelationFieldName, p as Relation, pn as getRuntimePrismaClient, pt as formatRelationAction, q as buildEnumBlock, qn as getLastBatchMigrations, qt as min, r as MorphToManyRelation, rn as emitRuntimeDebugEvent, rr as supportsDatabaseMigrationState, rt as deriveCollectionFieldName, s as HasOneRelation, sn as getDefaultStubsPath, sr as ArkormCollection, st as deriveSingularFieldName, t as MorphToRelation, tn as defineConfig, tr as removeAppliedMigration, tt as buildUniqueConstraintLine, u as BelongsToRelation, un as getRuntimeDebugHandler, ut as findModelBlock, vn as loadArkormConfig, vt as resolveMigrationClassName, w as getPersistedEnumTsType, wn as getRegisteredPaths, wt as supportsDatabaseMigrationExecution, x as deletePersistedColumnMappingsState, xn as getRegisteredFactories, xt as runPrismaCommand, y as applyOperationsToPersistedColumnMappingsState, yn as resetArkormRuntimeForTests, yt as resolvePrismaType, z as applyAlterTableOperation, zn as PrimaryKeyGenerationPlanner, zt as coalesce } from "./relationship-
|
|
1
|
+
import { $ as buildPrimaryKeyLine, $n as readAppliedMigrationsState, $t as bindAdapterToModels, A as resetPersistedColumnMappingsCache, An as registerFactories, At as EnumBuilder, B as applyCreateTableOperation, Bn as ForeignKeyBuilder, Bt as col, C as getPersistedEnumMap, Cn as getRegisteredModels, Ct as supportsDatabaseCreation, D as getPersistedTimestampColumns, Dn as loadMigrationsFrom, Dt as toModelName, E as getPersistedTableMetadata, En as loadFactoriesFrom, Et as toMigrationFileSlug, F as writePersistedColumnMappingsState, Fn as resetRuntimeRegistryForTests, Ft as Expression, G as applyMigrationToPrismaSchema, Gn as deleteAppliedMigrationsStateFromStore, Gt as json, H as applyMigrationRollbackToDatabase, Hn as buildMigrationRunId, Ht as expressionBuilder, I as PRISMA_ENUM_MEMBER_REGEX, In as resolveRegisteredModel, It as JsonExpression, J as buildFieldLine, Jn as getLastMigrationRun, Jt as raw, K as applyOperationsToPrismaSchema, Kn as findAppliedMigration, Kt as max, L as PRISMA_ENUM_REGEX, Ln as UnsupportedAdapterFeatureException, Lt as avg, M as resolvePersistedMetadataFeatures, Mn as registerModels, Mt as resolveGeneratedExpression, N as syncPersistedColumnMappingsFromState, Nn as registerPaths, Nt as AggregateExpression, O as readPersistedColumnMappingsState, On as loadModelsFrom, Ot as isMigrationPlanningActive, P as validatePersistedMetadataFeaturesForMigrations, Pn as registerSeeders, Pt as CaseExpression, Q as buildModelBlock, Qn as markMigrationRun, Qt as awaitConfiguredModelsRegistration, R as PRISMA_MODEL_REGEX, Rn as RuntimeModuleLoader, Rt as caseWhen, S as getPersistedColumnMap, Sn as getRegisteredMigrations, St as stripPrismaSchemaModelsAndEnums, T as getPersistedPrimaryKeyGeneration, Tn as getRegisteredSeeders, Tt as supportsDatabaseReset, U as applyMigrationRollbackToPrismaSchema, Un as computeMigrationChecksum, Ut as fn, V as applyDropTableOperation, Vn as buildMigrationIdentity, Vt as count, W as applyMigrationToDatabase, Wn as createEmptyAppliedMigrationsState, Wt as fromExpressionNode, X as buildInverseRelationLine, Xn as isMigrationApplied, Xt as val, Y as buildIndexLine, Yn as getLatestAppliedMigrations, Yt as sum, Z as buildMigrationSource, Zn as markMigrationApplied, Zt as where, _ as SetBasedEagerLoader, _n as isTransactionCapableClient, _t as resolveEnumName, a as MorphManyRelation, an as getActiveTransactionAdapter, ar as writeAppliedMigrationsStateToStore, at as deriveRelationAlias, b as createEmptyPersistedColumnMappingsState, bn as runArkormTransaction, bt as runMigrationWithPrisma, c as HasManyThroughRelation, cn as getRuntimeAdapter, cr as ArkormException, ct as escapeRegex, dn as getRuntimePaginationCurrentPageResolver, dt as formatDefaultValue, en as configureArkormRuntime, er as readAppliedMigrationsStateFromStore, et as buildRelationLine, f as BelongsToManyRelation, fn as getRuntimePaginationURLDriverFactory, ft as formatEnumDefaultValue, g as URLDriver, gn as isQuerySchemaLike, gt as pad, h as Paginator, hn as isDelegateLike, ht as getMigrationPlan, i as MorphOneRelation, in as ensureArkormConfigLoading, ir as writeAppliedMigrationsState, it as deriveInverseRelationAlias, j as resolveColumnMappingsFilePath, jn as registerMigrations, jt as TableBuilder, k as rebuildPersistedColumnMappingsState, kn as loadSeedersFrom, kt as SchemaBuilder, l as HasManyRelation, ln as getRuntimeClient, lt as findEnumBlock, m as LengthAwarePaginator, mn as getUserConfig, mt as generateMigrationFile, n as MorphedByManyRelation, nn as disposeArkormRuntime, nr as resolveMigrationStateFilePath, nt as createMigrationTimestamp, o as HasOneThroughRelation, on as getActiveTransactionClient, or as RelationResolutionException, ot as deriveRelationFieldName, p as Relation, pn as getRuntimePrismaClient, pt as formatRelationAction, q as buildEnumBlock, qn as getLastBatchMigrations, qt as min, r as MorphToManyRelation, rn as emitRuntimeDebugEvent, rr as supportsDatabaseMigrationState, rt as deriveCollectionFieldName, s as HasOneRelation, sn as getDefaultStubsPath, sr as ArkormCollection, st as deriveSingularFieldName, t as MorphToRelation, tn as defineConfig, tr as removeAppliedMigration, tt as buildUniqueConstraintLine, u as BelongsToRelation, un as getRuntimeDebugHandler, ut as findModelBlock, vn as loadArkormConfig, vt as resolveMigrationClassName, w as getPersistedEnumTsType, wn as getRegisteredPaths, wt as supportsDatabaseMigrationExecution, x as deletePersistedColumnMappingsState, xn as getRegisteredFactories, xt as runPrismaCommand, y as applyOperationsToPersistedColumnMappingsState, yn as resetArkormRuntimeForTests, yt as resolvePrismaType, z as applyAlterTableOperation, zn as PrimaryKeyGenerationPlanner, zt as coalesce } from "./relationship-DG3yhhK7.mjs";
|
|
2
2
|
import { Pool } from "pg";
|
|
3
3
|
import { extname, isAbsolute, join, relative, resolve } from "node:path";
|
|
4
4
|
import { existsSync, readFileSync, readdirSync, rmSync, writeFileSync } from "node:fs";
|
|
@@ -3254,22 +3254,30 @@ var CliApp = class {
|
|
|
3254
3254
|
syncModelRegistryTypes(modelFiles) {
|
|
3255
3255
|
const registryDir = join$1(realpathSync(process.cwd()), ".arkormx");
|
|
3256
3256
|
const registryPath = join$1(registryDir, "models.d.ts");
|
|
3257
|
+
const models = modelFiles.map((filePath) => {
|
|
3258
|
+
const parsed = this.parseModelSyncSource(readFileSync$1(filePath, "utf-8"));
|
|
3259
|
+
if (!parsed) return null;
|
|
3260
|
+
return {
|
|
3261
|
+
className: parsed.className,
|
|
3262
|
+
importPath: this.resolveModelRegistryImportPath(registryPath, filePath)
|
|
3263
|
+
};
|
|
3264
|
+
}).filter((model) => model !== null).sort((left, right) => left.className.localeCompare(right.className));
|
|
3265
|
+
const nameRegistryLines = models.map((model) => {
|
|
3266
|
+
return ` ${model.className}: true`;
|
|
3267
|
+
});
|
|
3257
3268
|
const content = [
|
|
3258
3269
|
"/* eslint-disable */",
|
|
3259
3270
|
"// This file is generated by `arkorm models:sync`.",
|
|
3260
3271
|
"",
|
|
3261
3272
|
"declare module 'arkormx' {",
|
|
3262
|
-
|
|
3263
|
-
|
|
3264
|
-
|
|
3265
|
-
|
|
3266
|
-
|
|
3267
|
-
|
|
3268
|
-
|
|
3269
|
-
|
|
3270
|
-
}).filter((model) => model !== null).sort((left, right) => left.className.localeCompare(right.className)).map((model) => {
|
|
3271
|
-
return ` ${model.className}: typeof import('${model.importPath}')['${model.className}']`;
|
|
3272
|
-
}),
|
|
3273
|
+
...models.flatMap((model) => [
|
|
3274
|
+
" function getModel(",
|
|
3275
|
+
` modelName: '${model.className}',`,
|
|
3276
|
+
` ): typeof import('${model.importPath}')['${model.className}']`,
|
|
3277
|
+
""
|
|
3278
|
+
]),
|
|
3279
|
+
" interface ArkormModelNameRegistry {",
|
|
3280
|
+
...nameRegistryLines,
|
|
3273
3281
|
" }",
|
|
3274
3282
|
"}",
|
|
3275
3283
|
"",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_relationship = require('../relationship-
|
|
2
|
+
const require_relationship = require('../relationship-DFBGmJ1I.cjs');
|
|
3
3
|
|
|
4
4
|
exports.BelongsToManyRelation = require_relationship.BelongsToManyRelation;
|
|
5
5
|
exports.BelongsToRelation = require_relationship.BelongsToRelation;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Cs as
|
|
1
|
+
import { Cs as Relation, Ss as BelongsToManyRelation, _s as HasOneRelation, bs as BelongsToRelation, ds as MorphToRelation, fs as MorphedByManyRelation, gs as HasOneThroughRelation, hs as MorphManyRelation, ms as MorphOneRelation, ps as MorphToManyRelation, us as SetBasedEagerLoader, vs as HasManyThroughRelation, ws as RelationTableLoader, xs as SingleResultRelation, ys as HasManyRelation } from "../index-D5P29WUY.cjs";
|
|
2
2
|
export { BelongsToManyRelation, BelongsToRelation, HasManyRelation, HasManyThroughRelation, HasOneRelation, HasOneThroughRelation, MorphManyRelation, MorphOneRelation, MorphToManyRelation, MorphToRelation, MorphedByManyRelation, Relation, RelationTableLoader, SetBasedEagerLoader, SingleResultRelation };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Cs as
|
|
1
|
+
import { Cs as Relation, Ss as BelongsToManyRelation, _s as HasOneRelation, bs as BelongsToRelation, ds as MorphToRelation, fs as MorphedByManyRelation, gs as HasOneThroughRelation, hs as MorphManyRelation, ms as MorphOneRelation, ps as MorphToManyRelation, us as SetBasedEagerLoader, vs as HasManyThroughRelation, ws as RelationTableLoader, xs as SingleResultRelation, ys as HasManyRelation } from "../index-M-1ywpZN.mjs";
|
|
2
2
|
export { BelongsToManyRelation, BelongsToRelation, HasManyRelation, HasManyThroughRelation, HasOneRelation, HasOneThroughRelation, MorphManyRelation, MorphOneRelation, MorphToManyRelation, MorphToRelation, MorphedByManyRelation, Relation, RelationTableLoader, SetBasedEagerLoader, SingleResultRelation };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { _ as SetBasedEagerLoader, a as MorphManyRelation, c as HasManyThroughRelation, d as SingleResultRelation, f as BelongsToManyRelation, i as MorphOneRelation, l as HasManyRelation, n as MorphedByManyRelation, o as HasOneThroughRelation, p as Relation, r as MorphToManyRelation, s as HasOneRelation, t as MorphToRelation, u as BelongsToRelation, v as RelationTableLoader } from "../relationship-
|
|
1
|
+
import { _ as SetBasedEagerLoader, a as MorphManyRelation, c as HasManyThroughRelation, d as SingleResultRelation, f as BelongsToManyRelation, i as MorphOneRelation, l as HasManyRelation, n as MorphedByManyRelation, o as HasOneThroughRelation, p as Relation, r as MorphToManyRelation, s as HasOneRelation, t as MorphToRelation, u as BelongsToRelation, v as RelationTableLoader } from "../relationship-DG3yhhK7.mjs";
|
|
2
2
|
|
|
3
3
|
export { BelongsToManyRelation, BelongsToRelation, HasManyRelation, HasManyThroughRelation, HasOneRelation, HasOneThroughRelation, MorphManyRelation, MorphOneRelation, MorphToManyRelation, MorphToRelation, MorphedByManyRelation, Relation, RelationTableLoader, SetBasedEagerLoader, SingleResultRelation };
|
|
@@ -6026,6 +6026,35 @@ var BelongsToManyRelation = class BelongsToManyRelation extends Relation {
|
|
|
6026
6026
|
resolveParentPivotValue() {
|
|
6027
6027
|
return this.parent.getAttribute(this.parentKey);
|
|
6028
6028
|
}
|
|
6029
|
+
/**
|
|
6030
|
+
* `column -> attribute` for the pivot table, memoized.
|
|
6031
|
+
*
|
|
6032
|
+
* The query adapter maps result rows back to attribute names via
|
|
6033
|
+
* `reverseColumnMap`, so a pivot column such as `permission_id` is returned
|
|
6034
|
+
* under `permissionId` whenever the pivot table has a registered column map.
|
|
6035
|
+
*/
|
|
6036
|
+
pivotColumnAliases() {
|
|
6037
|
+
if (!this.pivotColumnAliasCache) {
|
|
6038
|
+
this.pivotColumnAliasCache = /* @__PURE__ */ new Map();
|
|
6039
|
+
for (const [attribute, column] of Object.entries(this.buildPivotTarget().columns ?? {})) this.pivotColumnAliasCache.set(column, attribute);
|
|
6040
|
+
}
|
|
6041
|
+
return this.pivotColumnAliasCache;
|
|
6042
|
+
}
|
|
6043
|
+
/**
|
|
6044
|
+
* Read a pivot column from a selected row under whichever key it is stored.
|
|
6045
|
+
*
|
|
6046
|
+
* Rows read through the query adapter are keyed by attribute name, while
|
|
6047
|
+
* rows from the lightweight table loader keep their raw column names.
|
|
6048
|
+
* Indexing only by the raw column made `sync` (and pivot attachment during
|
|
6049
|
+
* eager loads) treat every existing row as absent, so `sync` re-inserted
|
|
6050
|
+
* rows that already existed and tripped the pivot's unique constraint. Try
|
|
6051
|
+
* the raw column first, then its attribute alias.
|
|
6052
|
+
*/
|
|
6053
|
+
readPivotColumn(row, column) {
|
|
6054
|
+
if (row[column] != null) return row[column];
|
|
6055
|
+
const alias = this.pivotColumnAliases().get(column);
|
|
6056
|
+
return alias != null ? row[alias] : void 0;
|
|
6057
|
+
}
|
|
6029
6058
|
resolveRelatedPivotValue(related) {
|
|
6030
6059
|
if (related && typeof related === "object" && "getAttribute" in related) return related.getAttribute(this.relatedKey);
|
|
6031
6060
|
return related;
|
|
@@ -6214,7 +6243,7 @@ var BelongsToManyRelation = class BelongsToManyRelation extends Relation {
|
|
|
6214
6243
|
let updated = 0;
|
|
6215
6244
|
const existingKeys = /* @__PURE__ */ new Set();
|
|
6216
6245
|
for (const row of existingRows) {
|
|
6217
|
-
const relatedValue = row
|
|
6246
|
+
const relatedValue = this.readPivotColumn(row, this.relatedPivotKey);
|
|
6218
6247
|
if (relatedValue == null) continue;
|
|
6219
6248
|
const relatedKey = String(relatedValue);
|
|
6220
6249
|
existingKeys.add(relatedKey);
|
|
@@ -6272,7 +6301,7 @@ var BelongsToManyRelation = class BelongsToManyRelation extends Relation {
|
|
|
6272
6301
|
if (!this.shouldAttachPivotAttributes()) return results;
|
|
6273
6302
|
const pivotByRelatedKey = /* @__PURE__ */ new Map();
|
|
6274
6303
|
pivotRows.forEach((row) => {
|
|
6275
|
-
const relatedValue = row
|
|
6304
|
+
const relatedValue = this.readPivotColumn(row, this.relatedPivotKey);
|
|
6276
6305
|
if (relatedValue == null) return;
|
|
6277
6306
|
pivotByRelatedKey.set(String(relatedValue), row);
|
|
6278
6307
|
});
|
|
@@ -6335,7 +6364,7 @@ var BelongsToManyRelation = class BelongsToManyRelation extends Relation {
|
|
|
6335
6364
|
*/
|
|
6336
6365
|
async getQuery() {
|
|
6337
6366
|
const pivotRows = await this.loadPivotRowsForParent();
|
|
6338
|
-
const ids = pivotRows.map((row) => row
|
|
6367
|
+
const ids = pivotRows.map((row) => this.readPivotColumn(row, this.relatedPivotKey));
|
|
6339
6368
|
return this.decorateQueryBuilder(this.applyConstraint(this.related.query().where({ [this.relatedKey]: { in: ids } })), pivotRows);
|
|
6340
6369
|
}
|
|
6341
6370
|
getMetadata() {
|
|
@@ -5998,6 +5998,35 @@ var BelongsToManyRelation = class BelongsToManyRelation extends Relation {
|
|
|
5998
5998
|
resolveParentPivotValue() {
|
|
5999
5999
|
return this.parent.getAttribute(this.parentKey);
|
|
6000
6000
|
}
|
|
6001
|
+
/**
|
|
6002
|
+
* `column -> attribute` for the pivot table, memoized.
|
|
6003
|
+
*
|
|
6004
|
+
* The query adapter maps result rows back to attribute names via
|
|
6005
|
+
* `reverseColumnMap`, so a pivot column such as `permission_id` is returned
|
|
6006
|
+
* under `permissionId` whenever the pivot table has a registered column map.
|
|
6007
|
+
*/
|
|
6008
|
+
pivotColumnAliases() {
|
|
6009
|
+
if (!this.pivotColumnAliasCache) {
|
|
6010
|
+
this.pivotColumnAliasCache = /* @__PURE__ */ new Map();
|
|
6011
|
+
for (const [attribute, column] of Object.entries(this.buildPivotTarget().columns ?? {})) this.pivotColumnAliasCache.set(column, attribute);
|
|
6012
|
+
}
|
|
6013
|
+
return this.pivotColumnAliasCache;
|
|
6014
|
+
}
|
|
6015
|
+
/**
|
|
6016
|
+
* Read a pivot column from a selected row under whichever key it is stored.
|
|
6017
|
+
*
|
|
6018
|
+
* Rows read through the query adapter are keyed by attribute name, while
|
|
6019
|
+
* rows from the lightweight table loader keep their raw column names.
|
|
6020
|
+
* Indexing only by the raw column made `sync` (and pivot attachment during
|
|
6021
|
+
* eager loads) treat every existing row as absent, so `sync` re-inserted
|
|
6022
|
+
* rows that already existed and tripped the pivot's unique constraint. Try
|
|
6023
|
+
* the raw column first, then its attribute alias.
|
|
6024
|
+
*/
|
|
6025
|
+
readPivotColumn(row, column) {
|
|
6026
|
+
if (row[column] != null) return row[column];
|
|
6027
|
+
const alias = this.pivotColumnAliases().get(column);
|
|
6028
|
+
return alias != null ? row[alias] : void 0;
|
|
6029
|
+
}
|
|
6001
6030
|
resolveRelatedPivotValue(related) {
|
|
6002
6031
|
if (related && typeof related === "object" && "getAttribute" in related) return related.getAttribute(this.relatedKey);
|
|
6003
6032
|
return related;
|
|
@@ -6186,7 +6215,7 @@ var BelongsToManyRelation = class BelongsToManyRelation extends Relation {
|
|
|
6186
6215
|
let updated = 0;
|
|
6187
6216
|
const existingKeys = /* @__PURE__ */ new Set();
|
|
6188
6217
|
for (const row of existingRows) {
|
|
6189
|
-
const relatedValue = row
|
|
6218
|
+
const relatedValue = this.readPivotColumn(row, this.relatedPivotKey);
|
|
6190
6219
|
if (relatedValue == null) continue;
|
|
6191
6220
|
const relatedKey = String(relatedValue);
|
|
6192
6221
|
existingKeys.add(relatedKey);
|
|
@@ -6244,7 +6273,7 @@ var BelongsToManyRelation = class BelongsToManyRelation extends Relation {
|
|
|
6244
6273
|
if (!this.shouldAttachPivotAttributes()) return results;
|
|
6245
6274
|
const pivotByRelatedKey = /* @__PURE__ */ new Map();
|
|
6246
6275
|
pivotRows.forEach((row) => {
|
|
6247
|
-
const relatedValue = row
|
|
6276
|
+
const relatedValue = this.readPivotColumn(row, this.relatedPivotKey);
|
|
6248
6277
|
if (relatedValue == null) return;
|
|
6249
6278
|
pivotByRelatedKey.set(String(relatedValue), row);
|
|
6250
6279
|
});
|
|
@@ -6307,7 +6336,7 @@ var BelongsToManyRelation = class BelongsToManyRelation extends Relation {
|
|
|
6307
6336
|
*/
|
|
6308
6337
|
async getQuery() {
|
|
6309
6338
|
const pivotRows = await this.loadPivotRowsForParent();
|
|
6310
|
-
const ids = pivotRows.map((row) => row
|
|
6339
|
+
const ids = pivotRows.map((row) => this.readPivotColumn(row, this.relatedPivotKey));
|
|
6311
6340
|
return this.decorateQueryBuilder(this.applyConstraint(this.related.query().where({ [this.relatedKey]: { in: ids } })), pivotRows);
|
|
6312
6341
|
}
|
|
6313
6342
|
getMetadata() {
|