arkormx 2.11.8 → 2.11.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{index-C9KP-bo7.d.mts → index-n7PDrO7n.d.mts} +76 -4
- package/dist/{index-DAgIbKR2.d.cts → index-zEl3LGHl.d.cts} +76 -4
- package/dist/index.cjs +50 -9
- package/dist/index.d.cts +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +50 -9
- package/dist/relationship/index.cjs +2 -1
- package/dist/relationship/index.d.cts +2 -2
- package/dist/relationship/index.d.mts +2 -2
- package/dist/relationship/index.mjs +2 -2
- package/dist/{relationship-Cgk8-Yu9.mjs → relationship-DGX4fG08.mjs} +76 -1
- package/dist/{relationship-DLygIhKD.cjs → relationship-JGzxPfTH.cjs} +81 -0
- package/package.json +1 -1
- package/stubs/factory.js.stub +0 -3
- package/stubs/factory.stub +1 -3
|
@@ -161,7 +161,7 @@ interface ModelMetadata {
|
|
|
161
161
|
primaryKeyGeneration?: PrimaryKeyGeneration;
|
|
162
162
|
timestampColumns?: TimestampColumnBehavior[];
|
|
163
163
|
}
|
|
164
|
-
type RelationMetadataType = 'hasOne' | 'hasMany' | 'belongsTo' | 'belongsToMany' | 'hasOneThrough' | 'hasManyThrough' | 'morphOne' | 'morphMany' | 'morphTo' | 'morphToMany';
|
|
164
|
+
type RelationMetadataType = 'hasOne' | 'hasMany' | 'belongsTo' | 'belongsToMany' | 'hasOneThrough' | 'hasManyThrough' | 'morphOne' | 'morphMany' | 'morphTo' | 'morphToMany' | 'morphedByMany';
|
|
165
165
|
interface BaseRelationMetadata {
|
|
166
166
|
type: RelationMetadataType;
|
|
167
167
|
relatedModel: RelationshipModelStatic;
|
|
@@ -248,7 +248,17 @@ interface MorphToManyRelationMetadata extends BaseRelationMetadata {
|
|
|
248
248
|
parentKey: string;
|
|
249
249
|
relatedKey: string;
|
|
250
250
|
}
|
|
251
|
-
|
|
251
|
+
interface MorphedByManyRelationMetadata extends BaseRelationMetadata {
|
|
252
|
+
type: 'morphedByMany';
|
|
253
|
+
throughTable: string;
|
|
254
|
+
morphName: string;
|
|
255
|
+
foreignPivotKey: string;
|
|
256
|
+
morphTypeColumn: string;
|
|
257
|
+
relatedPivotKey: string;
|
|
258
|
+
parentKey: string;
|
|
259
|
+
relatedKey: string;
|
|
260
|
+
}
|
|
261
|
+
type RelationMetadata = HasOneRelationMetadata | HasManyRelationMetadata | BelongsToRelationMetadata | BelongsToManyRelationMetadata | HasOneThroughRelationMetadata | HasManyThroughRelationMetadata | MorphOneRelationMetadata | MorphManyRelationMetadata | MorphToRelationMetadata | MorphToManyRelationMetadata | MorphedByManyRelationMetadata;
|
|
252
262
|
//#endregion
|
|
253
263
|
//#region src/types/db.d.ts
|
|
254
264
|
interface DatabaseTablePersistedMetadataOptions {
|
|
@@ -1891,6 +1901,41 @@ declare class HasOneThroughRelation<TParent, TRelated> extends SingleResultRelat
|
|
|
1891
1901
|
getResults(): Promise<TRelated | null>;
|
|
1892
1902
|
}
|
|
1893
1903
|
//#endregion
|
|
1904
|
+
//#region src/relationship/MorphedByManyRelation.d.ts
|
|
1905
|
+
/**
|
|
1906
|
+
* Defines the inverse side of a polymorphic many-to-many relationship.
|
|
1907
|
+
*
|
|
1908
|
+
* @author Legacy (3m1n3nc3)
|
|
1909
|
+
* @since 2.12.0
|
|
1910
|
+
*/
|
|
1911
|
+
declare class MorphedByManyRelation<TParent, TRelated> extends Relation<TRelated> {
|
|
1912
|
+
private readonly parent;
|
|
1913
|
+
private readonly related;
|
|
1914
|
+
private readonly throughTable;
|
|
1915
|
+
private readonly morphName;
|
|
1916
|
+
private readonly foreignPivotKey;
|
|
1917
|
+
private readonly morphTypeColumn;
|
|
1918
|
+
private readonly relatedPivotKey;
|
|
1919
|
+
private readonly parentKey;
|
|
1920
|
+
private readonly relatedKey;
|
|
1921
|
+
constructor(parent: TParent & {
|
|
1922
|
+
getAttribute: (key: string) => unknown;
|
|
1923
|
+
}, related: RelationshipModelStatic, throughTable: string, morphName: string, foreignPivotKey: string, morphTypeColumn: string, relatedPivotKey: string, parentKey: string, relatedKey: string);
|
|
1924
|
+
/**
|
|
1925
|
+
* Build the relationship query.
|
|
1926
|
+
*
|
|
1927
|
+
* @returns
|
|
1928
|
+
*/
|
|
1929
|
+
getQuery(): Promise<QueryBuilder<TRelated>>;
|
|
1930
|
+
getMetadata(): MorphedByManyRelationMetadata;
|
|
1931
|
+
/**
|
|
1932
|
+
* Fetch the related models.
|
|
1933
|
+
*
|
|
1934
|
+
* @returns
|
|
1935
|
+
*/
|
|
1936
|
+
getResults(): Promise<ArkormCollection<TRelated>>;
|
|
1937
|
+
}
|
|
1938
|
+
//#endregion
|
|
1894
1939
|
//#region src/relationship/MorphManyRelation.d.ts
|
|
1895
1940
|
/**
|
|
1896
1941
|
* Defines a polymorphic one-to-many relationship.
|
|
@@ -2282,12 +2327,25 @@ declare abstract class ModelFactory<TModel, TAttributes extends FactoryAttribute
|
|
|
2282
2327
|
private attachedRelations;
|
|
2283
2328
|
private recyclePool;
|
|
2284
2329
|
private recycleOffsets;
|
|
2285
|
-
|
|
2330
|
+
private injectedModel?;
|
|
2331
|
+
protected model?: FactoryModelConstructor<TModel>;
|
|
2286
2332
|
protected abstract definition(sequence: number): MaybePromise<FactoryDefinitionAttributes<TAttributes>>;
|
|
2287
2333
|
/**
|
|
2288
2334
|
* Configure states and lifecycle callbacks for each new factory instance.
|
|
2289
2335
|
*/
|
|
2290
2336
|
protected configure(): void;
|
|
2337
|
+
/**
|
|
2338
|
+
* Supply the model constructor that this factory should create.
|
|
2339
|
+
*
|
|
2340
|
+
* Model.factory() calls this automatically, allowing a factory referenced by
|
|
2341
|
+
* a model's factoryClass to use a type-only model import and avoid a runtime
|
|
2342
|
+
* model -> factory -> model cycle. Directly instantiated factories may call
|
|
2343
|
+
* this method explicitly or continue defining the protected model property.
|
|
2344
|
+
*
|
|
2345
|
+
* @param model
|
|
2346
|
+
* @returns
|
|
2347
|
+
*/
|
|
2348
|
+
setModel(model: FactoryModelConstructor<TModel>): this;
|
|
2291
2349
|
/**
|
|
2292
2350
|
* Set the number of models to create.
|
|
2293
2351
|
*
|
|
@@ -3316,6 +3374,20 @@ declare abstract class Model<TSchema extends ModelQuerySchemaLike | Record<strin
|
|
|
3316
3374
|
* @returns
|
|
3317
3375
|
*/
|
|
3318
3376
|
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>>;
|
|
3377
|
+
/**
|
|
3378
|
+
* Define the inverse side of a polymorphic many-to-many relationship.
|
|
3379
|
+
*
|
|
3380
|
+
* @param related
|
|
3381
|
+
* @param morphName
|
|
3382
|
+
* @param throughTable
|
|
3383
|
+
* @param foreignPivotKey
|
|
3384
|
+
* @param morphTypeColumn
|
|
3385
|
+
* @param relatedPivotKey
|
|
3386
|
+
* @param parentKey
|
|
3387
|
+
* @param relatedKey
|
|
3388
|
+
* @returns
|
|
3389
|
+
*/
|
|
3390
|
+
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>>;
|
|
3319
3391
|
private resolveMorphColumns;
|
|
3320
3392
|
private formatConventionName;
|
|
3321
3393
|
private static getNamingCase;
|
|
@@ -8619,4 +8691,4 @@ declare class URLDriver {
|
|
|
8619
8691
|
url(page: number): string;
|
|
8620
8692
|
}
|
|
8621
8693
|
//#endregion
|
|
8622
|
-
export { buildPrimaryKeyLine as $, RelationshipModelStatic as $a, DelegateInclude as $i, Arkorm as $n, val as $o, InsertSpec as $r, ColumnExpressionNode as $s, PersistedTimestampColumn as $t, isQuerySchemaLike as A, PrismaTransactionContext as Aa, GeneratedMigrationFile as Ac, RelationAggregateSpec as Ai, Migration as An, ModelWhereInput as Ao, createPrismaDatabaseAdapter as Ar, EagerLoadRelations as As, buildMigrationIdentity as At, applyCreateTableOperation as B, QuerySchemaUpdateArgs as Ba, SchemaIndex as Bc, AdapterBindableModel as Bi, MigrateRollbackCommand as Bn, avg as Bo, AdapterQueryOperation as Br, FactoryAttributeResolver as Bs, markMigrationApplied as Bt, getRuntimeClient as C, PrismaLikeOrderBy as Ca, PivotModelStatic as Cc, QueryOrderBy as Ci, QueryConstraintException as Cn, ModelEventListener as Co, Seeder as Cr, RelationDefaultResolver as Cs, supportsDatabaseCreation as Ct, getRuntimePrismaClient as D, PrismaLikeWhereInput as Da, AppliedMigrationRun as Dc, QueryTarget as Di, ArkormException as Dn, ModelRelationshipKey as Do, PrismaDatabaseAdapter as Dr, RelationResultCache as Ds, toModelName as Dt, getRuntimePaginationURLDriverFactory as E, PrismaLikeSortOrder as Ea, AppliedMigrationEntry as Ec, QuerySelectColumn as Ei, ArkormErrorContext as En, ModelOrderByInput as Eo, SeederInput as Er, RelationResult as Es, toMigrationFileSlug as Et, PrimaryKeyGenerationPlanner as F, QuerySchemaOrderBy as Fa, PrismaSchemaSyncOptions as Fc, SoftDeleteQueryMode as Fi, resolveGeneratedExpression as Fn, AggregateExpression as Fo, AdapterDatabaseCreationResult as Fr, WhereCallback as Fs, findAppliedMigration as Ft, applyMigrationToPrismaSchema as G, Serializable as Ga, SchemaTableDropOperation as Gc, ArkormDebugHandler as Gi, MakeMigrationCommand as Gn, expressionBuilder as Go, DatabaseAdapter as Gr, FactoryModelConstructor as Gs, resolveMigrationStateFilePath as Gt, applyMigrationRollbackToDatabase as H, QuerySchemaWhere as Ha, SchemaPrimaryKey as Hc, ArkormBootContext as Hi, MigrateCommand as Hn, coalesce as Ho, AggregateOperation as Hr, FactoryCallback as Hs, readAppliedMigrationsState as Ht, PRISMA_ENUM_MEMBER_REGEX as I, QuerySchemaRow as Ia, SchemaColumn as Ic, SortDirection as Ii, ForeignKeyBuilder as In, CaseExpression as Io, AdapterInspectionRequest as Ir, JoinClause as Is, getLastBatchMigrations as It, buildFieldLine as J, TransactionCallback as Ja, TimestampNames as Jc, CastMap as Ji, DbCommand as Jn, json as Jo, DatabaseRows as Jr, MaybePromise as Js, writeAppliedMigrationsStateToStore as Jt, applyOperationsToPrismaSchema as K, SimplePaginationMeta as Ka, SchemaUniqueConstraint as Kc, CastDefinition as Ki, MakeFactoryCommand as Kn, fn as Ko, DatabasePrimitive as Kr, FactoryRelationshipResolver as Ks, supportsDatabaseMigrationState as Kt, PRISMA_ENUM_REGEX as L, QuerySchemaRows as La, SchemaColumnType as Lc, UpdateManySpec as Li, SeedCommand as Ln, Expression as Lo, AdapterModelFieldStructure as Lr, LengthAwarePaginator as Ls, getLastMigrationRun as Lt, loadArkormConfig as M, QuerySchemaCreateData as Ma, MigrationInstanceLike as Mc, RelationLoadPlan as Mi, EnumBuilder as Mn, QuerySchemaForModelInstance as Mo, createKyselyAdapter as Mr, JoinSource as Ms, computeMigrationChecksum as Mt, resetArkormRuntimeForTests as N, QuerySchemaFindManyArgs as Na, PrimaryKeyGeneration as Nc, RelationLoadSpec as Ni, TableBuilder as Nn, RelatedModelClass as No, AdapterCapabilities as Nr, RelatedModelForRelationship as Ns, createEmptyAppliedMigrationsState as Nt, getUserConfig as O, PrismaTransactionCallback as Oa, AppliedMigrationsState as Oc, QueryTimeCondition as Oi, DB as On, ModelRelationshipResult as Oo, PrismaDelegateNameMapping as Or, RelationTableLookupSpec as Os, isMigrationPlanningActive as Ot, runArkormTransaction as P, QuerySchemaInclude as Pa, PrismaMigrationWorkflowOptions as Pc, SelectSpec as Pi, GeneratedColumnExpression as Pn, Model as Po, AdapterCapability as Pr, RelatedModelFromResult as Ps, deleteAppliedMigrationsStateFromStore as Pt, buildModelBlock as Q, ModelStatic as Qa, DelegateFindManyArgs as Qi, AttributeOptions as Qn, sum as Qo, InsertManySpec as Qr, CaseExpressionNode as Qs, PersistedTableMetadata as Qt, PRISMA_MODEL_REGEX as R, QuerySchemaSelect as Ra, SchemaForeignKey as Rc, UpdateSpec as Ri, ModelsSyncCommand as Rn, ExpressionBuilder as Ro, AdapterModelIntrospectionOptions as Rr, Paginator as Rs, getLatestAppliedMigrations as Rt, getRuntimeAdapter as S, PrismaLikeInclude as Sa, MorphToRelationMetadata as Sc, QueryNotCondition as Si, QueryExecutionExceptionContext as Sn, ModelEventHandlerConstructor as So, SEEDER_BRAND as Sr, RelationConstraint as Ss, stripPrismaSchemaModelsAndEnums as St, getRuntimePaginationCurrentPageResolver as T, PrismaLikeSelect as Ta, RelationMetadataType as Tc, QueryScalarComparisonOperator as Ti, MissingDelegateException as Tn, ModelLifecycleState as To, SeederConstructor as Tr, RelationMetadataProvider as Ts, supportsDatabaseReset as Tt, applyMigrationRollbackToPrismaSchema as U, RawSelectInput as Ua, SchemaTableAlterOperation as Uc, ArkormConfig as Ui, MakeSeederCommand as Un, col as Uo, AggregateSelection as Ur, FactoryDefinition as Us, readAppliedMigrationsStateFromStore as Ut, applyDropTableOperation as V, QuerySchemaUpdateData as Va, SchemaOperation as Vc, AdapterQueryInspection as Vi, MigrateFreshCommand as Vn, caseWhen as Vo, AdapterTransactionContext as Vr, FactoryAttributes as Vs, markMigrationRun as Vt, applyMigrationToDatabase as W, RuntimeClientLike as Wa, SchemaTableCreateOperation as Wc, ArkormDebugEvent as Wi, MakeModelCommand as Wn, count as Wo, AggregateSpec as Wr, FactoryDefinitionAttributes as Ws, removeAppliedMigration as Wt, buildInverseRelationLine as X, TransactionContext as Xa, ClientResolver as Xi, resolveCast as Xn, min as Xo, DeleteManySpec as Xr, BinaryExpressionNode as Xs, PersistedMetadataFeatures as Xt, buildIndexLine as Y, TransactionCapableClient as Ya, TimestampNaming as Yc, CastType as Yi, CliApp as Yn, max as Yo, DatabaseValue as Yr, AggregateExpressionNode as Ys, PersistedColumnMappingsState as Yt, buildMigrationSource as Z, TransactionOptions as Za, DelegateCreateData as Zi, Attribute as Zn, raw as Zo, DeleteSpec as Zr, CaseExpressionBranch as Zs, PersistedPrimaryKeyGeneration as Zt, emitRuntimeDebugEvent as _, PaginationURLDriver as _a, HasOneThroughRelationMetadata as _c, QueryJoinType as _i, UnsupportedAdapterFeatureException as _n, ModelAttributesOf as _o, registerMigrations as _r, RelationTableLoader as _s, resolveEnumName as _t, getRuntimeCompatibilityAdapter as a, DelegateUpdateArgs as aa, JsonExpressionNode as ac, QueryExistsCondition as ai, getPersistedEnumTsType as an, QueryBuilder as ao, RuntimePathKey as ar, MorphToRelation as as, deriveRelationAlias as at, getActiveTransactionClient as b, PrismaDelegateLike as ba, MorphOneRelationMetadata as bc, QueryJsonConditionKind as bi, RelationResolutionException as bn, ModelEventDispatcher as bo, registerSeeders as br, RelationAggregateType as bs, runMigrationWithPrisma as bt, PrismaDelegateMap as c, EagerLoadConstraint as ca, ValueExpressionNode as cc, QueryGroupByItem as ci, getPersistedTimestampColumns as cn, AttributeQuerySchema as co, getRegisteredMigrations as cr, MorphManyRelation as cs, escapeRegex as ct, inferDelegateName as d, ModelQuerySchemaLike as da, BelongsToManyRelationMetadata as dc, QueryJoinBoolean as di, resetPersistedColumnMappingsCache as dn, AttributeUpdateInput as do, getRegisteredSeeders as dr, HasManyThroughRelation as ds, formatDefaultValue as dt, DelegateOrderBy as ea, ExpressionBinaryOperator as ec, QueryColumnComparisonCondition as ei, applyOperationsToPersistedColumnMappingsState as en, ChunkCallback as eo, Arkormx as er, where as es, buildRelationLine as et, awaitConfiguredModelsRegistration as f, ModelTableCase as fa, BelongsToRelationMetadata as fc, QueryJoinColumnConstraint as fi, resolveColumnMappingsFilePath as fn, AttributeWhereInput as fo, loadFactoriesFrom as fr, HasManyRelation as fs, formatEnumDefaultValue as ft, disposeArkormRuntime as g, PaginationOptions as ga, HasOneRelationMetadata as gc, QueryJoinRawConstraint as gi, writePersistedColumnMappingsState as gn, ModelAttributes as go, registerFactories as gr, Relation as gs, pad as gt, defineConfig as h, PaginationMeta as ha, HasManyThroughRelationMetadata as hc, QueryJoinNullConstraint as hi, validatePersistedMetadataFeaturesForMigrations as hn, ModelAttributeValue as ho, loadSeedersFrom as hr, BelongsToManyRelation as hs, getMigrationPlan as ht, RuntimeModuleLoader as i, DelegateUniqueWhere as ia, InExpressionNode as ic, QueryDayCondition as ii, getPersistedEnumMap as in, GroupByAggregateSpec as io, RuntimePathInput as ir, SetBasedEagerLoader as is, deriveInverseRelationAlias as it, isTransactionCapableClient as j, PrismaTransactionOptions as ja, MigrationClass as jc, RelationFilterSpec as ji, SchemaBuilder as jn, QuerySchemaForModel as jo, KyselyDatabaseAdapter as jr, JoinOn as js, buildMigrationRunId as jt, isDelegateLike as k, PrismaTransactionCapableClient as ka, GenerateMigrationOptions as kc, RawQuerySpec as ki, MIGRATION_BRAND as kn, ModelUpdateData as ko, createPrismaCompatibilityAdapter as kr, EagerLoadQueryForRelationship as ks, runInMigrationPlanning as kt, createPrismaAdapter as l, EagerLoadMap as la, DatabaseTableOptions as lc, QueryGroupCondition as li, readPersistedColumnMappingsState as ln, AttributeSchemaDelegate as lo, getRegisteredModels as lr, HasOneThroughRelation as ls, findEnumBlock as lt, configureArkormRuntime as m, PaginationCurrentPageResolver as ma, HasManyRelationMetadata as mc, QueryJoinNestedConstraint as mi, syncPersistedColumnMappingsFromState as mn, GlobalScope as mo, loadModelsFrom as mr, SingleResultRelation as ms, generateMigrationFile as mt, PivotModel as n, DelegateRows as na, ExpressionNode as nc, QueryComparisonOperator as ni, deletePersistedColumnMappingsState as nn, ExpressionSelectMap as no, RegisteredModel as nr, ModelFactory as ns, createMigrationTimestamp as nt, resolveRuntimeCompatibilityQuerySchema as o, DelegateUpdateData as oa, NullCheckExpressionNode as oc, QueryExpressionCondition as oi, getPersistedPrimaryKeyGeneration as on, AttributeCreateInput as oo, RuntimePathMap as or, MorphToManyRelation as os, deriveRelationFieldName as ot, bindAdapterToModels as p, NamingCase as pa, ColumnMap as pc, QueryJoinConstraint as pi, resolvePersistedMetadataFeatures as pn, DelegateForModelSchema as po, loadMigrationsFrom as pr, BelongsToRelation as ps, formatRelationAction as pt, buildEnumBlock as q, SoftDeleteConfig as qa, TimestampColumnBehavior as qc, CastHandler as qi, InitCommand as qn, fromExpressionNode as qo, DatabaseRow as qr, FactoryState as qs, writeAppliedMigrationsState as qt, LoadedRuntimeModule as r, DelegateSelect as ra, FunctionExpressionNode as rc, QueryCondition as ri, getPersistedColumnMap as rn, GroupByAggregateRow as ro, RuntimeConstructor as rr, defineFactory as rs, deriveCollectionFieldName as rt, resolveRuntimeCompatibilityQuerySchemaOrThrow as s, DelegateWhere as sa, RawExpressionNode as sc, QueryFullTextCondition as si, getPersistedTableMetadata as sn, AttributeOrderBy as so, getRegisteredFactories as sr, MorphOneRelation as ss, deriveSingularFieldName as st, URLDriver as t, DelegateRow as ta, ExpressionJsonCast as tc, QueryComparisonCondition as ti, createEmptyPersistedColumnMappingsState as tn, EachCallback as to, RegisteredFactory as tr, InlineFactory as ts, buildUniqueConstraintLine as tt, createPrismaDelegateMap as u, GetUserConfig as ua, DatabaseTablePersistedMetadataOptions as uc, QueryJoin as ui, rebuildPersistedColumnMappingsState as un, AttributeSelect as uo, getRegisteredPaths as ur, HasOneRelation as us, findModelBlock as ut, ensureArkormConfigLoading as v, PaginationURLDriverFactory as va, ModelMetadata as vc, QueryJoinValueConstraint as vi, UniqueConstraintResolutionException as vn, ModelCreateData as vo, registerModels as vr, RelationAggregateConstraint as vs, resolveMigrationClassName as vt, getRuntimeDebugHandler as w, PrismaLikeScalarFilter as wa, RelationMetadata as wc, QueryRawCondition as wi, ModelNotFoundException as wn, ModelEventName as wo, SeederCallArgument as wr, RelationDefaultValue as ws, supportsDatabaseMigrationExecution as wt, getDefaultStubsPath as x, PrismaFindManyArgsLike as xa, MorphToManyRelationMetadata as xc, QueryLogicalOperator as xi, QueryExecutionException as xn, ModelEventHandler as xo, resetRuntimeRegistryForTests as xr, RelationColumnLookupSpec as xs, runPrismaCommand as xt, getActiveTransactionAdapter as y, PrismaClientLike as ya, MorphManyRelationMetadata as yc, QueryJsonCondition as yi, ScopeNotDefinedException as yn, ModelDeclaredAttributeKey as yo, registerPaths as yr, RelationAggregateInput as ys, resolvePrismaType as yt, applyAlterTableOperation as z, QuerySchemaUniqueWhere as za, SchemaForeignKeyAction as zc, UpsertSpec as zi, MigrationHistoryCommand as zn, JsonExpression as zo, AdapterModelStructure as zr, ArkormCollection as zs, isMigrationApplied as zt };
|
|
8694
|
+
export { buildPrimaryKeyLine as $, RelationshipModelStatic as $a, DelegateInclude as $i, Arkorm as $n, val as $o, InsertSpec as $r, CaseExpressionNode as $s, PersistedTimestampColumn as $t, isQuerySchemaLike as A, PrismaTransactionContext as Aa, AppliedMigrationsState as Ac, RelationAggregateSpec as Ai, Migration as An, ModelWhereInput as Ao, createPrismaDatabaseAdapter as Ar, EagerLoadQueryForRelationship as As, buildMigrationIdentity as At, applyCreateTableOperation as B, QuerySchemaUpdateArgs as Ba, SchemaForeignKey as Bc, AdapterBindableModel as Bi, MigrateRollbackCommand as Bn, avg as Bo, AdapterQueryOperation as Br, ArkormCollection as Bs, markMigrationApplied as Bt, getRuntimeClient as C, PrismaLikeOrderBy as Ca, MorphToRelationMetadata as Cc, QueryOrderBy as Ci, QueryConstraintException as Cn, ModelEventListener as Co, Seeder as Cr, RelationConstraint as Cs, supportsDatabaseCreation as Ct, getRuntimePrismaClient as D, PrismaLikeWhereInput as Da, RelationMetadataType as Dc, QueryTarget as Di, ArkormException as Dn, ModelRelationshipKey as Do, PrismaDatabaseAdapter as Dr, RelationResult as Ds, toModelName as Dt, getRuntimePaginationURLDriverFactory as E, PrismaLikeSortOrder as Ea, RelationMetadata as Ec, QuerySelectColumn as Ei, ArkormErrorContext as En, ModelOrderByInput as Eo, SeederInput as Er, RelationMetadataProvider as Es, toMigrationFileSlug as Et, PrimaryKeyGenerationPlanner as F, QuerySchemaOrderBy as Fa, PrimaryKeyGeneration as Fc, SoftDeleteQueryMode as Fi, resolveGeneratedExpression as Fn, AggregateExpression as Fo, AdapterDatabaseCreationResult as Fr, RelatedModelFromResult as Fs, findAppliedMigration as Ft, applyMigrationToPrismaSchema as G, Serializable as Ga, SchemaTableAlterOperation as Gc, ArkormDebugHandler as Gi, MakeMigrationCommand as Gn, expressionBuilder as Go, DatabaseAdapter as Gr, FactoryDefinitionAttributes as Gs, resolveMigrationStateFilePath as Gt, applyMigrationRollbackToDatabase as H, QuerySchemaWhere as Ha, SchemaIndex as Hc, ArkormBootContext as Hi, MigrateCommand as Hn, coalesce as Ho, AggregateOperation as Hr, FactoryAttributes as Hs, readAppliedMigrationsState as Ht, PRISMA_ENUM_MEMBER_REGEX as I, QuerySchemaRow as Ia, PrismaMigrationWorkflowOptions as Ic, SortDirection as Ii, ForeignKeyBuilder as In, CaseExpression as Io, AdapterInspectionRequest as Ir, WhereCallback as Is, getLastBatchMigrations as It, buildFieldLine as J, TransactionCallback as Ja, SchemaUniqueConstraint as Jc, CastMap as Ji, DbCommand as Jn, json as Jo, DatabaseRows as Jr, FactoryState as Js, writeAppliedMigrationsStateToStore as Jt, applyOperationsToPrismaSchema as K, SimplePaginationMeta as Ka, SchemaTableCreateOperation as Kc, CastDefinition as Ki, MakeFactoryCommand as Kn, fn as Ko, DatabasePrimitive as Kr, FactoryModelConstructor as Ks, supportsDatabaseMigrationState as Kt, PRISMA_ENUM_REGEX as L, QuerySchemaRows as La, PrismaSchemaSyncOptions as Lc, UpdateManySpec as Li, SeedCommand as Ln, Expression as Lo, AdapterModelFieldStructure as Lr, JoinClause as Ls, getLastMigrationRun as Lt, loadArkormConfig as M, QuerySchemaCreateData as Ma, GeneratedMigrationFile as Mc, RelationLoadPlan as Mi, EnumBuilder as Mn, QuerySchemaForModelInstance as Mo, createKyselyAdapter as Mr, JoinOn as Ms, computeMigrationChecksum as Mt, resetArkormRuntimeForTests as N, QuerySchemaFindManyArgs as Na, MigrationClass as Nc, RelationLoadSpec as Ni, TableBuilder as Nn, RelatedModelClass as No, AdapterCapabilities as Nr, JoinSource as Ns, createEmptyAppliedMigrationsState as Nt, getUserConfig as O, PrismaTransactionCallback as Oa, AppliedMigrationEntry as Oc, QueryTimeCondition as Oi, DB as On, ModelRelationshipResult as Oo, PrismaDelegateNameMapping as Or, RelationResultCache as Os, isMigrationPlanningActive as Ot, runArkormTransaction as P, QuerySchemaInclude as Pa, MigrationInstanceLike as Pc, SelectSpec as Pi, GeneratedColumnExpression as Pn, Model as Po, AdapterCapability as Pr, RelatedModelForRelationship as Ps, deleteAppliedMigrationsStateFromStore as Pt, buildModelBlock as Q, ModelStatic as Qa, DelegateFindManyArgs as Qi, AttributeOptions as Qn, sum as Qo, InsertManySpec as Qr, CaseExpressionBranch as Qs, PersistedTableMetadata as Qt, PRISMA_MODEL_REGEX as R, QuerySchemaSelect as Ra, SchemaColumn as Rc, UpdateSpec as Ri, ModelsSyncCommand as Rn, ExpressionBuilder as Ro, AdapterModelIntrospectionOptions as Rr, LengthAwarePaginator as Rs, getLatestAppliedMigrations as Rt, getRuntimeAdapter as S, PrismaLikeInclude as Sa, MorphToManyRelationMetadata as Sc, QueryNotCondition as Si, QueryExecutionExceptionContext as Sn, ModelEventHandlerConstructor as So, SEEDER_BRAND as Sr, RelationColumnLookupSpec as Ss, stripPrismaSchemaModelsAndEnums as St, getRuntimePaginationCurrentPageResolver as T, PrismaLikeSelect as Ta, PivotModelStatic as Tc, QueryScalarComparisonOperator as Ti, MissingDelegateException as Tn, ModelLifecycleState as To, SeederConstructor as Tr, RelationDefaultValue as Ts, supportsDatabaseReset as Tt, applyMigrationRollbackToPrismaSchema as U, RawSelectInput as Ua, SchemaOperation as Uc, ArkormConfig as Ui, MakeSeederCommand as Un, col as Uo, AggregateSelection as Ur, FactoryCallback as Us, readAppliedMigrationsStateFromStore as Ut, applyDropTableOperation as V, QuerySchemaUpdateData as Va, SchemaForeignKeyAction as Vc, AdapterQueryInspection as Vi, MigrateFreshCommand as Vn, caseWhen as Vo, AdapterTransactionContext as Vr, FactoryAttributeResolver as Vs, markMigrationRun as Vt, applyMigrationToDatabase as W, RuntimeClientLike as Wa, SchemaPrimaryKey as Wc, ArkormDebugEvent as Wi, MakeModelCommand as Wn, count as Wo, AggregateSpec as Wr, FactoryDefinition as Ws, removeAppliedMigration as Wt, buildInverseRelationLine as X, TransactionContext as Xa, TimestampNames as Xc, ClientResolver as Xi, resolveCast as Xn, min as Xo, DeleteManySpec as Xr, AggregateExpressionNode as Xs, PersistedMetadataFeatures as Xt, buildIndexLine as Y, TransactionCapableClient as Ya, TimestampColumnBehavior as Yc, CastType as Yi, CliApp as Yn, max as Yo, DatabaseValue as Yr, MaybePromise as Ys, PersistedColumnMappingsState as Yt, buildMigrationSource as Z, TransactionOptions as Za, TimestampNaming as Zc, DelegateCreateData as Zi, Attribute as Zn, raw as Zo, DeleteSpec as Zr, BinaryExpressionNode as Zs, PersistedPrimaryKeyGeneration as Zt, emitRuntimeDebugEvent as _, PaginationURLDriver as _a, HasOneRelationMetadata as _c, QueryJoinType as _i, UnsupportedAdapterFeatureException as _n, ModelAttributesOf as _o, registerMigrations as _r, Relation as _s, resolveEnumName as _t, getRuntimeCompatibilityAdapter as a, DelegateUpdateArgs as aa, InExpressionNode as ac, QueryExistsCondition as ai, getPersistedEnumTsType as an, QueryBuilder as ao, RuntimePathKey as ar, MorphToRelation as as, deriveRelationAlias as at, getActiveTransactionClient as b, PrismaDelegateLike as ba, MorphManyRelationMetadata as bc, QueryJsonConditionKind as bi, RelationResolutionException as bn, ModelEventDispatcher as bo, registerSeeders as br, RelationAggregateInput as bs, runMigrationWithPrisma as bt, PrismaDelegateMap as c, EagerLoadConstraint as ca, RawExpressionNode as cc, QueryGroupByItem as ci, getPersistedTimestampColumns as cn, AttributeQuerySchema as co, getRegisteredMigrations as cr, MorphManyRelation as cs, escapeRegex as ct, inferDelegateName as d, ModelQuerySchemaLike as da, DatabaseTablePersistedMetadataOptions as dc, QueryJoinBoolean as di, resetPersistedColumnMappingsCache as dn, AttributeUpdateInput as do, getRegisteredSeeders as dr, HasOneRelation as ds, formatDefaultValue as dt, DelegateOrderBy as ea, ColumnExpressionNode as ec, QueryColumnComparisonCondition as ei, applyOperationsToPersistedColumnMappingsState as en, ChunkCallback as eo, Arkormx as er, where as es, buildRelationLine as et, awaitConfiguredModelsRegistration as f, ModelTableCase as fa, BelongsToManyRelationMetadata as fc, QueryJoinColumnConstraint as fi, resolveColumnMappingsFilePath as fn, AttributeWhereInput as fo, loadFactoriesFrom as fr, HasManyThroughRelation as fs, formatEnumDefaultValue as ft, disposeArkormRuntime as g, PaginationOptions as ga, HasManyThroughRelationMetadata as gc, QueryJoinRawConstraint as gi, writePersistedColumnMappingsState as gn, ModelAttributes as go, registerFactories as gr, BelongsToManyRelation as gs, pad as gt, defineConfig as h, PaginationMeta as ha, HasManyRelationMetadata as hc, QueryJoinNullConstraint as hi, validatePersistedMetadataFeaturesForMigrations as hn, ModelAttributeValue as ho, loadSeedersFrom as hr, SingleResultRelation as hs, getMigrationPlan as ht, RuntimeModuleLoader as i, DelegateUniqueWhere as ia, FunctionExpressionNode as ic, QueryDayCondition as ii, getPersistedEnumMap as in, GroupByAggregateSpec as io, RuntimePathInput as ir, SetBasedEagerLoader as is, deriveInverseRelationAlias as it, isTransactionCapableClient as j, PrismaTransactionOptions as ja, GenerateMigrationOptions as jc, RelationFilterSpec as ji, SchemaBuilder as jn, QuerySchemaForModel as jo, KyselyDatabaseAdapter as jr, EagerLoadRelations as js, buildMigrationRunId as jt, isDelegateLike as k, PrismaTransactionCapableClient as ka, AppliedMigrationRun as kc, RawQuerySpec as ki, MIGRATION_BRAND as kn, ModelUpdateData as ko, createPrismaCompatibilityAdapter as kr, RelationTableLookupSpec as ks, runInMigrationPlanning as kt, createPrismaAdapter as l, EagerLoadMap as la, ValueExpressionNode as lc, QueryGroupCondition as li, readPersistedColumnMappingsState as ln, AttributeSchemaDelegate as lo, getRegisteredModels as lr, MorphedByManyRelation as ls, findEnumBlock as lt, configureArkormRuntime as m, PaginationCurrentPageResolver as ma, ColumnMap as mc, QueryJoinNestedConstraint as mi, syncPersistedColumnMappingsFromState as mn, GlobalScope as mo, loadModelsFrom as mr, BelongsToRelation as ms, generateMigrationFile as mt, PivotModel as n, DelegateRows as na, ExpressionJsonCast as nc, QueryComparisonOperator as ni, deletePersistedColumnMappingsState as nn, ExpressionSelectMap as no, RegisteredModel as nr, ModelFactory as ns, createMigrationTimestamp as nt, resolveRuntimeCompatibilityQuerySchema as o, DelegateUpdateData as oa, JsonExpressionNode as oc, QueryExpressionCondition as oi, getPersistedPrimaryKeyGeneration as on, AttributeCreateInput as oo, RuntimePathMap as or, MorphToManyRelation as os, deriveRelationFieldName as ot, bindAdapterToModels as p, NamingCase as pa, BelongsToRelationMetadata as pc, QueryJoinConstraint as pi, resolvePersistedMetadataFeatures as pn, DelegateForModelSchema as po, loadMigrationsFrom as pr, HasManyRelation as ps, formatRelationAction as pt, buildEnumBlock as q, SoftDeleteConfig as qa, SchemaTableDropOperation as qc, CastHandler as qi, InitCommand as qn, fromExpressionNode as qo, DatabaseRow as qr, FactoryRelationshipResolver as qs, writeAppliedMigrationsState as qt, LoadedRuntimeModule as r, DelegateSelect as ra, ExpressionNode as rc, QueryCondition as ri, getPersistedColumnMap as rn, GroupByAggregateRow as ro, RuntimeConstructor as rr, defineFactory as rs, deriveCollectionFieldName as rt, resolveRuntimeCompatibilityQuerySchemaOrThrow as s, DelegateWhere as sa, NullCheckExpressionNode as sc, QueryFullTextCondition as si, getPersistedTableMetadata as sn, AttributeOrderBy as so, getRegisteredFactories as sr, MorphOneRelation as ss, deriveSingularFieldName as st, URLDriver as t, DelegateRow as ta, ExpressionBinaryOperator as tc, QueryComparisonCondition as ti, createEmptyPersistedColumnMappingsState as tn, EachCallback as to, RegisteredFactory as tr, InlineFactory as ts, buildUniqueConstraintLine as tt, createPrismaDelegateMap as u, GetUserConfig as ua, DatabaseTableOptions as uc, QueryJoin as ui, rebuildPersistedColumnMappingsState as un, AttributeSelect as uo, getRegisteredPaths as ur, HasOneThroughRelation as us, findModelBlock as ut, ensureArkormConfigLoading as v, PaginationURLDriverFactory as va, HasOneThroughRelationMetadata as vc, QueryJoinValueConstraint as vi, UniqueConstraintResolutionException as vn, ModelCreateData as vo, registerModels as vr, RelationTableLoader as vs, resolveMigrationClassName as vt, getRuntimeDebugHandler as w, PrismaLikeScalarFilter as wa, MorphedByManyRelationMetadata as wc, QueryRawCondition as wi, ModelNotFoundException as wn, ModelEventName as wo, SeederCallArgument as wr, RelationDefaultResolver as ws, supportsDatabaseMigrationExecution as wt, getDefaultStubsPath as x, PrismaFindManyArgsLike as xa, MorphOneRelationMetadata as xc, QueryLogicalOperator as xi, QueryExecutionException as xn, ModelEventHandler as xo, resetRuntimeRegistryForTests as xr, RelationAggregateType as xs, runPrismaCommand as xt, getActiveTransactionAdapter as y, PrismaClientLike as ya, ModelMetadata as yc, QueryJsonCondition as yi, ScopeNotDefinedException as yn, ModelDeclaredAttributeKey as yo, registerPaths as yr, RelationAggregateConstraint as ys, resolvePrismaType as yt, applyAlterTableOperation as z, QuerySchemaUniqueWhere as za, SchemaColumnType as zc, UpsertSpec as zi, MigrationHistoryCommand as zn, JsonExpression as zo, AdapterModelStructure as zr, Paginator as zs, isMigrationApplied as zt };
|
|
@@ -161,7 +161,7 @@ interface ModelMetadata {
|
|
|
161
161
|
primaryKeyGeneration?: PrimaryKeyGeneration;
|
|
162
162
|
timestampColumns?: TimestampColumnBehavior[];
|
|
163
163
|
}
|
|
164
|
-
type RelationMetadataType = 'hasOne' | 'hasMany' | 'belongsTo' | 'belongsToMany' | 'hasOneThrough' | 'hasManyThrough' | 'morphOne' | 'morphMany' | 'morphTo' | 'morphToMany';
|
|
164
|
+
type RelationMetadataType = 'hasOne' | 'hasMany' | 'belongsTo' | 'belongsToMany' | 'hasOneThrough' | 'hasManyThrough' | 'morphOne' | 'morphMany' | 'morphTo' | 'morphToMany' | 'morphedByMany';
|
|
165
165
|
interface BaseRelationMetadata {
|
|
166
166
|
type: RelationMetadataType;
|
|
167
167
|
relatedModel: RelationshipModelStatic;
|
|
@@ -248,7 +248,17 @@ interface MorphToManyRelationMetadata extends BaseRelationMetadata {
|
|
|
248
248
|
parentKey: string;
|
|
249
249
|
relatedKey: string;
|
|
250
250
|
}
|
|
251
|
-
|
|
251
|
+
interface MorphedByManyRelationMetadata extends BaseRelationMetadata {
|
|
252
|
+
type: 'morphedByMany';
|
|
253
|
+
throughTable: string;
|
|
254
|
+
morphName: string;
|
|
255
|
+
foreignPivotKey: string;
|
|
256
|
+
morphTypeColumn: string;
|
|
257
|
+
relatedPivotKey: string;
|
|
258
|
+
parentKey: string;
|
|
259
|
+
relatedKey: string;
|
|
260
|
+
}
|
|
261
|
+
type RelationMetadata = HasOneRelationMetadata | HasManyRelationMetadata | BelongsToRelationMetadata | BelongsToManyRelationMetadata | HasOneThroughRelationMetadata | HasManyThroughRelationMetadata | MorphOneRelationMetadata | MorphManyRelationMetadata | MorphToRelationMetadata | MorphToManyRelationMetadata | MorphedByManyRelationMetadata;
|
|
252
262
|
//#endregion
|
|
253
263
|
//#region src/types/db.d.ts
|
|
254
264
|
interface DatabaseTablePersistedMetadataOptions {
|
|
@@ -1891,6 +1901,41 @@ declare class HasOneThroughRelation<TParent, TRelated> extends SingleResultRelat
|
|
|
1891
1901
|
getResults(): Promise<TRelated | null>;
|
|
1892
1902
|
}
|
|
1893
1903
|
//#endregion
|
|
1904
|
+
//#region src/relationship/MorphedByManyRelation.d.ts
|
|
1905
|
+
/**
|
|
1906
|
+
* Defines the inverse side of a polymorphic many-to-many relationship.
|
|
1907
|
+
*
|
|
1908
|
+
* @author Legacy (3m1n3nc3)
|
|
1909
|
+
* @since 2.12.0
|
|
1910
|
+
*/
|
|
1911
|
+
declare class MorphedByManyRelation<TParent, TRelated> extends Relation<TRelated> {
|
|
1912
|
+
private readonly parent;
|
|
1913
|
+
private readonly related;
|
|
1914
|
+
private readonly throughTable;
|
|
1915
|
+
private readonly morphName;
|
|
1916
|
+
private readonly foreignPivotKey;
|
|
1917
|
+
private readonly morphTypeColumn;
|
|
1918
|
+
private readonly relatedPivotKey;
|
|
1919
|
+
private readonly parentKey;
|
|
1920
|
+
private readonly relatedKey;
|
|
1921
|
+
constructor(parent: TParent & {
|
|
1922
|
+
getAttribute: (key: string) => unknown;
|
|
1923
|
+
}, related: RelationshipModelStatic, throughTable: string, morphName: string, foreignPivotKey: string, morphTypeColumn: string, relatedPivotKey: string, parentKey: string, relatedKey: string);
|
|
1924
|
+
/**
|
|
1925
|
+
* Build the relationship query.
|
|
1926
|
+
*
|
|
1927
|
+
* @returns
|
|
1928
|
+
*/
|
|
1929
|
+
getQuery(): Promise<QueryBuilder<TRelated>>;
|
|
1930
|
+
getMetadata(): MorphedByManyRelationMetadata;
|
|
1931
|
+
/**
|
|
1932
|
+
* Fetch the related models.
|
|
1933
|
+
*
|
|
1934
|
+
* @returns
|
|
1935
|
+
*/
|
|
1936
|
+
getResults(): Promise<ArkormCollection<TRelated>>;
|
|
1937
|
+
}
|
|
1938
|
+
//#endregion
|
|
1894
1939
|
//#region src/relationship/MorphManyRelation.d.ts
|
|
1895
1940
|
/**
|
|
1896
1941
|
* Defines a polymorphic one-to-many relationship.
|
|
@@ -2282,12 +2327,25 @@ declare abstract class ModelFactory<TModel, TAttributes extends FactoryAttribute
|
|
|
2282
2327
|
private attachedRelations;
|
|
2283
2328
|
private recyclePool;
|
|
2284
2329
|
private recycleOffsets;
|
|
2285
|
-
|
|
2330
|
+
private injectedModel?;
|
|
2331
|
+
protected model?: FactoryModelConstructor<TModel>;
|
|
2286
2332
|
protected abstract definition(sequence: number): MaybePromise<FactoryDefinitionAttributes<TAttributes>>;
|
|
2287
2333
|
/**
|
|
2288
2334
|
* Configure states and lifecycle callbacks for each new factory instance.
|
|
2289
2335
|
*/
|
|
2290
2336
|
protected configure(): void;
|
|
2337
|
+
/**
|
|
2338
|
+
* Supply the model constructor that this factory should create.
|
|
2339
|
+
*
|
|
2340
|
+
* Model.factory() calls this automatically, allowing a factory referenced by
|
|
2341
|
+
* a model's factoryClass to use a type-only model import and avoid a runtime
|
|
2342
|
+
* model -> factory -> model cycle. Directly instantiated factories may call
|
|
2343
|
+
* this method explicitly or continue defining the protected model property.
|
|
2344
|
+
*
|
|
2345
|
+
* @param model
|
|
2346
|
+
* @returns
|
|
2347
|
+
*/
|
|
2348
|
+
setModel(model: FactoryModelConstructor<TModel>): this;
|
|
2291
2349
|
/**
|
|
2292
2350
|
* Set the number of models to create.
|
|
2293
2351
|
*
|
|
@@ -3316,6 +3374,20 @@ declare abstract class Model<TSchema extends ModelQuerySchemaLike | Record<strin
|
|
|
3316
3374
|
* @returns
|
|
3317
3375
|
*/
|
|
3318
3376
|
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>>;
|
|
3377
|
+
/**
|
|
3378
|
+
* Define the inverse side of a polymorphic many-to-many relationship.
|
|
3379
|
+
*
|
|
3380
|
+
* @param related
|
|
3381
|
+
* @param morphName
|
|
3382
|
+
* @param throughTable
|
|
3383
|
+
* @param foreignPivotKey
|
|
3384
|
+
* @param morphTypeColumn
|
|
3385
|
+
* @param relatedPivotKey
|
|
3386
|
+
* @param parentKey
|
|
3387
|
+
* @param relatedKey
|
|
3388
|
+
* @returns
|
|
3389
|
+
*/
|
|
3390
|
+
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>>;
|
|
3319
3391
|
private resolveMorphColumns;
|
|
3320
3392
|
private formatConventionName;
|
|
3321
3393
|
private static getNamingCase;
|
|
@@ -8619,4 +8691,4 @@ declare class URLDriver {
|
|
|
8619
8691
|
url(page: number): string;
|
|
8620
8692
|
}
|
|
8621
8693
|
//#endregion
|
|
8622
|
-
export { buildPrimaryKeyLine as $, RelationshipModelStatic as $a, DelegateInclude as $i, Arkorm as $n, val as $o, InsertSpec as $r, ColumnExpressionNode as $s, PersistedTimestampColumn as $t, isQuerySchemaLike as A, PrismaTransactionContext as Aa, GeneratedMigrationFile as Ac, RelationAggregateSpec as Ai, Migration as An, ModelWhereInput as Ao, createPrismaDatabaseAdapter as Ar, EagerLoadRelations as As, buildMigrationIdentity as At, applyCreateTableOperation as B, QuerySchemaUpdateArgs as Ba, SchemaIndex as Bc, AdapterBindableModel as Bi, MigrateRollbackCommand as Bn, avg as Bo, AdapterQueryOperation as Br, FactoryAttributeResolver as Bs, markMigrationApplied as Bt, getRuntimeClient as C, PrismaLikeOrderBy as Ca, PivotModelStatic as Cc, QueryOrderBy as Ci, QueryConstraintException as Cn, ModelEventListener as Co, Seeder as Cr, RelationDefaultResolver as Cs, supportsDatabaseCreation as Ct, getRuntimePrismaClient as D, PrismaLikeWhereInput as Da, AppliedMigrationRun as Dc, QueryTarget as Di, ArkormException as Dn, ModelRelationshipKey as Do, PrismaDatabaseAdapter as Dr, RelationResultCache as Ds, toModelName as Dt, getRuntimePaginationURLDriverFactory as E, PrismaLikeSortOrder as Ea, AppliedMigrationEntry as Ec, QuerySelectColumn as Ei, ArkormErrorContext as En, ModelOrderByInput as Eo, SeederInput as Er, RelationResult as Es, toMigrationFileSlug as Et, PrimaryKeyGenerationPlanner as F, QuerySchemaOrderBy as Fa, PrismaSchemaSyncOptions as Fc, SoftDeleteQueryMode as Fi, resolveGeneratedExpression as Fn, AggregateExpression as Fo, AdapterDatabaseCreationResult as Fr, WhereCallback as Fs, findAppliedMigration as Ft, applyMigrationToPrismaSchema as G, Serializable as Ga, SchemaTableDropOperation as Gc, ArkormDebugHandler as Gi, MakeMigrationCommand as Gn, expressionBuilder as Go, DatabaseAdapter as Gr, FactoryModelConstructor as Gs, resolveMigrationStateFilePath as Gt, applyMigrationRollbackToDatabase as H, QuerySchemaWhere as Ha, SchemaPrimaryKey as Hc, ArkormBootContext as Hi, MigrateCommand as Hn, coalesce as Ho, AggregateOperation as Hr, FactoryCallback as Hs, readAppliedMigrationsState as Ht, PRISMA_ENUM_MEMBER_REGEX as I, QuerySchemaRow as Ia, SchemaColumn as Ic, SortDirection as Ii, ForeignKeyBuilder as In, CaseExpression as Io, AdapterInspectionRequest as Ir, JoinClause as Is, getLastBatchMigrations as It, buildFieldLine as J, TransactionCallback as Ja, TimestampNames as Jc, CastMap as Ji, DbCommand as Jn, json as Jo, DatabaseRows as Jr, MaybePromise as Js, writeAppliedMigrationsStateToStore as Jt, applyOperationsToPrismaSchema as K, SimplePaginationMeta as Ka, SchemaUniqueConstraint as Kc, CastDefinition as Ki, MakeFactoryCommand as Kn, fn as Ko, DatabasePrimitive as Kr, FactoryRelationshipResolver as Ks, supportsDatabaseMigrationState as Kt, PRISMA_ENUM_REGEX as L, QuerySchemaRows as La, SchemaColumnType as Lc, UpdateManySpec as Li, SeedCommand as Ln, Expression as Lo, AdapterModelFieldStructure as Lr, LengthAwarePaginator as Ls, getLastMigrationRun as Lt, loadArkormConfig as M, QuerySchemaCreateData as Ma, MigrationInstanceLike as Mc, RelationLoadPlan as Mi, EnumBuilder as Mn, QuerySchemaForModelInstance as Mo, createKyselyAdapter as Mr, JoinSource as Ms, computeMigrationChecksum as Mt, resetArkormRuntimeForTests as N, QuerySchemaFindManyArgs as Na, PrimaryKeyGeneration as Nc, RelationLoadSpec as Ni, TableBuilder as Nn, RelatedModelClass as No, AdapterCapabilities as Nr, RelatedModelForRelationship as Ns, createEmptyAppliedMigrationsState as Nt, getUserConfig as O, PrismaTransactionCallback as Oa, AppliedMigrationsState as Oc, QueryTimeCondition as Oi, DB as On, ModelRelationshipResult as Oo, PrismaDelegateNameMapping as Or, RelationTableLookupSpec as Os, isMigrationPlanningActive as Ot, runArkormTransaction as P, QuerySchemaInclude as Pa, PrismaMigrationWorkflowOptions as Pc, SelectSpec as Pi, GeneratedColumnExpression as Pn, Model as Po, AdapterCapability as Pr, RelatedModelFromResult as Ps, deleteAppliedMigrationsStateFromStore as Pt, buildModelBlock as Q, ModelStatic as Qa, DelegateFindManyArgs as Qi, AttributeOptions as Qn, sum as Qo, InsertManySpec as Qr, CaseExpressionNode as Qs, PersistedTableMetadata as Qt, PRISMA_MODEL_REGEX as R, QuerySchemaSelect as Ra, SchemaForeignKey as Rc, UpdateSpec as Ri, ModelsSyncCommand as Rn, ExpressionBuilder as Ro, AdapterModelIntrospectionOptions as Rr, Paginator as Rs, getLatestAppliedMigrations as Rt, getRuntimeAdapter as S, PrismaLikeInclude as Sa, MorphToRelationMetadata as Sc, QueryNotCondition as Si, QueryExecutionExceptionContext as Sn, ModelEventHandlerConstructor as So, SEEDER_BRAND as Sr, RelationConstraint as Ss, stripPrismaSchemaModelsAndEnums as St, getRuntimePaginationCurrentPageResolver as T, PrismaLikeSelect as Ta, RelationMetadataType as Tc, QueryScalarComparisonOperator as Ti, MissingDelegateException as Tn, ModelLifecycleState as To, SeederConstructor as Tr, RelationMetadataProvider as Ts, supportsDatabaseReset as Tt, applyMigrationRollbackToPrismaSchema as U, RawSelectInput as Ua, SchemaTableAlterOperation as Uc, ArkormConfig as Ui, MakeSeederCommand as Un, col as Uo, AggregateSelection as Ur, FactoryDefinition as Us, readAppliedMigrationsStateFromStore as Ut, applyDropTableOperation as V, QuerySchemaUpdateData as Va, SchemaOperation as Vc, AdapterQueryInspection as Vi, MigrateFreshCommand as Vn, caseWhen as Vo, AdapterTransactionContext as Vr, FactoryAttributes as Vs, markMigrationRun as Vt, applyMigrationToDatabase as W, RuntimeClientLike as Wa, SchemaTableCreateOperation as Wc, ArkormDebugEvent as Wi, MakeModelCommand as Wn, count as Wo, AggregateSpec as Wr, FactoryDefinitionAttributes as Ws, removeAppliedMigration as Wt, buildInverseRelationLine as X, TransactionContext as Xa, ClientResolver as Xi, resolveCast as Xn, min as Xo, DeleteManySpec as Xr, BinaryExpressionNode as Xs, PersistedMetadataFeatures as Xt, buildIndexLine as Y, TransactionCapableClient as Ya, TimestampNaming as Yc, CastType as Yi, CliApp as Yn, max as Yo, DatabaseValue as Yr, AggregateExpressionNode as Ys, PersistedColumnMappingsState as Yt, buildMigrationSource as Z, TransactionOptions as Za, DelegateCreateData as Zi, Attribute as Zn, raw as Zo, DeleteSpec as Zr, CaseExpressionBranch as Zs, PersistedPrimaryKeyGeneration as Zt, emitRuntimeDebugEvent as _, PaginationURLDriver as _a, HasOneThroughRelationMetadata as _c, QueryJoinType as _i, UnsupportedAdapterFeatureException as _n, ModelAttributesOf as _o, registerMigrations as _r, RelationTableLoader as _s, resolveEnumName as _t, getRuntimeCompatibilityAdapter as a, DelegateUpdateArgs as aa, JsonExpressionNode as ac, QueryExistsCondition as ai, getPersistedEnumTsType as an, QueryBuilder as ao, RuntimePathKey as ar, MorphToRelation as as, deriveRelationAlias as at, getActiveTransactionClient as b, PrismaDelegateLike as ba, MorphOneRelationMetadata as bc, QueryJsonConditionKind as bi, RelationResolutionException as bn, ModelEventDispatcher as bo, registerSeeders as br, RelationAggregateType as bs, runMigrationWithPrisma as bt, PrismaDelegateMap as c, EagerLoadConstraint as ca, ValueExpressionNode as cc, QueryGroupByItem as ci, getPersistedTimestampColumns as cn, AttributeQuerySchema as co, getRegisteredMigrations as cr, MorphManyRelation as cs, escapeRegex as ct, inferDelegateName as d, ModelQuerySchemaLike as da, BelongsToManyRelationMetadata as dc, QueryJoinBoolean as di, resetPersistedColumnMappingsCache as dn, AttributeUpdateInput as do, getRegisteredSeeders as dr, HasManyThroughRelation as ds, formatDefaultValue as dt, DelegateOrderBy as ea, ExpressionBinaryOperator as ec, QueryColumnComparisonCondition as ei, applyOperationsToPersistedColumnMappingsState as en, ChunkCallback as eo, Arkormx as er, where as es, buildRelationLine as et, awaitConfiguredModelsRegistration as f, ModelTableCase as fa, BelongsToRelationMetadata as fc, QueryJoinColumnConstraint as fi, resolveColumnMappingsFilePath as fn, AttributeWhereInput as fo, loadFactoriesFrom as fr, HasManyRelation as fs, formatEnumDefaultValue as ft, disposeArkormRuntime as g, PaginationOptions as ga, HasOneRelationMetadata as gc, QueryJoinRawConstraint as gi, writePersistedColumnMappingsState as gn, ModelAttributes as go, registerFactories as gr, Relation as gs, pad as gt, defineConfig as h, PaginationMeta as ha, HasManyThroughRelationMetadata as hc, QueryJoinNullConstraint as hi, validatePersistedMetadataFeaturesForMigrations as hn, ModelAttributeValue as ho, loadSeedersFrom as hr, BelongsToManyRelation as hs, getMigrationPlan as ht, RuntimeModuleLoader as i, DelegateUniqueWhere as ia, InExpressionNode as ic, QueryDayCondition as ii, getPersistedEnumMap as in, GroupByAggregateSpec as io, RuntimePathInput as ir, SetBasedEagerLoader as is, deriveInverseRelationAlias as it, isTransactionCapableClient as j, PrismaTransactionOptions as ja, MigrationClass as jc, RelationFilterSpec as ji, SchemaBuilder as jn, QuerySchemaForModel as jo, KyselyDatabaseAdapter as jr, JoinOn as js, buildMigrationRunId as jt, isDelegateLike as k, PrismaTransactionCapableClient as ka, GenerateMigrationOptions as kc, RawQuerySpec as ki, MIGRATION_BRAND as kn, ModelUpdateData as ko, createPrismaCompatibilityAdapter as kr, EagerLoadQueryForRelationship as ks, runInMigrationPlanning as kt, createPrismaAdapter as l, EagerLoadMap as la, DatabaseTableOptions as lc, QueryGroupCondition as li, readPersistedColumnMappingsState as ln, AttributeSchemaDelegate as lo, getRegisteredModels as lr, HasOneThroughRelation as ls, findEnumBlock as lt, configureArkormRuntime as m, PaginationCurrentPageResolver as ma, HasManyRelationMetadata as mc, QueryJoinNestedConstraint as mi, syncPersistedColumnMappingsFromState as mn, GlobalScope as mo, loadModelsFrom as mr, SingleResultRelation as ms, generateMigrationFile as mt, PivotModel as n, DelegateRows as na, ExpressionNode as nc, QueryComparisonOperator as ni, deletePersistedColumnMappingsState as nn, ExpressionSelectMap as no, RegisteredModel as nr, ModelFactory as ns, createMigrationTimestamp as nt, resolveRuntimeCompatibilityQuerySchema as o, DelegateUpdateData as oa, NullCheckExpressionNode as oc, QueryExpressionCondition as oi, getPersistedPrimaryKeyGeneration as on, AttributeCreateInput as oo, RuntimePathMap as or, MorphToManyRelation as os, deriveRelationFieldName as ot, bindAdapterToModels as p, NamingCase as pa, ColumnMap as pc, QueryJoinConstraint as pi, resolvePersistedMetadataFeatures as pn, DelegateForModelSchema as po, loadMigrationsFrom as pr, BelongsToRelation as ps, formatRelationAction as pt, buildEnumBlock as q, SoftDeleteConfig as qa, TimestampColumnBehavior as qc, CastHandler as qi, InitCommand as qn, fromExpressionNode as qo, DatabaseRow as qr, FactoryState as qs, writeAppliedMigrationsState as qt, LoadedRuntimeModule as r, DelegateSelect as ra, FunctionExpressionNode as rc, QueryCondition as ri, getPersistedColumnMap as rn, GroupByAggregateRow as ro, RuntimeConstructor as rr, defineFactory as rs, deriveCollectionFieldName as rt, resolveRuntimeCompatibilityQuerySchemaOrThrow as s, DelegateWhere as sa, RawExpressionNode as sc, QueryFullTextCondition as si, getPersistedTableMetadata as sn, AttributeOrderBy as so, getRegisteredFactories as sr, MorphOneRelation as ss, deriveSingularFieldName as st, URLDriver as t, DelegateRow as ta, ExpressionJsonCast as tc, QueryComparisonCondition as ti, createEmptyPersistedColumnMappingsState as tn, EachCallback as to, RegisteredFactory as tr, InlineFactory as ts, buildUniqueConstraintLine as tt, createPrismaDelegateMap as u, GetUserConfig as ua, DatabaseTablePersistedMetadataOptions as uc, QueryJoin as ui, rebuildPersistedColumnMappingsState as un, AttributeSelect as uo, getRegisteredPaths as ur, HasOneRelation as us, findModelBlock as ut, ensureArkormConfigLoading as v, PaginationURLDriverFactory as va, ModelMetadata as vc, QueryJoinValueConstraint as vi, UniqueConstraintResolutionException as vn, ModelCreateData as vo, registerModels as vr, RelationAggregateConstraint as vs, resolveMigrationClassName as vt, getRuntimeDebugHandler as w, PrismaLikeScalarFilter as wa, RelationMetadata as wc, QueryRawCondition as wi, ModelNotFoundException as wn, ModelEventName as wo, SeederCallArgument as wr, RelationDefaultValue as ws, supportsDatabaseMigrationExecution as wt, getDefaultStubsPath as x, PrismaFindManyArgsLike as xa, MorphToManyRelationMetadata as xc, QueryLogicalOperator as xi, QueryExecutionException as xn, ModelEventHandler as xo, resetRuntimeRegistryForTests as xr, RelationColumnLookupSpec as xs, runPrismaCommand as xt, getActiveTransactionAdapter as y, PrismaClientLike as ya, MorphManyRelationMetadata as yc, QueryJsonCondition as yi, ScopeNotDefinedException as yn, ModelDeclaredAttributeKey as yo, registerPaths as yr, RelationAggregateInput as ys, resolvePrismaType as yt, applyAlterTableOperation as z, QuerySchemaUniqueWhere as za, SchemaForeignKeyAction as zc, UpsertSpec as zi, MigrationHistoryCommand as zn, JsonExpression as zo, AdapterModelStructure as zr, ArkormCollection as zs, isMigrationApplied as zt };
|
|
8694
|
+
export { buildPrimaryKeyLine as $, RelationshipModelStatic as $a, DelegateInclude as $i, Arkorm as $n, val as $o, InsertSpec as $r, CaseExpressionNode as $s, PersistedTimestampColumn as $t, isQuerySchemaLike as A, PrismaTransactionContext as Aa, AppliedMigrationsState as Ac, RelationAggregateSpec as Ai, Migration as An, ModelWhereInput as Ao, createPrismaDatabaseAdapter as Ar, EagerLoadQueryForRelationship as As, buildMigrationIdentity as At, applyCreateTableOperation as B, QuerySchemaUpdateArgs as Ba, SchemaForeignKey as Bc, AdapterBindableModel as Bi, MigrateRollbackCommand as Bn, avg as Bo, AdapterQueryOperation as Br, ArkormCollection as Bs, markMigrationApplied as Bt, getRuntimeClient as C, PrismaLikeOrderBy as Ca, MorphToRelationMetadata as Cc, QueryOrderBy as Ci, QueryConstraintException as Cn, ModelEventListener as Co, Seeder as Cr, RelationConstraint as Cs, supportsDatabaseCreation as Ct, getRuntimePrismaClient as D, PrismaLikeWhereInput as Da, RelationMetadataType as Dc, QueryTarget as Di, ArkormException as Dn, ModelRelationshipKey as Do, PrismaDatabaseAdapter as Dr, RelationResult as Ds, toModelName as Dt, getRuntimePaginationURLDriverFactory as E, PrismaLikeSortOrder as Ea, RelationMetadata as Ec, QuerySelectColumn as Ei, ArkormErrorContext as En, ModelOrderByInput as Eo, SeederInput as Er, RelationMetadataProvider as Es, toMigrationFileSlug as Et, PrimaryKeyGenerationPlanner as F, QuerySchemaOrderBy as Fa, PrimaryKeyGeneration as Fc, SoftDeleteQueryMode as Fi, resolveGeneratedExpression as Fn, AggregateExpression as Fo, AdapterDatabaseCreationResult as Fr, RelatedModelFromResult as Fs, findAppliedMigration as Ft, applyMigrationToPrismaSchema as G, Serializable as Ga, SchemaTableAlterOperation as Gc, ArkormDebugHandler as Gi, MakeMigrationCommand as Gn, expressionBuilder as Go, DatabaseAdapter as Gr, FactoryDefinitionAttributes as Gs, resolveMigrationStateFilePath as Gt, applyMigrationRollbackToDatabase as H, QuerySchemaWhere as Ha, SchemaIndex as Hc, ArkormBootContext as Hi, MigrateCommand as Hn, coalesce as Ho, AggregateOperation as Hr, FactoryAttributes as Hs, readAppliedMigrationsState as Ht, PRISMA_ENUM_MEMBER_REGEX as I, QuerySchemaRow as Ia, PrismaMigrationWorkflowOptions as Ic, SortDirection as Ii, ForeignKeyBuilder as In, CaseExpression as Io, AdapterInspectionRequest as Ir, WhereCallback as Is, getLastBatchMigrations as It, buildFieldLine as J, TransactionCallback as Ja, SchemaUniqueConstraint as Jc, CastMap as Ji, DbCommand as Jn, json as Jo, DatabaseRows as Jr, FactoryState as Js, writeAppliedMigrationsStateToStore as Jt, applyOperationsToPrismaSchema as K, SimplePaginationMeta as Ka, SchemaTableCreateOperation as Kc, CastDefinition as Ki, MakeFactoryCommand as Kn, fn as Ko, DatabasePrimitive as Kr, FactoryModelConstructor as Ks, supportsDatabaseMigrationState as Kt, PRISMA_ENUM_REGEX as L, QuerySchemaRows as La, PrismaSchemaSyncOptions as Lc, UpdateManySpec as Li, SeedCommand as Ln, Expression as Lo, AdapterModelFieldStructure as Lr, JoinClause as Ls, getLastMigrationRun as Lt, loadArkormConfig as M, QuerySchemaCreateData as Ma, GeneratedMigrationFile as Mc, RelationLoadPlan as Mi, EnumBuilder as Mn, QuerySchemaForModelInstance as Mo, createKyselyAdapter as Mr, JoinOn as Ms, computeMigrationChecksum as Mt, resetArkormRuntimeForTests as N, QuerySchemaFindManyArgs as Na, MigrationClass as Nc, RelationLoadSpec as Ni, TableBuilder as Nn, RelatedModelClass as No, AdapterCapabilities as Nr, JoinSource as Ns, createEmptyAppliedMigrationsState as Nt, getUserConfig as O, PrismaTransactionCallback as Oa, AppliedMigrationEntry as Oc, QueryTimeCondition as Oi, DB as On, ModelRelationshipResult as Oo, PrismaDelegateNameMapping as Or, RelationResultCache as Os, isMigrationPlanningActive as Ot, runArkormTransaction as P, QuerySchemaInclude as Pa, MigrationInstanceLike as Pc, SelectSpec as Pi, GeneratedColumnExpression as Pn, Model as Po, AdapterCapability as Pr, RelatedModelForRelationship as Ps, deleteAppliedMigrationsStateFromStore as Pt, buildModelBlock as Q, ModelStatic as Qa, DelegateFindManyArgs as Qi, AttributeOptions as Qn, sum as Qo, InsertManySpec as Qr, CaseExpressionBranch as Qs, PersistedTableMetadata as Qt, PRISMA_MODEL_REGEX as R, QuerySchemaSelect as Ra, SchemaColumn as Rc, UpdateSpec as Ri, ModelsSyncCommand as Rn, ExpressionBuilder as Ro, AdapterModelIntrospectionOptions as Rr, LengthAwarePaginator as Rs, getLatestAppliedMigrations as Rt, getRuntimeAdapter as S, PrismaLikeInclude as Sa, MorphToManyRelationMetadata as Sc, QueryNotCondition as Si, QueryExecutionExceptionContext as Sn, ModelEventHandlerConstructor as So, SEEDER_BRAND as Sr, RelationColumnLookupSpec as Ss, stripPrismaSchemaModelsAndEnums as St, getRuntimePaginationCurrentPageResolver as T, PrismaLikeSelect as Ta, PivotModelStatic as Tc, QueryScalarComparisonOperator as Ti, MissingDelegateException as Tn, ModelLifecycleState as To, SeederConstructor as Tr, RelationDefaultValue as Ts, supportsDatabaseReset as Tt, applyMigrationRollbackToPrismaSchema as U, RawSelectInput as Ua, SchemaOperation as Uc, ArkormConfig as Ui, MakeSeederCommand as Un, col as Uo, AggregateSelection as Ur, FactoryCallback as Us, readAppliedMigrationsStateFromStore as Ut, applyDropTableOperation as V, QuerySchemaUpdateData as Va, SchemaForeignKeyAction as Vc, AdapterQueryInspection as Vi, MigrateFreshCommand as Vn, caseWhen as Vo, AdapterTransactionContext as Vr, FactoryAttributeResolver as Vs, markMigrationRun as Vt, applyMigrationToDatabase as W, RuntimeClientLike as Wa, SchemaPrimaryKey as Wc, ArkormDebugEvent as Wi, MakeModelCommand as Wn, count as Wo, AggregateSpec as Wr, FactoryDefinition as Ws, removeAppliedMigration as Wt, buildInverseRelationLine as X, TransactionContext as Xa, TimestampNames as Xc, ClientResolver as Xi, resolveCast as Xn, min as Xo, DeleteManySpec as Xr, AggregateExpressionNode as Xs, PersistedMetadataFeatures as Xt, buildIndexLine as Y, TransactionCapableClient as Ya, TimestampColumnBehavior as Yc, CastType as Yi, CliApp as Yn, max as Yo, DatabaseValue as Yr, MaybePromise as Ys, PersistedColumnMappingsState as Yt, buildMigrationSource as Z, TransactionOptions as Za, TimestampNaming as Zc, DelegateCreateData as Zi, Attribute as Zn, raw as Zo, DeleteSpec as Zr, BinaryExpressionNode as Zs, PersistedPrimaryKeyGeneration as Zt, emitRuntimeDebugEvent as _, PaginationURLDriver as _a, HasOneRelationMetadata as _c, QueryJoinType as _i, UnsupportedAdapterFeatureException as _n, ModelAttributesOf as _o, registerMigrations as _r, Relation as _s, resolveEnumName as _t, getRuntimeCompatibilityAdapter as a, DelegateUpdateArgs as aa, InExpressionNode as ac, QueryExistsCondition as ai, getPersistedEnumTsType as an, QueryBuilder as ao, RuntimePathKey as ar, MorphToRelation as as, deriveRelationAlias as at, getActiveTransactionClient as b, PrismaDelegateLike as ba, MorphManyRelationMetadata as bc, QueryJsonConditionKind as bi, RelationResolutionException as bn, ModelEventDispatcher as bo, registerSeeders as br, RelationAggregateInput as bs, runMigrationWithPrisma as bt, PrismaDelegateMap as c, EagerLoadConstraint as ca, RawExpressionNode as cc, QueryGroupByItem as ci, getPersistedTimestampColumns as cn, AttributeQuerySchema as co, getRegisteredMigrations as cr, MorphManyRelation as cs, escapeRegex as ct, inferDelegateName as d, ModelQuerySchemaLike as da, DatabaseTablePersistedMetadataOptions as dc, QueryJoinBoolean as di, resetPersistedColumnMappingsCache as dn, AttributeUpdateInput as do, getRegisteredSeeders as dr, HasOneRelation as ds, formatDefaultValue as dt, DelegateOrderBy as ea, ColumnExpressionNode as ec, QueryColumnComparisonCondition as ei, applyOperationsToPersistedColumnMappingsState as en, ChunkCallback as eo, Arkormx as er, where as es, buildRelationLine as et, awaitConfiguredModelsRegistration as f, ModelTableCase as fa, BelongsToManyRelationMetadata as fc, QueryJoinColumnConstraint as fi, resolveColumnMappingsFilePath as fn, AttributeWhereInput as fo, loadFactoriesFrom as fr, HasManyThroughRelation as fs, formatEnumDefaultValue as ft, disposeArkormRuntime as g, PaginationOptions as ga, HasManyThroughRelationMetadata as gc, QueryJoinRawConstraint as gi, writePersistedColumnMappingsState as gn, ModelAttributes as go, registerFactories as gr, BelongsToManyRelation as gs, pad as gt, defineConfig as h, PaginationMeta as ha, HasManyRelationMetadata as hc, QueryJoinNullConstraint as hi, validatePersistedMetadataFeaturesForMigrations as hn, ModelAttributeValue as ho, loadSeedersFrom as hr, SingleResultRelation as hs, getMigrationPlan as ht, RuntimeModuleLoader as i, DelegateUniqueWhere as ia, FunctionExpressionNode as ic, QueryDayCondition as ii, getPersistedEnumMap as in, GroupByAggregateSpec as io, RuntimePathInput as ir, SetBasedEagerLoader as is, deriveInverseRelationAlias as it, isTransactionCapableClient as j, PrismaTransactionOptions as ja, GenerateMigrationOptions as jc, RelationFilterSpec as ji, SchemaBuilder as jn, QuerySchemaForModel as jo, KyselyDatabaseAdapter as jr, EagerLoadRelations as js, buildMigrationRunId as jt, isDelegateLike as k, PrismaTransactionCapableClient as ka, AppliedMigrationRun as kc, RawQuerySpec as ki, MIGRATION_BRAND as kn, ModelUpdateData as ko, createPrismaCompatibilityAdapter as kr, RelationTableLookupSpec as ks, runInMigrationPlanning as kt, createPrismaAdapter as l, EagerLoadMap as la, ValueExpressionNode as lc, QueryGroupCondition as li, readPersistedColumnMappingsState as ln, AttributeSchemaDelegate as lo, getRegisteredModels as lr, MorphedByManyRelation as ls, findEnumBlock as lt, configureArkormRuntime as m, PaginationCurrentPageResolver as ma, ColumnMap as mc, QueryJoinNestedConstraint as mi, syncPersistedColumnMappingsFromState as mn, GlobalScope as mo, loadModelsFrom as mr, BelongsToRelation as ms, generateMigrationFile as mt, PivotModel as n, DelegateRows as na, ExpressionJsonCast as nc, QueryComparisonOperator as ni, deletePersistedColumnMappingsState as nn, ExpressionSelectMap as no, RegisteredModel as nr, ModelFactory as ns, createMigrationTimestamp as nt, resolveRuntimeCompatibilityQuerySchema as o, DelegateUpdateData as oa, JsonExpressionNode as oc, QueryExpressionCondition as oi, getPersistedPrimaryKeyGeneration as on, AttributeCreateInput as oo, RuntimePathMap as or, MorphToManyRelation as os, deriveRelationFieldName as ot, bindAdapterToModels as p, NamingCase as pa, BelongsToRelationMetadata as pc, QueryJoinConstraint as pi, resolvePersistedMetadataFeatures as pn, DelegateForModelSchema as po, loadMigrationsFrom as pr, HasManyRelation as ps, formatRelationAction as pt, buildEnumBlock as q, SoftDeleteConfig as qa, SchemaTableDropOperation as qc, CastHandler as qi, InitCommand as qn, fromExpressionNode as qo, DatabaseRow as qr, FactoryRelationshipResolver as qs, writeAppliedMigrationsState as qt, LoadedRuntimeModule as r, DelegateSelect as ra, ExpressionNode as rc, QueryCondition as ri, getPersistedColumnMap as rn, GroupByAggregateRow as ro, RuntimeConstructor as rr, defineFactory as rs, deriveCollectionFieldName as rt, resolveRuntimeCompatibilityQuerySchemaOrThrow as s, DelegateWhere as sa, NullCheckExpressionNode as sc, QueryFullTextCondition as si, getPersistedTableMetadata as sn, AttributeOrderBy as so, getRegisteredFactories as sr, MorphOneRelation as ss, deriveSingularFieldName as st, URLDriver as t, DelegateRow as ta, ExpressionBinaryOperator as tc, QueryComparisonCondition as ti, createEmptyPersistedColumnMappingsState as tn, EachCallback as to, RegisteredFactory as tr, InlineFactory as ts, buildUniqueConstraintLine as tt, createPrismaDelegateMap as u, GetUserConfig as ua, DatabaseTableOptions as uc, QueryJoin as ui, rebuildPersistedColumnMappingsState as un, AttributeSelect as uo, getRegisteredPaths as ur, HasOneThroughRelation as us, findModelBlock as ut, ensureArkormConfigLoading as v, PaginationURLDriverFactory as va, HasOneThroughRelationMetadata as vc, QueryJoinValueConstraint as vi, UniqueConstraintResolutionException as vn, ModelCreateData as vo, registerModels as vr, RelationTableLoader as vs, resolveMigrationClassName as vt, getRuntimeDebugHandler as w, PrismaLikeScalarFilter as wa, MorphedByManyRelationMetadata as wc, QueryRawCondition as wi, ModelNotFoundException as wn, ModelEventName as wo, SeederCallArgument as wr, RelationDefaultResolver as ws, supportsDatabaseMigrationExecution as wt, getDefaultStubsPath as x, PrismaFindManyArgsLike as xa, MorphOneRelationMetadata as xc, QueryLogicalOperator as xi, QueryExecutionException as xn, ModelEventHandler as xo, resetRuntimeRegistryForTests as xr, RelationAggregateType as xs, runPrismaCommand as xt, getActiveTransactionAdapter as y, PrismaClientLike as ya, ModelMetadata as yc, QueryJsonCondition as yi, ScopeNotDefinedException as yn, ModelDeclaredAttributeKey as yo, registerPaths as yr, RelationAggregateConstraint as ys, resolvePrismaType as yt, applyAlterTableOperation as z, QuerySchemaUniqueWhere as za, SchemaColumnType as zc, UpsertSpec as zi, MigrationHistoryCommand as zn, JsonExpression as zo, AdapterModelStructure as zr, Paginator as zs, isMigrationApplied 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-JGzxPfTH.cjs');
|
|
3
3
|
let pg = require("pg");
|
|
4
4
|
let node_path = require("node:path");
|
|
5
5
|
let module$1 = require("module");
|
|
@@ -8614,7 +8614,7 @@ var Model = class Model {
|
|
|
8614
8614
|
operation: "factory",
|
|
8615
8615
|
model: this.name
|
|
8616
8616
|
});
|
|
8617
|
-
const factory = new factoryClass();
|
|
8617
|
+
const factory = new factoryClass().setModel(this);
|
|
8618
8618
|
if (typeof count === "number") factory.count(count);
|
|
8619
8619
|
return factory;
|
|
8620
8620
|
}
|
|
@@ -9547,6 +9547,29 @@ var Model = class Model {
|
|
|
9547
9547
|
const resolvedMorphTypeColumn = morphTypeColumn ?? this.formatConventionName(`${morphName}_type`, namingCase);
|
|
9548
9548
|
return new require_relationship.MorphToManyRelation(this, related, resolvedTable, morphName, morphIdColumn, resolvedMorphTypeColumn, resolvedRelatedPivotKey, parentKey ?? constructor.getPrimaryKey(), resolvedRelatedKey);
|
|
9549
9549
|
}
|
|
9550
|
+
/**
|
|
9551
|
+
* Define the inverse side of a polymorphic many-to-many relationship.
|
|
9552
|
+
*
|
|
9553
|
+
* @param related
|
|
9554
|
+
* @param morphName
|
|
9555
|
+
* @param throughTable
|
|
9556
|
+
* @param foreignPivotKey
|
|
9557
|
+
* @param morphTypeColumn
|
|
9558
|
+
* @param relatedPivotKey
|
|
9559
|
+
* @param parentKey
|
|
9560
|
+
* @param relatedKey
|
|
9561
|
+
* @returns
|
|
9562
|
+
*/
|
|
9563
|
+
morphedByMany(related, morphName, throughTable, foreignPivotKey, morphTypeColumn, relatedPivotKey, parentKey, relatedKey) {
|
|
9564
|
+
const constructor = this.constructor;
|
|
9565
|
+
const namingCase = Model.getNamingCase();
|
|
9566
|
+
const resolvedRelatedKey = relatedKey ?? related.getPrimaryKey();
|
|
9567
|
+
const resolvedTable = throughTable ?? this.formatConventionName(`${(0, _h3ravel_support.str)(morphName).plural()}`, namingCase);
|
|
9568
|
+
const resolvedForeignPivotKey = foreignPivotKey ?? this.formatConventionName(`${(0, _h3ravel_support.str)(constructor.getTable()).singular()}_${parentKey ?? constructor.getPrimaryKey()}`, namingCase);
|
|
9569
|
+
const resolvedMorphTypeColumn = morphTypeColumn ?? this.formatConventionName(`${morphName}_type`, namingCase);
|
|
9570
|
+
const resolvedRelatedPivotKey = relatedPivotKey ?? this.formatConventionName(`${morphName}_id`, namingCase);
|
|
9571
|
+
return new require_relationship.MorphedByManyRelation(this, related, resolvedTable, morphName, resolvedForeignPivotKey, resolvedMorphTypeColumn, resolvedRelatedPivotKey, parentKey ?? constructor.getPrimaryKey(), resolvedRelatedKey);
|
|
9572
|
+
}
|
|
9550
9573
|
resolveMorphColumns(morphName, idColumn, typeColumn) {
|
|
9551
9574
|
const namingCase = Model.getNamingCase();
|
|
9552
9575
|
return {
|
|
@@ -9941,6 +9964,21 @@ var ModelFactory = class ModelFactory {
|
|
|
9941
9964
|
*/
|
|
9942
9965
|
configure() {}
|
|
9943
9966
|
/**
|
|
9967
|
+
* Supply the model constructor that this factory should create.
|
|
9968
|
+
*
|
|
9969
|
+
* Model.factory() calls this automatically, allowing a factory referenced by
|
|
9970
|
+
* a model's factoryClass to use a type-only model import and avoid a runtime
|
|
9971
|
+
* model -> factory -> model cycle. Directly instantiated factories may call
|
|
9972
|
+
* this method explicitly or continue defining the protected model property.
|
|
9973
|
+
*
|
|
9974
|
+
* @param model
|
|
9975
|
+
* @returns
|
|
9976
|
+
*/
|
|
9977
|
+
setModel(model) {
|
|
9978
|
+
this.injectedModel = model;
|
|
9979
|
+
return this;
|
|
9980
|
+
}
|
|
9981
|
+
/**
|
|
9944
9982
|
* Set the number of models to create.
|
|
9945
9983
|
*
|
|
9946
9984
|
* @param amount
|
|
@@ -9994,7 +10032,7 @@ var ModelFactory = class ModelFactory {
|
|
|
9994
10032
|
make(overrides = {}) {
|
|
9995
10033
|
this.ensureConfigured();
|
|
9996
10034
|
const attributes = this.buildAttributes(overrides);
|
|
9997
|
-
const model = new this.
|
|
10035
|
+
const model = new (this.getModelConstructor())(attributes);
|
|
9998
10036
|
this.runCallbacksSync(this.afterMakingCallbacks, model, "afterMaking");
|
|
9999
10037
|
return model;
|
|
10000
10038
|
}
|
|
@@ -10008,7 +10046,7 @@ var ModelFactory = class ModelFactory {
|
|
|
10008
10046
|
async makeAsync(overrides = {}) {
|
|
10009
10047
|
this.ensureConfigured();
|
|
10010
10048
|
const attributes = await this.buildAttributesAsync(overrides);
|
|
10011
|
-
const model = new this.
|
|
10049
|
+
const model = new (this.getModelConstructor())(attributes);
|
|
10012
10050
|
await this.runCallbacks(this.afterMakingCallbacks, model);
|
|
10013
10051
|
return model;
|
|
10014
10052
|
}
|
|
@@ -10129,7 +10167,9 @@ var ModelFactory = class ModelFactory {
|
|
|
10129
10167
|
* @returns
|
|
10130
10168
|
*/
|
|
10131
10169
|
getModelConstructor() {
|
|
10132
|
-
|
|
10170
|
+
const model = this.injectedModel ?? this.model;
|
|
10171
|
+
if (!model) throw new Error("Factory model is not configured. Use Model.factory(), call factory.setModel(Model), or define the protected model property.");
|
|
10172
|
+
return model;
|
|
10133
10173
|
}
|
|
10134
10174
|
/**
|
|
10135
10175
|
* Build the attributes for a model instance, applying the factory
|
|
@@ -10218,8 +10258,9 @@ var ModelFactory = class ModelFactory {
|
|
|
10218
10258
|
}
|
|
10219
10259
|
mergeBelongsToAttribute(attributes, related, relationship) {
|
|
10220
10260
|
const relationName = relationship ?? `${(0, _h3ravel_support.str)(related.constructor.name).camel().singular()}`;
|
|
10221
|
-
const
|
|
10222
|
-
|
|
10261
|
+
const model = this.getModelConstructor();
|
|
10262
|
+
const metadata = model.getRelationMetadata?.(relationName);
|
|
10263
|
+
if (metadata?.type !== "belongsTo" || !metadata.foreignKey || !metadata.ownerKey) throw new Error(`Factory relationship [${relationName}] is not a belongsTo relation on [${model.name}].`);
|
|
10223
10264
|
return {
|
|
10224
10265
|
...attributes,
|
|
10225
10266
|
[metadata.foreignKey]: related.getAttribute(metadata.ownerKey)
|
|
@@ -10262,7 +10303,7 @@ var ModelFactory = class ModelFactory {
|
|
|
10262
10303
|
}
|
|
10263
10304
|
resolveRelation(model, relationship) {
|
|
10264
10305
|
const resolver = model[relationship];
|
|
10265
|
-
if (typeof resolver !== "function") throw new Error(`Factory relationship [${relationship}] is not defined on [${this.
|
|
10306
|
+
if (typeof resolver !== "function") throw new Error(`Factory relationship [${relationship}] is not defined on [${this.getModelConstructor().name}].`);
|
|
10266
10307
|
return resolver.call(model);
|
|
10267
10308
|
}
|
|
10268
10309
|
async resolveFactoryKey(factory) {
|
|
@@ -10283,7 +10324,7 @@ var ModelFactory = class ModelFactory {
|
|
|
10283
10324
|
return this;
|
|
10284
10325
|
}
|
|
10285
10326
|
takeRecycledModel() {
|
|
10286
|
-
const constructor = this.
|
|
10327
|
+
const constructor = this.getModelConstructor();
|
|
10287
10328
|
const models = this.recyclePool.get(constructor);
|
|
10288
10329
|
if (!models || models.length === 0) return null;
|
|
10289
10330
|
const offset = this.recycleOffsets.get(constructor) ?? 0;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as buildPrimaryKeyLine, $a as RelationshipModelStatic, $i as DelegateInclude, $n as Arkorm, $o as val, $r as InsertSpec, $s as ColumnExpressionNode, $t as PersistedTimestampColumn, A as isQuerySchemaLike, Aa as PrismaTransactionContext, Ac as GeneratedMigrationFile, Ai as RelationAggregateSpec, An as Migration, Ao as ModelWhereInput, Ar as createPrismaDatabaseAdapter, As as EagerLoadRelations, At as buildMigrationIdentity, B as applyCreateTableOperation, Ba as QuerySchemaUpdateArgs, Bc as SchemaIndex, Bi as AdapterBindableModel, Bn as MigrateRollbackCommand, Bo as avg, Br as AdapterQueryOperation, Bs as FactoryAttributeResolver, Bt as markMigrationApplied, C as getRuntimeClient, Ca as PrismaLikeOrderBy, Cc as PivotModelStatic, Ci as QueryOrderBy, Cn as QueryConstraintException, Co as ModelEventListener, Cr as Seeder, Cs as RelationDefaultResolver, Ct as supportsDatabaseCreation, D as getRuntimePrismaClient, Da as PrismaLikeWhereInput, Dc as AppliedMigrationRun, Di as QueryTarget, Dn as ArkormException, Do as ModelRelationshipKey, Dr as PrismaDatabaseAdapter, Ds as RelationResultCache, Dt as toModelName, E as getRuntimePaginationURLDriverFactory, Ea as PrismaLikeSortOrder, Ec as AppliedMigrationEntry, Ei as QuerySelectColumn, En as ArkormErrorContext, Eo as ModelOrderByInput, Er as SeederInput, Es as RelationResult, Et as toMigrationFileSlug, F as PrimaryKeyGenerationPlanner, Fa as QuerySchemaOrderBy, Fc as PrismaSchemaSyncOptions, Fi as SoftDeleteQueryMode, Fn as resolveGeneratedExpression, Fo as AggregateExpression, Fr as AdapterDatabaseCreationResult, Fs as WhereCallback, Ft as findAppliedMigration, G as applyMigrationToPrismaSchema, Ga as Serializable, Gc as SchemaTableDropOperation, Gi as ArkormDebugHandler, Gn as MakeMigrationCommand, Go as expressionBuilder, Gr as DatabaseAdapter, Gs as FactoryModelConstructor, Gt as resolveMigrationStateFilePath, H as applyMigrationRollbackToDatabase, Ha as QuerySchemaWhere, Hc as SchemaPrimaryKey, Hi as ArkormBootContext, Hn as MigrateCommand, Ho as coalesce, Hr as AggregateOperation, Hs as FactoryCallback, Ht as readAppliedMigrationsState, I as PRISMA_ENUM_MEMBER_REGEX, Ia as QuerySchemaRow, Ic as SchemaColumn, Ii as SortDirection, In as ForeignKeyBuilder, Io as CaseExpression, Ir as AdapterInspectionRequest, Is as JoinClause, It as getLastBatchMigrations, J as buildFieldLine, Ja as TransactionCallback, Jc as TimestampNames, Ji as CastMap, Jn as DbCommand, Jo as json, Jr as DatabaseRows, Js as MaybePromise, Jt as writeAppliedMigrationsStateToStore, K as applyOperationsToPrismaSchema, Ka as SimplePaginationMeta, Kc as SchemaUniqueConstraint, Ki as CastDefinition, Kn as MakeFactoryCommand, Ko as fn, Kr as DatabasePrimitive, Ks as FactoryRelationshipResolver, Kt as supportsDatabaseMigrationState, L as PRISMA_ENUM_REGEX, La as QuerySchemaRows, Lc as SchemaColumnType, Li as UpdateManySpec, Ln as SeedCommand, Lo as Expression, Lr as AdapterModelFieldStructure, Ls as LengthAwarePaginator, Lt as getLastMigrationRun, M as loadArkormConfig, Ma as QuerySchemaCreateData, Mc as MigrationInstanceLike, Mi as RelationLoadPlan, Mn as EnumBuilder, Mo as QuerySchemaForModelInstance, Mr as createKyselyAdapter, Ms as JoinSource, Mt as computeMigrationChecksum, N as resetArkormRuntimeForTests, Na as QuerySchemaFindManyArgs, Nc as PrimaryKeyGeneration, Ni as RelationLoadSpec, Nn as TableBuilder, No as RelatedModelClass, Nr as AdapterCapabilities, Ns as RelatedModelForRelationship, Nt as createEmptyAppliedMigrationsState, O as getUserConfig, Oa as PrismaTransactionCallback, Oc as AppliedMigrationsState, Oi as QueryTimeCondition, On as DB, Oo as ModelRelationshipResult, Or as PrismaDelegateNameMapping, Os as RelationTableLookupSpec, Ot as isMigrationPlanningActive, P as runArkormTransaction, Pa as QuerySchemaInclude, Pc as PrismaMigrationWorkflowOptions, Pi as SelectSpec, Pn as GeneratedColumnExpression, Po as Model, Pr as AdapterCapability, Ps as RelatedModelFromResult, Pt as deleteAppliedMigrationsStateFromStore, Q as buildModelBlock, Qa as ModelStatic, Qi as DelegateFindManyArgs, Qn as AttributeOptions, Qo as sum, Qr as InsertManySpec, Qs as CaseExpressionNode, Qt as PersistedTableMetadata, R as PRISMA_MODEL_REGEX, Ra as QuerySchemaSelect, Rc as SchemaForeignKey, Ri as UpdateSpec, Rn as ModelsSyncCommand, Ro as ExpressionBuilder, Rr as AdapterModelIntrospectionOptions, Rs as Paginator, Rt as getLatestAppliedMigrations, S as getRuntimeAdapter, Sa as PrismaLikeInclude, Sc as MorphToRelationMetadata, Si as QueryNotCondition, Sn as QueryExecutionExceptionContext, So as ModelEventHandlerConstructor, Sr as SEEDER_BRAND, Ss as RelationConstraint, St as stripPrismaSchemaModelsAndEnums, T as getRuntimePaginationCurrentPageResolver, Ta as PrismaLikeSelect, Tc as RelationMetadataType, Ti as QueryScalarComparisonOperator, Tn as MissingDelegateException, To as ModelLifecycleState, Tr as SeederConstructor, Ts as RelationMetadataProvider, Tt as supportsDatabaseReset, U as applyMigrationRollbackToPrismaSchema, Ua as RawSelectInput, Uc as SchemaTableAlterOperation, Ui as ArkormConfig, Un as MakeSeederCommand, Uo as col, Ur as AggregateSelection, Us as FactoryDefinition, Ut as readAppliedMigrationsStateFromStore, V as applyDropTableOperation, Va as QuerySchemaUpdateData, Vc as SchemaOperation, Vi as AdapterQueryInspection, Vn as MigrateFreshCommand, Vo as caseWhen, Vr as AdapterTransactionContext, Vs as FactoryAttributes, Vt as markMigrationRun, W as applyMigrationToDatabase, Wa as RuntimeClientLike, Wc as SchemaTableCreateOperation, Wi as ArkormDebugEvent, Wn as MakeModelCommand, Wo as count, Wr as AggregateSpec, Ws as FactoryDefinitionAttributes, Wt as removeAppliedMigration, X as buildInverseRelationLine, Xa as TransactionContext, Xi as ClientResolver, Xn as resolveCast, Xo as min, Xr as DeleteManySpec, Xs as BinaryExpressionNode, Xt as PersistedMetadataFeatures, Y as buildIndexLine, Ya as TransactionCapableClient, Yc as TimestampNaming, Yi as CastType, Yn as CliApp, Yo as max, Yr as DatabaseValue, Ys as AggregateExpressionNode, Yt as PersistedColumnMappingsState, Z as buildMigrationSource, Za as TransactionOptions, Zi as DelegateCreateData, Zn as Attribute, Zo as raw, Zr as DeleteSpec, Zs as CaseExpressionBranch, Zt as PersistedPrimaryKeyGeneration, _ as emitRuntimeDebugEvent, _a as PaginationURLDriver, _c as HasOneThroughRelationMetadata, _i as QueryJoinType, _n as UnsupportedAdapterFeatureException, _o as ModelAttributesOf, _r as registerMigrations, _t as resolveEnumName, a as getRuntimeCompatibilityAdapter, aa as DelegateUpdateArgs, ac as JsonExpressionNode, ai as QueryExistsCondition, an as getPersistedEnumTsType, ao as QueryBuilder, ar as RuntimePathKey, at as deriveRelationAlias, b as getActiveTransactionClient, ba as PrismaDelegateLike, bc as MorphOneRelationMetadata, bi as QueryJsonConditionKind, bn as RelationResolutionException, bo as ModelEventDispatcher, br as registerSeeders, bs as RelationAggregateType, bt as runMigrationWithPrisma, c as PrismaDelegateMap, ca as EagerLoadConstraint, cc as ValueExpressionNode, ci as QueryGroupByItem, cn as getPersistedTimestampColumns, co as AttributeQuerySchema, cr as getRegisteredMigrations, ct as escapeRegex, d as inferDelegateName, da as ModelQuerySchemaLike, dc as BelongsToManyRelationMetadata, di as QueryJoinBoolean, dn as resetPersistedColumnMappingsCache, do as AttributeUpdateInput, dr as getRegisteredSeeders, dt as formatDefaultValue, ea as DelegateOrderBy, ec as ExpressionBinaryOperator, ei as QueryColumnComparisonCondition, en as applyOperationsToPersistedColumnMappingsState, eo as ChunkCallback, er as Arkormx, es as where, et as buildRelationLine, f as awaitConfiguredModelsRegistration, fa as ModelTableCase, fc as BelongsToRelationMetadata, fi as QueryJoinColumnConstraint, fn as resolveColumnMappingsFilePath, fo as AttributeWhereInput, fr as loadFactoriesFrom, ft as formatEnumDefaultValue, g as disposeArkormRuntime, ga as PaginationOptions, gc as HasOneRelationMetadata, gi as QueryJoinRawConstraint, gn as writePersistedColumnMappingsState, go as ModelAttributes, gr as registerFactories, gt as pad, h as defineConfig, ha as PaginationMeta, hc as HasManyThroughRelationMetadata, hi as QueryJoinNullConstraint, hn as validatePersistedMetadataFeaturesForMigrations, ho as ModelAttributeValue, hr as loadSeedersFrom, ht as getMigrationPlan, i as RuntimeModuleLoader, ia as DelegateUniqueWhere, ic as InExpressionNode, ii as QueryDayCondition, in as getPersistedEnumMap, io as GroupByAggregateSpec, ir as RuntimePathInput, it as deriveInverseRelationAlias, j as isTransactionCapableClient, ja as PrismaTransactionOptions, jc as MigrationClass, ji as RelationFilterSpec, jn as SchemaBuilder, jo as QuerySchemaForModel, jr as KyselyDatabaseAdapter, js as JoinOn, jt as buildMigrationRunId, k as isDelegateLike, ka as PrismaTransactionCapableClient, kc as GenerateMigrationOptions, ki as RawQuerySpec, kn as MIGRATION_BRAND, ko as ModelUpdateData, kr as createPrismaCompatibilityAdapter, ks as EagerLoadQueryForRelationship, kt as runInMigrationPlanning, l as createPrismaAdapter, la as EagerLoadMap, lc as DatabaseTableOptions, li as QueryGroupCondition, ln as readPersistedColumnMappingsState, lo as AttributeSchemaDelegate, lr as getRegisteredModels, lt as findEnumBlock, m as configureArkormRuntime, ma as PaginationCurrentPageResolver, mc as HasManyRelationMetadata, mi as QueryJoinNestedConstraint, mn as syncPersistedColumnMappingsFromState, mo as GlobalScope, mr as loadModelsFrom, mt as generateMigrationFile, n as PivotModel, na as DelegateRows, nc as ExpressionNode, ni as QueryComparisonOperator, nn as deletePersistedColumnMappingsState, no as ExpressionSelectMap, nr as RegisteredModel, ns as ModelFactory, nt as createMigrationTimestamp, o as resolveRuntimeCompatibilityQuerySchema, oa as DelegateUpdateData, oc as NullCheckExpressionNode, oi as QueryExpressionCondition, on as getPersistedPrimaryKeyGeneration, oo as AttributeCreateInput, or as RuntimePathMap, ot as deriveRelationFieldName, p as bindAdapterToModels, pa as NamingCase, pc as ColumnMap, pi as QueryJoinConstraint, pn as resolvePersistedMetadataFeatures, po as DelegateForModelSchema, pr as loadMigrationsFrom, pt as formatRelationAction, q as buildEnumBlock, qa as SoftDeleteConfig, qc as TimestampColumnBehavior, qi as CastHandler, qn as InitCommand, qo as fromExpressionNode, qr as DatabaseRow, qs as FactoryState, qt as writeAppliedMigrationsState, r as LoadedRuntimeModule, ra as DelegateSelect, rc as FunctionExpressionNode, ri as QueryCondition, rn as getPersistedColumnMap, ro as GroupByAggregateRow, rr as RuntimeConstructor, rs as defineFactory, rt as deriveCollectionFieldName, s as resolveRuntimeCompatibilityQuerySchemaOrThrow, sa as DelegateWhere, sc as RawExpressionNode, si as QueryFullTextCondition, sn as getPersistedTableMetadata, so as AttributeOrderBy, sr as getRegisteredFactories, st as deriveSingularFieldName, t as URLDriver, ta as DelegateRow, tc as ExpressionJsonCast, ti as QueryComparisonCondition, tn as createEmptyPersistedColumnMappingsState, to as EachCallback, tr as RegisteredFactory, ts as InlineFactory, tt as buildUniqueConstraintLine, u as createPrismaDelegateMap, ua as GetUserConfig, uc as DatabaseTablePersistedMetadataOptions, ui as QueryJoin, un as rebuildPersistedColumnMappingsState, uo as AttributeSelect, ur as getRegisteredPaths, ut as findModelBlock, v as ensureArkormConfigLoading, va as PaginationURLDriverFactory, vc as ModelMetadata, vi as QueryJoinValueConstraint, vn as UniqueConstraintResolutionException, vo as ModelCreateData, vr as registerModels, vs as RelationAggregateConstraint, vt as resolveMigrationClassName, w as getRuntimeDebugHandler, wa as PrismaLikeScalarFilter, wc as RelationMetadata, wi as QueryRawCondition, wn as ModelNotFoundException, wo as ModelEventName, wr as SeederCallArgument, ws as RelationDefaultValue, wt as supportsDatabaseMigrationExecution, x as getDefaultStubsPath, xa as PrismaFindManyArgsLike, xc as MorphToManyRelationMetadata, xi as QueryLogicalOperator, xn as QueryExecutionException, xo as ModelEventHandler, xr as resetRuntimeRegistryForTests, xs as RelationColumnLookupSpec, xt as runPrismaCommand, y as getActiveTransactionAdapter, ya as PrismaClientLike, yc as MorphManyRelationMetadata, yi as QueryJsonCondition, yn as ScopeNotDefinedException, yo as ModelDeclaredAttributeKey, yr as registerPaths, ys as RelationAggregateInput, yt as resolvePrismaType, z as applyAlterTableOperation, za as QuerySchemaUniqueWhere, zc as SchemaForeignKeyAction, zi as UpsertSpec, zn as MigrationHistoryCommand, zo as JsonExpression, zr as AdapterModelStructure, zs as ArkormCollection, zt as isMigrationApplied } from "./index-DAgIbKR2.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, 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, NamingCase, NullCheckExpressionNode, PRISMA_ENUM_MEMBER_REGEX, PRISMA_ENUM_REGEX, PRISMA_MODEL_REGEX, PaginationCurrentPageResolver, PaginationMeta, PaginationOptions, PaginationURLDriver, PaginationURLDriverFactory, Paginator, 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, 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, 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, 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 RelationshipModelStatic, $i as DelegateInclude, $n as Arkorm, $o as val, $r as InsertSpec, $s as CaseExpressionNode, $t as PersistedTimestampColumn, A as isQuerySchemaLike, Aa as PrismaTransactionContext, Ac as AppliedMigrationsState, Ai as RelationAggregateSpec, An as Migration, Ao as ModelWhereInput, Ar as createPrismaDatabaseAdapter, As as EagerLoadQueryForRelationship, At as buildMigrationIdentity, B as applyCreateTableOperation, Ba as QuerySchemaUpdateArgs, Bc as SchemaForeignKey, Bi as AdapterBindableModel, Bn as MigrateRollbackCommand, Bo as avg, Br as AdapterQueryOperation, Bs as ArkormCollection, Bt as markMigrationApplied, C as getRuntimeClient, Ca as PrismaLikeOrderBy, Cc as MorphToRelationMetadata, Ci as QueryOrderBy, Cn as QueryConstraintException, Co as ModelEventListener, Cr as Seeder, Cs as RelationConstraint, Ct as supportsDatabaseCreation, D as getRuntimePrismaClient, Da as PrismaLikeWhereInput, Dc as RelationMetadataType, Di as QueryTarget, Dn as ArkormException, Do as ModelRelationshipKey, Dr as PrismaDatabaseAdapter, Ds as RelationResult, Dt as toModelName, E as getRuntimePaginationURLDriverFactory, Ea as PrismaLikeSortOrder, Ec as RelationMetadata, Ei as QuerySelectColumn, En as ArkormErrorContext, Eo as ModelOrderByInput, Er as SeederInput, Es as RelationMetadataProvider, Et as toMigrationFileSlug, F as PrimaryKeyGenerationPlanner, Fa as QuerySchemaOrderBy, Fc as PrimaryKeyGeneration, Fi as SoftDeleteQueryMode, Fn as resolveGeneratedExpression, Fo as AggregateExpression, Fr as AdapterDatabaseCreationResult, Fs as RelatedModelFromResult, Ft as findAppliedMigration, G as applyMigrationToPrismaSchema, Ga as Serializable, Gc as SchemaTableAlterOperation, Gi as ArkormDebugHandler, Gn as MakeMigrationCommand, Go as expressionBuilder, Gr as DatabaseAdapter, Gs as FactoryDefinitionAttributes, Gt as resolveMigrationStateFilePath, H as applyMigrationRollbackToDatabase, Ha as QuerySchemaWhere, Hc as SchemaIndex, Hi as ArkormBootContext, Hn as MigrateCommand, Ho as coalesce, Hr as AggregateOperation, Hs as FactoryAttributes, Ht as readAppliedMigrationsState, I as PRISMA_ENUM_MEMBER_REGEX, Ia as QuerySchemaRow, Ic as PrismaMigrationWorkflowOptions, Ii as SortDirection, In as ForeignKeyBuilder, Io as CaseExpression, Ir as AdapterInspectionRequest, Is as WhereCallback, It as getLastBatchMigrations, J as buildFieldLine, Ja as TransactionCallback, Jc as SchemaUniqueConstraint, Ji as CastMap, Jn as DbCommand, Jo as json, Jr as DatabaseRows, Js as FactoryState, Jt as writeAppliedMigrationsStateToStore, K as applyOperationsToPrismaSchema, Ka as SimplePaginationMeta, Kc as SchemaTableCreateOperation, Ki as CastDefinition, Kn as MakeFactoryCommand, Ko as fn, Kr as DatabasePrimitive, Ks as FactoryModelConstructor, Kt as supportsDatabaseMigrationState, L as PRISMA_ENUM_REGEX, La as QuerySchemaRows, Lc as PrismaSchemaSyncOptions, Li as UpdateManySpec, Ln as SeedCommand, Lo as Expression, Lr as AdapterModelFieldStructure, Ls as JoinClause, Lt as getLastMigrationRun, M as loadArkormConfig, Ma as QuerySchemaCreateData, Mc as GeneratedMigrationFile, Mi as RelationLoadPlan, Mn as EnumBuilder, Mo as QuerySchemaForModelInstance, Mr as createKyselyAdapter, Ms as JoinOn, Mt as computeMigrationChecksum, N as resetArkormRuntimeForTests, Na as QuerySchemaFindManyArgs, Nc as MigrationClass, Ni as RelationLoadSpec, Nn as TableBuilder, No as RelatedModelClass, Nr as AdapterCapabilities, Ns as JoinSource, Nt as createEmptyAppliedMigrationsState, O as getUserConfig, Oa as PrismaTransactionCallback, Oc as AppliedMigrationEntry, Oi as QueryTimeCondition, On as DB, Oo as ModelRelationshipResult, Or as PrismaDelegateNameMapping, Os as RelationResultCache, Ot as isMigrationPlanningActive, P as runArkormTransaction, Pa as QuerySchemaInclude, Pc as MigrationInstanceLike, Pi as SelectSpec, Pn as GeneratedColumnExpression, Po as Model, Pr as AdapterCapability, Ps as RelatedModelForRelationship, Pt as deleteAppliedMigrationsStateFromStore, Q as buildModelBlock, Qa as ModelStatic, Qi as DelegateFindManyArgs, Qn as AttributeOptions, Qo as sum, Qr as InsertManySpec, Qs as CaseExpressionBranch, Qt as PersistedTableMetadata, R as PRISMA_MODEL_REGEX, Ra as QuerySchemaSelect, Rc as SchemaColumn, Ri as UpdateSpec, Rn as ModelsSyncCommand, Ro as ExpressionBuilder, Rr as AdapterModelIntrospectionOptions, Rs as LengthAwarePaginator, Rt as getLatestAppliedMigrations, S as getRuntimeAdapter, Sa as PrismaLikeInclude, Sc as MorphToManyRelationMetadata, Si as QueryNotCondition, Sn as QueryExecutionExceptionContext, So as ModelEventHandlerConstructor, Sr as SEEDER_BRAND, Ss as RelationColumnLookupSpec, St as stripPrismaSchemaModelsAndEnums, T as getRuntimePaginationCurrentPageResolver, Ta as PrismaLikeSelect, Tc as PivotModelStatic, Ti as QueryScalarComparisonOperator, Tn as MissingDelegateException, To as ModelLifecycleState, Tr as SeederConstructor, Ts as RelationDefaultValue, Tt as supportsDatabaseReset, U as applyMigrationRollbackToPrismaSchema, Ua as RawSelectInput, Uc as SchemaOperation, Ui as ArkormConfig, Un as MakeSeederCommand, Uo as col, Ur as AggregateSelection, Us as FactoryCallback, Ut as readAppliedMigrationsStateFromStore, V as applyDropTableOperation, Va as QuerySchemaUpdateData, Vc as SchemaForeignKeyAction, Vi as AdapterQueryInspection, Vn as MigrateFreshCommand, Vo as caseWhen, Vr as AdapterTransactionContext, Vs as FactoryAttributeResolver, Vt as markMigrationRun, W as applyMigrationToDatabase, Wa as RuntimeClientLike, Wc as SchemaPrimaryKey, Wi as ArkormDebugEvent, Wn as MakeModelCommand, Wo as count, Wr as AggregateSpec, Ws as FactoryDefinition, Wt as removeAppliedMigration, X as buildInverseRelationLine, Xa as TransactionContext, Xc as TimestampNames, Xi as ClientResolver, Xn as resolveCast, Xo as min, Xr as DeleteManySpec, Xs as AggregateExpressionNode, Xt as PersistedMetadataFeatures, Y as buildIndexLine, Ya as TransactionCapableClient, Yc as TimestampColumnBehavior, Yi as CastType, Yn as CliApp, Yo as max, Yr as DatabaseValue, Ys as MaybePromise, Yt as PersistedColumnMappingsState, Z as buildMigrationSource, Za as TransactionOptions, Zc as TimestampNaming, Zi as DelegateCreateData, Zn as Attribute, Zo as raw, Zr as DeleteSpec, Zs as BinaryExpressionNode, Zt as PersistedPrimaryKeyGeneration, _ as emitRuntimeDebugEvent, _a as PaginationURLDriver, _c as HasOneRelationMetadata, _i as QueryJoinType, _n as UnsupportedAdapterFeatureException, _o as ModelAttributesOf, _r as registerMigrations, _t as resolveEnumName, a as getRuntimeCompatibilityAdapter, aa as DelegateUpdateArgs, ac as InExpressionNode, ai as QueryExistsCondition, an as getPersistedEnumTsType, ao as QueryBuilder, ar as RuntimePathKey, at as deriveRelationAlias, b as getActiveTransactionClient, ba as PrismaDelegateLike, bc as MorphManyRelationMetadata, bi as QueryJsonConditionKind, bn as RelationResolutionException, bo as ModelEventDispatcher, br as registerSeeders, bs as RelationAggregateInput, bt as runMigrationWithPrisma, c as PrismaDelegateMap, ca as EagerLoadConstraint, cc as RawExpressionNode, ci as QueryGroupByItem, cn as getPersistedTimestampColumns, co as AttributeQuerySchema, cr as getRegisteredMigrations, ct as escapeRegex, d as inferDelegateName, da as ModelQuerySchemaLike, dc as DatabaseTablePersistedMetadataOptions, di as QueryJoinBoolean, dn as resetPersistedColumnMappingsCache, do as AttributeUpdateInput, dr as getRegisteredSeeders, dt as formatDefaultValue, ea as DelegateOrderBy, ec as ColumnExpressionNode, ei as QueryColumnComparisonCondition, en as applyOperationsToPersistedColumnMappingsState, eo as ChunkCallback, er as Arkormx, es as where, et as buildRelationLine, f as awaitConfiguredModelsRegistration, fa as ModelTableCase, fc as BelongsToManyRelationMetadata, fi as QueryJoinColumnConstraint, fn as resolveColumnMappingsFilePath, fo as AttributeWhereInput, fr as loadFactoriesFrom, ft as formatEnumDefaultValue, g as disposeArkormRuntime, ga as PaginationOptions, gc as HasManyThroughRelationMetadata, gi as QueryJoinRawConstraint, gn as writePersistedColumnMappingsState, go as ModelAttributes, gr as registerFactories, gt as pad, h as defineConfig, ha as PaginationMeta, hc as HasManyRelationMetadata, hi as QueryJoinNullConstraint, hn as validatePersistedMetadataFeaturesForMigrations, ho as ModelAttributeValue, hr as loadSeedersFrom, ht as getMigrationPlan, i as RuntimeModuleLoader, ia as DelegateUniqueWhere, ic as FunctionExpressionNode, ii as QueryDayCondition, in as getPersistedEnumMap, io as GroupByAggregateSpec, ir as RuntimePathInput, it as deriveInverseRelationAlias, j as isTransactionCapableClient, ja as PrismaTransactionOptions, jc as GenerateMigrationOptions, ji as RelationFilterSpec, jn as SchemaBuilder, jo as QuerySchemaForModel, jr as KyselyDatabaseAdapter, js as EagerLoadRelations, jt as buildMigrationRunId, k as isDelegateLike, ka as PrismaTransactionCapableClient, kc as AppliedMigrationRun, ki as RawQuerySpec, kn as MIGRATION_BRAND, ko as ModelUpdateData, kr as createPrismaCompatibilityAdapter, ks as RelationTableLookupSpec, kt as runInMigrationPlanning, l as createPrismaAdapter, la as EagerLoadMap, lc as ValueExpressionNode, li as QueryGroupCondition, ln as readPersistedColumnMappingsState, lo as AttributeSchemaDelegate, lr as getRegisteredModels, lt as findEnumBlock, m as configureArkormRuntime, ma as PaginationCurrentPageResolver, mc as ColumnMap, mi as QueryJoinNestedConstraint, mn as syncPersistedColumnMappingsFromState, mo as GlobalScope, mr as loadModelsFrom, mt as generateMigrationFile, n as PivotModel, na as DelegateRows, nc as ExpressionJsonCast, ni as QueryComparisonOperator, nn as deletePersistedColumnMappingsState, no as ExpressionSelectMap, nr as RegisteredModel, ns as ModelFactory, nt as createMigrationTimestamp, o as resolveRuntimeCompatibilityQuerySchema, oa as DelegateUpdateData, oc as JsonExpressionNode, oi as QueryExpressionCondition, on as getPersistedPrimaryKeyGeneration, oo as AttributeCreateInput, or as RuntimePathMap, ot as deriveRelationFieldName, p as bindAdapterToModels, pa as NamingCase, pc as BelongsToRelationMetadata, pi as QueryJoinConstraint, pn as resolvePersistedMetadataFeatures, po as DelegateForModelSchema, pr as loadMigrationsFrom, pt as formatRelationAction, q as buildEnumBlock, qa as SoftDeleteConfig, qc as SchemaTableDropOperation, qi as CastHandler, qn as InitCommand, qo as fromExpressionNode, qr as DatabaseRow, qs as FactoryRelationshipResolver, qt as writeAppliedMigrationsState, r as LoadedRuntimeModule, ra as DelegateSelect, rc as ExpressionNode, ri as QueryCondition, rn as getPersistedColumnMap, ro as GroupByAggregateRow, rr as RuntimeConstructor, rs as defineFactory, rt as deriveCollectionFieldName, s as resolveRuntimeCompatibilityQuerySchemaOrThrow, sa as DelegateWhere, sc as NullCheckExpressionNode, si as QueryFullTextCondition, sn as getPersistedTableMetadata, so as AttributeOrderBy, sr as getRegisteredFactories, st as deriveSingularFieldName, t as URLDriver, ta as DelegateRow, tc as ExpressionBinaryOperator, ti as QueryComparisonCondition, tn as createEmptyPersistedColumnMappingsState, to as EachCallback, tr as RegisteredFactory, ts as InlineFactory, tt as buildUniqueConstraintLine, u as createPrismaDelegateMap, ua as GetUserConfig, uc as DatabaseTableOptions, ui as QueryJoin, un as rebuildPersistedColumnMappingsState, uo as AttributeSelect, ur as getRegisteredPaths, ut as findModelBlock, v as ensureArkormConfigLoading, va as PaginationURLDriverFactory, vc as HasOneThroughRelationMetadata, vi as QueryJoinValueConstraint, vn as UniqueConstraintResolutionException, vo as ModelCreateData, vr as registerModels, vt as resolveMigrationClassName, w as getRuntimeDebugHandler, wa as PrismaLikeScalarFilter, wc as MorphedByManyRelationMetadata, wi as QueryRawCondition, wn as ModelNotFoundException, wo as ModelEventName, wr as SeederCallArgument, ws as RelationDefaultResolver, wt as supportsDatabaseMigrationExecution, x as getDefaultStubsPath, xa as PrismaFindManyArgsLike, xc as MorphOneRelationMetadata, xi as QueryLogicalOperator, xn as QueryExecutionException, xo as ModelEventHandler, xr as resetRuntimeRegistryForTests, xs as RelationAggregateType, xt as runPrismaCommand, y as getActiveTransactionAdapter, ya as PrismaClientLike, yc as ModelMetadata, yi as QueryJsonCondition, yn as ScopeNotDefinedException, yo as ModelDeclaredAttributeKey, yr as registerPaths, ys as RelationAggregateConstraint, yt as resolvePrismaType, z as applyAlterTableOperation, za as QuerySchemaUniqueWhere, zc as SchemaColumnType, zi as UpsertSpec, zn as MigrationHistoryCommand, zo as JsonExpression, zr as AdapterModelStructure, zs as Paginator, zt as isMigrationApplied } from "./index-zEl3LGHl.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, 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, 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, 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, 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, resolveRuntimeCompatibilityQuerySchema, resolveRuntimeCompatibilityQuerySchemaOrThrow, runArkormTransaction, runInMigrationPlanning, 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 RelationshipModelStatic, $i as DelegateInclude, $n as Arkorm, $o as val, $r as InsertSpec, $s as ColumnExpressionNode, $t as PersistedTimestampColumn, A as isQuerySchemaLike, Aa as PrismaTransactionContext, Ac as GeneratedMigrationFile, Ai as RelationAggregateSpec, An as Migration, Ao as ModelWhereInput, Ar as createPrismaDatabaseAdapter, As as EagerLoadRelations, At as buildMigrationIdentity, B as applyCreateTableOperation, Ba as QuerySchemaUpdateArgs, Bc as SchemaIndex, Bi as AdapterBindableModel, Bn as MigrateRollbackCommand, Bo as avg, Br as AdapterQueryOperation, Bs as FactoryAttributeResolver, Bt as markMigrationApplied, C as getRuntimeClient, Ca as PrismaLikeOrderBy, Cc as PivotModelStatic, Ci as QueryOrderBy, Cn as QueryConstraintException, Co as ModelEventListener, Cr as Seeder, Cs as RelationDefaultResolver, Ct as supportsDatabaseCreation, D as getRuntimePrismaClient, Da as PrismaLikeWhereInput, Dc as AppliedMigrationRun, Di as QueryTarget, Dn as ArkormException, Do as ModelRelationshipKey, Dr as PrismaDatabaseAdapter, Ds as RelationResultCache, Dt as toModelName, E as getRuntimePaginationURLDriverFactory, Ea as PrismaLikeSortOrder, Ec as AppliedMigrationEntry, Ei as QuerySelectColumn, En as ArkormErrorContext, Eo as ModelOrderByInput, Er as SeederInput, Es as RelationResult, Et as toMigrationFileSlug, F as PrimaryKeyGenerationPlanner, Fa as QuerySchemaOrderBy, Fc as PrismaSchemaSyncOptions, Fi as SoftDeleteQueryMode, Fn as resolveGeneratedExpression, Fo as AggregateExpression, Fr as AdapterDatabaseCreationResult, Fs as WhereCallback, Ft as findAppliedMigration, G as applyMigrationToPrismaSchema, Ga as Serializable, Gc as SchemaTableDropOperation, Gi as ArkormDebugHandler, Gn as MakeMigrationCommand, Go as expressionBuilder, Gr as DatabaseAdapter, Gs as FactoryModelConstructor, Gt as resolveMigrationStateFilePath, H as applyMigrationRollbackToDatabase, Ha as QuerySchemaWhere, Hc as SchemaPrimaryKey, Hi as ArkormBootContext, Hn as MigrateCommand, Ho as coalesce, Hr as AggregateOperation, Hs as FactoryCallback, Ht as readAppliedMigrationsState, I as PRISMA_ENUM_MEMBER_REGEX, Ia as QuerySchemaRow, Ic as SchemaColumn, Ii as SortDirection, In as ForeignKeyBuilder, Io as CaseExpression, Ir as AdapterInspectionRequest, Is as JoinClause, It as getLastBatchMigrations, J as buildFieldLine, Ja as TransactionCallback, Jc as TimestampNames, Ji as CastMap, Jn as DbCommand, Jo as json, Jr as DatabaseRows, Js as MaybePromise, Jt as writeAppliedMigrationsStateToStore, K as applyOperationsToPrismaSchema, Ka as SimplePaginationMeta, Kc as SchemaUniqueConstraint, Ki as CastDefinition, Kn as MakeFactoryCommand, Ko as fn, Kr as DatabasePrimitive, Ks as FactoryRelationshipResolver, Kt as supportsDatabaseMigrationState, L as PRISMA_ENUM_REGEX, La as QuerySchemaRows, Lc as SchemaColumnType, Li as UpdateManySpec, Ln as SeedCommand, Lo as Expression, Lr as AdapterModelFieldStructure, Ls as LengthAwarePaginator, Lt as getLastMigrationRun, M as loadArkormConfig, Ma as QuerySchemaCreateData, Mc as MigrationInstanceLike, Mi as RelationLoadPlan, Mn as EnumBuilder, Mo as QuerySchemaForModelInstance, Mr as createKyselyAdapter, Ms as JoinSource, Mt as computeMigrationChecksum, N as resetArkormRuntimeForTests, Na as QuerySchemaFindManyArgs, Nc as PrimaryKeyGeneration, Ni as RelationLoadSpec, Nn as TableBuilder, No as RelatedModelClass, Nr as AdapterCapabilities, Ns as RelatedModelForRelationship, Nt as createEmptyAppliedMigrationsState, O as getUserConfig, Oa as PrismaTransactionCallback, Oc as AppliedMigrationsState, Oi as QueryTimeCondition, On as DB, Oo as ModelRelationshipResult, Or as PrismaDelegateNameMapping, Os as RelationTableLookupSpec, Ot as isMigrationPlanningActive, P as runArkormTransaction, Pa as QuerySchemaInclude, Pc as PrismaMigrationWorkflowOptions, Pi as SelectSpec, Pn as GeneratedColumnExpression, Po as Model, Pr as AdapterCapability, Ps as RelatedModelFromResult, Pt as deleteAppliedMigrationsStateFromStore, Q as buildModelBlock, Qa as ModelStatic, Qi as DelegateFindManyArgs, Qn as AttributeOptions, Qo as sum, Qr as InsertManySpec, Qs as CaseExpressionNode, Qt as PersistedTableMetadata, R as PRISMA_MODEL_REGEX, Ra as QuerySchemaSelect, Rc as SchemaForeignKey, Ri as UpdateSpec, Rn as ModelsSyncCommand, Ro as ExpressionBuilder, Rr as AdapterModelIntrospectionOptions, Rs as Paginator, Rt as getLatestAppliedMigrations, S as getRuntimeAdapter, Sa as PrismaLikeInclude, Sc as MorphToRelationMetadata, Si as QueryNotCondition, Sn as QueryExecutionExceptionContext, So as ModelEventHandlerConstructor, Sr as SEEDER_BRAND, Ss as RelationConstraint, St as stripPrismaSchemaModelsAndEnums, T as getRuntimePaginationCurrentPageResolver, Ta as PrismaLikeSelect, Tc as RelationMetadataType, Ti as QueryScalarComparisonOperator, Tn as MissingDelegateException, To as ModelLifecycleState, Tr as SeederConstructor, Ts as RelationMetadataProvider, Tt as supportsDatabaseReset, U as applyMigrationRollbackToPrismaSchema, Ua as RawSelectInput, Uc as SchemaTableAlterOperation, Ui as ArkormConfig, Un as MakeSeederCommand, Uo as col, Ur as AggregateSelection, Us as FactoryDefinition, Ut as readAppliedMigrationsStateFromStore, V as applyDropTableOperation, Va as QuerySchemaUpdateData, Vc as SchemaOperation, Vi as AdapterQueryInspection, Vn as MigrateFreshCommand, Vo as caseWhen, Vr as AdapterTransactionContext, Vs as FactoryAttributes, Vt as markMigrationRun, W as applyMigrationToDatabase, Wa as RuntimeClientLike, Wc as SchemaTableCreateOperation, Wi as ArkormDebugEvent, Wn as MakeModelCommand, Wo as count, Wr as AggregateSpec, Ws as FactoryDefinitionAttributes, Wt as removeAppliedMigration, X as buildInverseRelationLine, Xa as TransactionContext, Xi as ClientResolver, Xn as resolveCast, Xo as min, Xr as DeleteManySpec, Xs as BinaryExpressionNode, Xt as PersistedMetadataFeatures, Y as buildIndexLine, Ya as TransactionCapableClient, Yc as TimestampNaming, Yi as CastType, Yn as CliApp, Yo as max, Yr as DatabaseValue, Ys as AggregateExpressionNode, Yt as PersistedColumnMappingsState, Z as buildMigrationSource, Za as TransactionOptions, Zi as DelegateCreateData, Zn as Attribute, Zo as raw, Zr as DeleteSpec, Zs as CaseExpressionBranch, Zt as PersistedPrimaryKeyGeneration, _ as emitRuntimeDebugEvent, _a as PaginationURLDriver, _c as HasOneThroughRelationMetadata, _i as QueryJoinType, _n as UnsupportedAdapterFeatureException, _o as ModelAttributesOf, _r as registerMigrations, _t as resolveEnumName, a as getRuntimeCompatibilityAdapter, aa as DelegateUpdateArgs, ac as JsonExpressionNode, ai as QueryExistsCondition, an as getPersistedEnumTsType, ao as QueryBuilder, ar as RuntimePathKey, at as deriveRelationAlias, b as getActiveTransactionClient, ba as PrismaDelegateLike, bc as MorphOneRelationMetadata, bi as QueryJsonConditionKind, bn as RelationResolutionException, bo as ModelEventDispatcher, br as registerSeeders, bs as RelationAggregateType, bt as runMigrationWithPrisma, c as PrismaDelegateMap, ca as EagerLoadConstraint, cc as ValueExpressionNode, ci as QueryGroupByItem, cn as getPersistedTimestampColumns, co as AttributeQuerySchema, cr as getRegisteredMigrations, ct as escapeRegex, d as inferDelegateName, da as ModelQuerySchemaLike, dc as BelongsToManyRelationMetadata, di as QueryJoinBoolean, dn as resetPersistedColumnMappingsCache, do as AttributeUpdateInput, dr as getRegisteredSeeders, dt as formatDefaultValue, ea as DelegateOrderBy, ec as ExpressionBinaryOperator, ei as QueryColumnComparisonCondition, en as applyOperationsToPersistedColumnMappingsState, eo as ChunkCallback, er as Arkormx, es as where, et as buildRelationLine, f as awaitConfiguredModelsRegistration, fa as ModelTableCase, fc as BelongsToRelationMetadata, fi as QueryJoinColumnConstraint, fn as resolveColumnMappingsFilePath, fo as AttributeWhereInput, fr as loadFactoriesFrom, ft as formatEnumDefaultValue, g as disposeArkormRuntime, ga as PaginationOptions, gc as HasOneRelationMetadata, gi as QueryJoinRawConstraint, gn as writePersistedColumnMappingsState, go as ModelAttributes, gr as registerFactories, gt as pad, h as defineConfig, ha as PaginationMeta, hc as HasManyThroughRelationMetadata, hi as QueryJoinNullConstraint, hn as validatePersistedMetadataFeaturesForMigrations, ho as ModelAttributeValue, hr as loadSeedersFrom, ht as getMigrationPlan, i as RuntimeModuleLoader, ia as DelegateUniqueWhere, ic as InExpressionNode, ii as QueryDayCondition, in as getPersistedEnumMap, io as GroupByAggregateSpec, ir as RuntimePathInput, it as deriveInverseRelationAlias, j as isTransactionCapableClient, ja as PrismaTransactionOptions, jc as MigrationClass, ji as RelationFilterSpec, jn as SchemaBuilder, jo as QuerySchemaForModel, jr as KyselyDatabaseAdapter, js as JoinOn, jt as buildMigrationRunId, k as isDelegateLike, ka as PrismaTransactionCapableClient, kc as GenerateMigrationOptions, ki as RawQuerySpec, kn as MIGRATION_BRAND, ko as ModelUpdateData, kr as createPrismaCompatibilityAdapter, ks as EagerLoadQueryForRelationship, kt as runInMigrationPlanning, l as createPrismaAdapter, la as EagerLoadMap, lc as DatabaseTableOptions, li as QueryGroupCondition, ln as readPersistedColumnMappingsState, lo as AttributeSchemaDelegate, lr as getRegisteredModels, lt as findEnumBlock, m as configureArkormRuntime, ma as PaginationCurrentPageResolver, mc as HasManyRelationMetadata, mi as QueryJoinNestedConstraint, mn as syncPersistedColumnMappingsFromState, mo as GlobalScope, mr as loadModelsFrom, mt as generateMigrationFile, n as PivotModel, na as DelegateRows, nc as ExpressionNode, ni as QueryComparisonOperator, nn as deletePersistedColumnMappingsState, no as ExpressionSelectMap, nr as RegisteredModel, ns as ModelFactory, nt as createMigrationTimestamp, o as resolveRuntimeCompatibilityQuerySchema, oa as DelegateUpdateData, oc as NullCheckExpressionNode, oi as QueryExpressionCondition, on as getPersistedPrimaryKeyGeneration, oo as AttributeCreateInput, or as RuntimePathMap, ot as deriveRelationFieldName, p as bindAdapterToModels, pa as NamingCase, pc as ColumnMap, pi as QueryJoinConstraint, pn as resolvePersistedMetadataFeatures, po as DelegateForModelSchema, pr as loadMigrationsFrom, pt as formatRelationAction, q as buildEnumBlock, qa as SoftDeleteConfig, qc as TimestampColumnBehavior, qi as CastHandler, qn as InitCommand, qo as fromExpressionNode, qr as DatabaseRow, qs as FactoryState, qt as writeAppliedMigrationsState, r as LoadedRuntimeModule, ra as DelegateSelect, rc as FunctionExpressionNode, ri as QueryCondition, rn as getPersistedColumnMap, ro as GroupByAggregateRow, rr as RuntimeConstructor, rs as defineFactory, rt as deriveCollectionFieldName, s as resolveRuntimeCompatibilityQuerySchemaOrThrow, sa as DelegateWhere, sc as RawExpressionNode, si as QueryFullTextCondition, sn as getPersistedTableMetadata, so as AttributeOrderBy, sr as getRegisteredFactories, st as deriveSingularFieldName, t as URLDriver, ta as DelegateRow, tc as ExpressionJsonCast, ti as QueryComparisonCondition, tn as createEmptyPersistedColumnMappingsState, to as EachCallback, tr as RegisteredFactory, ts as InlineFactory, tt as buildUniqueConstraintLine, u as createPrismaDelegateMap, ua as GetUserConfig, uc as DatabaseTablePersistedMetadataOptions, ui as QueryJoin, un as rebuildPersistedColumnMappingsState, uo as AttributeSelect, ur as getRegisteredPaths, ut as findModelBlock, v as ensureArkormConfigLoading, va as PaginationURLDriverFactory, vc as ModelMetadata, vi as QueryJoinValueConstraint, vn as UniqueConstraintResolutionException, vo as ModelCreateData, vr as registerModels, vs as RelationAggregateConstraint, vt as resolveMigrationClassName, w as getRuntimeDebugHandler, wa as PrismaLikeScalarFilter, wc as RelationMetadata, wi as QueryRawCondition, wn as ModelNotFoundException, wo as ModelEventName, wr as SeederCallArgument, ws as RelationDefaultValue, wt as supportsDatabaseMigrationExecution, x as getDefaultStubsPath, xa as PrismaFindManyArgsLike, xc as MorphToManyRelationMetadata, xi as QueryLogicalOperator, xn as QueryExecutionException, xo as ModelEventHandler, xr as resetRuntimeRegistryForTests, xs as RelationColumnLookupSpec, xt as runPrismaCommand, y as getActiveTransactionAdapter, ya as PrismaClientLike, yc as MorphManyRelationMetadata, yi as QueryJsonCondition, yn as ScopeNotDefinedException, yo as ModelDeclaredAttributeKey, yr as registerPaths, ys as RelationAggregateInput, yt as resolvePrismaType, z as applyAlterTableOperation, za as QuerySchemaUniqueWhere, zc as SchemaForeignKeyAction, zi as UpsertSpec, zn as MigrationHistoryCommand, zo as JsonExpression, zr as AdapterModelStructure, zs as ArkormCollection, zt as isMigrationApplied } from "./index-C9KP-bo7.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, 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, NamingCase, NullCheckExpressionNode, PRISMA_ENUM_MEMBER_REGEX, PRISMA_ENUM_REGEX, PRISMA_MODEL_REGEX, PaginationCurrentPageResolver, PaginationMeta, PaginationOptions, PaginationURLDriver, PaginationURLDriverFactory, Paginator, 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, 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, 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, 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 RelationshipModelStatic, $i as DelegateInclude, $n as Arkorm, $o as val, $r as InsertSpec, $s as CaseExpressionNode, $t as PersistedTimestampColumn, A as isQuerySchemaLike, Aa as PrismaTransactionContext, Ac as AppliedMigrationsState, Ai as RelationAggregateSpec, An as Migration, Ao as ModelWhereInput, Ar as createPrismaDatabaseAdapter, As as EagerLoadQueryForRelationship, At as buildMigrationIdentity, B as applyCreateTableOperation, Ba as QuerySchemaUpdateArgs, Bc as SchemaForeignKey, Bi as AdapterBindableModel, Bn as MigrateRollbackCommand, Bo as avg, Br as AdapterQueryOperation, Bs as ArkormCollection, Bt as markMigrationApplied, C as getRuntimeClient, Ca as PrismaLikeOrderBy, Cc as MorphToRelationMetadata, Ci as QueryOrderBy, Cn as QueryConstraintException, Co as ModelEventListener, Cr as Seeder, Cs as RelationConstraint, Ct as supportsDatabaseCreation, D as getRuntimePrismaClient, Da as PrismaLikeWhereInput, Dc as RelationMetadataType, Di as QueryTarget, Dn as ArkormException, Do as ModelRelationshipKey, Dr as PrismaDatabaseAdapter, Ds as RelationResult, Dt as toModelName, E as getRuntimePaginationURLDriverFactory, Ea as PrismaLikeSortOrder, Ec as RelationMetadata, Ei as QuerySelectColumn, En as ArkormErrorContext, Eo as ModelOrderByInput, Er as SeederInput, Es as RelationMetadataProvider, Et as toMigrationFileSlug, F as PrimaryKeyGenerationPlanner, Fa as QuerySchemaOrderBy, Fc as PrimaryKeyGeneration, Fi as SoftDeleteQueryMode, Fn as resolveGeneratedExpression, Fo as AggregateExpression, Fr as AdapterDatabaseCreationResult, Fs as RelatedModelFromResult, Ft as findAppliedMigration, G as applyMigrationToPrismaSchema, Ga as Serializable, Gc as SchemaTableAlterOperation, Gi as ArkormDebugHandler, Gn as MakeMigrationCommand, Go as expressionBuilder, Gr as DatabaseAdapter, Gs as FactoryDefinitionAttributes, Gt as resolveMigrationStateFilePath, H as applyMigrationRollbackToDatabase, Ha as QuerySchemaWhere, Hc as SchemaIndex, Hi as ArkormBootContext, Hn as MigrateCommand, Ho as coalesce, Hr as AggregateOperation, Hs as FactoryAttributes, Ht as readAppliedMigrationsState, I as PRISMA_ENUM_MEMBER_REGEX, Ia as QuerySchemaRow, Ic as PrismaMigrationWorkflowOptions, Ii as SortDirection, In as ForeignKeyBuilder, Io as CaseExpression, Ir as AdapterInspectionRequest, Is as WhereCallback, It as getLastBatchMigrations, J as buildFieldLine, Ja as TransactionCallback, Jc as SchemaUniqueConstraint, Ji as CastMap, Jn as DbCommand, Jo as json, Jr as DatabaseRows, Js as FactoryState, Jt as writeAppliedMigrationsStateToStore, K as applyOperationsToPrismaSchema, Ka as SimplePaginationMeta, Kc as SchemaTableCreateOperation, Ki as CastDefinition, Kn as MakeFactoryCommand, Ko as fn, Kr as DatabasePrimitive, Ks as FactoryModelConstructor, Kt as supportsDatabaseMigrationState, L as PRISMA_ENUM_REGEX, La as QuerySchemaRows, Lc as PrismaSchemaSyncOptions, Li as UpdateManySpec, Ln as SeedCommand, Lo as Expression, Lr as AdapterModelFieldStructure, Ls as JoinClause, Lt as getLastMigrationRun, M as loadArkormConfig, Ma as QuerySchemaCreateData, Mc as GeneratedMigrationFile, Mi as RelationLoadPlan, Mn as EnumBuilder, Mo as QuerySchemaForModelInstance, Mr as createKyselyAdapter, Ms as JoinOn, Mt as computeMigrationChecksum, N as resetArkormRuntimeForTests, Na as QuerySchemaFindManyArgs, Nc as MigrationClass, Ni as RelationLoadSpec, Nn as TableBuilder, No as RelatedModelClass, Nr as AdapterCapabilities, Ns as JoinSource, Nt as createEmptyAppliedMigrationsState, O as getUserConfig, Oa as PrismaTransactionCallback, Oc as AppliedMigrationEntry, Oi as QueryTimeCondition, On as DB, Oo as ModelRelationshipResult, Or as PrismaDelegateNameMapping, Os as RelationResultCache, Ot as isMigrationPlanningActive, P as runArkormTransaction, Pa as QuerySchemaInclude, Pc as MigrationInstanceLike, Pi as SelectSpec, Pn as GeneratedColumnExpression, Po as Model, Pr as AdapterCapability, Ps as RelatedModelForRelationship, Pt as deleteAppliedMigrationsStateFromStore, Q as buildModelBlock, Qa as ModelStatic, Qi as DelegateFindManyArgs, Qn as AttributeOptions, Qo as sum, Qr as InsertManySpec, Qs as CaseExpressionBranch, Qt as PersistedTableMetadata, R as PRISMA_MODEL_REGEX, Ra as QuerySchemaSelect, Rc as SchemaColumn, Ri as UpdateSpec, Rn as ModelsSyncCommand, Ro as ExpressionBuilder, Rr as AdapterModelIntrospectionOptions, Rs as LengthAwarePaginator, Rt as getLatestAppliedMigrations, S as getRuntimeAdapter, Sa as PrismaLikeInclude, Sc as MorphToManyRelationMetadata, Si as QueryNotCondition, Sn as QueryExecutionExceptionContext, So as ModelEventHandlerConstructor, Sr as SEEDER_BRAND, Ss as RelationColumnLookupSpec, St as stripPrismaSchemaModelsAndEnums, T as getRuntimePaginationCurrentPageResolver, Ta as PrismaLikeSelect, Tc as PivotModelStatic, Ti as QueryScalarComparisonOperator, Tn as MissingDelegateException, To as ModelLifecycleState, Tr as SeederConstructor, Ts as RelationDefaultValue, Tt as supportsDatabaseReset, U as applyMigrationRollbackToPrismaSchema, Ua as RawSelectInput, Uc as SchemaOperation, Ui as ArkormConfig, Un as MakeSeederCommand, Uo as col, Ur as AggregateSelection, Us as FactoryCallback, Ut as readAppliedMigrationsStateFromStore, V as applyDropTableOperation, Va as QuerySchemaUpdateData, Vc as SchemaForeignKeyAction, Vi as AdapterQueryInspection, Vn as MigrateFreshCommand, Vo as caseWhen, Vr as AdapterTransactionContext, Vs as FactoryAttributeResolver, Vt as markMigrationRun, W as applyMigrationToDatabase, Wa as RuntimeClientLike, Wc as SchemaPrimaryKey, Wi as ArkormDebugEvent, Wn as MakeModelCommand, Wo as count, Wr as AggregateSpec, Ws as FactoryDefinition, Wt as removeAppliedMigration, X as buildInverseRelationLine, Xa as TransactionContext, Xc as TimestampNames, Xi as ClientResolver, Xn as resolveCast, Xo as min, Xr as DeleteManySpec, Xs as AggregateExpressionNode, Xt as PersistedMetadataFeatures, Y as buildIndexLine, Ya as TransactionCapableClient, Yc as TimestampColumnBehavior, Yi as CastType, Yn as CliApp, Yo as max, Yr as DatabaseValue, Ys as MaybePromise, Yt as PersistedColumnMappingsState, Z as buildMigrationSource, Za as TransactionOptions, Zc as TimestampNaming, Zi as DelegateCreateData, Zn as Attribute, Zo as raw, Zr as DeleteSpec, Zs as BinaryExpressionNode, Zt as PersistedPrimaryKeyGeneration, _ as emitRuntimeDebugEvent, _a as PaginationURLDriver, _c as HasOneRelationMetadata, _i as QueryJoinType, _n as UnsupportedAdapterFeatureException, _o as ModelAttributesOf, _r as registerMigrations, _t as resolveEnumName, a as getRuntimeCompatibilityAdapter, aa as DelegateUpdateArgs, ac as InExpressionNode, ai as QueryExistsCondition, an as getPersistedEnumTsType, ao as QueryBuilder, ar as RuntimePathKey, at as deriveRelationAlias, b as getActiveTransactionClient, ba as PrismaDelegateLike, bc as MorphManyRelationMetadata, bi as QueryJsonConditionKind, bn as RelationResolutionException, bo as ModelEventDispatcher, br as registerSeeders, bs as RelationAggregateInput, bt as runMigrationWithPrisma, c as PrismaDelegateMap, ca as EagerLoadConstraint, cc as RawExpressionNode, ci as QueryGroupByItem, cn as getPersistedTimestampColumns, co as AttributeQuerySchema, cr as getRegisteredMigrations, ct as escapeRegex, d as inferDelegateName, da as ModelQuerySchemaLike, dc as DatabaseTablePersistedMetadataOptions, di as QueryJoinBoolean, dn as resetPersistedColumnMappingsCache, do as AttributeUpdateInput, dr as getRegisteredSeeders, dt as formatDefaultValue, ea as DelegateOrderBy, ec as ColumnExpressionNode, ei as QueryColumnComparisonCondition, en as applyOperationsToPersistedColumnMappingsState, eo as ChunkCallback, er as Arkormx, es as where, et as buildRelationLine, f as awaitConfiguredModelsRegistration, fa as ModelTableCase, fc as BelongsToManyRelationMetadata, fi as QueryJoinColumnConstraint, fn as resolveColumnMappingsFilePath, fo as AttributeWhereInput, fr as loadFactoriesFrom, ft as formatEnumDefaultValue, g as disposeArkormRuntime, ga as PaginationOptions, gc as HasManyThroughRelationMetadata, gi as QueryJoinRawConstraint, gn as writePersistedColumnMappingsState, go as ModelAttributes, gr as registerFactories, gt as pad, h as defineConfig, ha as PaginationMeta, hc as HasManyRelationMetadata, hi as QueryJoinNullConstraint, hn as validatePersistedMetadataFeaturesForMigrations, ho as ModelAttributeValue, hr as loadSeedersFrom, ht as getMigrationPlan, i as RuntimeModuleLoader, ia as DelegateUniqueWhere, ic as FunctionExpressionNode, ii as QueryDayCondition, in as getPersistedEnumMap, io as GroupByAggregateSpec, ir as RuntimePathInput, it as deriveInverseRelationAlias, j as isTransactionCapableClient, ja as PrismaTransactionOptions, jc as GenerateMigrationOptions, ji as RelationFilterSpec, jn as SchemaBuilder, jo as QuerySchemaForModel, jr as KyselyDatabaseAdapter, js as EagerLoadRelations, jt as buildMigrationRunId, k as isDelegateLike, ka as PrismaTransactionCapableClient, kc as AppliedMigrationRun, ki as RawQuerySpec, kn as MIGRATION_BRAND, ko as ModelUpdateData, kr as createPrismaCompatibilityAdapter, ks as RelationTableLookupSpec, kt as runInMigrationPlanning, l as createPrismaAdapter, la as EagerLoadMap, lc as ValueExpressionNode, li as QueryGroupCondition, ln as readPersistedColumnMappingsState, lo as AttributeSchemaDelegate, lr as getRegisteredModels, lt as findEnumBlock, m as configureArkormRuntime, ma as PaginationCurrentPageResolver, mc as ColumnMap, mi as QueryJoinNestedConstraint, mn as syncPersistedColumnMappingsFromState, mo as GlobalScope, mr as loadModelsFrom, mt as generateMigrationFile, n as PivotModel, na as DelegateRows, nc as ExpressionJsonCast, ni as QueryComparisonOperator, nn as deletePersistedColumnMappingsState, no as ExpressionSelectMap, nr as RegisteredModel, ns as ModelFactory, nt as createMigrationTimestamp, o as resolveRuntimeCompatibilityQuerySchema, oa as DelegateUpdateData, oc as JsonExpressionNode, oi as QueryExpressionCondition, on as getPersistedPrimaryKeyGeneration, oo as AttributeCreateInput, or as RuntimePathMap, ot as deriveRelationFieldName, p as bindAdapterToModels, pa as NamingCase, pc as BelongsToRelationMetadata, pi as QueryJoinConstraint, pn as resolvePersistedMetadataFeatures, po as DelegateForModelSchema, pr as loadMigrationsFrom, pt as formatRelationAction, q as buildEnumBlock, qa as SoftDeleteConfig, qc as SchemaTableDropOperation, qi as CastHandler, qn as InitCommand, qo as fromExpressionNode, qr as DatabaseRow, qs as FactoryRelationshipResolver, qt as writeAppliedMigrationsState, r as LoadedRuntimeModule, ra as DelegateSelect, rc as ExpressionNode, ri as QueryCondition, rn as getPersistedColumnMap, ro as GroupByAggregateRow, rr as RuntimeConstructor, rs as defineFactory, rt as deriveCollectionFieldName, s as resolveRuntimeCompatibilityQuerySchemaOrThrow, sa as DelegateWhere, sc as NullCheckExpressionNode, si as QueryFullTextCondition, sn as getPersistedTableMetadata, so as AttributeOrderBy, sr as getRegisteredFactories, st as deriveSingularFieldName, t as URLDriver, ta as DelegateRow, tc as ExpressionBinaryOperator, ti as QueryComparisonCondition, tn as createEmptyPersistedColumnMappingsState, to as EachCallback, tr as RegisteredFactory, ts as InlineFactory, tt as buildUniqueConstraintLine, u as createPrismaDelegateMap, ua as GetUserConfig, uc as DatabaseTableOptions, ui as QueryJoin, un as rebuildPersistedColumnMappingsState, uo as AttributeSelect, ur as getRegisteredPaths, ut as findModelBlock, v as ensureArkormConfigLoading, va as PaginationURLDriverFactory, vc as HasOneThroughRelationMetadata, vi as QueryJoinValueConstraint, vn as UniqueConstraintResolutionException, vo as ModelCreateData, vr as registerModels, vt as resolveMigrationClassName, w as getRuntimeDebugHandler, wa as PrismaLikeScalarFilter, wc as MorphedByManyRelationMetadata, wi as QueryRawCondition, wn as ModelNotFoundException, wo as ModelEventName, wr as SeederCallArgument, ws as RelationDefaultResolver, wt as supportsDatabaseMigrationExecution, x as getDefaultStubsPath, xa as PrismaFindManyArgsLike, xc as MorphOneRelationMetadata, xi as QueryLogicalOperator, xn as QueryExecutionException, xo as ModelEventHandler, xr as resetRuntimeRegistryForTests, xs as RelationAggregateType, xt as runPrismaCommand, y as getActiveTransactionAdapter, ya as PrismaClientLike, yc as ModelMetadata, yi as QueryJsonCondition, yn as ScopeNotDefinedException, yo as ModelDeclaredAttributeKey, yr as registerPaths, ys as RelationAggregateConstraint, yt as resolvePrismaType, z as applyAlterTableOperation, za as QuerySchemaUniqueWhere, zc as SchemaColumnType, zi as UpsertSpec, zn as MigrationHistoryCommand, zo as JsonExpression, zr as AdapterModelStructure, zs as Paginator, zt as isMigrationApplied } from "./index-n7PDrO7n.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, 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, 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, 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, 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, resolveRuntimeCompatibilityQuerySchema, resolveRuntimeCompatibilityQuerySchemaOrThrow, runArkormTransaction, runInMigrationPlanning, 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
|
|
1
|
+
import { $ as registerSeeders, $n as supportsDatabaseMigrationState, $t as resolveEnumName, A as getRuntimePaginationCurrentPageResolver, An as min, At as buildFieldLine, B as getRegisteredFactories, Bn as createEmptyAppliedMigrationsState, Bt as deriveInverseRelationAlias, C as ensureArkormConfigLoading, Cn as col, Ct as applyDropTableOperation, D as getRuntimeAdapter, Dn as fromExpressionNode, Dt as applyMigrationToPrismaSchema, E as getDefaultStubsPath, En as fn, Et as applyMigrationToDatabase, F as isQuerySchemaLike, Fn as PrimaryKeyGenerationPlanner, Ft as buildPrimaryKeyLine, G as loadFactoriesFrom, Gn as getLatestAppliedMigrations, Gt as findEnumBlock, H as getRegisteredModels, Hn as findAppliedMigration, Ht as deriveRelationFieldName, I as isTransactionCapableClient, In as ForeignKeyBuilder, It as buildRelationLine, J as loadSeedersFrom, Jn as markMigrationRun, Jt as formatEnumDefaultValue, K as loadMigrationsFrom, Kn as isMigrationApplied, Kt as findModelBlock, L as loadArkormConfig, Ln as buildMigrationIdentity, Lt as buildUniqueConstraintLine, M as getRuntimePrismaClient, Mn as sum, Mt as buildInverseRelationLine, N as getUserConfig, Nn as val, Nt as buildMigrationSource, O as getRuntimeClient, On as json, Ot as applyOperationsToPrismaSchema, P as isDelegateLike, Pn as where, Pt as buildModelBlock, Q as registerPaths, Qn as resolveMigrationStateFilePath, Qt as pad, R as resetArkormRuntimeForTests, Rn as buildMigrationRunId, Rt as createMigrationTimestamp, S as emitRuntimeDebugEvent, Sn as coalesce, St as applyCreateTableOperation, T as getActiveTransactionClient, Tn as expressionBuilder, Tt as applyMigrationRollbackToPrismaSchema, U as getRegisteredPaths, Un as getLastBatchMigrations, Ut as deriveSingularFieldName, V as getRegisteredMigrations, Vn as deleteAppliedMigrationsStateFromStore, Vt as deriveRelationAlias, W as getRegisteredSeeders, Wn as getLastMigrationRun, Wt as escapeRegex, X as registerMigrations, Xn as readAppliedMigrationsStateFromStore, Xt as generateMigrationFile, Y as registerFactories, Yn as readAppliedMigrationsState, Yt as formatRelationAction, Z as registerModels, Zn as removeAppliedMigration, Zt as getMigrationPlan, _ as awaitConfiguredModelsRegistration, _n as CaseExpression, _t as writePersistedColumnMappingsState, a as MorphedByManyRelation, an as supportsDatabaseCreation, at as getPersistedEnumMap, b as defineConfig, bn as avg, bt as PRISMA_MODEL_REGEX, c as HasManyThroughRelation, cn as toMigrationFileSlug, cr as ArkormException, ct as getPersistedTableMetadata, dn as runInMigrationPlanning, dt as rebuildPersistedColumnMappingsState, en as resolveMigrationClassName, er as writeAppliedMigrationsState, et as resetRuntimeRegistryForTests, f as BelongsToManyRelation, fn as SchemaBuilder, ft as resetPersistedColumnMappingsCache, g as URLDriver, gn as AggregateExpression, gt as validatePersistedMetadataFeaturesForMigrations, h as Paginator, hn as resolveGeneratedExpression, ht as syncPersistedColumnMappingsFromState, i as MorphManyRelation, in as stripPrismaSchemaModelsAndEnums, ir as SetBasedEagerLoader, it as getPersistedColumnMap, j as getRuntimePaginationURLDriverFactory, jn as raw, jt as buildIndexLine, k as getRuntimeDebugHandler, kn as max, kt as buildEnumBlock, l as HasManyRelation, ln as toModelName, lt as getPersistedTimestampColumns, m as LengthAwarePaginator, mn as TableBuilder, mt as resolvePersistedMetadataFeatures, n as MorphToManyRelation, nn as runMigrationWithPrisma, nr as RuntimeModuleLoader, nt as createEmptyPersistedColumnMappingsState, o as HasOneThroughRelation, on as supportsDatabaseMigrationExecution, or as RelationResolutionException, ot as getPersistedEnumTsType, p as Relation, pn as EnumBuilder, pt as resolveColumnMappingsFilePath, q as loadModelsFrom, qn as markMigrationApplied, qt as formatDefaultValue, r as MorphOneRelation, rn as runPrismaCommand, rr as UnsupportedAdapterFeatureException, rt as deletePersistedColumnMappingsState, s as HasOneRelation, sn as supportsDatabaseReset, sr as ArkormCollection, st as getPersistedPrimaryKeyGeneration, t as MorphToRelation, tn as resolvePrismaType, tr as writeAppliedMigrationsStateToStore, tt as applyOperationsToPersistedColumnMappingsState, u as BelongsToRelation, un as isMigrationPlanningActive, ut as readPersistedColumnMappingsState, v as bindAdapterToModels, vn as Expression, vt as PRISMA_ENUM_MEMBER_REGEX, w as getActiveTransactionAdapter, wn as count, wt as applyMigrationRollbackToDatabase, x as disposeArkormRuntime, xn as caseWhen, xt as applyAlterTableOperation, y as configureArkormRuntime, yn as JsonExpression, yt as PRISMA_ENUM_REGEX, z as runArkormTransaction, zn as computeMigrationChecksum, zt as deriveCollectionFieldName } from "./relationship-DGX4fG08.mjs";
|
|
2
2
|
import { Pool } from "pg";
|
|
3
3
|
import { join, resolve } from "node:path";
|
|
4
4
|
import { createRequire } from "module";
|
|
@@ -8613,7 +8613,7 @@ var Model = class Model {
|
|
|
8613
8613
|
operation: "factory",
|
|
8614
8614
|
model: this.name
|
|
8615
8615
|
});
|
|
8616
|
-
const factory = new factoryClass();
|
|
8616
|
+
const factory = new factoryClass().setModel(this);
|
|
8617
8617
|
if (typeof count === "number") factory.count(count);
|
|
8618
8618
|
return factory;
|
|
8619
8619
|
}
|
|
@@ -9546,6 +9546,29 @@ var Model = class Model {
|
|
|
9546
9546
|
const resolvedMorphTypeColumn = morphTypeColumn ?? this.formatConventionName(`${morphName}_type`, namingCase);
|
|
9547
9547
|
return new MorphToManyRelation(this, related, resolvedTable, morphName, morphIdColumn, resolvedMorphTypeColumn, resolvedRelatedPivotKey, parentKey ?? constructor.getPrimaryKey(), resolvedRelatedKey);
|
|
9548
9548
|
}
|
|
9549
|
+
/**
|
|
9550
|
+
* Define the inverse side of a polymorphic many-to-many relationship.
|
|
9551
|
+
*
|
|
9552
|
+
* @param related
|
|
9553
|
+
* @param morphName
|
|
9554
|
+
* @param throughTable
|
|
9555
|
+
* @param foreignPivotKey
|
|
9556
|
+
* @param morphTypeColumn
|
|
9557
|
+
* @param relatedPivotKey
|
|
9558
|
+
* @param parentKey
|
|
9559
|
+
* @param relatedKey
|
|
9560
|
+
* @returns
|
|
9561
|
+
*/
|
|
9562
|
+
morphedByMany(related, morphName, throughTable, foreignPivotKey, morphTypeColumn, relatedPivotKey, parentKey, relatedKey) {
|
|
9563
|
+
const constructor = this.constructor;
|
|
9564
|
+
const namingCase = Model.getNamingCase();
|
|
9565
|
+
const resolvedRelatedKey = relatedKey ?? related.getPrimaryKey();
|
|
9566
|
+
const resolvedTable = throughTable ?? this.formatConventionName(`${str(morphName).plural()}`, namingCase);
|
|
9567
|
+
const resolvedForeignPivotKey = foreignPivotKey ?? this.formatConventionName(`${str(constructor.getTable()).singular()}_${parentKey ?? constructor.getPrimaryKey()}`, namingCase);
|
|
9568
|
+
const resolvedMorphTypeColumn = morphTypeColumn ?? this.formatConventionName(`${morphName}_type`, namingCase);
|
|
9569
|
+
const resolvedRelatedPivotKey = relatedPivotKey ?? this.formatConventionName(`${morphName}_id`, namingCase);
|
|
9570
|
+
return new MorphedByManyRelation(this, related, resolvedTable, morphName, resolvedForeignPivotKey, resolvedMorphTypeColumn, resolvedRelatedPivotKey, parentKey ?? constructor.getPrimaryKey(), resolvedRelatedKey);
|
|
9571
|
+
}
|
|
9549
9572
|
resolveMorphColumns(morphName, idColumn, typeColumn) {
|
|
9550
9573
|
const namingCase = Model.getNamingCase();
|
|
9551
9574
|
return {
|
|
@@ -9940,6 +9963,21 @@ var ModelFactory = class ModelFactory {
|
|
|
9940
9963
|
*/
|
|
9941
9964
|
configure() {}
|
|
9942
9965
|
/**
|
|
9966
|
+
* Supply the model constructor that this factory should create.
|
|
9967
|
+
*
|
|
9968
|
+
* Model.factory() calls this automatically, allowing a factory referenced by
|
|
9969
|
+
* a model's factoryClass to use a type-only model import and avoid a runtime
|
|
9970
|
+
* model -> factory -> model cycle. Directly instantiated factories may call
|
|
9971
|
+
* this method explicitly or continue defining the protected model property.
|
|
9972
|
+
*
|
|
9973
|
+
* @param model
|
|
9974
|
+
* @returns
|
|
9975
|
+
*/
|
|
9976
|
+
setModel(model) {
|
|
9977
|
+
this.injectedModel = model;
|
|
9978
|
+
return this;
|
|
9979
|
+
}
|
|
9980
|
+
/**
|
|
9943
9981
|
* Set the number of models to create.
|
|
9944
9982
|
*
|
|
9945
9983
|
* @param amount
|
|
@@ -9993,7 +10031,7 @@ var ModelFactory = class ModelFactory {
|
|
|
9993
10031
|
make(overrides = {}) {
|
|
9994
10032
|
this.ensureConfigured();
|
|
9995
10033
|
const attributes = this.buildAttributes(overrides);
|
|
9996
|
-
const model = new this.
|
|
10034
|
+
const model = new (this.getModelConstructor())(attributes);
|
|
9997
10035
|
this.runCallbacksSync(this.afterMakingCallbacks, model, "afterMaking");
|
|
9998
10036
|
return model;
|
|
9999
10037
|
}
|
|
@@ -10007,7 +10045,7 @@ var ModelFactory = class ModelFactory {
|
|
|
10007
10045
|
async makeAsync(overrides = {}) {
|
|
10008
10046
|
this.ensureConfigured();
|
|
10009
10047
|
const attributes = await this.buildAttributesAsync(overrides);
|
|
10010
|
-
const model = new this.
|
|
10048
|
+
const model = new (this.getModelConstructor())(attributes);
|
|
10011
10049
|
await this.runCallbacks(this.afterMakingCallbacks, model);
|
|
10012
10050
|
return model;
|
|
10013
10051
|
}
|
|
@@ -10128,7 +10166,9 @@ var ModelFactory = class ModelFactory {
|
|
|
10128
10166
|
* @returns
|
|
10129
10167
|
*/
|
|
10130
10168
|
getModelConstructor() {
|
|
10131
|
-
|
|
10169
|
+
const model = this.injectedModel ?? this.model;
|
|
10170
|
+
if (!model) throw new Error("Factory model is not configured. Use Model.factory(), call factory.setModel(Model), or define the protected model property.");
|
|
10171
|
+
return model;
|
|
10132
10172
|
}
|
|
10133
10173
|
/**
|
|
10134
10174
|
* Build the attributes for a model instance, applying the factory
|
|
@@ -10217,8 +10257,9 @@ var ModelFactory = class ModelFactory {
|
|
|
10217
10257
|
}
|
|
10218
10258
|
mergeBelongsToAttribute(attributes, related, relationship) {
|
|
10219
10259
|
const relationName = relationship ?? `${str(related.constructor.name).camel().singular()}`;
|
|
10220
|
-
const
|
|
10221
|
-
|
|
10260
|
+
const model = this.getModelConstructor();
|
|
10261
|
+
const metadata = model.getRelationMetadata?.(relationName);
|
|
10262
|
+
if (metadata?.type !== "belongsTo" || !metadata.foreignKey || !metadata.ownerKey) throw new Error(`Factory relationship [${relationName}] is not a belongsTo relation on [${model.name}].`);
|
|
10222
10263
|
return {
|
|
10223
10264
|
...attributes,
|
|
10224
10265
|
[metadata.foreignKey]: related.getAttribute(metadata.ownerKey)
|
|
@@ -10261,7 +10302,7 @@ var ModelFactory = class ModelFactory {
|
|
|
10261
10302
|
}
|
|
10262
10303
|
resolveRelation(model, relationship) {
|
|
10263
10304
|
const resolver = model[relationship];
|
|
10264
|
-
if (typeof resolver !== "function") throw new Error(`Factory relationship [${relationship}] is not defined on [${this.
|
|
10305
|
+
if (typeof resolver !== "function") throw new Error(`Factory relationship [${relationship}] is not defined on [${this.getModelConstructor().name}].`);
|
|
10265
10306
|
return resolver.call(model);
|
|
10266
10307
|
}
|
|
10267
10308
|
async resolveFactoryKey(factory) {
|
|
@@ -10282,7 +10323,7 @@ var ModelFactory = class ModelFactory {
|
|
|
10282
10323
|
return this;
|
|
10283
10324
|
}
|
|
10284
10325
|
takeRecycledModel() {
|
|
10285
|
-
const constructor = this.
|
|
10326
|
+
const constructor = this.getModelConstructor();
|
|
10286
10327
|
const models = this.recyclePool.get(constructor);
|
|
10287
10328
|
if (!models || models.length === 0) return null;
|
|
10288
10329
|
const offset = this.recycleOffsets.get(constructor) ?? 0;
|
|
@@ -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-JGzxPfTH.cjs');
|
|
3
3
|
|
|
4
4
|
exports.BelongsToManyRelation = require_relationship.BelongsToManyRelation;
|
|
5
5
|
exports.BelongsToRelation = require_relationship.BelongsToRelation;
|
|
@@ -11,6 +11,7 @@ exports.MorphManyRelation = require_relationship.MorphManyRelation;
|
|
|
11
11
|
exports.MorphOneRelation = require_relationship.MorphOneRelation;
|
|
12
12
|
exports.MorphToManyRelation = require_relationship.MorphToManyRelation;
|
|
13
13
|
exports.MorphToRelation = require_relationship.MorphToRelation;
|
|
14
|
+
exports.MorphedByManyRelation = require_relationship.MorphedByManyRelation;
|
|
14
15
|
exports.Relation = require_relationship.Relation;
|
|
15
16
|
exports.RelationTableLoader = require_relationship.RelationTableLoader;
|
|
16
17
|
exports.SetBasedEagerLoader = require_relationship.SetBasedEagerLoader;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _s as
|
|
2
|
-
export { BelongsToManyRelation, BelongsToRelation, HasManyRelation, HasManyThroughRelation, HasOneRelation, HasOneThroughRelation, MorphManyRelation, MorphOneRelation, MorphToManyRelation, MorphToRelation, Relation, RelationTableLoader, SetBasedEagerLoader, SingleResultRelation };
|
|
1
|
+
import { _s as Relation, as as MorphToRelation, cs as MorphManyRelation, ds as HasOneRelation, fs as HasManyThroughRelation, gs as BelongsToManyRelation, hs as SingleResultRelation, is as SetBasedEagerLoader, ls as MorphedByManyRelation, ms as BelongsToRelation, os as MorphToManyRelation, ps as HasManyRelation, ss as MorphOneRelation, us as HasOneThroughRelation, vs as RelationTableLoader } from "../index-zEl3LGHl.cjs";
|
|
2
|
+
export { BelongsToManyRelation, BelongsToRelation, HasManyRelation, HasManyThroughRelation, HasOneRelation, HasOneThroughRelation, MorphManyRelation, MorphOneRelation, MorphToManyRelation, MorphToRelation, MorphedByManyRelation, Relation, RelationTableLoader, SetBasedEagerLoader, SingleResultRelation };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _s as
|
|
2
|
-
export { BelongsToManyRelation, BelongsToRelation, HasManyRelation, HasManyThroughRelation, HasOneRelation, HasOneThroughRelation, MorphManyRelation, MorphOneRelation, MorphToManyRelation, MorphToRelation, Relation, RelationTableLoader, SetBasedEagerLoader, SingleResultRelation };
|
|
1
|
+
import { _s as Relation, as as MorphToRelation, cs as MorphManyRelation, ds as HasOneRelation, fs as HasManyThroughRelation, gs as BelongsToManyRelation, hs as SingleResultRelation, is as SetBasedEagerLoader, ls as MorphedByManyRelation, ms as BelongsToRelation, os as MorphToManyRelation, ps as HasManyRelation, ss as MorphOneRelation, us as HasOneThroughRelation, vs as RelationTableLoader } from "../index-n7PDrO7n.mjs";
|
|
2
|
+
export { BelongsToManyRelation, BelongsToRelation, HasManyRelation, HasManyThroughRelation, HasOneRelation, HasOneThroughRelation, MorphManyRelation, MorphOneRelation, MorphToManyRelation, MorphToRelation, MorphedByManyRelation, Relation, RelationTableLoader, SetBasedEagerLoader, SingleResultRelation };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as
|
|
1
|
+
import { a as MorphedByManyRelation, ar as RelationTableLoader, c as HasManyThroughRelation, d as SingleResultRelation, f as BelongsToManyRelation, i as MorphManyRelation, ir as SetBasedEagerLoader, l as HasManyRelation, n as MorphToManyRelation, o as HasOneThroughRelation, p as Relation, r as MorphOneRelation, s as HasOneRelation, t as MorphToRelation, u as BelongsToRelation } from "../relationship-DGX4fG08.mjs";
|
|
2
2
|
|
|
3
|
-
export { BelongsToManyRelation, BelongsToRelation, HasManyRelation, HasManyThroughRelation, HasOneRelation, HasOneThroughRelation, MorphManyRelation, MorphOneRelation, MorphToManyRelation, MorphToRelation, Relation, RelationTableLoader, SetBasedEagerLoader, SingleResultRelation };
|
|
3
|
+
export { BelongsToManyRelation, BelongsToRelation, HasManyRelation, HasManyThroughRelation, HasOneRelation, HasOneThroughRelation, MorphManyRelation, MorphOneRelation, MorphToManyRelation, MorphToRelation, MorphedByManyRelation, Relation, RelationTableLoader, SetBasedEagerLoader, SingleResultRelation };
|
|
@@ -6376,6 +6376,81 @@ var HasOneThroughRelation = class extends SingleResultRelation {
|
|
|
6376
6376
|
}
|
|
6377
6377
|
};
|
|
6378
6378
|
|
|
6379
|
+
//#endregion
|
|
6380
|
+
//#region src/relationship/MorphedByManyRelation.ts
|
|
6381
|
+
/**
|
|
6382
|
+
* Defines the inverse side of a polymorphic many-to-many relationship.
|
|
6383
|
+
*
|
|
6384
|
+
* @author Legacy (3m1n3nc3)
|
|
6385
|
+
* @since 2.12.0
|
|
6386
|
+
*/
|
|
6387
|
+
var MorphedByManyRelation = class extends Relation {
|
|
6388
|
+
constructor(parent, related, throughTable, morphName, foreignPivotKey, morphTypeColumn, relatedPivotKey, parentKey, relatedKey) {
|
|
6389
|
+
super();
|
|
6390
|
+
this.parent = parent;
|
|
6391
|
+
this.related = related;
|
|
6392
|
+
this.throughTable = throughTable;
|
|
6393
|
+
this.morphName = morphName;
|
|
6394
|
+
this.foreignPivotKey = foreignPivotKey;
|
|
6395
|
+
this.morphTypeColumn = morphTypeColumn;
|
|
6396
|
+
this.relatedPivotKey = relatedPivotKey;
|
|
6397
|
+
this.parentKey = parentKey;
|
|
6398
|
+
this.relatedKey = relatedKey;
|
|
6399
|
+
}
|
|
6400
|
+
/**
|
|
6401
|
+
* Build the relationship query.
|
|
6402
|
+
*
|
|
6403
|
+
* @returns
|
|
6404
|
+
*/
|
|
6405
|
+
async getQuery() {
|
|
6406
|
+
const parentValue = this.parent.getAttribute(this.parentKey);
|
|
6407
|
+
const morphType = this.related.name;
|
|
6408
|
+
const ids = await this.createRelationTableLoader().selectColumnValues({
|
|
6409
|
+
lookup: {
|
|
6410
|
+
table: this.throughTable,
|
|
6411
|
+
where: {
|
|
6412
|
+
type: "group",
|
|
6413
|
+
operator: "and",
|
|
6414
|
+
conditions: [{
|
|
6415
|
+
type: "comparison",
|
|
6416
|
+
column: this.foreignPivotKey,
|
|
6417
|
+
operator: "=",
|
|
6418
|
+
value: parentValue
|
|
6419
|
+
}, {
|
|
6420
|
+
type: "comparison",
|
|
6421
|
+
column: this.morphTypeColumn,
|
|
6422
|
+
operator: "=",
|
|
6423
|
+
value: morphType
|
|
6424
|
+
}]
|
|
6425
|
+
}
|
|
6426
|
+
},
|
|
6427
|
+
column: this.relatedPivotKey
|
|
6428
|
+
});
|
|
6429
|
+
return this.applyConstraint(this.related.query().where({ [this.relatedKey]: { in: ids } }));
|
|
6430
|
+
}
|
|
6431
|
+
getMetadata() {
|
|
6432
|
+
return {
|
|
6433
|
+
type: "morphedByMany",
|
|
6434
|
+
relatedModel: this.related,
|
|
6435
|
+
throughTable: this.throughTable,
|
|
6436
|
+
morphName: this.morphName,
|
|
6437
|
+
foreignPivotKey: this.foreignPivotKey,
|
|
6438
|
+
morphTypeColumn: this.morphTypeColumn,
|
|
6439
|
+
relatedPivotKey: this.relatedPivotKey,
|
|
6440
|
+
parentKey: this.parentKey,
|
|
6441
|
+
relatedKey: this.relatedKey
|
|
6442
|
+
};
|
|
6443
|
+
}
|
|
6444
|
+
/**
|
|
6445
|
+
* Fetch the related models.
|
|
6446
|
+
*
|
|
6447
|
+
* @returns
|
|
6448
|
+
*/
|
|
6449
|
+
async getResults() {
|
|
6450
|
+
return (await this.getQuery()).get();
|
|
6451
|
+
}
|
|
6452
|
+
};
|
|
6453
|
+
|
|
6379
6454
|
//#endregion
|
|
6380
6455
|
//#region src/relationship/MorphManyRelation.ts
|
|
6381
6456
|
/**
|
|
@@ -6646,4 +6721,4 @@ var MorphToRelation = class extends Relation {
|
|
|
6646
6721
|
};
|
|
6647
6722
|
|
|
6648
6723
|
//#endregion
|
|
6649
|
-
export {
|
|
6724
|
+
export { registerSeeders as $, supportsDatabaseMigrationState as $n, resolveEnumName as $t, getRuntimePaginationCurrentPageResolver as A, min as An, buildFieldLine as At, getRegisteredFactories as B, createEmptyAppliedMigrationsState as Bn, deriveInverseRelationAlias as Bt, ensureArkormConfigLoading as C, col as Cn, applyDropTableOperation as Ct, getRuntimeAdapter as D, fromExpressionNode as Dn, applyMigrationToPrismaSchema as Dt, getDefaultStubsPath as E, fn as En, applyMigrationToDatabase as Et, isQuerySchemaLike as F, PrimaryKeyGenerationPlanner as Fn, buildPrimaryKeyLine as Ft, loadFactoriesFrom as G, getLatestAppliedMigrations as Gn, findEnumBlock as Gt, getRegisteredModels as H, findAppliedMigration as Hn, deriveRelationFieldName as Ht, isTransactionCapableClient as I, ForeignKeyBuilder as In, buildRelationLine as It, loadSeedersFrom as J, markMigrationRun as Jn, formatEnumDefaultValue as Jt, loadMigrationsFrom as K, isMigrationApplied as Kn, findModelBlock as Kt, loadArkormConfig as L, buildMigrationIdentity as Ln, buildUniqueConstraintLine as Lt, getRuntimePrismaClient as M, sum as Mn, buildInverseRelationLine as Mt, getUserConfig as N, val as Nn, buildMigrationSource as Nt, getRuntimeClient as O, json as On, applyOperationsToPrismaSchema as Ot, isDelegateLike as P, where as Pn, buildModelBlock as Pt, registerPaths as Q, resolveMigrationStateFilePath as Qn, pad as Qt, resetArkormRuntimeForTests as R, buildMigrationRunId as Rn, createMigrationTimestamp as Rt, emitRuntimeDebugEvent as S, coalesce as Sn, applyCreateTableOperation as St, getActiveTransactionClient as T, expressionBuilder as Tn, applyMigrationRollbackToPrismaSchema as Tt, getRegisteredPaths as U, getLastBatchMigrations as Un, deriveSingularFieldName as Ut, getRegisteredMigrations as V, deleteAppliedMigrationsStateFromStore as Vn, deriveRelationAlias as Vt, getRegisteredSeeders as W, getLastMigrationRun as Wn, escapeRegex as Wt, registerMigrations as X, readAppliedMigrationsStateFromStore as Xn, generateMigrationFile as Xt, registerFactories as Y, readAppliedMigrationsState as Yn, formatRelationAction as Yt, registerModels as Z, removeAppliedMigration as Zn, getMigrationPlan as Zt, awaitConfiguredModelsRegistration as _, CaseExpression as _n, writePersistedColumnMappingsState as _t, MorphedByManyRelation as a, supportsDatabaseCreation as an, RelationTableLoader as ar, getPersistedEnumMap as at, defineConfig as b, avg as bn, PRISMA_MODEL_REGEX as bt, HasManyThroughRelation as c, toMigrationFileSlug as cn, ArkormException as cr, getPersistedTableMetadata as ct, SingleResultRelation as d, runInMigrationPlanning as dn, rebuildPersistedColumnMappingsState as dt, resolveMigrationClassName as en, writeAppliedMigrationsState as er, resetRuntimeRegistryForTests as et, BelongsToManyRelation as f, SchemaBuilder as fn, resetPersistedColumnMappingsCache as ft, URLDriver as g, AggregateExpression as gn, validatePersistedMetadataFeaturesForMigrations as gt, Paginator as h, resolveGeneratedExpression as hn, syncPersistedColumnMappingsFromState as ht, MorphManyRelation as i, stripPrismaSchemaModelsAndEnums as in, SetBasedEagerLoader as ir, getPersistedColumnMap as it, getRuntimePaginationURLDriverFactory as j, raw as jn, buildIndexLine as jt, getRuntimeDebugHandler as k, max as kn, buildEnumBlock as kt, HasManyRelation as l, toModelName as ln, getPersistedTimestampColumns as lt, LengthAwarePaginator as m, TableBuilder as mn, resolvePersistedMetadataFeatures as mt, MorphToManyRelation as n, runMigrationWithPrisma as nn, RuntimeModuleLoader as nr, createEmptyPersistedColumnMappingsState as nt, HasOneThroughRelation as o, supportsDatabaseMigrationExecution as on, RelationResolutionException as or, getPersistedEnumTsType as ot, Relation as p, EnumBuilder as pn, resolveColumnMappingsFilePath as pt, loadModelsFrom as q, markMigrationApplied as qn, formatDefaultValue as qt, MorphOneRelation as r, runPrismaCommand as rn, UnsupportedAdapterFeatureException as rr, deletePersistedColumnMappingsState as rt, HasOneRelation as s, supportsDatabaseReset as sn, ArkormCollection as sr, getPersistedPrimaryKeyGeneration as st, MorphToRelation as t, resolvePrismaType as tn, writeAppliedMigrationsStateToStore as tr, applyOperationsToPersistedColumnMappingsState as tt, BelongsToRelation as u, isMigrationPlanningActive as un, readPersistedColumnMappingsState as ut, bindAdapterToModels as v, Expression as vn, PRISMA_ENUM_MEMBER_REGEX as vt, getActiveTransactionAdapter as w, count as wn, applyMigrationRollbackToDatabase as wt, disposeArkormRuntime as x, caseWhen as xn, applyAlterTableOperation as xt, configureArkormRuntime as y, JsonExpression as yn, PRISMA_ENUM_REGEX as yt, runArkormTransaction as z, computeMigrationChecksum as zn, deriveCollectionFieldName as zt };
|
|
@@ -6404,6 +6404,81 @@ var HasOneThroughRelation = class extends SingleResultRelation {
|
|
|
6404
6404
|
}
|
|
6405
6405
|
};
|
|
6406
6406
|
|
|
6407
|
+
//#endregion
|
|
6408
|
+
//#region src/relationship/MorphedByManyRelation.ts
|
|
6409
|
+
/**
|
|
6410
|
+
* Defines the inverse side of a polymorphic many-to-many relationship.
|
|
6411
|
+
*
|
|
6412
|
+
* @author Legacy (3m1n3nc3)
|
|
6413
|
+
* @since 2.12.0
|
|
6414
|
+
*/
|
|
6415
|
+
var MorphedByManyRelation = class extends Relation {
|
|
6416
|
+
constructor(parent, related, throughTable, morphName, foreignPivotKey, morphTypeColumn, relatedPivotKey, parentKey, relatedKey) {
|
|
6417
|
+
super();
|
|
6418
|
+
this.parent = parent;
|
|
6419
|
+
this.related = related;
|
|
6420
|
+
this.throughTable = throughTable;
|
|
6421
|
+
this.morphName = morphName;
|
|
6422
|
+
this.foreignPivotKey = foreignPivotKey;
|
|
6423
|
+
this.morphTypeColumn = morphTypeColumn;
|
|
6424
|
+
this.relatedPivotKey = relatedPivotKey;
|
|
6425
|
+
this.parentKey = parentKey;
|
|
6426
|
+
this.relatedKey = relatedKey;
|
|
6427
|
+
}
|
|
6428
|
+
/**
|
|
6429
|
+
* Build the relationship query.
|
|
6430
|
+
*
|
|
6431
|
+
* @returns
|
|
6432
|
+
*/
|
|
6433
|
+
async getQuery() {
|
|
6434
|
+
const parentValue = this.parent.getAttribute(this.parentKey);
|
|
6435
|
+
const morphType = this.related.name;
|
|
6436
|
+
const ids = await this.createRelationTableLoader().selectColumnValues({
|
|
6437
|
+
lookup: {
|
|
6438
|
+
table: this.throughTable,
|
|
6439
|
+
where: {
|
|
6440
|
+
type: "group",
|
|
6441
|
+
operator: "and",
|
|
6442
|
+
conditions: [{
|
|
6443
|
+
type: "comparison",
|
|
6444
|
+
column: this.foreignPivotKey,
|
|
6445
|
+
operator: "=",
|
|
6446
|
+
value: parentValue
|
|
6447
|
+
}, {
|
|
6448
|
+
type: "comparison",
|
|
6449
|
+
column: this.morphTypeColumn,
|
|
6450
|
+
operator: "=",
|
|
6451
|
+
value: morphType
|
|
6452
|
+
}]
|
|
6453
|
+
}
|
|
6454
|
+
},
|
|
6455
|
+
column: this.relatedPivotKey
|
|
6456
|
+
});
|
|
6457
|
+
return this.applyConstraint(this.related.query().where({ [this.relatedKey]: { in: ids } }));
|
|
6458
|
+
}
|
|
6459
|
+
getMetadata() {
|
|
6460
|
+
return {
|
|
6461
|
+
type: "morphedByMany",
|
|
6462
|
+
relatedModel: this.related,
|
|
6463
|
+
throughTable: this.throughTable,
|
|
6464
|
+
morphName: this.morphName,
|
|
6465
|
+
foreignPivotKey: this.foreignPivotKey,
|
|
6466
|
+
morphTypeColumn: this.morphTypeColumn,
|
|
6467
|
+
relatedPivotKey: this.relatedPivotKey,
|
|
6468
|
+
parentKey: this.parentKey,
|
|
6469
|
+
relatedKey: this.relatedKey
|
|
6470
|
+
};
|
|
6471
|
+
}
|
|
6472
|
+
/**
|
|
6473
|
+
* Fetch the related models.
|
|
6474
|
+
*
|
|
6475
|
+
* @returns
|
|
6476
|
+
*/
|
|
6477
|
+
async getResults() {
|
|
6478
|
+
return (await this.getQuery()).get();
|
|
6479
|
+
}
|
|
6480
|
+
};
|
|
6481
|
+
|
|
6407
6482
|
//#endregion
|
|
6408
6483
|
//#region src/relationship/MorphManyRelation.ts
|
|
6409
6484
|
/**
|
|
@@ -6788,6 +6863,12 @@ Object.defineProperty(exports, 'MorphToRelation', {
|
|
|
6788
6863
|
return MorphToRelation;
|
|
6789
6864
|
}
|
|
6790
6865
|
});
|
|
6866
|
+
Object.defineProperty(exports, 'MorphedByManyRelation', {
|
|
6867
|
+
enumerable: true,
|
|
6868
|
+
get: function () {
|
|
6869
|
+
return MorphedByManyRelation;
|
|
6870
|
+
}
|
|
6871
|
+
});
|
|
6791
6872
|
Object.defineProperty(exports, 'PRISMA_ENUM_MEMBER_REGEX', {
|
|
6792
6873
|
enumerable: true,
|
|
6793
6874
|
get: function () {
|
package/package.json
CHANGED
package/stubs/factory.js.stub
CHANGED
package/stubs/factory.stub
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { ModelFactory } from 'arkormx'
|
|
2
|
-
import { {{ModelName}} } from '{{ModelImportPath}}'
|
|
2
|
+
import type { {{ModelName}} } from '{{ModelImportPath}}'
|
|
3
3
|
|
|
4
4
|
export class {{FactoryName}} extends ModelFactory<{{ModelName}}> {
|
|
5
|
-
protected model = {{ModelName}}
|
|
6
|
-
|
|
7
5
|
protected definition (_sequence: number) {
|
|
8
6
|
return {}
|
|
9
7
|
}
|