arkormx 2.11.12 → 2.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.mjs +2893 -2809
- package/dist/{index-Cy7intKZ.d.cts → index-D7YII9Fu.d.cts} +97 -2
- package/dist/{index-c8KJjenR.d.mts → index-XrPjh7V8.d.mts} +97 -2
- package/dist/index.cjs +352 -139
- package/dist/index.d.cts +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +397 -186
- package/dist/relationship/index.cjs +1 -1
- package/dist/relationship/index.d.cts +1 -1
- package/dist/relationship/index.d.mts +1 -1
- package/dist/relationship/index.mjs +1 -1
- package/dist/{relationship-BqPWUfxk.mjs → relationship-2jzLUHCB.mjs} +4117 -3883
- package/dist/{relationship-BIie-GXN.cjs → relationship-BoQDV6gx.cjs} +4208 -3968
- package/package.json +1 -1
|
@@ -617,6 +617,7 @@ interface RelationMetadataProvider {
|
|
|
617
617
|
declare class RelationTableLoader {
|
|
618
618
|
private readonly adapter;
|
|
619
619
|
constructor(adapter: DatabaseAdapter);
|
|
620
|
+
private buildTarget;
|
|
620
621
|
selectRows(spec: RelationTableLookupSpec): Promise<DatabaseRow[]>;
|
|
621
622
|
selectRow(spec: RelationTableLookupSpec): Promise<DatabaseRow | null>;
|
|
622
623
|
selectColumnValues(spec: RelationColumnLookupSpec): Promise<unknown[]>;
|
|
@@ -2164,6 +2165,8 @@ declare class SetBasedEagerLoader {
|
|
|
2164
2165
|
* @returns
|
|
2165
2166
|
*/
|
|
2166
2167
|
private loadBelongsToMany;
|
|
2168
|
+
private loadLimitedBelongsToMany;
|
|
2169
|
+
private loadLimitedBelongsToManyIndividually;
|
|
2167
2170
|
private buildBelongsToManyPivotWhere;
|
|
2168
2171
|
private getBelongsToManyPivotColumns;
|
|
2169
2172
|
private shouldAttachBelongsToManyPivot;
|
|
@@ -2198,6 +2201,8 @@ declare class SetBasedEagerLoader {
|
|
|
2198
2201
|
* @returns
|
|
2199
2202
|
*/
|
|
2200
2203
|
private loadHasOneThrough;
|
|
2204
|
+
private loadLimitedThrough;
|
|
2205
|
+
private loadLimitedThroughIndividually;
|
|
2201
2206
|
/**
|
|
2202
2207
|
* Loads an inverse polymorphic ("morph to") relationship for the set of
|
|
2203
2208
|
* models. Parents are grouped by their morph type, so each distinct type
|
|
@@ -2228,6 +2233,8 @@ declare class SetBasedEagerLoader {
|
|
|
2228
2233
|
* @param constraint
|
|
2229
2234
|
*/
|
|
2230
2235
|
private loadMorphMany;
|
|
2236
|
+
private loadPolymorphicManyToMany;
|
|
2237
|
+
private loadPolymorphicManyToManyIndividually;
|
|
2231
2238
|
/**
|
|
2232
2239
|
* Batch-loads the children for a morphOne/morphMany relationship. Parents are
|
|
2233
2240
|
* grouped by their own morph type (constructor name), so each distinct type
|
|
@@ -2259,6 +2266,7 @@ declare class SetBasedEagerLoader {
|
|
|
2259
2266
|
* @returns
|
|
2260
2267
|
*/
|
|
2261
2268
|
private applyConstraint;
|
|
2269
|
+
private getPartitionedModels;
|
|
2262
2270
|
/**
|
|
2263
2271
|
* Collects unique values from the set of models based on a resolver function, which
|
|
2264
2272
|
* is used to extract the value from each model.
|
|
@@ -3283,6 +3291,7 @@ declare abstract class Model<TSchema extends ModelQuerySchemaLike | Record<strin
|
|
|
3283
3291
|
* @returns
|
|
3284
3292
|
*/
|
|
3285
3293
|
protected hasOne<TRelatedClass extends RelatedModelClass>(related: TRelatedClass, foreignKey: string, localKey?: string): HasOneRelation<this, InstanceType<TRelatedClass>>;
|
|
3294
|
+
protected hasOne<TName extends RegisteredModelName>(related: TName, foreignKey?: string, localKey?: string): HasOneRelation<this, RegisteredModelInstance<TName>>;
|
|
3286
3295
|
/**
|
|
3287
3296
|
* Define a has many relationship.
|
|
3288
3297
|
*
|
|
@@ -3292,6 +3301,7 @@ declare abstract class Model<TSchema extends ModelQuerySchemaLike | Record<strin
|
|
|
3292
3301
|
* @returns
|
|
3293
3302
|
*/
|
|
3294
3303
|
protected hasMany<TRelatedClass extends RelatedModelClass>(related: TRelatedClass, foreignKey: string, localKey?: string): HasManyRelation<this, InstanceType<TRelatedClass>>;
|
|
3304
|
+
protected hasMany<TName extends RegisteredModelName>(related: TName, foreignKey?: string, localKey?: string): HasManyRelation<this, RegisteredModelInstance<TName>>;
|
|
3295
3305
|
/**
|
|
3296
3306
|
* Define a belongs to relationship.
|
|
3297
3307
|
*
|
|
@@ -3301,6 +3311,7 @@ declare abstract class Model<TSchema extends ModelQuerySchemaLike | Record<strin
|
|
|
3301
3311
|
* @returns
|
|
3302
3312
|
*/
|
|
3303
3313
|
protected belongsTo<TRelatedClass extends RelatedModelClass>(related: TRelatedClass, foreignKey: string, ownerKey?: string): BelongsToRelation<this, InstanceType<TRelatedClass>>;
|
|
3314
|
+
protected belongsTo<TName extends RegisteredModelName>(related: TName, foreignKey?: string, ownerKey?: string): BelongsToRelation<this, RegisteredModelInstance<TName>>;
|
|
3304
3315
|
/**
|
|
3305
3316
|
* Define a belongs to many relationship.
|
|
3306
3317
|
*
|
|
@@ -3313,6 +3324,7 @@ declare abstract class Model<TSchema extends ModelQuerySchemaLike | Record<strin
|
|
|
3313
3324
|
* @returns
|
|
3314
3325
|
*/
|
|
3315
3326
|
protected belongsToMany<TRelatedClass extends RelatedModelClass>(related: TRelatedClass, throughTable: string, foreignPivotKey: string, relatedPivotKey: string, parentKey?: string, relatedKey?: string): BelongsToManyRelation<this, InstanceType<TRelatedClass>>;
|
|
3327
|
+
protected belongsToMany<TName extends RegisteredModelName>(related: TName, throughTable: string, foreignPivotKey: string, relatedPivotKey: string, parentKey?: string, relatedKey?: string): BelongsToManyRelation<this, RegisteredModelInstance<TName>>;
|
|
3316
3328
|
/**
|
|
3317
3329
|
* Define a has one through relationship.
|
|
3318
3330
|
*
|
|
@@ -3325,6 +3337,7 @@ declare abstract class Model<TSchema extends ModelQuerySchemaLike | Record<strin
|
|
|
3325
3337
|
* @returns
|
|
3326
3338
|
*/
|
|
3327
3339
|
protected hasOneThrough<TRelatedClass extends RelatedModelClass>(related: TRelatedClass, throughTable: string, firstKey: string, secondKey: string, localKey?: string, secondLocalKey?: string): HasOneThroughRelation<this, InstanceType<TRelatedClass>>;
|
|
3340
|
+
protected hasOneThrough<TName extends RegisteredModelName>(related: TName, throughTable: string, firstKey: string, secondKey: string, localKey?: string, secondLocalKey?: string): HasOneThroughRelation<this, RegisteredModelInstance<TName>>;
|
|
3328
3341
|
/**
|
|
3329
3342
|
* Define a has many through relationship.
|
|
3330
3343
|
*
|
|
@@ -3337,6 +3350,7 @@ declare abstract class Model<TSchema extends ModelQuerySchemaLike | Record<strin
|
|
|
3337
3350
|
* @returns
|
|
3338
3351
|
*/
|
|
3339
3352
|
protected hasManyThrough<TRelatedClass extends RelatedModelClass>(related: TRelatedClass, throughTable: string, firstKey: string, secondKey: string, localKey?: string, secondLocalKey?: string): HasManyThroughRelation<this, InstanceType<TRelatedClass>>;
|
|
3353
|
+
protected hasManyThrough<TName extends RegisteredModelName>(related: TName, throughTable: string, firstKey: string, secondKey: string, localKey?: string, secondLocalKey?: string): HasManyThroughRelation<this, RegisteredModelInstance<TName>>;
|
|
3340
3354
|
/**
|
|
3341
3355
|
* Define a polymorphic one to one relationship.
|
|
3342
3356
|
*
|
|
@@ -3348,6 +3362,7 @@ declare abstract class Model<TSchema extends ModelQuerySchemaLike | Record<strin
|
|
|
3348
3362
|
* @returns
|
|
3349
3363
|
*/
|
|
3350
3364
|
protected morphOne<TRelatedClass extends RelatedModelClass>(related: TRelatedClass, morphName: string, idColumn?: string, typeColumn?: string, localKey?: string): MorphOneRelation<this, InstanceType<TRelatedClass>>;
|
|
3365
|
+
protected morphOne<TName extends RegisteredModelName>(related: TName, morphName: string, idColumn?: string, typeColumn?: string, localKey?: string): MorphOneRelation<this, RegisteredModelInstance<TName>>;
|
|
3351
3366
|
/**
|
|
3352
3367
|
* Define a polymorphic one to many relationship.
|
|
3353
3368
|
*
|
|
@@ -3359,6 +3374,7 @@ declare abstract class Model<TSchema extends ModelQuerySchemaLike | Record<strin
|
|
|
3359
3374
|
* @returns
|
|
3360
3375
|
*/
|
|
3361
3376
|
protected morphMany<TRelatedClass extends RelatedModelClass>(related: TRelatedClass, morphName: string, idColumn?: string, typeColumn?: string, localKey?: string): MorphManyRelation<this, InstanceType<TRelatedClass>>;
|
|
3377
|
+
protected morphMany<TName extends RegisteredModelName>(related: TName, morphName: string, idColumn?: string, typeColumn?: string, localKey?: string): MorphManyRelation<this, RegisteredModelInstance<TName>>;
|
|
3362
3378
|
/**
|
|
3363
3379
|
* Define the inverse side of a polymorphic relationship.
|
|
3364
3380
|
*
|
|
@@ -3384,6 +3400,7 @@ declare abstract class Model<TSchema extends ModelQuerySchemaLike | Record<strin
|
|
|
3384
3400
|
* @returns
|
|
3385
3401
|
*/
|
|
3386
3402
|
protected morphToMany<TRelatedClass extends RelatedModelClass>(related: TRelatedClass, morphName: string, throughTable?: string, foreignPivotKey?: string, morphTypeColumn?: string, relatedPivotKey?: string, parentKey?: string, relatedKey?: string): MorphToManyRelation<this, InstanceType<TRelatedClass>>;
|
|
3403
|
+
protected morphToMany<TName extends RegisteredModelName>(related: TName, morphName: string, throughTable?: string, foreignPivotKey?: string, morphTypeColumn?: string, relatedPivotKey?: string, parentKey?: string, relatedKey?: string): MorphToManyRelation<this, RegisteredModelInstance<TName>>;
|
|
3387
3404
|
/**
|
|
3388
3405
|
* Define the inverse side of a polymorphic many-to-many relationship.
|
|
3389
3406
|
*
|
|
@@ -3398,6 +3415,10 @@ declare abstract class Model<TSchema extends ModelQuerySchemaLike | Record<strin
|
|
|
3398
3415
|
* @returns
|
|
3399
3416
|
*/
|
|
3400
3417
|
protected morphedByMany<TRelatedClass extends RelatedModelClass>(related: TRelatedClass, morphName: string, throughTable?: string, foreignPivotKey?: string, morphTypeColumn?: string, relatedPivotKey?: string, parentKey?: string, relatedKey?: string): MorphedByManyRelation<this, InstanceType<TRelatedClass>>;
|
|
3418
|
+
protected morphedByMany<TName extends RegisteredModelName>(related: TName, morphName: string, throughTable?: string, foreignPivotKey?: string, morphTypeColumn?: string, relatedPivotKey?: string, parentKey?: string, relatedKey?: string): MorphedByManyRelation<this, RegisteredModelInstance<TName>>;
|
|
3419
|
+
private resolveRelationshipModel;
|
|
3420
|
+
private resolveDefaultHasForeignKey;
|
|
3421
|
+
private resolveDefaultBelongsToForeignKey;
|
|
3401
3422
|
private resolveMorphColumns;
|
|
3402
3423
|
private formatConventionName;
|
|
3403
3424
|
private static getNamingCase;
|
|
@@ -3551,6 +3572,7 @@ declare abstract class Model<TSchema extends ModelQuerySchemaLike | Record<strin
|
|
|
3551
3572
|
}
|
|
3552
3573
|
//#endregion
|
|
3553
3574
|
//#region src/types/model.d.ts
|
|
3575
|
+
interface ArkormModelRegistry {}
|
|
3554
3576
|
type LowercaseString<T extends string> = Lowercase<T>;
|
|
3555
3577
|
type Simplify<TValue> = { [TKey in keyof TValue]: TValue[TKey] } & {};
|
|
3556
3578
|
type ConventionalAutoManagedKeys = 'id' | 'createdAt' | 'updatedAt' | 'deletedAt';
|
|
@@ -3643,6 +3665,9 @@ type ModelAttributeValue<TModel, TAttributes extends Record<string, unknown>, TK
|
|
|
3643
3665
|
type ModelCreateData<TModel, TDelegate extends ModelQuerySchemaLike> = TModel extends Model<any, infer TAttributes> ? TDelegate extends AttributeQuerySchema<TAttributes> ? AttributeCreateInput<TAttributes> : QuerySchemaCreateData<TDelegate> : QuerySchemaCreateData<TDelegate>;
|
|
3644
3666
|
type ModelUpdateData<TModel, TDelegate extends ModelQuerySchemaLike> = TModel extends Model<any, infer TAttributes> ? TDelegate extends AttributeQuerySchema<TAttributes> ? AttributeUpdateInput<TAttributes> : QuerySchemaUpdateData<TDelegate> : QuerySchemaUpdateData<TDelegate>;
|
|
3645
3667
|
type RelatedModelClass<TInstance = unknown> = (abstract new (attributes?: Record<string, unknown>) => TInstance) & RelationshipModelStatic;
|
|
3668
|
+
type RegisteredModelName = keyof ArkormModelRegistry & string;
|
|
3669
|
+
type RegisteredModelClass<TName extends RegisteredModelName> = ArkormModelRegistry[TName] extends RelatedModelClass ? ArkormModelRegistry[TName] : never;
|
|
3670
|
+
type RegisteredModelInstance<TName extends RegisteredModelName> = RegisteredModelClass<TName> extends (abstract new (...args: any[]) => infer TInstance) ? TInstance : never;
|
|
3646
3671
|
type GlobalScope = (query: QueryBuilder<any, any>) => QueryBuilder<any, any> | void;
|
|
3647
3672
|
type ModelEventName = 'retrieved' | 'saving' | 'saved' | 'creating' | 'created' | 'updating' | 'updated' | 'deleting' | 'deleted' | 'restoring' | 'restored' | 'forceDeleting' | 'forceDeleted';
|
|
3648
3673
|
type ModelEventListener<TModel extends Model = Model> = (model: TModel) => void | Promise<void>;
|
|
@@ -4810,6 +4835,15 @@ declare class QueryBuilder<TModel, TDelegate extends ModelQuerySchemaLike = Mode
|
|
|
4810
4835
|
* @returns
|
|
4811
4836
|
*/
|
|
4812
4837
|
inspect(operation?: Extract<AdapterQueryOperation, 'select' | 'selectOne' | 'count' | 'exists'>): AdapterQueryInspection | null;
|
|
4838
|
+
/**
|
|
4839
|
+
* Compiles the current query into SQL without executing it. Values remain represented by the
|
|
4840
|
+
* adapter's parameter placeholders; use {@link inspect} when the corresponding bindings are
|
|
4841
|
+
* also required.
|
|
4842
|
+
*
|
|
4843
|
+
* @param operation
|
|
4844
|
+
* @returns
|
|
4845
|
+
*/
|
|
4846
|
+
toSql(operation?: Extract<AdapterQueryOperation, 'select' | 'selectOne' | 'count' | 'exists'>): string;
|
|
4813
4847
|
/**
|
|
4814
4848
|
* Sets offset/limit for a 1-based page.
|
|
4815
4849
|
*
|
|
@@ -4824,6 +4858,23 @@ declare class QueryBuilder<TModel, TDelegate extends ModelQuerySchemaLike = Mode
|
|
|
4824
4858
|
* @returns
|
|
4825
4859
|
*/
|
|
4826
4860
|
get(): Promise<ArkormCollection<TModel>>;
|
|
4861
|
+
/**
|
|
4862
|
+
* Executes a bounded eager-load query independently for each partition while retaining a
|
|
4863
|
+
* single set-based database query. Returns null when the active adapter cannot represent the
|
|
4864
|
+
* query so the relationship loader can use its correctness fallback.
|
|
4865
|
+
*
|
|
4866
|
+
* @internal
|
|
4867
|
+
*
|
|
4868
|
+
* @param partitionBy
|
|
4869
|
+
* @returns
|
|
4870
|
+
*/
|
|
4871
|
+
getForEagerLoad(partitionBy: string[]): Promise<ArkormCollection<TModel> | null>;
|
|
4872
|
+
/** @internal */
|
|
4873
|
+
getRowsForEagerLoad(partitionBy: string[]): Promise<DatabaseRow[] | null>;
|
|
4874
|
+
/** Removes limit and offset clauses from a cloned relationship query. @internal */
|
|
4875
|
+
withoutPagination(): this;
|
|
4876
|
+
/** @internal */
|
|
4877
|
+
hasEagerLoadPagination(): boolean;
|
|
4827
4878
|
/**
|
|
4828
4879
|
* Processes the query results in chunks, invoking the callback with each chunk
|
|
4829
4880
|
* as a collection. Return `false` from the callback to stop early. Resolves to
|
|
@@ -5950,6 +6001,11 @@ interface SelectSpec<TModel = unknown> {
|
|
|
5950
6001
|
relationFilters?: RelationFilterSpec[];
|
|
5951
6002
|
aggregates?: AggregateSelection[];
|
|
5952
6003
|
}
|
|
6004
|
+
interface PartitionedSelectSpec<TModel = unknown> extends SelectSpec<TModel> {
|
|
6005
|
+
partitionBy: string[];
|
|
6006
|
+
perPartitionLimit: number;
|
|
6007
|
+
perPartitionOffset?: number;
|
|
6008
|
+
}
|
|
5953
6009
|
interface InsertSpec<TModel = unknown> {
|
|
5954
6010
|
target: QueryTarget<TModel>;
|
|
5955
6011
|
values: DatabaseRow;
|
|
@@ -6066,6 +6122,7 @@ interface AdapterDatabaseCreationResult {
|
|
|
6066
6122
|
interface DatabaseAdapter {
|
|
6067
6123
|
readonly capabilities?: AdapterCapabilities;
|
|
6068
6124
|
select: <TModel = unknown>(spec: SelectSpec<TModel>) => Promise<DatabaseRows>;
|
|
6125
|
+
selectPerPartition?: <TModel = unknown>(spec: PartitionedSelectSpec<TModel>) => Promise<DatabaseRows>;
|
|
6069
6126
|
selectOne: <TModel = unknown>(spec: SelectSpec<TModel>) => Promise<DatabaseRow | null>;
|
|
6070
6127
|
insert: <TModel = unknown>(spec: InsertSpec<TModel>) => Promise<DatabaseRow>;
|
|
6071
6128
|
insertMany?: <TModel = unknown>(spec: InsertManySpec<TModel>) => Promise<number>;
|
|
@@ -6203,6 +6260,7 @@ declare class KyselyDatabaseAdapter implements DatabaseAdapter {
|
|
|
6203
6260
|
private resolveTable;
|
|
6204
6261
|
private resolvePrimaryKey;
|
|
6205
6262
|
private mapColumn;
|
|
6263
|
+
private buildIdentifierReference;
|
|
6206
6264
|
private reverseColumnMap;
|
|
6207
6265
|
private mapRow;
|
|
6208
6266
|
private mapRows;
|
|
@@ -6264,6 +6322,7 @@ declare class KyselyDatabaseAdapter implements DatabaseAdapter {
|
|
|
6264
6322
|
private toEagerLoadConstraint;
|
|
6265
6323
|
private toEagerLoadMap;
|
|
6266
6324
|
private buildSelectStatement;
|
|
6325
|
+
private buildPartitionedSelectStatement;
|
|
6267
6326
|
private buildCountStatement;
|
|
6268
6327
|
private buildExistsStatement;
|
|
6269
6328
|
private compileInspection;
|
|
@@ -6279,6 +6338,7 @@ declare class KyselyDatabaseAdapter implements DatabaseAdapter {
|
|
|
6279
6338
|
* @returns A promise that resolves to an array of database rows.
|
|
6280
6339
|
*/
|
|
6281
6340
|
select<TModel = unknown>(spec: SelectSpec<TModel>): Promise<DatabaseRow[]>;
|
|
6341
|
+
selectPerPartition<TModel = unknown>(spec: PartitionedSelectSpec<TModel>): Promise<DatabaseRow[]>;
|
|
6282
6342
|
/**
|
|
6283
6343
|
* Selects a single record from the database matching the specified criteria and returns it as
|
|
6284
6344
|
* a database row. If multiple records match the criteria, only the first one is returned.
|
|
@@ -6685,6 +6745,10 @@ declare const getRegisteredSeeders: () => SeederConstructor[];
|
|
|
6685
6745
|
* @returns
|
|
6686
6746
|
*/
|
|
6687
6747
|
declare const getRegisteredModels: () => RegisteredModel[];
|
|
6748
|
+
declare const resolveRegisteredModel: (modelName: string, context?: {
|
|
6749
|
+
operation?: string;
|
|
6750
|
+
relation?: string;
|
|
6751
|
+
}) => RelationshipModelStatic;
|
|
6688
6752
|
/**
|
|
6689
6753
|
* Get registered factory constructors or instances.
|
|
6690
6754
|
*
|
|
@@ -6693,6 +6757,20 @@ declare const getRegisteredModels: () => RegisteredModel[];
|
|
|
6693
6757
|
declare const getRegisteredFactories: () => RegisteredFactory[];
|
|
6694
6758
|
declare const resetRuntimeRegistryForTests: () => void;
|
|
6695
6759
|
//#endregion
|
|
6760
|
+
//#region src/helpers/model-resolver.d.ts
|
|
6761
|
+
/**
|
|
6762
|
+
* Synchronously resolve an application model by name.
|
|
6763
|
+
*
|
|
6764
|
+
* Registered models are returned first. If a model has not been registered yet,
|
|
6765
|
+
* ArkORM loads it from the configured models paths, registers it, and returns
|
|
6766
|
+
* the matching constructor.
|
|
6767
|
+
*
|
|
6768
|
+
* @param modelName
|
|
6769
|
+
* @returns
|
|
6770
|
+
*/
|
|
6771
|
+
declare function getModel<TName extends RegisteredModelName>(modelName: TName): RegisteredModelClass<TName>;
|
|
6772
|
+
declare function getModel<TModel extends RelatedModelClass = RelatedModelClass>(modelName: string): TModel;
|
|
6773
|
+
//#endregion
|
|
6696
6774
|
//#region src/Arkorm.d.ts
|
|
6697
6775
|
declare class Arkorm {
|
|
6698
6776
|
/**
|
|
@@ -6811,6 +6889,14 @@ declare class Arkorm {
|
|
|
6811
6889
|
*/
|
|
6812
6890
|
static getRegisteredModels(): RuntimeConstructor[];
|
|
6813
6891
|
getRegisteredModels: typeof Arkorm.getRegisteredModels;
|
|
6892
|
+
/**
|
|
6893
|
+
* Synchronously resolve an application model by name.
|
|
6894
|
+
*
|
|
6895
|
+
* @param modelName
|
|
6896
|
+
* @returns
|
|
6897
|
+
*/
|
|
6898
|
+
static getModel: typeof getModel;
|
|
6899
|
+
getModel: typeof getModel;
|
|
6814
6900
|
/**
|
|
6815
6901
|
* Get registered factory constructors or instances.
|
|
6816
6902
|
*
|
|
@@ -6842,9 +6928,10 @@ declare function resolveCast(definition: CastDefinition): CastHandler;
|
|
|
6842
6928
|
//#endregion
|
|
6843
6929
|
//#region src/cli/CliApp.d.ts
|
|
6844
6930
|
type SyncedModelsResult = {
|
|
6845
|
-
source: 'adapter' | 'prisma';
|
|
6931
|
+
source: 'adapter' | 'prisma' | 'registry';
|
|
6846
6932
|
schemaPath?: string;
|
|
6847
6933
|
modelsDir: string;
|
|
6934
|
+
modelTypesPath?: string;
|
|
6848
6935
|
total: number;
|
|
6849
6936
|
updated: string[];
|
|
6850
6937
|
skipped: string[];
|
|
@@ -7035,6 +7122,9 @@ declare class CliApp {
|
|
|
7035
7122
|
private syncPrismaEnumImports;
|
|
7036
7123
|
private parseModelSyncSource;
|
|
7037
7124
|
private syncModelFiles;
|
|
7125
|
+
private resolveModelFiles;
|
|
7126
|
+
private syncModelRegistryTypes;
|
|
7127
|
+
private resolveModelRegistryImportPath;
|
|
7038
7128
|
private applyPersistedFieldMetadata;
|
|
7039
7129
|
/**
|
|
7040
7130
|
* Parse Prisma enum definitions from a schema and return their member names.
|
|
@@ -7075,6 +7165,9 @@ declare class CliApp {
|
|
|
7075
7165
|
schemaPath?: string;
|
|
7076
7166
|
modelsDir?: string;
|
|
7077
7167
|
}): Promise<SyncedModelsResult>;
|
|
7168
|
+
syncModelRegistry(options?: {
|
|
7169
|
+
modelsDir?: string;
|
|
7170
|
+
}): SyncedModelsResult;
|
|
7078
7171
|
/**
|
|
7079
7172
|
* Sync model attribute declarations in model files based on the Prisma schema.
|
|
7080
7173
|
* This method reads the Prisma schema to extract model definitions and their
|
|
@@ -7092,6 +7185,7 @@ declare class CliApp {
|
|
|
7092
7185
|
}): {
|
|
7093
7186
|
schemaPath: string;
|
|
7094
7187
|
modelsDir: string;
|
|
7188
|
+
modelTypesPath: string;
|
|
7095
7189
|
total: number;
|
|
7096
7190
|
updated: string[];
|
|
7097
7191
|
skipped: string[];
|
|
@@ -7241,6 +7335,7 @@ declare class MigrateCommand extends Command<CliApp> {
|
|
|
7241
7335
|
* @returns
|
|
7242
7336
|
*/
|
|
7243
7337
|
handle(): Promise<undefined>;
|
|
7338
|
+
private syncModelRegistryIfRequested;
|
|
7244
7339
|
/**
|
|
7245
7340
|
* Load all migration classes from the specified directory.
|
|
7246
7341
|
*
|
|
@@ -8720,4 +8815,4 @@ declare class URLDriver {
|
|
|
8720
8815
|
url(page: number): string;
|
|
8721
8816
|
}
|
|
8722
8817
|
//#endregion
|
|
8723
|
-
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 };
|
|
8818
|
+
export { buildPrimaryKeyLine as $, TransactionContext as $a, SchemaTableCreateOperation as $c, ClientResolver as $i, Arkorm as $n, fn as $o, DeleteSpec as $r, FactoryModelConstructor as $s, PersistedTimestampColumn as $t, isQuerySchemaLike as A, PrismaLikeWhereInput as Aa, MorphToRelationMetadata as Ac, QueryTarget as Ai, Migration as An, ModelOrderByInput as Ao, PrismaDelegateNameMapping as Ar, RelationConstraint as As, buildMigrationIdentity as At, applyCreateTableOperation as B, QuerySchemaRows as Ba, MigrationClass as Bc, UpdateManySpec as Bi, MigrateRollbackCommand as Bn, RelatedModelClass as Bo, AdapterModelIntrospectionOptions as Br, JoinSource as Bs, markMigrationApplied as Bt, getRuntimeClient as C, PrismaDelegateLike as Ca, HasManyThroughRelationMetadata as Cc, QueryJsonConditionKind as Ci, QueryConstraintException as Cn, ModelDeclaredAttributeKey as Co, resolveRegisteredModel as Cr, BelongsToManyRelation as Cs, supportsDatabaseCreation as Ct, getRuntimePrismaClient as D, PrismaLikeScalarFilter as Da, MorphManyRelationMetadata as Dc, QueryRawCondition as Di, ArkormException as Dn, ModelEventListener as Do, SeederConstructor as Dr, RelationAggregateInput as Ds, toModelName as Dt, getRuntimePaginationURLDriverFactory as E, PrismaLikeOrderBy as Ea, ModelMetadata as Ec, QueryOrderBy as Ei, ArkormErrorContext as En, ModelEventHandlerConstructor as Eo, SeederCallArgument as Er, RelationAggregateConstraint as Es, toMigrationFileSlug as Et, PrimaryKeyGenerationPlanner as F, QuerySchemaCreateData as Fa, AppliedMigrationEntry as Fc, RelationLoadPlan as Fi, resolveGeneratedExpression as Fn, QuerySchemaForModel as Fo, AdapterCapabilities as Fr, RelationResultCache as Fs, findAppliedMigration as Ft, applyMigrationToPrismaSchema as G, QuerySchemaWhere as Ga, SchemaColumn as Gc, ArkormBootContext as Gi, MakeMigrationCommand as Gn, ExpressionBuilder as Go, AggregateSelection as Gr, LengthAwarePaginator as Gs, resolveMigrationStateFilePath as Gt, applyMigrationRollbackToDatabase as H, QuerySchemaUniqueWhere as Ha, PrimaryKeyGeneration as Hc, UpsertSpec as Hi, MigrateCommand as Hn, AggregateExpression as Ho, AdapterQueryOperation as Hr, RelatedModelFromResult as Hs, readAppliedMigrationsState as Ht, PRISMA_ENUM_MEMBER_REGEX as I, QuerySchemaFindManyArgs as Ia, AppliedMigrationRun as Ic, RelationLoadSpec as Ii, ForeignKeyBuilder as In, QuerySchemaForModelInstance as Io, AdapterCapability as Ir, RelationTableLookupSpec as Is, getLastBatchMigrations as It, buildFieldLine as J, Serializable as Ja, SchemaForeignKeyAction as Jc, ArkormDebugHandler as Ji, DbCommand as Jn, caseWhen as Jo, DatabasePrimitive as Jr, FactoryAttributeResolver as Js, writeAppliedMigrationsStateToStore as Jt, applyOperationsToPrismaSchema as K, RawSelectInput as Ka, SchemaColumnType as Kc, ArkormConfig as Ki, MakeFactoryCommand as Kn, JsonExpression as Ko, AggregateSpec as Kr, Paginator as Ks, supportsDatabaseMigrationState as Kt, PRISMA_ENUM_REGEX as L, QuerySchemaInclude as La, AppliedMigrationsState as Lc, SelectSpec as Li, SeedCommand as Ln, RegisteredModelClass as Lo, AdapterDatabaseCreationResult as Lr, EagerLoadQueryForRelationship as Ls, getLastMigrationRun as Lt, loadArkormConfig as M, PrismaTransactionCapableClient as Ma, PivotModelStatic as Mc, RawQuerySpec as Mi, EnumBuilder as Mn, ModelRelationshipResult as Mo, createPrismaDatabaseAdapter as Mr, RelationDefaultValue as Ms, computeMigrationChecksum as Mt, resetArkormRuntimeForTests as N, PrismaTransactionContext as Na, RelationMetadata as Nc, RelationAggregateSpec as Ni, TableBuilder as Nn, ModelUpdateData as No, KyselyDatabaseAdapter as Nr, RelationMetadataProvider as Ns, createEmptyAppliedMigrationsState as Nt, getUserConfig as O, PrismaLikeSelect as Oa, MorphOneRelationMetadata as Oc, QueryScalarComparisonOperator as Oi, DB as On, ModelEventName as Oo, SeederInput as Or, RelationAggregateType as Os, isMigrationPlanningActive as Ot, runArkormTransaction as P, PrismaTransactionOptions as Pa, RelationMetadataType as Pc, RelationFilterSpec as Pi, GeneratedColumnExpression as Pn, ModelWhereInput as Po, createKyselyAdapter as Pr, RelationResult as Ps, deleteAppliedMigrationsStateFromStore as Pt, buildModelBlock as Q, TransactionCapableClient as Qa, SchemaTableAlterOperation as Qc, CastType as Qi, AttributeOptions as Qn, expressionBuilder as Qo, DeleteManySpec as Qr, FactoryDefinitionAttributes as Qs, PersistedTableMetadata as Qt, PRISMA_MODEL_REGEX as R, QuerySchemaOrderBy as Ra, GenerateMigrationOptions as Rc, SoftDeleteQueryMode as Ri, ModelsSyncCommand as Rn, RegisteredModelInstance as Ro, AdapterInspectionRequest as Rr, EagerLoadRelations as Rs, getLatestAppliedMigrations as Rt, getRuntimeAdapter as S, PrismaClientLike as Sa, HasManyRelationMetadata as Sc, QueryJsonCondition as Si, QueryExecutionExceptionContext as Sn, ModelCreateData as So, resetRuntimeRegistryForTests as Sr, SingleResultRelation as Ss, stripPrismaSchemaModelsAndEnums as St, getRuntimePaginationCurrentPageResolver as T, PrismaLikeInclude as Ta, HasOneThroughRelationMetadata as Tc, QueryNotCondition as Ti, MissingDelegateException as Tn, ModelEventHandler as To, Seeder as Tr, RelationTableLoader as Ts, supportsDatabaseReset as Tt, applyMigrationRollbackToPrismaSchema as U, QuerySchemaUpdateArgs as Ua, PrismaMigrationWorkflowOptions as Uc, AdapterBindableModel as Ui, MakeSeederCommand as Un, CaseExpression as Uo, AdapterTransactionContext as Ur, WhereCallback as Us, readAppliedMigrationsStateFromStore as Ut, applyDropTableOperation as V, QuerySchemaSelect as Va, MigrationInstanceLike as Vc, UpdateSpec as Vi, MigrateFreshCommand as Vn, Model as Vo, AdapterModelStructure as Vr, RelatedModelForRelationship as Vs, markMigrationRun as Vt, applyMigrationToDatabase as W, QuerySchemaUpdateData as Wa, PrismaSchemaSyncOptions as Wc, AdapterQueryInspection as Wi, MakeModelCommand as Wn, Expression as Wo, AggregateOperation as Wr, JoinClause as Ws, removeAppliedMigration as Wt, buildInverseRelationLine as X, SoftDeleteConfig as Xa, SchemaOperation as Xc, CastHandler as Xi, resolveCast as Xn, col as Xo, DatabaseRows as Xr, FactoryCallback as Xs, PersistedMetadataFeatures as Xt, buildIndexLine as Y, SimplePaginationMeta as Ya, SchemaIndex as Yc, CastDefinition as Yi, CliApp as Yn, coalesce as Yo, DatabaseRow as Yr, FactoryAttributes as Ys, PersistedColumnMappingsState as Yt, buildMigrationSource as Z, TransactionCallback as Za, SchemaPrimaryKey as Zc, CastMap as Zi, Attribute as Zn, count as Zo, DatabaseValue as Zr, FactoryDefinition as Zs, PersistedPrimaryKeyGeneration as Zt, emitRuntimeDebugEvent as _, PaginationCurrentPageResolver as _a, DatabaseTableOptions as _c, QueryJoinNestedConstraint as _i, UnsupportedAdapterFeatureException as _n, DelegateForModelSchema as _o, registerFactories as _r, HasOneThroughRelation as _s, resolveEnumName as _t, getRuntimeCompatibilityAdapter as a, DelegateRows as aa, CaseExpressionBranch as ac, QueryComparisonOperator as ai, getPersistedEnumTsType as an, ExpressionSelectMap as ao, RuntimePathInput as ar, sum as as, deriveRelationAlias as at, getActiveTransactionClient as b, PaginationURLDriver as ba, BelongsToRelationMetadata as bc, QueryJoinType as bi, RelationResolutionException as bn, ModelAttributes as bo, registerPaths as br, HasManyRelation as bs, runMigrationWithPrisma as bt, PrismaDelegateMap as c, DelegateUpdateArgs as ca, ExpressionBinaryOperator as cc, QueryExistsCondition as ci, getPersistedTimestampColumns as cn, QueryBuilder as co, getRegisteredFactories as cr, InlineFactory as cs, escapeRegex as ct, inferDelegateName as d, EagerLoadConstraint as da, FunctionExpressionNode as dc, QueryGroupByItem as di, resetPersistedColumnMappingsCache as dn, AttributeOrderBy as do, getRegisteredPaths as dr, SetBasedEagerLoader as ds, formatDefaultValue as dt, DelegateCreateData as ea, FactoryRelationshipResolver as ec, InsertManySpec as ei, SchemaTableDropOperation as el, applyOperationsToPersistedColumnMappingsState as en, TransactionOptions as eo, Arkormx as er, fromExpressionNode as es, buildRelationLine as et, awaitConfiguredModelsRegistration as f, EagerLoadMap as fa, InExpressionNode as fc, QueryGroupCondition as fi, resolveColumnMappingsFilePath as fn, AttributeQuerySchema as fo, getRegisteredSeeders as fr, MorphToRelation as fs, formatEnumDefaultValue as ft, disposeArkormRuntime as g, NamingCase as ga, ValueExpressionNode as gc, QueryJoinConstraint as gi, writePersistedColumnMappingsState as gn, AttributeWhereInput as go, loadSeedersFrom as gr, MorphedByManyRelation as gs, pad as gt, defineConfig as h, ModelTableCase as ha, RawExpressionNode as hc, QueryJoinColumnConstraint as hi, validatePersistedMetadataFeaturesForMigrations as hn, AttributeUpdateInput as ho, loadModelsFrom as hr, MorphManyRelation as hs, getMigrationPlan as ht, RuntimeModuleLoader as i, DelegateRow as ia, BinaryExpressionNode as ic, QueryComparisonCondition as ii, TimestampNaming as il, getPersistedEnumMap as in, EachCallback as io, RuntimeConstructor as ir, raw as is, deriveInverseRelationAlias as it, isTransactionCapableClient as j, PrismaTransactionCallback as ja, MorphedByManyRelationMetadata as jc, QueryTimeCondition as ji, SchemaBuilder as jn, ModelRelationshipKey as jo, createPrismaCompatibilityAdapter as jr, RelationDefaultResolver as js, buildMigrationRunId as jt, isDelegateLike as k, PrismaLikeSortOrder as ka, MorphToManyRelationMetadata as kc, QuerySelectColumn as ki, MIGRATION_BRAND as kn, ModelLifecycleState as ko, PrismaDatabaseAdapter as kr, RelationColumnLookupSpec as ks, runInMigrationPlanning as kt, createPrismaAdapter as l, DelegateUpdateData as la, ExpressionJsonCast as lc, QueryExpressionCondition as li, readPersistedColumnMappingsState as ln, ArkormModelRegistry as lo, getRegisteredMigrations as lr, ModelFactory as ls, findEnumBlock as lt, configureArkormRuntime as m, ModelQuerySchemaLike as ma, NullCheckExpressionNode as mc, QueryJoinBoolean as mi, syncPersistedColumnMappingsFromState as mn, AttributeSelect as mo, loadMigrationsFrom as mr, MorphOneRelation as ms, generateMigrationFile as mt, PivotModel as n, DelegateInclude as na, MaybePromise as nc, PartitionedSelectSpec as ni, TimestampColumnBehavior as nl, deletePersistedColumnMappingsState as nn, RelationshipModelStatic as no, RegisteredFactory as nr, max as ns, createMigrationTimestamp as nt, resolveRuntimeCompatibilityQuerySchema as o, DelegateSelect as oa, CaseExpressionNode as oc, QueryCondition as oi, getPersistedPrimaryKeyGeneration as on, GroupByAggregateRow as oo, RuntimePathKey as or, val as os, deriveRelationFieldName as ot, bindAdapterToModels as p, GetUserConfig as pa, JsonExpressionNode as pc, QueryJoin as pi, resolvePersistedMetadataFeatures as pn, AttributeSchemaDelegate as po, loadFactoriesFrom as pr, MorphToManyRelation as ps, formatRelationAction as pt, buildEnumBlock as q, RuntimeClientLike as qa, SchemaForeignKey as qc, ArkormDebugEvent as qi, InitCommand as qn, avg as qo, DatabaseAdapter as qr, ArkormCollection as qs, writeAppliedMigrationsState as qt, LoadedRuntimeModule as r, DelegateOrderBy as ra, AggregateExpressionNode as rc, QueryColumnComparisonCondition as ri, TimestampNames as rl, getPersistedColumnMap as rn, ChunkCallback as ro, RegisteredModel as rr, min as rs, deriveCollectionFieldName as rt, resolveRuntimeCompatibilityQuerySchemaOrThrow as s, DelegateUniqueWhere as sa, ColumnExpressionNode as sc, QueryDayCondition as si, getPersistedTableMetadata as sn, GroupByAggregateSpec as so, RuntimePathMap as sr, where as ss, deriveSingularFieldName as st, URLDriver as t, DelegateFindManyArgs as ta, FactoryState as tc, InsertSpec as ti, SchemaUniqueConstraint as tl, createEmptyPersistedColumnMappingsState as tn, ModelStatic as to, getModel as tr, json as ts, buildUniqueConstraintLine as tt, createPrismaDelegateMap as u, DelegateWhere as ua, ExpressionNode as uc, QueryFullTextCondition as ui, rebuildPersistedColumnMappingsState as un, AttributeCreateInput as uo, getRegisteredModels as ur, defineFactory as us, findModelBlock as ut, ensureArkormConfigLoading as v, PaginationMeta as va, DatabaseTablePersistedMetadataOptions as vc, QueryJoinNullConstraint as vi, UniqueConstraintResolutionException as vn, GlobalScope as vo, registerMigrations as vr, HasOneRelation as vs, resolveMigrationClassName as vt, getRuntimeDebugHandler as w, PrismaFindManyArgsLike as wa, HasOneRelationMetadata as wc, QueryLogicalOperator as wi, ModelNotFoundException as wn, ModelEventDispatcher as wo, SEEDER_BRAND as wr, Relation as ws, supportsDatabaseMigrationExecution as wt, getDefaultStubsPath as x, PaginationURLDriverFactory as xa, ColumnMap as xc, QueryJoinValueConstraint as xi, QueryExecutionException as xn, ModelAttributesOf as xo, registerSeeders as xr, BelongsToRelation as xs, runPrismaCommand as xt, getActiveTransactionAdapter as y, PaginationOptions as ya, BelongsToManyRelationMetadata as yc, QueryJoinRawConstraint as yi, ScopeNotDefinedException as yn, ModelAttributeValue as yo, registerModels as yr, HasManyThroughRelation as ys, resolvePrismaType as yt, applyAlterTableOperation as z, QuerySchemaRow as za, GeneratedMigrationFile as zc, SortDirection as zi, MigrationHistoryCommand as zn, RegisteredModelName as zo, AdapterModelFieldStructure as zr, JoinOn as zs, isMigrationApplied as zt };
|