arkormx 2.12.0 → 2.12.1
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 +1 -1
- package/dist/{index-D7YII9Fu.d.cts → index-3-Sgl4-j.d.cts} +46 -42
- package/dist/{index-XrPjh7V8.d.mts → index-CwRrmbzl.d.mts} +46 -42
- package/dist/index.cjs +2 -4
- package/dist/index.d.cts +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +3 -3
- 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-BoQDV6gx.cjs → relationship-B7dIK_Vc.cjs} +75 -81
- package/dist/{relationship-2jzLUHCB.mjs → relationship-CrNsvYto.mjs} +76 -76
- package/package.json +2 -1
package/dist/cli.mjs
CHANGED
|
@@ -4343,7 +4343,7 @@ var CliApp = class {
|
|
|
4343
4343
|
return lines.join("\n");
|
|
4344
4344
|
}
|
|
4345
4345
|
parseModelSyncSource(modelSource) {
|
|
4346
|
-
const classMatch = modelSource.match(/export\s+class\s+(\w+)\s+extends\s
|
|
4346
|
+
const classMatch = modelSource.match(/export\s+(?:abstract\s+)?class\s+(\w+)\s+extends\s+/);
|
|
4347
4347
|
if (!classMatch) return null;
|
|
4348
4348
|
const className = classMatch[1];
|
|
4349
4349
|
const tableMatch = modelSource.match(/protected\s+static\s+override\s+table\s*=\s*['"]([^'"]+)['"]/) ?? modelSource.match(/static\s+table\s*=\s*['"]([^'"]+)['"]/);
|
|
@@ -1912,41 +1912,6 @@ declare class HasOneThroughRelation<TParent, TRelated> extends SingleResultRelat
|
|
|
1912
1912
|
getResults(): Promise<TRelated | null>;
|
|
1913
1913
|
}
|
|
1914
1914
|
//#endregion
|
|
1915
|
-
//#region src/relationship/MorphedByManyRelation.d.ts
|
|
1916
|
-
/**
|
|
1917
|
-
* Defines the inverse side of a polymorphic many-to-many relationship.
|
|
1918
|
-
*
|
|
1919
|
-
* @author Legacy (3m1n3nc3)
|
|
1920
|
-
* @since 2.12.0
|
|
1921
|
-
*/
|
|
1922
|
-
declare class MorphedByManyRelation<TParent, TRelated> extends Relation<TRelated> {
|
|
1923
|
-
private readonly parent;
|
|
1924
|
-
private readonly related;
|
|
1925
|
-
private readonly throughTable;
|
|
1926
|
-
private readonly morphName;
|
|
1927
|
-
private readonly foreignPivotKey;
|
|
1928
|
-
private readonly morphTypeColumn;
|
|
1929
|
-
private readonly relatedPivotKey;
|
|
1930
|
-
private readonly parentKey;
|
|
1931
|
-
private readonly relatedKey;
|
|
1932
|
-
constructor(parent: TParent & {
|
|
1933
|
-
getAttribute: (key: string) => unknown;
|
|
1934
|
-
}, related: RelationshipModelStatic, throughTable: string, morphName: string, foreignPivotKey: string, morphTypeColumn: string, relatedPivotKey: string, parentKey: string, relatedKey: string);
|
|
1935
|
-
/**
|
|
1936
|
-
* Build the relationship query.
|
|
1937
|
-
*
|
|
1938
|
-
* @returns
|
|
1939
|
-
*/
|
|
1940
|
-
getQuery(): Promise<QueryBuilder<TRelated>>;
|
|
1941
|
-
getMetadata(): MorphedByManyRelationMetadata;
|
|
1942
|
-
/**
|
|
1943
|
-
* Fetch the related models.
|
|
1944
|
-
*
|
|
1945
|
-
* @returns
|
|
1946
|
-
*/
|
|
1947
|
-
getResults(): Promise<ArkormCollection<TRelated>>;
|
|
1948
|
-
}
|
|
1949
|
-
//#endregion
|
|
1950
1915
|
//#region src/relationship/MorphManyRelation.d.ts
|
|
1951
1916
|
/**
|
|
1952
1917
|
* Defines a polymorphic one-to-many relationship.
|
|
@@ -2048,6 +2013,41 @@ declare class MorphToManyRelation<TParent, TRelated> extends Relation<TRelated>
|
|
|
2048
2013
|
getResults(): Promise<ArkormCollection<TRelated>>;
|
|
2049
2014
|
}
|
|
2050
2015
|
//#endregion
|
|
2016
|
+
//#region src/relationship/MorphedByManyRelation.d.ts
|
|
2017
|
+
/**
|
|
2018
|
+
* Defines the inverse side of a polymorphic many-to-many relationship.
|
|
2019
|
+
*
|
|
2020
|
+
* @author Legacy (3m1n3nc3)
|
|
2021
|
+
* @since 2.12.0
|
|
2022
|
+
*/
|
|
2023
|
+
declare class MorphedByManyRelation<TParent, TRelated> extends Relation<TRelated> {
|
|
2024
|
+
private readonly parent;
|
|
2025
|
+
private readonly related;
|
|
2026
|
+
private readonly throughTable;
|
|
2027
|
+
private readonly morphName;
|
|
2028
|
+
private readonly foreignPivotKey;
|
|
2029
|
+
private readonly morphTypeColumn;
|
|
2030
|
+
private readonly relatedPivotKey;
|
|
2031
|
+
private readonly parentKey;
|
|
2032
|
+
private readonly relatedKey;
|
|
2033
|
+
constructor(parent: TParent & {
|
|
2034
|
+
getAttribute: (key: string) => unknown;
|
|
2035
|
+
}, related: RelationshipModelStatic, throughTable: string, morphName: string, foreignPivotKey: string, morphTypeColumn: string, relatedPivotKey: string, parentKey: string, relatedKey: string);
|
|
2036
|
+
/**
|
|
2037
|
+
* Build the relationship query.
|
|
2038
|
+
*
|
|
2039
|
+
* @returns
|
|
2040
|
+
*/
|
|
2041
|
+
getQuery(): Promise<QueryBuilder<TRelated>>;
|
|
2042
|
+
getMetadata(): MorphedByManyRelationMetadata;
|
|
2043
|
+
/**
|
|
2044
|
+
* Fetch the related models.
|
|
2045
|
+
*
|
|
2046
|
+
* @returns
|
|
2047
|
+
*/
|
|
2048
|
+
getResults(): Promise<ArkormCollection<TRelated>>;
|
|
2049
|
+
}
|
|
2050
|
+
//#endregion
|
|
2051
2051
|
//#region src/relationship/MorphToRelation.d.ts
|
|
2052
2052
|
type MorphToParent = {
|
|
2053
2053
|
getAttribute: (key: string) => unknown;
|
|
@@ -3292,6 +3292,7 @@ declare abstract class Model<TSchema extends ModelQuerySchemaLike | Record<strin
|
|
|
3292
3292
|
*/
|
|
3293
3293
|
protected hasOne<TRelatedClass extends RelatedModelClass>(related: TRelatedClass, foreignKey: string, localKey?: string): HasOneRelation<this, InstanceType<TRelatedClass>>;
|
|
3294
3294
|
protected hasOne<TName extends RegisteredModelName>(related: TName, foreignKey?: string, localKey?: string): HasOneRelation<this, RegisteredModelInstance<TName>>;
|
|
3295
|
+
protected hasOne(related: string, foreignKey?: string, localKey?: string): HasOneRelation<this, Model>;
|
|
3295
3296
|
/**
|
|
3296
3297
|
* Define a has many relationship.
|
|
3297
3298
|
*
|
|
@@ -3302,6 +3303,7 @@ declare abstract class Model<TSchema extends ModelQuerySchemaLike | Record<strin
|
|
|
3302
3303
|
*/
|
|
3303
3304
|
protected hasMany<TRelatedClass extends RelatedModelClass>(related: TRelatedClass, foreignKey: string, localKey?: string): HasManyRelation<this, InstanceType<TRelatedClass>>;
|
|
3304
3305
|
protected hasMany<TName extends RegisteredModelName>(related: TName, foreignKey?: string, localKey?: string): HasManyRelation<this, RegisteredModelInstance<TName>>;
|
|
3306
|
+
protected hasMany(related: string, foreignKey?: string, localKey?: string): HasManyRelation<this, Model>;
|
|
3305
3307
|
/**
|
|
3306
3308
|
* Define a belongs to relationship.
|
|
3307
3309
|
*
|
|
@@ -3312,6 +3314,7 @@ declare abstract class Model<TSchema extends ModelQuerySchemaLike | Record<strin
|
|
|
3312
3314
|
*/
|
|
3313
3315
|
protected belongsTo<TRelatedClass extends RelatedModelClass>(related: TRelatedClass, foreignKey: string, ownerKey?: string): BelongsToRelation<this, InstanceType<TRelatedClass>>;
|
|
3314
3316
|
protected belongsTo<TName extends RegisteredModelName>(related: TName, foreignKey?: string, ownerKey?: string): BelongsToRelation<this, RegisteredModelInstance<TName>>;
|
|
3317
|
+
protected belongsTo(related: string, foreignKey?: string, ownerKey?: string): BelongsToRelation<this, Model>;
|
|
3315
3318
|
/**
|
|
3316
3319
|
* Define a belongs to many relationship.
|
|
3317
3320
|
*
|
|
@@ -3325,6 +3328,7 @@ declare abstract class Model<TSchema extends ModelQuerySchemaLike | Record<strin
|
|
|
3325
3328
|
*/
|
|
3326
3329
|
protected belongsToMany<TRelatedClass extends RelatedModelClass>(related: TRelatedClass, throughTable: string, foreignPivotKey: string, relatedPivotKey: string, parentKey?: string, relatedKey?: string): BelongsToManyRelation<this, InstanceType<TRelatedClass>>;
|
|
3327
3330
|
protected belongsToMany<TName extends RegisteredModelName>(related: TName, throughTable: string, foreignPivotKey: string, relatedPivotKey: string, parentKey?: string, relatedKey?: string): BelongsToManyRelation<this, RegisteredModelInstance<TName>>;
|
|
3331
|
+
protected belongsToMany(related: string, throughTable: string, foreignPivotKey: string, relatedPivotKey: string, parentKey?: string, relatedKey?: string): BelongsToManyRelation<this, Model>;
|
|
3328
3332
|
/**
|
|
3329
3333
|
* Define a has one through relationship.
|
|
3330
3334
|
*
|
|
@@ -3338,6 +3342,7 @@ declare abstract class Model<TSchema extends ModelQuerySchemaLike | Record<strin
|
|
|
3338
3342
|
*/
|
|
3339
3343
|
protected hasOneThrough<TRelatedClass extends RelatedModelClass>(related: TRelatedClass, throughTable: string, firstKey: string, secondKey: string, localKey?: string, secondLocalKey?: string): HasOneThroughRelation<this, InstanceType<TRelatedClass>>;
|
|
3340
3344
|
protected hasOneThrough<TName extends RegisteredModelName>(related: TName, throughTable: string, firstKey: string, secondKey: string, localKey?: string, secondLocalKey?: string): HasOneThroughRelation<this, RegisteredModelInstance<TName>>;
|
|
3345
|
+
protected hasOneThrough(related: string, throughTable: string, firstKey: string, secondKey: string, localKey?: string, secondLocalKey?: string): HasOneThroughRelation<this, Model>;
|
|
3341
3346
|
/**
|
|
3342
3347
|
* Define a has many through relationship.
|
|
3343
3348
|
*
|
|
@@ -3351,6 +3356,7 @@ declare abstract class Model<TSchema extends ModelQuerySchemaLike | Record<strin
|
|
|
3351
3356
|
*/
|
|
3352
3357
|
protected hasManyThrough<TRelatedClass extends RelatedModelClass>(related: TRelatedClass, throughTable: string, firstKey: string, secondKey: string, localKey?: string, secondLocalKey?: string): HasManyThroughRelation<this, InstanceType<TRelatedClass>>;
|
|
3353
3358
|
protected hasManyThrough<TName extends RegisteredModelName>(related: TName, throughTable: string, firstKey: string, secondKey: string, localKey?: string, secondLocalKey?: string): HasManyThroughRelation<this, RegisteredModelInstance<TName>>;
|
|
3359
|
+
protected hasManyThrough(related: string, throughTable: string, firstKey: string, secondKey: string, localKey?: string, secondLocalKey?: string): HasManyThroughRelation<this, Model>;
|
|
3354
3360
|
/**
|
|
3355
3361
|
* Define a polymorphic one to one relationship.
|
|
3356
3362
|
*
|
|
@@ -3363,6 +3369,7 @@ declare abstract class Model<TSchema extends ModelQuerySchemaLike | Record<strin
|
|
|
3363
3369
|
*/
|
|
3364
3370
|
protected morphOne<TRelatedClass extends RelatedModelClass>(related: TRelatedClass, morphName: string, idColumn?: string, typeColumn?: string, localKey?: string): MorphOneRelation<this, InstanceType<TRelatedClass>>;
|
|
3365
3371
|
protected morphOne<TName extends RegisteredModelName>(related: TName, morphName: string, idColumn?: string, typeColumn?: string, localKey?: string): MorphOneRelation<this, RegisteredModelInstance<TName>>;
|
|
3372
|
+
protected morphOne(related: string, morphName: string, idColumn?: string, typeColumn?: string, localKey?: string): MorphOneRelation<this, Model>;
|
|
3366
3373
|
/**
|
|
3367
3374
|
* Define a polymorphic one to many relationship.
|
|
3368
3375
|
*
|
|
@@ -3375,6 +3382,7 @@ declare abstract class Model<TSchema extends ModelQuerySchemaLike | Record<strin
|
|
|
3375
3382
|
*/
|
|
3376
3383
|
protected morphMany<TRelatedClass extends RelatedModelClass>(related: TRelatedClass, morphName: string, idColumn?: string, typeColumn?: string, localKey?: string): MorphManyRelation<this, InstanceType<TRelatedClass>>;
|
|
3377
3384
|
protected morphMany<TName extends RegisteredModelName>(related: TName, morphName: string, idColumn?: string, typeColumn?: string, localKey?: string): MorphManyRelation<this, RegisteredModelInstance<TName>>;
|
|
3385
|
+
protected morphMany(related: string, morphName: string, idColumn?: string, typeColumn?: string, localKey?: string): MorphManyRelation<this, Model>;
|
|
3378
3386
|
/**
|
|
3379
3387
|
* Define the inverse side of a polymorphic relationship.
|
|
3380
3388
|
*
|
|
@@ -3401,6 +3409,7 @@ declare abstract class Model<TSchema extends ModelQuerySchemaLike | Record<strin
|
|
|
3401
3409
|
*/
|
|
3402
3410
|
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>>;
|
|
3403
3411
|
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>>;
|
|
3412
|
+
protected morphToMany(related: string, morphName: string, throughTable?: string, foreignPivotKey?: string, morphTypeColumn?: string, relatedPivotKey?: string, parentKey?: string, relatedKey?: string): MorphToManyRelation<this, Model>;
|
|
3404
3413
|
/**
|
|
3405
3414
|
* Define the inverse side of a polymorphic many-to-many relationship.
|
|
3406
3415
|
*
|
|
@@ -3416,6 +3425,7 @@ declare abstract class Model<TSchema extends ModelQuerySchemaLike | Record<strin
|
|
|
3416
3425
|
*/
|
|
3417
3426
|
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>>;
|
|
3418
3427
|
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>>;
|
|
3428
|
+
protected morphedByMany(related: string, morphName: string, throughTable?: string, foreignPivotKey?: string, morphTypeColumn?: string, relatedPivotKey?: string, parentKey?: string, relatedKey?: string): MorphedByManyRelation<this, Model>;
|
|
3419
3429
|
private resolveRelationshipModel;
|
|
3420
3430
|
private resolveDefaultHasForeignKey;
|
|
3421
3431
|
private resolveDefaultBelongsToForeignKey;
|
|
@@ -8285,12 +8295,6 @@ declare const getLatestAppliedMigrations: (state: AppliedMigrationsState, steps:
|
|
|
8285
8295
|
*/
|
|
8286
8296
|
declare const getLastBatchMigrations: (state: AppliedMigrationsState, batches?: number) => AppliedMigrationEntry[];
|
|
8287
8297
|
//#endregion
|
|
8288
|
-
//#region src/helpers/migration-planning.d.ts
|
|
8289
|
-
/** Runs `fn` in a side-effect-free migration-planning context. */
|
|
8290
|
-
declare const runInMigrationPlanning: <TResult>(fn: () => Promise<TResult> | TResult) => Promise<TResult>;
|
|
8291
|
-
/** True when a migration body is being invoked only to collect its schema plan. */
|
|
8292
|
-
declare const isMigrationPlanningActive: () => boolean;
|
|
8293
|
-
//#endregion
|
|
8294
8298
|
//#region src/helpers/migrations.d.ts
|
|
8295
8299
|
declare const PRISMA_MODEL_REGEX: RegExp;
|
|
8296
8300
|
declare const PRISMA_ENUM_REGEX: RegExp;
|
|
@@ -8815,4 +8819,4 @@ declare class URLDriver {
|
|
|
8815
8819
|
url(page: number): string;
|
|
8816
8820
|
}
|
|
8817
8821
|
//#endregion
|
|
8818
|
-
export { buildPrimaryKeyLine as $, TransactionContext as $a, SchemaTableCreateOperation as $c, ClientResolver as $i, Arkorm as $n, fn as $o, DeleteSpec as $r, FactoryModelConstructor as $s, PersistedTimestampColumn as $t, isQuerySchemaLike as A, PrismaLikeWhereInput as Aa, MorphToRelationMetadata as Ac, QueryTarget as Ai, Migration as An, ModelOrderByInput as Ao, PrismaDelegateNameMapping as Ar, RelationConstraint as As, buildMigrationIdentity as At, applyCreateTableOperation as B, QuerySchemaRows as Ba, MigrationClass as Bc, UpdateManySpec as Bi, MigrateRollbackCommand as Bn, RelatedModelClass as Bo, AdapterModelIntrospectionOptions as Br, JoinSource as Bs, markMigrationApplied as Bt, getRuntimeClient as C, PrismaDelegateLike as Ca, HasManyThroughRelationMetadata as Cc, QueryJsonConditionKind as Ci, QueryConstraintException as Cn, ModelDeclaredAttributeKey as Co, resolveRegisteredModel as Cr, BelongsToManyRelation as Cs, supportsDatabaseCreation as Ct, getRuntimePrismaClient as D, PrismaLikeScalarFilter as Da, MorphManyRelationMetadata as Dc, QueryRawCondition as Di, ArkormException as Dn, ModelEventListener as Do, SeederConstructor as Dr, RelationAggregateInput as Ds, toModelName as Dt, getRuntimePaginationURLDriverFactory as E, PrismaLikeOrderBy as Ea, ModelMetadata as Ec, QueryOrderBy as Ei, ArkormErrorContext as En, ModelEventHandlerConstructor as Eo, SeederCallArgument as Er, RelationAggregateConstraint as Es, toMigrationFileSlug as Et, PrimaryKeyGenerationPlanner as F, QuerySchemaCreateData as Fa, AppliedMigrationEntry as Fc, RelationLoadPlan as Fi, resolveGeneratedExpression as Fn, QuerySchemaForModel as Fo, AdapterCapabilities as Fr, RelationResultCache as Fs, findAppliedMigration as Ft, applyMigrationToPrismaSchema as G, QuerySchemaWhere as Ga, SchemaColumn as Gc, ArkormBootContext as Gi, MakeMigrationCommand as Gn, ExpressionBuilder as Go, AggregateSelection as Gr, LengthAwarePaginator as Gs, resolveMigrationStateFilePath as Gt, applyMigrationRollbackToDatabase as H, QuerySchemaUniqueWhere as Ha, PrimaryKeyGeneration as Hc, UpsertSpec as Hi, MigrateCommand as Hn, AggregateExpression as Ho, AdapterQueryOperation as Hr, RelatedModelFromResult as Hs, readAppliedMigrationsState as Ht, PRISMA_ENUM_MEMBER_REGEX as I, QuerySchemaFindManyArgs as Ia, AppliedMigrationRun as Ic, RelationLoadSpec as Ii, ForeignKeyBuilder as In, QuerySchemaForModelInstance as Io, AdapterCapability as Ir, RelationTableLookupSpec as Is, getLastBatchMigrations as It, buildFieldLine as J, Serializable as Ja, SchemaForeignKeyAction as Jc, ArkormDebugHandler as Ji, DbCommand as Jn, caseWhen as Jo, DatabasePrimitive as Jr, FactoryAttributeResolver as Js, writeAppliedMigrationsStateToStore as Jt, applyOperationsToPrismaSchema as K, RawSelectInput as Ka, SchemaColumnType as Kc, ArkormConfig as Ki, MakeFactoryCommand as Kn, JsonExpression as Ko, AggregateSpec as Kr, Paginator as Ks, supportsDatabaseMigrationState as Kt, PRISMA_ENUM_REGEX as L, QuerySchemaInclude as La, AppliedMigrationsState as Lc, SelectSpec as Li, SeedCommand as Ln, RegisteredModelClass as Lo, AdapterDatabaseCreationResult as Lr, EagerLoadQueryForRelationship as Ls, getLastMigrationRun as Lt, loadArkormConfig as M, PrismaTransactionCapableClient as Ma, PivotModelStatic as Mc, RawQuerySpec as Mi, EnumBuilder as Mn, ModelRelationshipResult as Mo, createPrismaDatabaseAdapter as Mr, RelationDefaultValue as Ms, computeMigrationChecksum as Mt, resetArkormRuntimeForTests as N, PrismaTransactionContext as Na, RelationMetadata as Nc, RelationAggregateSpec as Ni, TableBuilder as Nn, ModelUpdateData as No, KyselyDatabaseAdapter as Nr, RelationMetadataProvider as Ns, createEmptyAppliedMigrationsState as Nt, getUserConfig as O, PrismaLikeSelect as Oa, MorphOneRelationMetadata as Oc, QueryScalarComparisonOperator as Oi, DB as On, ModelEventName as Oo, SeederInput as Or, RelationAggregateType as Os, isMigrationPlanningActive as Ot, runArkormTransaction as P, PrismaTransactionOptions as Pa, RelationMetadataType as Pc, RelationFilterSpec as Pi, GeneratedColumnExpression as Pn, ModelWhereInput as Po, createKyselyAdapter as Pr, RelationResult as Ps, deleteAppliedMigrationsStateFromStore as Pt, buildModelBlock as Q, TransactionCapableClient as Qa, SchemaTableAlterOperation as Qc, CastType as Qi, AttributeOptions as Qn, expressionBuilder as Qo, DeleteManySpec as Qr, FactoryDefinitionAttributes as Qs, PersistedTableMetadata as Qt, PRISMA_MODEL_REGEX as R, QuerySchemaOrderBy as Ra, GenerateMigrationOptions as Rc, SoftDeleteQueryMode as Ri, ModelsSyncCommand as Rn, RegisteredModelInstance as Ro, AdapterInspectionRequest as Rr, EagerLoadRelations as Rs, getLatestAppliedMigrations as Rt, getRuntimeAdapter as S, PrismaClientLike as Sa, HasManyRelationMetadata as Sc, QueryJsonCondition as Si, QueryExecutionExceptionContext as Sn, ModelCreateData as So, resetRuntimeRegistryForTests as Sr, SingleResultRelation as Ss, stripPrismaSchemaModelsAndEnums as St, getRuntimePaginationCurrentPageResolver as T, PrismaLikeInclude as Ta, HasOneThroughRelationMetadata as Tc, QueryNotCondition as Ti, MissingDelegateException as Tn, ModelEventHandler as To, Seeder as Tr, RelationTableLoader as Ts, supportsDatabaseReset as Tt, applyMigrationRollbackToPrismaSchema as U, QuerySchemaUpdateArgs as Ua, PrismaMigrationWorkflowOptions as Uc, AdapterBindableModel as Ui, MakeSeederCommand as Un, CaseExpression as Uo, AdapterTransactionContext as Ur, WhereCallback as Us, readAppliedMigrationsStateFromStore as Ut, applyDropTableOperation as V, QuerySchemaSelect as Va, MigrationInstanceLike as Vc, UpdateSpec as Vi, MigrateFreshCommand as Vn, Model as Vo, AdapterModelStructure as Vr, RelatedModelForRelationship as Vs, markMigrationRun as Vt, applyMigrationToDatabase as W, QuerySchemaUpdateData as Wa, PrismaSchemaSyncOptions as Wc, AdapterQueryInspection as Wi, MakeModelCommand as Wn, Expression as Wo, AggregateOperation as Wr, JoinClause as Ws, removeAppliedMigration as Wt, buildInverseRelationLine as X, SoftDeleteConfig as Xa, SchemaOperation as Xc, CastHandler as Xi, resolveCast as Xn, col as Xo, DatabaseRows as Xr, FactoryCallback as Xs, PersistedMetadataFeatures as Xt, buildIndexLine as Y, SimplePaginationMeta as Ya, SchemaIndex as Yc, CastDefinition as Yi, CliApp as Yn, coalesce as Yo, DatabaseRow as Yr, FactoryAttributes as Ys, PersistedColumnMappingsState as Yt, buildMigrationSource as Z, TransactionCallback as Za, SchemaPrimaryKey as Zc, CastMap as Zi, Attribute as Zn, count as Zo, DatabaseValue as Zr, FactoryDefinition as Zs, PersistedPrimaryKeyGeneration as Zt, emitRuntimeDebugEvent as _, PaginationCurrentPageResolver as _a, DatabaseTableOptions as _c, QueryJoinNestedConstraint as _i, UnsupportedAdapterFeatureException as _n, DelegateForModelSchema as _o, registerFactories as _r, HasOneThroughRelation as _s, resolveEnumName as _t, getRuntimeCompatibilityAdapter as a, DelegateRows as aa, CaseExpressionBranch as ac, QueryComparisonOperator as ai, getPersistedEnumTsType as an, ExpressionSelectMap as ao, RuntimePathInput as ar, sum as as, deriveRelationAlias as at, getActiveTransactionClient as b, PaginationURLDriver as ba, BelongsToRelationMetadata as bc, QueryJoinType as bi, RelationResolutionException as bn, ModelAttributes as bo, registerPaths as br, HasManyRelation as bs, runMigrationWithPrisma as bt, PrismaDelegateMap as c, DelegateUpdateArgs as ca, ExpressionBinaryOperator as cc, QueryExistsCondition as ci, getPersistedTimestampColumns as cn, QueryBuilder as co, getRegisteredFactories as cr, InlineFactory as cs, escapeRegex as ct, inferDelegateName as d, EagerLoadConstraint as da, FunctionExpressionNode as dc, QueryGroupByItem as di, resetPersistedColumnMappingsCache as dn, AttributeOrderBy as do, getRegisteredPaths as dr, SetBasedEagerLoader as ds, formatDefaultValue as dt, DelegateCreateData as ea, FactoryRelationshipResolver as ec, InsertManySpec as ei, SchemaTableDropOperation as el, applyOperationsToPersistedColumnMappingsState as en, TransactionOptions as eo, Arkormx as er, fromExpressionNode as es, buildRelationLine as et, awaitConfiguredModelsRegistration as f, EagerLoadMap as fa, InExpressionNode as fc, QueryGroupCondition as fi, resolveColumnMappingsFilePath as fn, AttributeQuerySchema as fo, getRegisteredSeeders as fr, MorphToRelation as fs, formatEnumDefaultValue as ft, disposeArkormRuntime as g, NamingCase as ga, ValueExpressionNode as gc, QueryJoinConstraint as gi, writePersistedColumnMappingsState as gn, AttributeWhereInput as go, loadSeedersFrom as gr, MorphedByManyRelation as gs, pad as gt, defineConfig as h, ModelTableCase as ha, RawExpressionNode as hc, QueryJoinColumnConstraint as hi, validatePersistedMetadataFeaturesForMigrations as hn, AttributeUpdateInput as ho, loadModelsFrom as hr, MorphManyRelation as hs, getMigrationPlan as ht, RuntimeModuleLoader as i, DelegateRow as ia, BinaryExpressionNode as ic, QueryComparisonCondition as ii, TimestampNaming as il, getPersistedEnumMap as in, EachCallback as io, RuntimeConstructor as ir, raw as is, deriveInverseRelationAlias as it, isTransactionCapableClient as j, PrismaTransactionCallback as ja, MorphedByManyRelationMetadata as jc, QueryTimeCondition as ji, SchemaBuilder as jn, ModelRelationshipKey as jo, createPrismaCompatibilityAdapter as jr, RelationDefaultResolver as js, buildMigrationRunId as jt, isDelegateLike as k, PrismaLikeSortOrder as ka, MorphToManyRelationMetadata as kc, QuerySelectColumn as ki, MIGRATION_BRAND as kn, ModelLifecycleState as ko, PrismaDatabaseAdapter as kr, RelationColumnLookupSpec as ks, runInMigrationPlanning as kt, createPrismaAdapter as l, DelegateUpdateData as la, ExpressionJsonCast as lc, QueryExpressionCondition as li, readPersistedColumnMappingsState as ln, ArkormModelRegistry as lo, getRegisteredMigrations as lr, ModelFactory as ls, findEnumBlock as lt, configureArkormRuntime as m, ModelQuerySchemaLike as ma, NullCheckExpressionNode as mc, QueryJoinBoolean as mi, syncPersistedColumnMappingsFromState as mn, AttributeSelect as mo, loadMigrationsFrom as mr, MorphOneRelation as ms, generateMigrationFile as mt, PivotModel as n, DelegateInclude as na, MaybePromise as nc, PartitionedSelectSpec as ni, TimestampColumnBehavior as nl, deletePersistedColumnMappingsState as nn, RelationshipModelStatic as no, RegisteredFactory as nr, max as ns, createMigrationTimestamp as nt, resolveRuntimeCompatibilityQuerySchema as o, DelegateSelect as oa, CaseExpressionNode as oc, QueryCondition as oi, getPersistedPrimaryKeyGeneration as on, GroupByAggregateRow as oo, RuntimePathKey as or, val as os, deriveRelationFieldName as ot, bindAdapterToModels as p, GetUserConfig as pa, JsonExpressionNode as pc, QueryJoin as pi, resolvePersistedMetadataFeatures as pn, AttributeSchemaDelegate as po, loadFactoriesFrom as pr, MorphToManyRelation as ps, formatRelationAction as pt, buildEnumBlock as q, RuntimeClientLike as qa, SchemaForeignKey as qc, ArkormDebugEvent as qi, InitCommand as qn, avg as qo, DatabaseAdapter as qr, ArkormCollection as qs, writeAppliedMigrationsState as qt, LoadedRuntimeModule as r, DelegateOrderBy as ra, AggregateExpressionNode as rc, QueryColumnComparisonCondition as ri, TimestampNames as rl, getPersistedColumnMap as rn, ChunkCallback as ro, RegisteredModel as rr, min as rs, deriveCollectionFieldName as rt, resolveRuntimeCompatibilityQuerySchemaOrThrow as s, DelegateUniqueWhere as sa, ColumnExpressionNode as sc, QueryDayCondition as si, getPersistedTableMetadata as sn, GroupByAggregateSpec as so, RuntimePathMap as sr, where as ss, deriveSingularFieldName as st, URLDriver as t, DelegateFindManyArgs as ta, FactoryState as tc, InsertSpec as ti, SchemaUniqueConstraint as tl, createEmptyPersistedColumnMappingsState as tn, ModelStatic as to, getModel as tr, json as ts, buildUniqueConstraintLine as tt, createPrismaDelegateMap as u, DelegateWhere as ua, ExpressionNode as uc, QueryFullTextCondition as ui, rebuildPersistedColumnMappingsState as un, AttributeCreateInput as uo, getRegisteredModels as ur, defineFactory as us, findModelBlock as ut, ensureArkormConfigLoading as v, PaginationMeta as va, DatabaseTablePersistedMetadataOptions as vc, QueryJoinNullConstraint as vi, UniqueConstraintResolutionException as vn, GlobalScope as vo, registerMigrations as vr, HasOneRelation as vs, resolveMigrationClassName as vt, getRuntimeDebugHandler as w, PrismaFindManyArgsLike as wa, HasOneRelationMetadata as wc, QueryLogicalOperator as wi, ModelNotFoundException as wn, ModelEventDispatcher as wo, SEEDER_BRAND as wr, Relation as ws, supportsDatabaseMigrationExecution as wt, getDefaultStubsPath as x, PaginationURLDriverFactory as xa, ColumnMap as xc, QueryJoinValueConstraint as xi, QueryExecutionException as xn, ModelAttributesOf as xo, registerSeeders as xr, BelongsToRelation as xs, runPrismaCommand as xt, getActiveTransactionAdapter as y, PaginationOptions as ya, BelongsToManyRelationMetadata as yc, QueryJoinRawConstraint as yi, ScopeNotDefinedException as yn, ModelAttributeValue as yo, registerModels as yr, HasManyThroughRelation as ys, resolvePrismaType as yt, applyAlterTableOperation as z, QuerySchemaRow as za, GeneratedMigrationFile as zc, SortDirection as zi, MigrationHistoryCommand as zn, RegisteredModelName as zo, AdapterModelFieldStructure as zr, JoinOn as zs, isMigrationApplied as zt };
|
|
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 };
|
|
@@ -1912,41 +1912,6 @@ declare class HasOneThroughRelation<TParent, TRelated> extends SingleResultRelat
|
|
|
1912
1912
|
getResults(): Promise<TRelated | null>;
|
|
1913
1913
|
}
|
|
1914
1914
|
//#endregion
|
|
1915
|
-
//#region src/relationship/MorphedByManyRelation.d.ts
|
|
1916
|
-
/**
|
|
1917
|
-
* Defines the inverse side of a polymorphic many-to-many relationship.
|
|
1918
|
-
*
|
|
1919
|
-
* @author Legacy (3m1n3nc3)
|
|
1920
|
-
* @since 2.12.0
|
|
1921
|
-
*/
|
|
1922
|
-
declare class MorphedByManyRelation<TParent, TRelated> extends Relation<TRelated> {
|
|
1923
|
-
private readonly parent;
|
|
1924
|
-
private readonly related;
|
|
1925
|
-
private readonly throughTable;
|
|
1926
|
-
private readonly morphName;
|
|
1927
|
-
private readonly foreignPivotKey;
|
|
1928
|
-
private readonly morphTypeColumn;
|
|
1929
|
-
private readonly relatedPivotKey;
|
|
1930
|
-
private readonly parentKey;
|
|
1931
|
-
private readonly relatedKey;
|
|
1932
|
-
constructor(parent: TParent & {
|
|
1933
|
-
getAttribute: (key: string) => unknown;
|
|
1934
|
-
}, related: RelationshipModelStatic, throughTable: string, morphName: string, foreignPivotKey: string, morphTypeColumn: string, relatedPivotKey: string, parentKey: string, relatedKey: string);
|
|
1935
|
-
/**
|
|
1936
|
-
* Build the relationship query.
|
|
1937
|
-
*
|
|
1938
|
-
* @returns
|
|
1939
|
-
*/
|
|
1940
|
-
getQuery(): Promise<QueryBuilder<TRelated>>;
|
|
1941
|
-
getMetadata(): MorphedByManyRelationMetadata;
|
|
1942
|
-
/**
|
|
1943
|
-
* Fetch the related models.
|
|
1944
|
-
*
|
|
1945
|
-
* @returns
|
|
1946
|
-
*/
|
|
1947
|
-
getResults(): Promise<ArkormCollection<TRelated>>;
|
|
1948
|
-
}
|
|
1949
|
-
//#endregion
|
|
1950
1915
|
//#region src/relationship/MorphManyRelation.d.ts
|
|
1951
1916
|
/**
|
|
1952
1917
|
* Defines a polymorphic one-to-many relationship.
|
|
@@ -2048,6 +2013,41 @@ declare class MorphToManyRelation<TParent, TRelated> extends Relation<TRelated>
|
|
|
2048
2013
|
getResults(): Promise<ArkormCollection<TRelated>>;
|
|
2049
2014
|
}
|
|
2050
2015
|
//#endregion
|
|
2016
|
+
//#region src/relationship/MorphedByManyRelation.d.ts
|
|
2017
|
+
/**
|
|
2018
|
+
* Defines the inverse side of a polymorphic many-to-many relationship.
|
|
2019
|
+
*
|
|
2020
|
+
* @author Legacy (3m1n3nc3)
|
|
2021
|
+
* @since 2.12.0
|
|
2022
|
+
*/
|
|
2023
|
+
declare class MorphedByManyRelation<TParent, TRelated> extends Relation<TRelated> {
|
|
2024
|
+
private readonly parent;
|
|
2025
|
+
private readonly related;
|
|
2026
|
+
private readonly throughTable;
|
|
2027
|
+
private readonly morphName;
|
|
2028
|
+
private readonly foreignPivotKey;
|
|
2029
|
+
private readonly morphTypeColumn;
|
|
2030
|
+
private readonly relatedPivotKey;
|
|
2031
|
+
private readonly parentKey;
|
|
2032
|
+
private readonly relatedKey;
|
|
2033
|
+
constructor(parent: TParent & {
|
|
2034
|
+
getAttribute: (key: string) => unknown;
|
|
2035
|
+
}, related: RelationshipModelStatic, throughTable: string, morphName: string, foreignPivotKey: string, morphTypeColumn: string, relatedPivotKey: string, parentKey: string, relatedKey: string);
|
|
2036
|
+
/**
|
|
2037
|
+
* Build the relationship query.
|
|
2038
|
+
*
|
|
2039
|
+
* @returns
|
|
2040
|
+
*/
|
|
2041
|
+
getQuery(): Promise<QueryBuilder<TRelated>>;
|
|
2042
|
+
getMetadata(): MorphedByManyRelationMetadata;
|
|
2043
|
+
/**
|
|
2044
|
+
* Fetch the related models.
|
|
2045
|
+
*
|
|
2046
|
+
* @returns
|
|
2047
|
+
*/
|
|
2048
|
+
getResults(): Promise<ArkormCollection<TRelated>>;
|
|
2049
|
+
}
|
|
2050
|
+
//#endregion
|
|
2051
2051
|
//#region src/relationship/MorphToRelation.d.ts
|
|
2052
2052
|
type MorphToParent = {
|
|
2053
2053
|
getAttribute: (key: string) => unknown;
|
|
@@ -3292,6 +3292,7 @@ declare abstract class Model<TSchema extends ModelQuerySchemaLike | Record<strin
|
|
|
3292
3292
|
*/
|
|
3293
3293
|
protected hasOne<TRelatedClass extends RelatedModelClass>(related: TRelatedClass, foreignKey: string, localKey?: string): HasOneRelation<this, InstanceType<TRelatedClass>>;
|
|
3294
3294
|
protected hasOne<TName extends RegisteredModelName>(related: TName, foreignKey?: string, localKey?: string): HasOneRelation<this, RegisteredModelInstance<TName>>;
|
|
3295
|
+
protected hasOne(related: string, foreignKey?: string, localKey?: string): HasOneRelation<this, Model>;
|
|
3295
3296
|
/**
|
|
3296
3297
|
* Define a has many relationship.
|
|
3297
3298
|
*
|
|
@@ -3302,6 +3303,7 @@ declare abstract class Model<TSchema extends ModelQuerySchemaLike | Record<strin
|
|
|
3302
3303
|
*/
|
|
3303
3304
|
protected hasMany<TRelatedClass extends RelatedModelClass>(related: TRelatedClass, foreignKey: string, localKey?: string): HasManyRelation<this, InstanceType<TRelatedClass>>;
|
|
3304
3305
|
protected hasMany<TName extends RegisteredModelName>(related: TName, foreignKey?: string, localKey?: string): HasManyRelation<this, RegisteredModelInstance<TName>>;
|
|
3306
|
+
protected hasMany(related: string, foreignKey?: string, localKey?: string): HasManyRelation<this, Model>;
|
|
3305
3307
|
/**
|
|
3306
3308
|
* Define a belongs to relationship.
|
|
3307
3309
|
*
|
|
@@ -3312,6 +3314,7 @@ declare abstract class Model<TSchema extends ModelQuerySchemaLike | Record<strin
|
|
|
3312
3314
|
*/
|
|
3313
3315
|
protected belongsTo<TRelatedClass extends RelatedModelClass>(related: TRelatedClass, foreignKey: string, ownerKey?: string): BelongsToRelation<this, InstanceType<TRelatedClass>>;
|
|
3314
3316
|
protected belongsTo<TName extends RegisteredModelName>(related: TName, foreignKey?: string, ownerKey?: string): BelongsToRelation<this, RegisteredModelInstance<TName>>;
|
|
3317
|
+
protected belongsTo(related: string, foreignKey?: string, ownerKey?: string): BelongsToRelation<this, Model>;
|
|
3315
3318
|
/**
|
|
3316
3319
|
* Define a belongs to many relationship.
|
|
3317
3320
|
*
|
|
@@ -3325,6 +3328,7 @@ declare abstract class Model<TSchema extends ModelQuerySchemaLike | Record<strin
|
|
|
3325
3328
|
*/
|
|
3326
3329
|
protected belongsToMany<TRelatedClass extends RelatedModelClass>(related: TRelatedClass, throughTable: string, foreignPivotKey: string, relatedPivotKey: string, parentKey?: string, relatedKey?: string): BelongsToManyRelation<this, InstanceType<TRelatedClass>>;
|
|
3327
3330
|
protected belongsToMany<TName extends RegisteredModelName>(related: TName, throughTable: string, foreignPivotKey: string, relatedPivotKey: string, parentKey?: string, relatedKey?: string): BelongsToManyRelation<this, RegisteredModelInstance<TName>>;
|
|
3331
|
+
protected belongsToMany(related: string, throughTable: string, foreignPivotKey: string, relatedPivotKey: string, parentKey?: string, relatedKey?: string): BelongsToManyRelation<this, Model>;
|
|
3328
3332
|
/**
|
|
3329
3333
|
* Define a has one through relationship.
|
|
3330
3334
|
*
|
|
@@ -3338,6 +3342,7 @@ declare abstract class Model<TSchema extends ModelQuerySchemaLike | Record<strin
|
|
|
3338
3342
|
*/
|
|
3339
3343
|
protected hasOneThrough<TRelatedClass extends RelatedModelClass>(related: TRelatedClass, throughTable: string, firstKey: string, secondKey: string, localKey?: string, secondLocalKey?: string): HasOneThroughRelation<this, InstanceType<TRelatedClass>>;
|
|
3340
3344
|
protected hasOneThrough<TName extends RegisteredModelName>(related: TName, throughTable: string, firstKey: string, secondKey: string, localKey?: string, secondLocalKey?: string): HasOneThroughRelation<this, RegisteredModelInstance<TName>>;
|
|
3345
|
+
protected hasOneThrough(related: string, throughTable: string, firstKey: string, secondKey: string, localKey?: string, secondLocalKey?: string): HasOneThroughRelation<this, Model>;
|
|
3341
3346
|
/**
|
|
3342
3347
|
* Define a has many through relationship.
|
|
3343
3348
|
*
|
|
@@ -3351,6 +3356,7 @@ declare abstract class Model<TSchema extends ModelQuerySchemaLike | Record<strin
|
|
|
3351
3356
|
*/
|
|
3352
3357
|
protected hasManyThrough<TRelatedClass extends RelatedModelClass>(related: TRelatedClass, throughTable: string, firstKey: string, secondKey: string, localKey?: string, secondLocalKey?: string): HasManyThroughRelation<this, InstanceType<TRelatedClass>>;
|
|
3353
3358
|
protected hasManyThrough<TName extends RegisteredModelName>(related: TName, throughTable: string, firstKey: string, secondKey: string, localKey?: string, secondLocalKey?: string): HasManyThroughRelation<this, RegisteredModelInstance<TName>>;
|
|
3359
|
+
protected hasManyThrough(related: string, throughTable: string, firstKey: string, secondKey: string, localKey?: string, secondLocalKey?: string): HasManyThroughRelation<this, Model>;
|
|
3354
3360
|
/**
|
|
3355
3361
|
* Define a polymorphic one to one relationship.
|
|
3356
3362
|
*
|
|
@@ -3363,6 +3369,7 @@ declare abstract class Model<TSchema extends ModelQuerySchemaLike | Record<strin
|
|
|
3363
3369
|
*/
|
|
3364
3370
|
protected morphOne<TRelatedClass extends RelatedModelClass>(related: TRelatedClass, morphName: string, idColumn?: string, typeColumn?: string, localKey?: string): MorphOneRelation<this, InstanceType<TRelatedClass>>;
|
|
3365
3371
|
protected morphOne<TName extends RegisteredModelName>(related: TName, morphName: string, idColumn?: string, typeColumn?: string, localKey?: string): MorphOneRelation<this, RegisteredModelInstance<TName>>;
|
|
3372
|
+
protected morphOne(related: string, morphName: string, idColumn?: string, typeColumn?: string, localKey?: string): MorphOneRelation<this, Model>;
|
|
3366
3373
|
/**
|
|
3367
3374
|
* Define a polymorphic one to many relationship.
|
|
3368
3375
|
*
|
|
@@ -3375,6 +3382,7 @@ declare abstract class Model<TSchema extends ModelQuerySchemaLike | Record<strin
|
|
|
3375
3382
|
*/
|
|
3376
3383
|
protected morphMany<TRelatedClass extends RelatedModelClass>(related: TRelatedClass, morphName: string, idColumn?: string, typeColumn?: string, localKey?: string): MorphManyRelation<this, InstanceType<TRelatedClass>>;
|
|
3377
3384
|
protected morphMany<TName extends RegisteredModelName>(related: TName, morphName: string, idColumn?: string, typeColumn?: string, localKey?: string): MorphManyRelation<this, RegisteredModelInstance<TName>>;
|
|
3385
|
+
protected morphMany(related: string, morphName: string, idColumn?: string, typeColumn?: string, localKey?: string): MorphManyRelation<this, Model>;
|
|
3378
3386
|
/**
|
|
3379
3387
|
* Define the inverse side of a polymorphic relationship.
|
|
3380
3388
|
*
|
|
@@ -3401,6 +3409,7 @@ declare abstract class Model<TSchema extends ModelQuerySchemaLike | Record<strin
|
|
|
3401
3409
|
*/
|
|
3402
3410
|
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>>;
|
|
3403
3411
|
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>>;
|
|
3412
|
+
protected morphToMany(related: string, morphName: string, throughTable?: string, foreignPivotKey?: string, morphTypeColumn?: string, relatedPivotKey?: string, parentKey?: string, relatedKey?: string): MorphToManyRelation<this, Model>;
|
|
3404
3413
|
/**
|
|
3405
3414
|
* Define the inverse side of a polymorphic many-to-many relationship.
|
|
3406
3415
|
*
|
|
@@ -3416,6 +3425,7 @@ declare abstract class Model<TSchema extends ModelQuerySchemaLike | Record<strin
|
|
|
3416
3425
|
*/
|
|
3417
3426
|
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>>;
|
|
3418
3427
|
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>>;
|
|
3428
|
+
protected morphedByMany(related: string, morphName: string, throughTable?: string, foreignPivotKey?: string, morphTypeColumn?: string, relatedPivotKey?: string, parentKey?: string, relatedKey?: string): MorphedByManyRelation<this, Model>;
|
|
3419
3429
|
private resolveRelationshipModel;
|
|
3420
3430
|
private resolveDefaultHasForeignKey;
|
|
3421
3431
|
private resolveDefaultBelongsToForeignKey;
|
|
@@ -8285,12 +8295,6 @@ declare const getLatestAppliedMigrations: (state: AppliedMigrationsState, steps:
|
|
|
8285
8295
|
*/
|
|
8286
8296
|
declare const getLastBatchMigrations: (state: AppliedMigrationsState, batches?: number) => AppliedMigrationEntry[];
|
|
8287
8297
|
//#endregion
|
|
8288
|
-
//#region src/helpers/migration-planning.d.ts
|
|
8289
|
-
/** Runs `fn` in a side-effect-free migration-planning context. */
|
|
8290
|
-
declare const runInMigrationPlanning: <TResult>(fn: () => Promise<TResult> | TResult) => Promise<TResult>;
|
|
8291
|
-
/** True when a migration body is being invoked only to collect its schema plan. */
|
|
8292
|
-
declare const isMigrationPlanningActive: () => boolean;
|
|
8293
|
-
//#endregion
|
|
8294
8298
|
//#region src/helpers/migrations.d.ts
|
|
8295
8299
|
declare const PRISMA_MODEL_REGEX: RegExp;
|
|
8296
8300
|
declare const PRISMA_ENUM_REGEX: RegExp;
|
|
@@ -8815,4 +8819,4 @@ declare class URLDriver {
|
|
|
8815
8819
|
url(page: number): string;
|
|
8816
8820
|
}
|
|
8817
8821
|
//#endregion
|
|
8818
|
-
export { buildPrimaryKeyLine as $, TransactionContext as $a, SchemaTableCreateOperation as $c, ClientResolver as $i, Arkorm as $n, fn as $o, DeleteSpec as $r, FactoryModelConstructor as $s, PersistedTimestampColumn as $t, isQuerySchemaLike as A, PrismaLikeWhereInput as Aa, MorphToRelationMetadata as Ac, QueryTarget as Ai, Migration as An, ModelOrderByInput as Ao, PrismaDelegateNameMapping as Ar, RelationConstraint as As, buildMigrationIdentity as At, applyCreateTableOperation as B, QuerySchemaRows as Ba, MigrationClass as Bc, UpdateManySpec as Bi, MigrateRollbackCommand as Bn, RelatedModelClass as Bo, AdapterModelIntrospectionOptions as Br, JoinSource as Bs, markMigrationApplied as Bt, getRuntimeClient as C, PrismaDelegateLike as Ca, HasManyThroughRelationMetadata as Cc, QueryJsonConditionKind as Ci, QueryConstraintException as Cn, ModelDeclaredAttributeKey as Co, resolveRegisteredModel as Cr, BelongsToManyRelation as Cs, supportsDatabaseCreation as Ct, getRuntimePrismaClient as D, PrismaLikeScalarFilter as Da, MorphManyRelationMetadata as Dc, QueryRawCondition as Di, ArkormException as Dn, ModelEventListener as Do, SeederConstructor as Dr, RelationAggregateInput as Ds, toModelName as Dt, getRuntimePaginationURLDriverFactory as E, PrismaLikeOrderBy as Ea, ModelMetadata as Ec, QueryOrderBy as Ei, ArkormErrorContext as En, ModelEventHandlerConstructor as Eo, SeederCallArgument as Er, RelationAggregateConstraint as Es, toMigrationFileSlug as Et, PrimaryKeyGenerationPlanner as F, QuerySchemaCreateData as Fa, AppliedMigrationEntry as Fc, RelationLoadPlan as Fi, resolveGeneratedExpression as Fn, QuerySchemaForModel as Fo, AdapterCapabilities as Fr, RelationResultCache as Fs, findAppliedMigration as Ft, applyMigrationToPrismaSchema as G, QuerySchemaWhere as Ga, SchemaColumn as Gc, ArkormBootContext as Gi, MakeMigrationCommand as Gn, ExpressionBuilder as Go, AggregateSelection as Gr, LengthAwarePaginator as Gs, resolveMigrationStateFilePath as Gt, applyMigrationRollbackToDatabase as H, QuerySchemaUniqueWhere as Ha, PrimaryKeyGeneration as Hc, UpsertSpec as Hi, MigrateCommand as Hn, AggregateExpression as Ho, AdapterQueryOperation as Hr, RelatedModelFromResult as Hs, readAppliedMigrationsState as Ht, PRISMA_ENUM_MEMBER_REGEX as I, QuerySchemaFindManyArgs as Ia, AppliedMigrationRun as Ic, RelationLoadSpec as Ii, ForeignKeyBuilder as In, QuerySchemaForModelInstance as Io, AdapterCapability as Ir, RelationTableLookupSpec as Is, getLastBatchMigrations as It, buildFieldLine as J, Serializable as Ja, SchemaForeignKeyAction as Jc, ArkormDebugHandler as Ji, DbCommand as Jn, caseWhen as Jo, DatabasePrimitive as Jr, FactoryAttributeResolver as Js, writeAppliedMigrationsStateToStore as Jt, applyOperationsToPrismaSchema as K, RawSelectInput as Ka, SchemaColumnType as Kc, ArkormConfig as Ki, MakeFactoryCommand as Kn, JsonExpression as Ko, AggregateSpec as Kr, Paginator as Ks, supportsDatabaseMigrationState as Kt, PRISMA_ENUM_REGEX as L, QuerySchemaInclude as La, AppliedMigrationsState as Lc, SelectSpec as Li, SeedCommand as Ln, RegisteredModelClass as Lo, AdapterDatabaseCreationResult as Lr, EagerLoadQueryForRelationship as Ls, getLastMigrationRun as Lt, loadArkormConfig as M, PrismaTransactionCapableClient as Ma, PivotModelStatic as Mc, RawQuerySpec as Mi, EnumBuilder as Mn, ModelRelationshipResult as Mo, createPrismaDatabaseAdapter as Mr, RelationDefaultValue as Ms, computeMigrationChecksum as Mt, resetArkormRuntimeForTests as N, PrismaTransactionContext as Na, RelationMetadata as Nc, RelationAggregateSpec as Ni, TableBuilder as Nn, ModelUpdateData as No, KyselyDatabaseAdapter as Nr, RelationMetadataProvider as Ns, createEmptyAppliedMigrationsState as Nt, getUserConfig as O, PrismaLikeSelect as Oa, MorphOneRelationMetadata as Oc, QueryScalarComparisonOperator as Oi, DB as On, ModelEventName as Oo, SeederInput as Or, RelationAggregateType as Os, isMigrationPlanningActive as Ot, runArkormTransaction as P, PrismaTransactionOptions as Pa, RelationMetadataType as Pc, RelationFilterSpec as Pi, GeneratedColumnExpression as Pn, ModelWhereInput as Po, createKyselyAdapter as Pr, RelationResult as Ps, deleteAppliedMigrationsStateFromStore as Pt, buildModelBlock as Q, TransactionCapableClient as Qa, SchemaTableAlterOperation as Qc, CastType as Qi, AttributeOptions as Qn, expressionBuilder as Qo, DeleteManySpec as Qr, FactoryDefinitionAttributes as Qs, PersistedTableMetadata as Qt, PRISMA_MODEL_REGEX as R, QuerySchemaOrderBy as Ra, GenerateMigrationOptions as Rc, SoftDeleteQueryMode as Ri, ModelsSyncCommand as Rn, RegisteredModelInstance as Ro, AdapterInspectionRequest as Rr, EagerLoadRelations as Rs, getLatestAppliedMigrations as Rt, getRuntimeAdapter as S, PrismaClientLike as Sa, HasManyRelationMetadata as Sc, QueryJsonCondition as Si, QueryExecutionExceptionContext as Sn, ModelCreateData as So, resetRuntimeRegistryForTests as Sr, SingleResultRelation as Ss, stripPrismaSchemaModelsAndEnums as St, getRuntimePaginationCurrentPageResolver as T, PrismaLikeInclude as Ta, HasOneThroughRelationMetadata as Tc, QueryNotCondition as Ti, MissingDelegateException as Tn, ModelEventHandler as To, Seeder as Tr, RelationTableLoader as Ts, supportsDatabaseReset as Tt, applyMigrationRollbackToPrismaSchema as U, QuerySchemaUpdateArgs as Ua, PrismaMigrationWorkflowOptions as Uc, AdapterBindableModel as Ui, MakeSeederCommand as Un, CaseExpression as Uo, AdapterTransactionContext as Ur, WhereCallback as Us, readAppliedMigrationsStateFromStore as Ut, applyDropTableOperation as V, QuerySchemaSelect as Va, MigrationInstanceLike as Vc, UpdateSpec as Vi, MigrateFreshCommand as Vn, Model as Vo, AdapterModelStructure as Vr, RelatedModelForRelationship as Vs, markMigrationRun as Vt, applyMigrationToDatabase as W, QuerySchemaUpdateData as Wa, PrismaSchemaSyncOptions as Wc, AdapterQueryInspection as Wi, MakeModelCommand as Wn, Expression as Wo, AggregateOperation as Wr, JoinClause as Ws, removeAppliedMigration as Wt, buildInverseRelationLine as X, SoftDeleteConfig as Xa, SchemaOperation as Xc, CastHandler as Xi, resolveCast as Xn, col as Xo, DatabaseRows as Xr, FactoryCallback as Xs, PersistedMetadataFeatures as Xt, buildIndexLine as Y, SimplePaginationMeta as Ya, SchemaIndex as Yc, CastDefinition as Yi, CliApp as Yn, coalesce as Yo, DatabaseRow as Yr, FactoryAttributes as Ys, PersistedColumnMappingsState as Yt, buildMigrationSource as Z, TransactionCallback as Za, SchemaPrimaryKey as Zc, CastMap as Zi, Attribute as Zn, count as Zo, DatabaseValue as Zr, FactoryDefinition as Zs, PersistedPrimaryKeyGeneration as Zt, emitRuntimeDebugEvent as _, PaginationCurrentPageResolver as _a, DatabaseTableOptions as _c, QueryJoinNestedConstraint as _i, UnsupportedAdapterFeatureException as _n, DelegateForModelSchema as _o, registerFactories as _r, HasOneThroughRelation as _s, resolveEnumName as _t, getRuntimeCompatibilityAdapter as a, DelegateRows as aa, CaseExpressionBranch as ac, QueryComparisonOperator as ai, getPersistedEnumTsType as an, ExpressionSelectMap as ao, RuntimePathInput as ar, sum as as, deriveRelationAlias as at, getActiveTransactionClient as b, PaginationURLDriver as ba, BelongsToRelationMetadata as bc, QueryJoinType as bi, RelationResolutionException as bn, ModelAttributes as bo, registerPaths as br, HasManyRelation as bs, runMigrationWithPrisma as bt, PrismaDelegateMap as c, DelegateUpdateArgs as ca, ExpressionBinaryOperator as cc, QueryExistsCondition as ci, getPersistedTimestampColumns as cn, QueryBuilder as co, getRegisteredFactories as cr, InlineFactory as cs, escapeRegex as ct, inferDelegateName as d, EagerLoadConstraint as da, FunctionExpressionNode as dc, QueryGroupByItem as di, resetPersistedColumnMappingsCache as dn, AttributeOrderBy as do, getRegisteredPaths as dr, SetBasedEagerLoader as ds, formatDefaultValue as dt, DelegateCreateData as ea, FactoryRelationshipResolver as ec, InsertManySpec as ei, SchemaTableDropOperation as el, applyOperationsToPersistedColumnMappingsState as en, TransactionOptions as eo, Arkormx as er, fromExpressionNode as es, buildRelationLine as et, awaitConfiguredModelsRegistration as f, EagerLoadMap as fa, InExpressionNode as fc, QueryGroupCondition as fi, resolveColumnMappingsFilePath as fn, AttributeQuerySchema as fo, getRegisteredSeeders as fr, MorphToRelation as fs, formatEnumDefaultValue as ft, disposeArkormRuntime as g, NamingCase as ga, ValueExpressionNode as gc, QueryJoinConstraint as gi, writePersistedColumnMappingsState as gn, AttributeWhereInput as go, loadSeedersFrom as gr, MorphedByManyRelation as gs, pad as gt, defineConfig as h, ModelTableCase as ha, RawExpressionNode as hc, QueryJoinColumnConstraint as hi, validatePersistedMetadataFeaturesForMigrations as hn, AttributeUpdateInput as ho, loadModelsFrom as hr, MorphManyRelation as hs, getMigrationPlan as ht, RuntimeModuleLoader as i, DelegateRow as ia, BinaryExpressionNode as ic, QueryComparisonCondition as ii, TimestampNaming as il, getPersistedEnumMap as in, EachCallback as io, RuntimeConstructor as ir, raw as is, deriveInverseRelationAlias as it, isTransactionCapableClient as j, PrismaTransactionCallback as ja, MorphedByManyRelationMetadata as jc, QueryTimeCondition as ji, SchemaBuilder as jn, ModelRelationshipKey as jo, createPrismaCompatibilityAdapter as jr, RelationDefaultResolver as js, buildMigrationRunId as jt, isDelegateLike as k, PrismaLikeSortOrder as ka, MorphToManyRelationMetadata as kc, QuerySelectColumn as ki, MIGRATION_BRAND as kn, ModelLifecycleState as ko, PrismaDatabaseAdapter as kr, RelationColumnLookupSpec as ks, runInMigrationPlanning as kt, createPrismaAdapter as l, DelegateUpdateData as la, ExpressionJsonCast as lc, QueryExpressionCondition as li, readPersistedColumnMappingsState as ln, ArkormModelRegistry as lo, getRegisteredMigrations as lr, ModelFactory as ls, findEnumBlock as lt, configureArkormRuntime as m, ModelQuerySchemaLike as ma, NullCheckExpressionNode as mc, QueryJoinBoolean as mi, syncPersistedColumnMappingsFromState as mn, AttributeSelect as mo, loadMigrationsFrom as mr, MorphOneRelation as ms, generateMigrationFile as mt, PivotModel as n, DelegateInclude as na, MaybePromise as nc, PartitionedSelectSpec as ni, TimestampColumnBehavior as nl, deletePersistedColumnMappingsState as nn, RelationshipModelStatic as no, RegisteredFactory as nr, max as ns, createMigrationTimestamp as nt, resolveRuntimeCompatibilityQuerySchema as o, DelegateSelect as oa, CaseExpressionNode as oc, QueryCondition as oi, getPersistedPrimaryKeyGeneration as on, GroupByAggregateRow as oo, RuntimePathKey as or, val as os, deriveRelationFieldName as ot, bindAdapterToModels as p, GetUserConfig as pa, JsonExpressionNode as pc, QueryJoin as pi, resolvePersistedMetadataFeatures as pn, AttributeSchemaDelegate as po, loadFactoriesFrom as pr, MorphToManyRelation as ps, formatRelationAction as pt, buildEnumBlock as q, RuntimeClientLike as qa, SchemaForeignKey as qc, ArkormDebugEvent as qi, InitCommand as qn, avg as qo, DatabaseAdapter as qr, ArkormCollection as qs, writeAppliedMigrationsState as qt, LoadedRuntimeModule as r, DelegateOrderBy as ra, AggregateExpressionNode as rc, QueryColumnComparisonCondition as ri, TimestampNames as rl, getPersistedColumnMap as rn, ChunkCallback as ro, RegisteredModel as rr, min as rs, deriveCollectionFieldName as rt, resolveRuntimeCompatibilityQuerySchemaOrThrow as s, DelegateUniqueWhere as sa, ColumnExpressionNode as sc, QueryDayCondition as si, getPersistedTableMetadata as sn, GroupByAggregateSpec as so, RuntimePathMap as sr, where as ss, deriveSingularFieldName as st, URLDriver as t, DelegateFindManyArgs as ta, FactoryState as tc, InsertSpec as ti, SchemaUniqueConstraint as tl, createEmptyPersistedColumnMappingsState as tn, ModelStatic as to, getModel as tr, json as ts, buildUniqueConstraintLine as tt, createPrismaDelegateMap as u, DelegateWhere as ua, ExpressionNode as uc, QueryFullTextCondition as ui, rebuildPersistedColumnMappingsState as un, AttributeCreateInput as uo, getRegisteredModels as ur, defineFactory as us, findModelBlock as ut, ensureArkormConfigLoading as v, PaginationMeta as va, DatabaseTablePersistedMetadataOptions as vc, QueryJoinNullConstraint as vi, UniqueConstraintResolutionException as vn, GlobalScope as vo, registerMigrations as vr, HasOneRelation as vs, resolveMigrationClassName as vt, getRuntimeDebugHandler as w, PrismaFindManyArgsLike as wa, HasOneRelationMetadata as wc, QueryLogicalOperator as wi, ModelNotFoundException as wn, ModelEventDispatcher as wo, SEEDER_BRAND as wr, Relation as ws, supportsDatabaseMigrationExecution as wt, getDefaultStubsPath as x, PaginationURLDriverFactory as xa, ColumnMap as xc, QueryJoinValueConstraint as xi, QueryExecutionException as xn, ModelAttributesOf as xo, registerSeeders as xr, BelongsToRelation as xs, runPrismaCommand as xt, getActiveTransactionAdapter as y, PaginationOptions as ya, BelongsToManyRelationMetadata as yc, QueryJoinRawConstraint as yi, ScopeNotDefinedException as yn, ModelAttributeValue as yo, registerModels as yr, HasManyThroughRelation as ys, resolvePrismaType as yt, applyAlterTableOperation as z, QuerySchemaRow as za, GeneratedMigrationFile as zc, SortDirection as zi, MigrationHistoryCommand as zn, RegisteredModelName as zo, AdapterModelFieldStructure as zr, JoinOn as zs, isMigrationApplied as zt };
|
|
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 };
|
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-B7dIK_Vc.cjs');
|
|
3
3
|
let pg = require("pg");
|
|
4
4
|
let node_path = require("node:path");
|
|
5
5
|
let node_fs = require("node:fs");
|
|
@@ -3215,7 +3215,7 @@ var CliApp = class {
|
|
|
3215
3215
|
return lines.join("\n");
|
|
3216
3216
|
}
|
|
3217
3217
|
parseModelSyncSource(modelSource) {
|
|
3218
|
-
const classMatch = modelSource.match(/export\s+class\s+(\w+)\s+extends\s
|
|
3218
|
+
const classMatch = modelSource.match(/export\s+(?:abstract\s+)?class\s+(\w+)\s+extends\s+/);
|
|
3219
3219
|
if (!classMatch) return null;
|
|
3220
3220
|
const className = classMatch[1];
|
|
3221
3221
|
const tableMatch = modelSource.match(/protected\s+static\s+override\s+table\s*=\s*['"]([^'"]+)['"]/) ?? modelSource.match(/static\s+table\s*=\s*['"]([^'"]+)['"]/);
|
|
@@ -11017,7 +11017,6 @@ exports.getUserConfig = require_relationship.getUserConfig;
|
|
|
11017
11017
|
exports.inferDelegateName = inferDelegateName;
|
|
11018
11018
|
exports.isDelegateLike = require_relationship.isDelegateLike;
|
|
11019
11019
|
exports.isMigrationApplied = require_relationship.isMigrationApplied;
|
|
11020
|
-
exports.isMigrationPlanningActive = require_relationship.isMigrationPlanningActive;
|
|
11021
11020
|
exports.isQuerySchemaLike = require_relationship.isQuerySchemaLike;
|
|
11022
11021
|
exports.isTransactionCapableClient = require_relationship.isTransactionCapableClient;
|
|
11023
11022
|
exports.json = require_relationship.json;
|
|
@@ -11057,7 +11056,6 @@ exports.resolveRegisteredModel = require_relationship.resolveRegisteredModel;
|
|
|
11057
11056
|
exports.resolveRuntimeCompatibilityQuerySchema = resolveRuntimeCompatibilityQuerySchema;
|
|
11058
11057
|
exports.resolveRuntimeCompatibilityQuerySchemaOrThrow = resolveRuntimeCompatibilityQuerySchemaOrThrow;
|
|
11059
11058
|
exports.runArkormTransaction = require_relationship.runArkormTransaction;
|
|
11060
|
-
exports.runInMigrationPlanning = require_relationship.runInMigrationPlanning;
|
|
11061
11059
|
exports.runMigrationWithPrisma = require_relationship.runMigrationWithPrisma;
|
|
11062
11060
|
exports.runPrismaCommand = require_relationship.runPrismaCommand;
|
|
11063
11061
|
exports.stripPrismaSchemaModelsAndEnums = require_relationship.stripPrismaSchemaModelsAndEnums;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as buildPrimaryKeyLine, $a as TransactionContext, $c as SchemaTableCreateOperation, $i as ClientResolver, $n as Arkorm, $o as fn, $r as DeleteSpec, $s as FactoryModelConstructor, $t as PersistedTimestampColumn, A as isQuerySchemaLike, Aa as PrismaLikeWhereInput, Ac as MorphToRelationMetadata, Ai as QueryTarget, An as Migration, Ao as ModelOrderByInput, Ar as PrismaDelegateNameMapping, As as RelationConstraint, At as buildMigrationIdentity, B as applyCreateTableOperation, Ba as QuerySchemaRows, Bc as MigrationClass, Bi as UpdateManySpec, Bn as MigrateRollbackCommand, Bo as RelatedModelClass, Br as AdapterModelIntrospectionOptions, Bs as JoinSource, Bt as markMigrationApplied, C as getRuntimeClient, Ca as PrismaDelegateLike, Cc as HasManyThroughRelationMetadata, Ci as QueryJsonConditionKind, Cn as QueryConstraintException, Co as ModelDeclaredAttributeKey, Cr as resolveRegisteredModel, Ct as supportsDatabaseCreation, D as getRuntimePrismaClient, Da as PrismaLikeScalarFilter, Dc as MorphManyRelationMetadata, Di as QueryRawCondition, Dn as ArkormException, Do as ModelEventListener, Dr as SeederConstructor, Ds as RelationAggregateInput, Dt as toModelName, E as getRuntimePaginationURLDriverFactory, Ea as PrismaLikeOrderBy, Ec as ModelMetadata, Ei as QueryOrderBy, En as ArkormErrorContext, Eo as ModelEventHandlerConstructor, Er as SeederCallArgument, Es as RelationAggregateConstraint, Et as toMigrationFileSlug, F as PrimaryKeyGenerationPlanner, Fa as QuerySchemaCreateData, Fc as AppliedMigrationEntry, Fi as RelationLoadPlan, Fn as resolveGeneratedExpression, Fo as QuerySchemaForModel, Fr as AdapterCapabilities, Fs as RelationResultCache, Ft as findAppliedMigration, G as applyMigrationToPrismaSchema, Ga as QuerySchemaWhere, Gc as SchemaColumn, Gi as ArkormBootContext, Gn as MakeMigrationCommand, Go as ExpressionBuilder, Gr as AggregateSelection, Gs as LengthAwarePaginator, Gt as resolveMigrationStateFilePath, H as applyMigrationRollbackToDatabase, Ha as QuerySchemaUniqueWhere, Hc as PrimaryKeyGeneration, Hi as UpsertSpec, Hn as MigrateCommand, Ho as AggregateExpression, Hr as AdapterQueryOperation, Hs as RelatedModelFromResult, Ht as readAppliedMigrationsState, I as PRISMA_ENUM_MEMBER_REGEX, Ia as QuerySchemaFindManyArgs, Ic as AppliedMigrationRun, Ii as RelationLoadSpec, In as ForeignKeyBuilder, Io as QuerySchemaForModelInstance, Ir as AdapterCapability, Is as RelationTableLookupSpec, It as getLastBatchMigrations, J as buildFieldLine, Ja as Serializable, Jc as SchemaForeignKeyAction, Ji as ArkormDebugHandler, Jn as DbCommand, Jo as caseWhen, Jr as DatabasePrimitive, Js as FactoryAttributeResolver, Jt as writeAppliedMigrationsStateToStore, K as applyOperationsToPrismaSchema, Ka as RawSelectInput, Kc as SchemaColumnType, Ki as ArkormConfig, Kn as MakeFactoryCommand, Ko as JsonExpression, Kr as AggregateSpec, Ks as Paginator, Kt as supportsDatabaseMigrationState, L as PRISMA_ENUM_REGEX, La as QuerySchemaInclude, Lc as AppliedMigrationsState, Li as SelectSpec, Ln as SeedCommand, Lo as RegisteredModelClass, Lr as AdapterDatabaseCreationResult, Ls as EagerLoadQueryForRelationship, Lt as getLastMigrationRun, M as loadArkormConfig, Ma as PrismaTransactionCapableClient, Mc as PivotModelStatic, Mi as RawQuerySpec, Mn as EnumBuilder, Mo as ModelRelationshipResult, Mr as createPrismaDatabaseAdapter, Ms as RelationDefaultValue, Mt as computeMigrationChecksum, N as resetArkormRuntimeForTests, Na as PrismaTransactionContext, Nc as RelationMetadata, Ni as RelationAggregateSpec, Nn as TableBuilder, No as ModelUpdateData, Nr as KyselyDatabaseAdapter, Ns as RelationMetadataProvider, Nt as createEmptyAppliedMigrationsState, O as getUserConfig, Oa as PrismaLikeSelect, Oc as MorphOneRelationMetadata, Oi as QueryScalarComparisonOperator, On as DB, Oo as ModelEventName, Or as SeederInput, Os as RelationAggregateType, Ot as isMigrationPlanningActive, P as runArkormTransaction, Pa as PrismaTransactionOptions, Pc as RelationMetadataType, Pi as RelationFilterSpec, Pn as GeneratedColumnExpression, Po as ModelWhereInput, Pr as createKyselyAdapter, Ps as RelationResult, Pt as deleteAppliedMigrationsStateFromStore, Q as buildModelBlock, Qa as TransactionCapableClient, Qc as SchemaTableAlterOperation, Qi as CastType, Qn as AttributeOptions, Qo as expressionBuilder, Qr as DeleteManySpec, Qs as FactoryDefinitionAttributes, Qt as PersistedTableMetadata, R as PRISMA_MODEL_REGEX, Ra as QuerySchemaOrderBy, Rc as GenerateMigrationOptions, Ri as SoftDeleteQueryMode, Rn as ModelsSyncCommand, Ro as RegisteredModelInstance, Rr as AdapterInspectionRequest, Rs as EagerLoadRelations, Rt as getLatestAppliedMigrations, S as getRuntimeAdapter, Sa as PrismaClientLike, Sc as HasManyRelationMetadata, Si as QueryJsonCondition, Sn as QueryExecutionExceptionContext, So as ModelCreateData, Sr as resetRuntimeRegistryForTests, St as stripPrismaSchemaModelsAndEnums, T as getRuntimePaginationCurrentPageResolver, Ta as PrismaLikeInclude, Tc as HasOneThroughRelationMetadata, Ti as QueryNotCondition, Tn as MissingDelegateException, To as ModelEventHandler, Tr as Seeder, Tt as supportsDatabaseReset, U as applyMigrationRollbackToPrismaSchema, Ua as QuerySchemaUpdateArgs, Uc as PrismaMigrationWorkflowOptions, Ui as AdapterBindableModel, Un as MakeSeederCommand, Uo as CaseExpression, Ur as AdapterTransactionContext, Us as WhereCallback, Ut as readAppliedMigrationsStateFromStore, V as applyDropTableOperation, Va as QuerySchemaSelect, Vc as MigrationInstanceLike, Vi as UpdateSpec, Vn as MigrateFreshCommand, Vo as Model, Vr as AdapterModelStructure, Vs as RelatedModelForRelationship, Vt as markMigrationRun, W as applyMigrationToDatabase, Wa as QuerySchemaUpdateData, Wc as PrismaSchemaSyncOptions, Wi as AdapterQueryInspection, Wn as MakeModelCommand, Wo as Expression, Wr as AggregateOperation, Ws as JoinClause, Wt as removeAppliedMigration, X as buildInverseRelationLine, Xa as SoftDeleteConfig, Xc as SchemaOperation, Xi as CastHandler, Xn as resolveCast, Xo as col, Xr as DatabaseRows, Xs as FactoryCallback, Xt as PersistedMetadataFeatures, Y as buildIndexLine, Ya as SimplePaginationMeta, Yc as SchemaIndex, Yi as CastDefinition, Yn as CliApp, Yo as coalesce, Yr as DatabaseRow, Ys as FactoryAttributes, Yt as PersistedColumnMappingsState, Z as buildMigrationSource, Za as TransactionCallback, Zc as SchemaPrimaryKey, Zi as CastMap, Zn as Attribute, Zo as count, Zr as DatabaseValue, Zs as FactoryDefinition, Zt as PersistedPrimaryKeyGeneration, _ as emitRuntimeDebugEvent, _a as PaginationCurrentPageResolver, _c as DatabaseTableOptions, _i as QueryJoinNestedConstraint, _n as UnsupportedAdapterFeatureException, _o as DelegateForModelSchema, _r as registerFactories, _t as resolveEnumName, a as getRuntimeCompatibilityAdapter, aa as DelegateRows, ac as CaseExpressionBranch, ai as QueryComparisonOperator, an as getPersistedEnumTsType, ao as ExpressionSelectMap, ar as RuntimePathInput, as as sum, at as deriveRelationAlias, b as getActiveTransactionClient, ba as PaginationURLDriver, bc as BelongsToRelationMetadata, bi as QueryJoinType, bn as RelationResolutionException, bo as ModelAttributes, br as registerPaths, bt as runMigrationWithPrisma, c as PrismaDelegateMap, ca as DelegateUpdateArgs, cc as ExpressionBinaryOperator, ci as QueryExistsCondition, cn as getPersistedTimestampColumns, co as QueryBuilder, cr as getRegisteredFactories, cs as InlineFactory, ct as escapeRegex, d as inferDelegateName, da as EagerLoadConstraint, dc as FunctionExpressionNode, di as QueryGroupByItem, dn as resetPersistedColumnMappingsCache, do as AttributeOrderBy, dr as getRegisteredPaths, dt as formatDefaultValue, ea as DelegateCreateData, ec as FactoryRelationshipResolver, ei as InsertManySpec, el as SchemaTableDropOperation, en as applyOperationsToPersistedColumnMappingsState, eo as TransactionOptions, er as Arkormx, es as fromExpressionNode, et as buildRelationLine, f as awaitConfiguredModelsRegistration, fa as EagerLoadMap, fc as InExpressionNode, fi as QueryGroupCondition, fn as resolveColumnMappingsFilePath, fo as AttributeQuerySchema, fr as getRegisteredSeeders, ft as formatEnumDefaultValue, g as disposeArkormRuntime, ga as NamingCase, gc as ValueExpressionNode, gi as QueryJoinConstraint, gn as writePersistedColumnMappingsState, go as AttributeWhereInput, gr as loadSeedersFrom, gt as pad, h as defineConfig, ha as ModelTableCase, hc as RawExpressionNode, hi as QueryJoinColumnConstraint, hn as validatePersistedMetadataFeaturesForMigrations, ho as AttributeUpdateInput, hr as loadModelsFrom, ht as getMigrationPlan, i as RuntimeModuleLoader, ia as DelegateRow, ic as BinaryExpressionNode, ii as QueryComparisonCondition, il as TimestampNaming, in as getPersistedEnumMap, io as EachCallback, ir as RuntimeConstructor, is as raw, it as deriveInverseRelationAlias, j as isTransactionCapableClient, ja as PrismaTransactionCallback, jc as MorphedByManyRelationMetadata, ji as QueryTimeCondition, jn as SchemaBuilder, jo as ModelRelationshipKey, jr as createPrismaCompatibilityAdapter, js as RelationDefaultResolver, jt as buildMigrationRunId, k as isDelegateLike, ka as PrismaLikeSortOrder, kc as MorphToManyRelationMetadata, ki as QuerySelectColumn, kn as MIGRATION_BRAND, ko as ModelLifecycleState, kr as PrismaDatabaseAdapter, ks as RelationColumnLookupSpec, kt as runInMigrationPlanning, l as createPrismaAdapter, la as DelegateUpdateData, lc as ExpressionJsonCast, li as QueryExpressionCondition, ln as readPersistedColumnMappingsState, lo as ArkormModelRegistry, lr as getRegisteredMigrations, ls as ModelFactory, lt as findEnumBlock, m as configureArkormRuntime, ma as ModelQuerySchemaLike, mc as NullCheckExpressionNode, mi as QueryJoinBoolean, mn as syncPersistedColumnMappingsFromState, mo as AttributeSelect, mr as loadMigrationsFrom, mt as generateMigrationFile, n as PivotModel, na as DelegateInclude, nc as MaybePromise, ni as PartitionedSelectSpec, nl as TimestampColumnBehavior, nn as deletePersistedColumnMappingsState, no as RelationshipModelStatic, nr as RegisteredFactory, ns as max, nt as createMigrationTimestamp, o as resolveRuntimeCompatibilityQuerySchema, oa as DelegateSelect, oc as CaseExpressionNode, oi as QueryCondition, on as getPersistedPrimaryKeyGeneration, oo as GroupByAggregateRow, or as RuntimePathKey, os as val, ot as deriveRelationFieldName, p as bindAdapterToModels, pa as GetUserConfig, pc as JsonExpressionNode, pi as QueryJoin, pn as resolvePersistedMetadataFeatures, po as AttributeSchemaDelegate, pr as loadFactoriesFrom, pt as formatRelationAction, q as buildEnumBlock, qa as RuntimeClientLike, qc as SchemaForeignKey, qi as ArkormDebugEvent, qn as InitCommand, qo as avg, qr as DatabaseAdapter, qs as ArkormCollection, qt as writeAppliedMigrationsState, r as LoadedRuntimeModule, ra as DelegateOrderBy, rc as AggregateExpressionNode, ri as QueryColumnComparisonCondition, rl as TimestampNames, rn as getPersistedColumnMap, ro as ChunkCallback, rr as RegisteredModel, rs as min, rt as deriveCollectionFieldName, s as resolveRuntimeCompatibilityQuerySchemaOrThrow, sa as DelegateUniqueWhere, sc as ColumnExpressionNode, si as QueryDayCondition, sn as getPersistedTableMetadata, so as GroupByAggregateSpec, sr as RuntimePathMap, ss as where, st as deriveSingularFieldName, t as URLDriver, ta as DelegateFindManyArgs, tc as FactoryState, ti as InsertSpec, tl as SchemaUniqueConstraint, tn as createEmptyPersistedColumnMappingsState, to as ModelStatic, tr as getModel, ts as json, tt as buildUniqueConstraintLine, u as createPrismaDelegateMap, ua as DelegateWhere, uc as ExpressionNode, ui as QueryFullTextCondition, un as rebuildPersistedColumnMappingsState, uo as AttributeCreateInput, ur as getRegisteredModels, us as defineFactory, ut as findModelBlock, v as ensureArkormConfigLoading, va as PaginationMeta, vc as DatabaseTablePersistedMetadataOptions, vi as QueryJoinNullConstraint, vn as UniqueConstraintResolutionException, vo as GlobalScope, vr as registerMigrations, vt as resolveMigrationClassName, w as getRuntimeDebugHandler, wa as PrismaFindManyArgsLike, wc as HasOneRelationMetadata, wi as QueryLogicalOperator, wn as ModelNotFoundException, wo as ModelEventDispatcher, wr as SEEDER_BRAND, wt as supportsDatabaseMigrationExecution, x as getDefaultStubsPath, xa as PaginationURLDriverFactory, xc as ColumnMap, xi as QueryJoinValueConstraint, xn as QueryExecutionException, xo as ModelAttributesOf, xr as registerSeeders, xt as runPrismaCommand, y as getActiveTransactionAdapter, ya as PaginationOptions, yc as BelongsToManyRelationMetadata, yi as QueryJoinRawConstraint, yn as ScopeNotDefinedException, yo as ModelAttributeValue, yr as registerModels, yt as resolvePrismaType, z as applyAlterTableOperation, za as QuerySchemaRow, zc as GeneratedMigrationFile, zi as SortDirection, zn as MigrationHistoryCommand, zo as RegisteredModelName, zr as AdapterModelFieldStructure, zs as JoinOn, zt as isMigrationApplied } from "./index-D7YII9Fu.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, isMigrationPlanningActive, 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, runInMigrationPlanning, 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 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 };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as buildPrimaryKeyLine, $a as TransactionContext, $c as SchemaTableCreateOperation, $i as ClientResolver, $n as Arkorm, $o as fn, $r as DeleteSpec, $s as FactoryModelConstructor, $t as PersistedTimestampColumn, A as isQuerySchemaLike, Aa as PrismaLikeWhereInput, Ac as MorphToRelationMetadata, Ai as QueryTarget, An as Migration, Ao as ModelOrderByInput, Ar as PrismaDelegateNameMapping, As as RelationConstraint, At as buildMigrationIdentity, B as applyCreateTableOperation, Ba as QuerySchemaRows, Bc as MigrationClass, Bi as UpdateManySpec, Bn as MigrateRollbackCommand, Bo as RelatedModelClass, Br as AdapterModelIntrospectionOptions, Bs as JoinSource, Bt as markMigrationApplied, C as getRuntimeClient, Ca as PrismaDelegateLike, Cc as HasManyThroughRelationMetadata, Ci as QueryJsonConditionKind, Cn as QueryConstraintException, Co as ModelDeclaredAttributeKey, Cr as resolveRegisteredModel, Ct as supportsDatabaseCreation, D as getRuntimePrismaClient, Da as PrismaLikeScalarFilter, Dc as MorphManyRelationMetadata, Di as QueryRawCondition, Dn as ArkormException, Do as ModelEventListener, Dr as SeederConstructor, Ds as RelationAggregateInput, Dt as toModelName, E as getRuntimePaginationURLDriverFactory, Ea as PrismaLikeOrderBy, Ec as ModelMetadata, Ei as QueryOrderBy, En as ArkormErrorContext, Eo as ModelEventHandlerConstructor, Er as SeederCallArgument, Es as RelationAggregateConstraint, Et as toMigrationFileSlug, F as PrimaryKeyGenerationPlanner, Fa as QuerySchemaCreateData, Fc as AppliedMigrationEntry, Fi as RelationLoadPlan, Fn as resolveGeneratedExpression, Fo as QuerySchemaForModel, Fr as AdapterCapabilities, Fs as RelationResultCache, Ft as findAppliedMigration, G as applyMigrationToPrismaSchema, Ga as QuerySchemaWhere, Gc as SchemaColumn, Gi as ArkormBootContext, Gn as MakeMigrationCommand, Go as ExpressionBuilder, Gr as AggregateSelection, Gs as LengthAwarePaginator, Gt as resolveMigrationStateFilePath, H as applyMigrationRollbackToDatabase, Ha as QuerySchemaUniqueWhere, Hc as PrimaryKeyGeneration, Hi as UpsertSpec, Hn as MigrateCommand, Ho as AggregateExpression, Hr as AdapterQueryOperation, Hs as RelatedModelFromResult, Ht as readAppliedMigrationsState, I as PRISMA_ENUM_MEMBER_REGEX, Ia as QuerySchemaFindManyArgs, Ic as AppliedMigrationRun, Ii as RelationLoadSpec, In as ForeignKeyBuilder, Io as QuerySchemaForModelInstance, Ir as AdapterCapability, Is as RelationTableLookupSpec, It as getLastBatchMigrations, J as buildFieldLine, Ja as Serializable, Jc as SchemaForeignKeyAction, Ji as ArkormDebugHandler, Jn as DbCommand, Jo as caseWhen, Jr as DatabasePrimitive, Js as FactoryAttributeResolver, Jt as writeAppliedMigrationsStateToStore, K as applyOperationsToPrismaSchema, Ka as RawSelectInput, Kc as SchemaColumnType, Ki as ArkormConfig, Kn as MakeFactoryCommand, Ko as JsonExpression, Kr as AggregateSpec, Ks as Paginator, Kt as supportsDatabaseMigrationState, L as PRISMA_ENUM_REGEX, La as QuerySchemaInclude, Lc as AppliedMigrationsState, Li as SelectSpec, Ln as SeedCommand, Lo as RegisteredModelClass, Lr as AdapterDatabaseCreationResult, Ls as EagerLoadQueryForRelationship, Lt as getLastMigrationRun, M as loadArkormConfig, Ma as PrismaTransactionCapableClient, Mc as PivotModelStatic, Mi as RawQuerySpec, Mn as EnumBuilder, Mo as ModelRelationshipResult, Mr as createPrismaDatabaseAdapter, Ms as RelationDefaultValue, Mt as computeMigrationChecksum, N as resetArkormRuntimeForTests, Na as PrismaTransactionContext, Nc as RelationMetadata, Ni as RelationAggregateSpec, Nn as TableBuilder, No as ModelUpdateData, Nr as KyselyDatabaseAdapter, Ns as RelationMetadataProvider, Nt as createEmptyAppliedMigrationsState, O as getUserConfig, Oa as PrismaLikeSelect, Oc as MorphOneRelationMetadata, Oi as QueryScalarComparisonOperator, On as DB, Oo as ModelEventName, Or as SeederInput, Os as RelationAggregateType, Ot as isMigrationPlanningActive, P as runArkormTransaction, Pa as PrismaTransactionOptions, Pc as RelationMetadataType, Pi as RelationFilterSpec, Pn as GeneratedColumnExpression, Po as ModelWhereInput, Pr as createKyselyAdapter, Ps as RelationResult, Pt as deleteAppliedMigrationsStateFromStore, Q as buildModelBlock, Qa as TransactionCapableClient, Qc as SchemaTableAlterOperation, Qi as CastType, Qn as AttributeOptions, Qo as expressionBuilder, Qr as DeleteManySpec, Qs as FactoryDefinitionAttributes, Qt as PersistedTableMetadata, R as PRISMA_MODEL_REGEX, Ra as QuerySchemaOrderBy, Rc as GenerateMigrationOptions, Ri as SoftDeleteQueryMode, Rn as ModelsSyncCommand, Ro as RegisteredModelInstance, Rr as AdapterInspectionRequest, Rs as EagerLoadRelations, Rt as getLatestAppliedMigrations, S as getRuntimeAdapter, Sa as PrismaClientLike, Sc as HasManyRelationMetadata, Si as QueryJsonCondition, Sn as QueryExecutionExceptionContext, So as ModelCreateData, Sr as resetRuntimeRegistryForTests, St as stripPrismaSchemaModelsAndEnums, T as getRuntimePaginationCurrentPageResolver, Ta as PrismaLikeInclude, Tc as HasOneThroughRelationMetadata, Ti as QueryNotCondition, Tn as MissingDelegateException, To as ModelEventHandler, Tr as Seeder, Tt as supportsDatabaseReset, U as applyMigrationRollbackToPrismaSchema, Ua as QuerySchemaUpdateArgs, Uc as PrismaMigrationWorkflowOptions, Ui as AdapterBindableModel, Un as MakeSeederCommand, Uo as CaseExpression, Ur as AdapterTransactionContext, Us as WhereCallback, Ut as readAppliedMigrationsStateFromStore, V as applyDropTableOperation, Va as QuerySchemaSelect, Vc as MigrationInstanceLike, Vi as UpdateSpec, Vn as MigrateFreshCommand, Vo as Model, Vr as AdapterModelStructure, Vs as RelatedModelForRelationship, Vt as markMigrationRun, W as applyMigrationToDatabase, Wa as QuerySchemaUpdateData, Wc as PrismaSchemaSyncOptions, Wi as AdapterQueryInspection, Wn as MakeModelCommand, Wo as Expression, Wr as AggregateOperation, Ws as JoinClause, Wt as removeAppliedMigration, X as buildInverseRelationLine, Xa as SoftDeleteConfig, Xc as SchemaOperation, Xi as CastHandler, Xn as resolveCast, Xo as col, Xr as DatabaseRows, Xs as FactoryCallback, Xt as PersistedMetadataFeatures, Y as buildIndexLine, Ya as SimplePaginationMeta, Yc as SchemaIndex, Yi as CastDefinition, Yn as CliApp, Yo as coalesce, Yr as DatabaseRow, Ys as FactoryAttributes, Yt as PersistedColumnMappingsState, Z as buildMigrationSource, Za as TransactionCallback, Zc as SchemaPrimaryKey, Zi as CastMap, Zn as Attribute, Zo as count, Zr as DatabaseValue, Zs as FactoryDefinition, Zt as PersistedPrimaryKeyGeneration, _ as emitRuntimeDebugEvent, _a as PaginationCurrentPageResolver, _c as DatabaseTableOptions, _i as QueryJoinNestedConstraint, _n as UnsupportedAdapterFeatureException, _o as DelegateForModelSchema, _r as registerFactories, _t as resolveEnumName, a as getRuntimeCompatibilityAdapter, aa as DelegateRows, ac as CaseExpressionBranch, ai as QueryComparisonOperator, an as getPersistedEnumTsType, ao as ExpressionSelectMap, ar as RuntimePathInput, as as sum, at as deriveRelationAlias, b as getActiveTransactionClient, ba as PaginationURLDriver, bc as BelongsToRelationMetadata, bi as QueryJoinType, bn as RelationResolutionException, bo as ModelAttributes, br as registerPaths, bt as runMigrationWithPrisma, c as PrismaDelegateMap, ca as DelegateUpdateArgs, cc as ExpressionBinaryOperator, ci as QueryExistsCondition, cn as getPersistedTimestampColumns, co as QueryBuilder, cr as getRegisteredFactories, cs as InlineFactory, ct as escapeRegex, d as inferDelegateName, da as EagerLoadConstraint, dc as FunctionExpressionNode, di as QueryGroupByItem, dn as resetPersistedColumnMappingsCache, do as AttributeOrderBy, dr as getRegisteredPaths, dt as formatDefaultValue, ea as DelegateCreateData, ec as FactoryRelationshipResolver, ei as InsertManySpec, el as SchemaTableDropOperation, en as applyOperationsToPersistedColumnMappingsState, eo as TransactionOptions, er as Arkormx, es as fromExpressionNode, et as buildRelationLine, f as awaitConfiguredModelsRegistration, fa as EagerLoadMap, fc as InExpressionNode, fi as QueryGroupCondition, fn as resolveColumnMappingsFilePath, fo as AttributeQuerySchema, fr as getRegisteredSeeders, ft as formatEnumDefaultValue, g as disposeArkormRuntime, ga as NamingCase, gc as ValueExpressionNode, gi as QueryJoinConstraint, gn as writePersistedColumnMappingsState, go as AttributeWhereInput, gr as loadSeedersFrom, gt as pad, h as defineConfig, ha as ModelTableCase, hc as RawExpressionNode, hi as QueryJoinColumnConstraint, hn as validatePersistedMetadataFeaturesForMigrations, ho as AttributeUpdateInput, hr as loadModelsFrom, ht as getMigrationPlan, i as RuntimeModuleLoader, ia as DelegateRow, ic as BinaryExpressionNode, ii as QueryComparisonCondition, il as TimestampNaming, in as getPersistedEnumMap, io as EachCallback, ir as RuntimeConstructor, is as raw, it as deriveInverseRelationAlias, j as isTransactionCapableClient, ja as PrismaTransactionCallback, jc as MorphedByManyRelationMetadata, ji as QueryTimeCondition, jn as SchemaBuilder, jo as ModelRelationshipKey, jr as createPrismaCompatibilityAdapter, js as RelationDefaultResolver, jt as buildMigrationRunId, k as isDelegateLike, ka as PrismaLikeSortOrder, kc as MorphToManyRelationMetadata, ki as QuerySelectColumn, kn as MIGRATION_BRAND, ko as ModelLifecycleState, kr as PrismaDatabaseAdapter, ks as RelationColumnLookupSpec, kt as runInMigrationPlanning, l as createPrismaAdapter, la as DelegateUpdateData, lc as ExpressionJsonCast, li as QueryExpressionCondition, ln as readPersistedColumnMappingsState, lo as ArkormModelRegistry, lr as getRegisteredMigrations, ls as ModelFactory, lt as findEnumBlock, m as configureArkormRuntime, ma as ModelQuerySchemaLike, mc as NullCheckExpressionNode, mi as QueryJoinBoolean, mn as syncPersistedColumnMappingsFromState, mo as AttributeSelect, mr as loadMigrationsFrom, mt as generateMigrationFile, n as PivotModel, na as DelegateInclude, nc as MaybePromise, ni as PartitionedSelectSpec, nl as TimestampColumnBehavior, nn as deletePersistedColumnMappingsState, no as RelationshipModelStatic, nr as RegisteredFactory, ns as max, nt as createMigrationTimestamp, o as resolveRuntimeCompatibilityQuerySchema, oa as DelegateSelect, oc as CaseExpressionNode, oi as QueryCondition, on as getPersistedPrimaryKeyGeneration, oo as GroupByAggregateRow, or as RuntimePathKey, os as val, ot as deriveRelationFieldName, p as bindAdapterToModels, pa as GetUserConfig, pc as JsonExpressionNode, pi as QueryJoin, pn as resolvePersistedMetadataFeatures, po as AttributeSchemaDelegate, pr as loadFactoriesFrom, pt as formatRelationAction, q as buildEnumBlock, qa as RuntimeClientLike, qc as SchemaForeignKey, qi as ArkormDebugEvent, qn as InitCommand, qo as avg, qr as DatabaseAdapter, qs as ArkormCollection, qt as writeAppliedMigrationsState, r as LoadedRuntimeModule, ra as DelegateOrderBy, rc as AggregateExpressionNode, ri as QueryColumnComparisonCondition, rl as TimestampNames, rn as getPersistedColumnMap, ro as ChunkCallback, rr as RegisteredModel, rs as min, rt as deriveCollectionFieldName, s as resolveRuntimeCompatibilityQuerySchemaOrThrow, sa as DelegateUniqueWhere, sc as ColumnExpressionNode, si as QueryDayCondition, sn as getPersistedTableMetadata, so as GroupByAggregateSpec, sr as RuntimePathMap, ss as where, st as deriveSingularFieldName, t as URLDriver, ta as DelegateFindManyArgs, tc as FactoryState, ti as InsertSpec, tl as SchemaUniqueConstraint, tn as createEmptyPersistedColumnMappingsState, to as ModelStatic, tr as getModel, ts as json, tt as buildUniqueConstraintLine, u as createPrismaDelegateMap, ua as DelegateWhere, uc as ExpressionNode, ui as QueryFullTextCondition, un as rebuildPersistedColumnMappingsState, uo as AttributeCreateInput, ur as getRegisteredModels, us as defineFactory, ut as findModelBlock, v as ensureArkormConfigLoading, va as PaginationMeta, vc as DatabaseTablePersistedMetadataOptions, vi as QueryJoinNullConstraint, vn as UniqueConstraintResolutionException, vo as GlobalScope, vr as registerMigrations, vt as resolveMigrationClassName, w as getRuntimeDebugHandler, wa as PrismaFindManyArgsLike, wc as HasOneRelationMetadata, wi as QueryLogicalOperator, wn as ModelNotFoundException, wo as ModelEventDispatcher, wr as SEEDER_BRAND, wt as supportsDatabaseMigrationExecution, x as getDefaultStubsPath, xa as PaginationURLDriverFactory, xc as ColumnMap, xi as QueryJoinValueConstraint, xn as QueryExecutionException, xo as ModelAttributesOf, xr as registerSeeders, xt as runPrismaCommand, y as getActiveTransactionAdapter, ya as PaginationOptions, yc as BelongsToManyRelationMetadata, yi as QueryJoinRawConstraint, yn as ScopeNotDefinedException, yo as ModelAttributeValue, yr as registerModels, yt as resolvePrismaType, z as applyAlterTableOperation, za as QuerySchemaRow, zc as GeneratedMigrationFile, zi as SortDirection, zn as MigrationHistoryCommand, zo as RegisteredModelName, zr as AdapterModelFieldStructure, zs as JoinOn, zt as isMigrationApplied } from "./index-XrPjh7V8.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, isMigrationPlanningActive, 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, runInMigrationPlanning, 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 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 };
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as buildPrimaryKeyLine, $n as
|
|
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-CrNsvYto.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";
|
|
@@ -3214,7 +3214,7 @@ var CliApp = class {
|
|
|
3214
3214
|
return lines.join("\n");
|
|
3215
3215
|
}
|
|
3216
3216
|
parseModelSyncSource(modelSource) {
|
|
3217
|
-
const classMatch = modelSource.match(/export\s+class\s+(\w+)\s+extends\s
|
|
3217
|
+
const classMatch = modelSource.match(/export\s+(?:abstract\s+)?class\s+(\w+)\s+extends\s+/);
|
|
3218
3218
|
if (!classMatch) return null;
|
|
3219
3219
|
const className = classMatch[1];
|
|
3220
3220
|
const tableMatch = modelSource.match(/protected\s+static\s+override\s+table\s*=\s*['"]([^'"]+)['"]/) ?? modelSource.match(/static\s+table\s*=\s*['"]([^'"]+)['"]/);
|
|
@@ -10871,4 +10871,4 @@ var PivotModel = class extends Model {
|
|
|
10871
10871
|
};
|
|
10872
10872
|
|
|
10873
10873
|
//#endregion
|
|
10874
|
-
export { AggregateExpression, Arkorm, ArkormCollection, ArkormException, Arkormx, Attribute, CaseExpression, CliApp, DB, DbCommand, EnumBuilder, Expression, ForeignKeyBuilder, InitCommand, InlineFactory, JoinClause, JsonExpression, KyselyDatabaseAdapter, LengthAwarePaginator, MIGRATION_BRAND, MakeFactoryCommand, MakeMigrationCommand, MakeModelCommand, MakeSeederCommand, MigrateCommand, MigrateFreshCommand, MigrateRollbackCommand, Migration, MigrationHistoryCommand, MissingDelegateException, Model, ModelFactory, ModelNotFoundException, ModelsSyncCommand, PRISMA_ENUM_MEMBER_REGEX, PRISMA_ENUM_REGEX, PRISMA_MODEL_REGEX, Paginator, PivotModel, PrimaryKeyGenerationPlanner, PrismaDatabaseAdapter, QueryBuilder, QueryConstraintException, QueryExecutionException, RelationResolutionException, RuntimeModuleLoader, SEEDER_BRAND, SchemaBuilder, ScopeNotDefinedException, SeedCommand, Seeder, TableBuilder, URLDriver, UniqueConstraintResolutionException, UnsupportedAdapterFeatureException, 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,
|
|
10874
|
+
export { AggregateExpression, Arkorm, ArkormCollection, ArkormException, Arkormx, Attribute, CaseExpression, CliApp, DB, DbCommand, EnumBuilder, Expression, ForeignKeyBuilder, InitCommand, InlineFactory, JoinClause, JsonExpression, KyselyDatabaseAdapter, LengthAwarePaginator, MIGRATION_BRAND, MakeFactoryCommand, MakeMigrationCommand, MakeModelCommand, MakeSeederCommand, MigrateCommand, MigrateFreshCommand, MigrateRollbackCommand, Migration, MigrationHistoryCommand, MissingDelegateException, Model, ModelFactory, ModelNotFoundException, ModelsSyncCommand, PRISMA_ENUM_MEMBER_REGEX, PRISMA_ENUM_REGEX, PRISMA_MODEL_REGEX, Paginator, PivotModel, PrimaryKeyGenerationPlanner, PrismaDatabaseAdapter, QueryBuilder, QueryConstraintException, QueryExecutionException, RelationResolutionException, RuntimeModuleLoader, SEEDER_BRAND, SchemaBuilder, ScopeNotDefinedException, SeedCommand, Seeder, TableBuilder, URLDriver, UniqueConstraintResolutionException, UnsupportedAdapterFeatureException, 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,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_relationship = require('../relationship-
|
|
2
|
+
const require_relationship = require('../relationship-B7dIK_Vc.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 RelationTableLoader, Ss as Relation, _s as HasManyThroughRelation, bs as SingleResultRelation, ds as MorphedByManyRelation, fs as MorphToManyRelation, gs as HasOneRelation, hs as HasOneThroughRelation, ls as SetBasedEagerLoader, ms as MorphManyRelation, ps as MorphOneRelation, us as MorphToRelation, vs as HasManyRelation, xs as BelongsToManyRelation, ys as BelongsToRelation } from "../index-3-Sgl4-j.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 RelationTableLoader, Ss as Relation, _s as HasManyThroughRelation, bs as SingleResultRelation, ds as MorphedByManyRelation, fs as MorphToManyRelation, gs as HasOneRelation, hs as HasOneThroughRelation, ls as SetBasedEagerLoader, ms as MorphManyRelation, ps as MorphOneRelation, us as MorphToRelation, vs as HasManyRelation, xs as BelongsToManyRelation, ys as BelongsToRelation } from "../index-CwRrmbzl.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
|
|
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-CrNsvYto.mjs";
|
|
2
2
|
|
|
3
3
|
export { BelongsToManyRelation, BelongsToRelation, HasManyRelation, HasManyThroughRelation, HasOneRelation, HasOneThroughRelation, MorphManyRelation, MorphOneRelation, MorphToManyRelation, MorphToRelation, MorphedByManyRelation, Relation, RelationTableLoader, SetBasedEagerLoader, SingleResultRelation };
|
|
@@ -6652,81 +6652,6 @@ var HasOneThroughRelation = class extends SingleResultRelation {
|
|
|
6652
6652
|
}
|
|
6653
6653
|
};
|
|
6654
6654
|
|
|
6655
|
-
//#endregion
|
|
6656
|
-
//#region src/relationship/MorphedByManyRelation.ts
|
|
6657
|
-
/**
|
|
6658
|
-
* Defines the inverse side of a polymorphic many-to-many relationship.
|
|
6659
|
-
*
|
|
6660
|
-
* @author Legacy (3m1n3nc3)
|
|
6661
|
-
* @since 2.12.0
|
|
6662
|
-
*/
|
|
6663
|
-
var MorphedByManyRelation = class extends Relation {
|
|
6664
|
-
constructor(parent, related, throughTable, morphName, foreignPivotKey, morphTypeColumn, relatedPivotKey, parentKey, relatedKey) {
|
|
6665
|
-
super();
|
|
6666
|
-
this.parent = parent;
|
|
6667
|
-
this.related = related;
|
|
6668
|
-
this.throughTable = throughTable;
|
|
6669
|
-
this.morphName = morphName;
|
|
6670
|
-
this.foreignPivotKey = foreignPivotKey;
|
|
6671
|
-
this.morphTypeColumn = morphTypeColumn;
|
|
6672
|
-
this.relatedPivotKey = relatedPivotKey;
|
|
6673
|
-
this.parentKey = parentKey;
|
|
6674
|
-
this.relatedKey = relatedKey;
|
|
6675
|
-
}
|
|
6676
|
-
/**
|
|
6677
|
-
* Build the relationship query.
|
|
6678
|
-
*
|
|
6679
|
-
* @returns
|
|
6680
|
-
*/
|
|
6681
|
-
async getQuery() {
|
|
6682
|
-
const parentValue = this.parent.getAttribute(this.parentKey);
|
|
6683
|
-
const morphType = this.related.name;
|
|
6684
|
-
const ids = await this.createRelationTableLoader().selectColumnValues({
|
|
6685
|
-
lookup: {
|
|
6686
|
-
table: this.throughTable,
|
|
6687
|
-
where: {
|
|
6688
|
-
type: "group",
|
|
6689
|
-
operator: "and",
|
|
6690
|
-
conditions: [{
|
|
6691
|
-
type: "comparison",
|
|
6692
|
-
column: this.foreignPivotKey,
|
|
6693
|
-
operator: "=",
|
|
6694
|
-
value: parentValue
|
|
6695
|
-
}, {
|
|
6696
|
-
type: "comparison",
|
|
6697
|
-
column: this.morphTypeColumn,
|
|
6698
|
-
operator: "=",
|
|
6699
|
-
value: morphType
|
|
6700
|
-
}]
|
|
6701
|
-
}
|
|
6702
|
-
},
|
|
6703
|
-
column: this.relatedPivotKey
|
|
6704
|
-
});
|
|
6705
|
-
return this.applyConstraint(this.related.query().where({ [this.relatedKey]: { in: ids } }));
|
|
6706
|
-
}
|
|
6707
|
-
getMetadata() {
|
|
6708
|
-
return {
|
|
6709
|
-
type: "morphedByMany",
|
|
6710
|
-
relatedModel: this.related,
|
|
6711
|
-
throughTable: this.throughTable,
|
|
6712
|
-
morphName: this.morphName,
|
|
6713
|
-
foreignPivotKey: this.foreignPivotKey,
|
|
6714
|
-
morphTypeColumn: this.morphTypeColumn,
|
|
6715
|
-
relatedPivotKey: this.relatedPivotKey,
|
|
6716
|
-
parentKey: this.parentKey,
|
|
6717
|
-
relatedKey: this.relatedKey
|
|
6718
|
-
};
|
|
6719
|
-
}
|
|
6720
|
-
/**
|
|
6721
|
-
* Fetch the related models.
|
|
6722
|
-
*
|
|
6723
|
-
* @returns
|
|
6724
|
-
*/
|
|
6725
|
-
async getResults() {
|
|
6726
|
-
return (await this.getQuery()).get();
|
|
6727
|
-
}
|
|
6728
|
-
};
|
|
6729
|
-
|
|
6730
6655
|
//#endregion
|
|
6731
6656
|
//#region src/relationship/MorphManyRelation.ts
|
|
6732
6657
|
/**
|
|
@@ -6914,6 +6839,81 @@ var MorphToManyRelation = class extends Relation {
|
|
|
6914
6839
|
}
|
|
6915
6840
|
};
|
|
6916
6841
|
|
|
6842
|
+
//#endregion
|
|
6843
|
+
//#region src/relationship/MorphedByManyRelation.ts
|
|
6844
|
+
/**
|
|
6845
|
+
* Defines the inverse side of a polymorphic many-to-many relationship.
|
|
6846
|
+
*
|
|
6847
|
+
* @author Legacy (3m1n3nc3)
|
|
6848
|
+
* @since 2.12.0
|
|
6849
|
+
*/
|
|
6850
|
+
var MorphedByManyRelation = class extends Relation {
|
|
6851
|
+
constructor(parent, related, throughTable, morphName, foreignPivotKey, morphTypeColumn, relatedPivotKey, parentKey, relatedKey) {
|
|
6852
|
+
super();
|
|
6853
|
+
this.parent = parent;
|
|
6854
|
+
this.related = related;
|
|
6855
|
+
this.throughTable = throughTable;
|
|
6856
|
+
this.morphName = morphName;
|
|
6857
|
+
this.foreignPivotKey = foreignPivotKey;
|
|
6858
|
+
this.morphTypeColumn = morphTypeColumn;
|
|
6859
|
+
this.relatedPivotKey = relatedPivotKey;
|
|
6860
|
+
this.parentKey = parentKey;
|
|
6861
|
+
this.relatedKey = relatedKey;
|
|
6862
|
+
}
|
|
6863
|
+
/**
|
|
6864
|
+
* Build the relationship query.
|
|
6865
|
+
*
|
|
6866
|
+
* @returns
|
|
6867
|
+
*/
|
|
6868
|
+
async getQuery() {
|
|
6869
|
+
const parentValue = this.parent.getAttribute(this.parentKey);
|
|
6870
|
+
const morphType = this.related.name;
|
|
6871
|
+
const ids = await this.createRelationTableLoader().selectColumnValues({
|
|
6872
|
+
lookup: {
|
|
6873
|
+
table: this.throughTable,
|
|
6874
|
+
where: {
|
|
6875
|
+
type: "group",
|
|
6876
|
+
operator: "and",
|
|
6877
|
+
conditions: [{
|
|
6878
|
+
type: "comparison",
|
|
6879
|
+
column: this.foreignPivotKey,
|
|
6880
|
+
operator: "=",
|
|
6881
|
+
value: parentValue
|
|
6882
|
+
}, {
|
|
6883
|
+
type: "comparison",
|
|
6884
|
+
column: this.morphTypeColumn,
|
|
6885
|
+
operator: "=",
|
|
6886
|
+
value: morphType
|
|
6887
|
+
}]
|
|
6888
|
+
}
|
|
6889
|
+
},
|
|
6890
|
+
column: this.relatedPivotKey
|
|
6891
|
+
});
|
|
6892
|
+
return this.applyConstraint(this.related.query().where({ [this.relatedKey]: { in: ids } }));
|
|
6893
|
+
}
|
|
6894
|
+
getMetadata() {
|
|
6895
|
+
return {
|
|
6896
|
+
type: "morphedByMany",
|
|
6897
|
+
relatedModel: this.related,
|
|
6898
|
+
throughTable: this.throughTable,
|
|
6899
|
+
morphName: this.morphName,
|
|
6900
|
+
foreignPivotKey: this.foreignPivotKey,
|
|
6901
|
+
morphTypeColumn: this.morphTypeColumn,
|
|
6902
|
+
relatedPivotKey: this.relatedPivotKey,
|
|
6903
|
+
parentKey: this.parentKey,
|
|
6904
|
+
relatedKey: this.relatedKey
|
|
6905
|
+
};
|
|
6906
|
+
}
|
|
6907
|
+
/**
|
|
6908
|
+
* Fetch the related models.
|
|
6909
|
+
*
|
|
6910
|
+
* @returns
|
|
6911
|
+
*/
|
|
6912
|
+
async getResults() {
|
|
6913
|
+
return (await this.getQuery()).get();
|
|
6914
|
+
}
|
|
6915
|
+
};
|
|
6916
|
+
|
|
6917
6917
|
//#endregion
|
|
6918
6918
|
//#region src/relationship/MorphToRelation.ts
|
|
6919
6919
|
/**
|
|
@@ -7921,12 +7921,6 @@ Object.defineProperty(exports, 'runArkormTransaction', {
|
|
|
7921
7921
|
return runArkormTransaction;
|
|
7922
7922
|
}
|
|
7923
7923
|
});
|
|
7924
|
-
Object.defineProperty(exports, 'runInMigrationPlanning', {
|
|
7925
|
-
enumerable: true,
|
|
7926
|
-
get: function () {
|
|
7927
|
-
return runInMigrationPlanning;
|
|
7928
|
-
}
|
|
7929
|
-
});
|
|
7930
7924
|
Object.defineProperty(exports, 'runMigrationWithPrisma', {
|
|
7931
7925
|
enumerable: true,
|
|
7932
7926
|
get: function () {
|
|
@@ -6624,81 +6624,6 @@ var HasOneThroughRelation = class extends SingleResultRelation {
|
|
|
6624
6624
|
}
|
|
6625
6625
|
};
|
|
6626
6626
|
|
|
6627
|
-
//#endregion
|
|
6628
|
-
//#region src/relationship/MorphedByManyRelation.ts
|
|
6629
|
-
/**
|
|
6630
|
-
* Defines the inverse side of a polymorphic many-to-many relationship.
|
|
6631
|
-
*
|
|
6632
|
-
* @author Legacy (3m1n3nc3)
|
|
6633
|
-
* @since 2.12.0
|
|
6634
|
-
*/
|
|
6635
|
-
var MorphedByManyRelation = class extends Relation {
|
|
6636
|
-
constructor(parent, related, throughTable, morphName, foreignPivotKey, morphTypeColumn, relatedPivotKey, parentKey, relatedKey) {
|
|
6637
|
-
super();
|
|
6638
|
-
this.parent = parent;
|
|
6639
|
-
this.related = related;
|
|
6640
|
-
this.throughTable = throughTable;
|
|
6641
|
-
this.morphName = morphName;
|
|
6642
|
-
this.foreignPivotKey = foreignPivotKey;
|
|
6643
|
-
this.morphTypeColumn = morphTypeColumn;
|
|
6644
|
-
this.relatedPivotKey = relatedPivotKey;
|
|
6645
|
-
this.parentKey = parentKey;
|
|
6646
|
-
this.relatedKey = relatedKey;
|
|
6647
|
-
}
|
|
6648
|
-
/**
|
|
6649
|
-
* Build the relationship query.
|
|
6650
|
-
*
|
|
6651
|
-
* @returns
|
|
6652
|
-
*/
|
|
6653
|
-
async getQuery() {
|
|
6654
|
-
const parentValue = this.parent.getAttribute(this.parentKey);
|
|
6655
|
-
const morphType = this.related.name;
|
|
6656
|
-
const ids = await this.createRelationTableLoader().selectColumnValues({
|
|
6657
|
-
lookup: {
|
|
6658
|
-
table: this.throughTable,
|
|
6659
|
-
where: {
|
|
6660
|
-
type: "group",
|
|
6661
|
-
operator: "and",
|
|
6662
|
-
conditions: [{
|
|
6663
|
-
type: "comparison",
|
|
6664
|
-
column: this.foreignPivotKey,
|
|
6665
|
-
operator: "=",
|
|
6666
|
-
value: parentValue
|
|
6667
|
-
}, {
|
|
6668
|
-
type: "comparison",
|
|
6669
|
-
column: this.morphTypeColumn,
|
|
6670
|
-
operator: "=",
|
|
6671
|
-
value: morphType
|
|
6672
|
-
}]
|
|
6673
|
-
}
|
|
6674
|
-
},
|
|
6675
|
-
column: this.relatedPivotKey
|
|
6676
|
-
});
|
|
6677
|
-
return this.applyConstraint(this.related.query().where({ [this.relatedKey]: { in: ids } }));
|
|
6678
|
-
}
|
|
6679
|
-
getMetadata() {
|
|
6680
|
-
return {
|
|
6681
|
-
type: "morphedByMany",
|
|
6682
|
-
relatedModel: this.related,
|
|
6683
|
-
throughTable: this.throughTable,
|
|
6684
|
-
morphName: this.morphName,
|
|
6685
|
-
foreignPivotKey: this.foreignPivotKey,
|
|
6686
|
-
morphTypeColumn: this.morphTypeColumn,
|
|
6687
|
-
relatedPivotKey: this.relatedPivotKey,
|
|
6688
|
-
parentKey: this.parentKey,
|
|
6689
|
-
relatedKey: this.relatedKey
|
|
6690
|
-
};
|
|
6691
|
-
}
|
|
6692
|
-
/**
|
|
6693
|
-
* Fetch the related models.
|
|
6694
|
-
*
|
|
6695
|
-
* @returns
|
|
6696
|
-
*/
|
|
6697
|
-
async getResults() {
|
|
6698
|
-
return (await this.getQuery()).get();
|
|
6699
|
-
}
|
|
6700
|
-
};
|
|
6701
|
-
|
|
6702
6627
|
//#endregion
|
|
6703
6628
|
//#region src/relationship/MorphManyRelation.ts
|
|
6704
6629
|
/**
|
|
@@ -6886,6 +6811,81 @@ var MorphToManyRelation = class extends Relation {
|
|
|
6886
6811
|
}
|
|
6887
6812
|
};
|
|
6888
6813
|
|
|
6814
|
+
//#endregion
|
|
6815
|
+
//#region src/relationship/MorphedByManyRelation.ts
|
|
6816
|
+
/**
|
|
6817
|
+
* Defines the inverse side of a polymorphic many-to-many relationship.
|
|
6818
|
+
*
|
|
6819
|
+
* @author Legacy (3m1n3nc3)
|
|
6820
|
+
* @since 2.12.0
|
|
6821
|
+
*/
|
|
6822
|
+
var MorphedByManyRelation = class extends Relation {
|
|
6823
|
+
constructor(parent, related, throughTable, morphName, foreignPivotKey, morphTypeColumn, relatedPivotKey, parentKey, relatedKey) {
|
|
6824
|
+
super();
|
|
6825
|
+
this.parent = parent;
|
|
6826
|
+
this.related = related;
|
|
6827
|
+
this.throughTable = throughTable;
|
|
6828
|
+
this.morphName = morphName;
|
|
6829
|
+
this.foreignPivotKey = foreignPivotKey;
|
|
6830
|
+
this.morphTypeColumn = morphTypeColumn;
|
|
6831
|
+
this.relatedPivotKey = relatedPivotKey;
|
|
6832
|
+
this.parentKey = parentKey;
|
|
6833
|
+
this.relatedKey = relatedKey;
|
|
6834
|
+
}
|
|
6835
|
+
/**
|
|
6836
|
+
* Build the relationship query.
|
|
6837
|
+
*
|
|
6838
|
+
* @returns
|
|
6839
|
+
*/
|
|
6840
|
+
async getQuery() {
|
|
6841
|
+
const parentValue = this.parent.getAttribute(this.parentKey);
|
|
6842
|
+
const morphType = this.related.name;
|
|
6843
|
+
const ids = await this.createRelationTableLoader().selectColumnValues({
|
|
6844
|
+
lookup: {
|
|
6845
|
+
table: this.throughTable,
|
|
6846
|
+
where: {
|
|
6847
|
+
type: "group",
|
|
6848
|
+
operator: "and",
|
|
6849
|
+
conditions: [{
|
|
6850
|
+
type: "comparison",
|
|
6851
|
+
column: this.foreignPivotKey,
|
|
6852
|
+
operator: "=",
|
|
6853
|
+
value: parentValue
|
|
6854
|
+
}, {
|
|
6855
|
+
type: "comparison",
|
|
6856
|
+
column: this.morphTypeColumn,
|
|
6857
|
+
operator: "=",
|
|
6858
|
+
value: morphType
|
|
6859
|
+
}]
|
|
6860
|
+
}
|
|
6861
|
+
},
|
|
6862
|
+
column: this.relatedPivotKey
|
|
6863
|
+
});
|
|
6864
|
+
return this.applyConstraint(this.related.query().where({ [this.relatedKey]: { in: ids } }));
|
|
6865
|
+
}
|
|
6866
|
+
getMetadata() {
|
|
6867
|
+
return {
|
|
6868
|
+
type: "morphedByMany",
|
|
6869
|
+
relatedModel: this.related,
|
|
6870
|
+
throughTable: this.throughTable,
|
|
6871
|
+
morphName: this.morphName,
|
|
6872
|
+
foreignPivotKey: this.foreignPivotKey,
|
|
6873
|
+
morphTypeColumn: this.morphTypeColumn,
|
|
6874
|
+
relatedPivotKey: this.relatedPivotKey,
|
|
6875
|
+
parentKey: this.parentKey,
|
|
6876
|
+
relatedKey: this.relatedKey
|
|
6877
|
+
};
|
|
6878
|
+
}
|
|
6879
|
+
/**
|
|
6880
|
+
* Fetch the related models.
|
|
6881
|
+
*
|
|
6882
|
+
* @returns
|
|
6883
|
+
*/
|
|
6884
|
+
async getResults() {
|
|
6885
|
+
return (await this.getQuery()).get();
|
|
6886
|
+
}
|
|
6887
|
+
};
|
|
6888
|
+
|
|
6889
6889
|
//#endregion
|
|
6890
6890
|
//#region src/relationship/MorphToRelation.ts
|
|
6891
6891
|
/**
|
|
@@ -6969,4 +6969,4 @@ var MorphToRelation = class extends Relation {
|
|
|
6969
6969
|
};
|
|
6970
6970
|
|
|
6971
6971
|
//#endregion
|
|
6972
|
-
export { buildPrimaryKeyLine as $,
|
|
6972
|
+
export { buildPrimaryKeyLine as $, readAppliedMigrationsState as $n, bindAdapterToModels as $t, resetPersistedColumnMappingsCache as A, registerFactories as An, EnumBuilder as At, applyCreateTableOperation as B, ForeignKeyBuilder as Bn, col as Bt, getPersistedEnumMap as C, getRegisteredModels as Cn, supportsDatabaseCreation as Ct, getPersistedTimestampColumns as D, loadMigrationsFrom as Dn, toModelName as Dt, getPersistedTableMetadata as E, loadFactoriesFrom as En, toMigrationFileSlug as Et, writePersistedColumnMappingsState as F, resetRuntimeRegistryForTests as Fn, Expression as Ft, applyMigrationToPrismaSchema as G, deleteAppliedMigrationsStateFromStore as Gn, json as Gt, applyMigrationRollbackToDatabase as H, buildMigrationRunId as Hn, expressionBuilder as Ht, PRISMA_ENUM_MEMBER_REGEX as I, resolveRegisteredModel as In, JsonExpression as It, buildFieldLine as J, getLastMigrationRun as Jn, raw as Jt, applyOperationsToPrismaSchema as K, findAppliedMigration as Kn, max as Kt, PRISMA_ENUM_REGEX as L, UnsupportedAdapterFeatureException as Ln, avg as Lt, resolvePersistedMetadataFeatures as M, registerModels as Mn, resolveGeneratedExpression as Mt, syncPersistedColumnMappingsFromState as N, registerPaths as Nn, AggregateExpression as Nt, readPersistedColumnMappingsState as O, loadModelsFrom as On, isMigrationPlanningActive as Ot, validatePersistedMetadataFeaturesForMigrations as P, registerSeeders as Pn, CaseExpression as Pt, buildModelBlock as Q, markMigrationRun as Qn, awaitConfiguredModelsRegistration as Qt, PRISMA_MODEL_REGEX as R, RuntimeModuleLoader as Rn, caseWhen as Rt, getPersistedColumnMap as S, getRegisteredMigrations as Sn, stripPrismaSchemaModelsAndEnums as St, getPersistedPrimaryKeyGeneration as T, getRegisteredSeeders as Tn, supportsDatabaseReset as Tt, applyMigrationRollbackToPrismaSchema as U, computeMigrationChecksum as Un, fn as Ut, applyDropTableOperation as V, buildMigrationIdentity as Vn, count as Vt, applyMigrationToDatabase as W, createEmptyAppliedMigrationsState as Wn, fromExpressionNode as Wt, buildInverseRelationLine as X, isMigrationApplied as Xn, val as Xt, buildIndexLine as Y, getLatestAppliedMigrations as Yn, sum as Yt, buildMigrationSource as Z, markMigrationApplied as Zn, where as Zt, SetBasedEagerLoader as _, isTransactionCapableClient as _n, resolveEnumName as _t, MorphManyRelation as a, getActiveTransactionAdapter as an, writeAppliedMigrationsStateToStore as ar, deriveRelationAlias as at, createEmptyPersistedColumnMappingsState as b, runArkormTransaction as bn, runMigrationWithPrisma as bt, HasManyThroughRelation as c, getRuntimeAdapter as cn, ArkormException as cr, escapeRegex as ct, SingleResultRelation as d, getRuntimePaginationCurrentPageResolver as dn, formatDefaultValue as dt, configureArkormRuntime as en, readAppliedMigrationsStateFromStore as er, buildRelationLine as et, BelongsToManyRelation as f, getRuntimePaginationURLDriverFactory as fn, formatEnumDefaultValue as ft, URLDriver as g, isQuerySchemaLike as gn, pad as gt, Paginator as h, isDelegateLike as hn, getMigrationPlan as ht, MorphOneRelation as i, ensureArkormConfigLoading as in, writeAppliedMigrationsState as ir, deriveInverseRelationAlias as it, resolveColumnMappingsFilePath as j, registerMigrations as jn, TableBuilder as jt, rebuildPersistedColumnMappingsState as k, loadSeedersFrom as kn, SchemaBuilder as kt, HasManyRelation as l, getRuntimeClient as ln, findEnumBlock as lt, LengthAwarePaginator as m, getUserConfig as mn, generateMigrationFile as mt, MorphedByManyRelation as n, disposeArkormRuntime as nn, resolveMigrationStateFilePath as nr, createMigrationTimestamp as nt, HasOneThroughRelation as o, getActiveTransactionClient as on, RelationResolutionException as or, deriveRelationFieldName as ot, Relation as p, getRuntimePrismaClient as pn, formatRelationAction as pt, buildEnumBlock as q, getLastBatchMigrations as qn, min as qt, MorphToManyRelation as r, emitRuntimeDebugEvent as rn, supportsDatabaseMigrationState as rr, deriveCollectionFieldName as rt, HasOneRelation as s, getDefaultStubsPath as sn, ArkormCollection as sr, deriveSingularFieldName as st, MorphToRelation as t, defineConfig as tn, removeAppliedMigration as tr, buildUniqueConstraintLine as tt, BelongsToRelation as u, getRuntimeDebugHandler as un, findModelBlock as ut, RelationTableLoader as v, loadArkormConfig as vn, resolveMigrationClassName as vt, getPersistedEnumTsType as w, getRegisteredPaths as wn, supportsDatabaseMigrationExecution as wt, deletePersistedColumnMappingsState as x, getRegisteredFactories as xn, runPrismaCommand as xt, applyOperationsToPersistedColumnMappingsState as y, resetArkormRuntimeForTests as yn, resolvePrismaType as yt, applyAlterTableOperation as z, PrimaryKeyGenerationPlanner as zn, coalesce as zt };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "arkormx",
|
|
3
|
-
"version": "2.12.
|
|
3
|
+
"version": "2.12.1",
|
|
4
4
|
"description": "Modern TypeScript-first ORM for Node.js.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"orm",
|
|
@@ -106,6 +106,7 @@
|
|
|
106
106
|
"build": "tsdown",
|
|
107
107
|
"barrel": "barrelize",
|
|
108
108
|
"release": "pnpm publish --access public --tag latest --no-git-checks",
|
|
109
|
+
"release:ci": "pnpm publish --access public --tag latest --no-git-checks --ignore-scripts",
|
|
109
110
|
"docs:dev": "vitepress dev docs",
|
|
110
111
|
"docs:build": "vitepress build docs",
|
|
111
112
|
"docs:preview": "vitepress preview docs",
|