arkormx 2.11.13 → 2.12.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.mjs +2894 -2810
- package/dist/{index-B9svndOx.d.cts → index-3-Sgl4-j.d.cts} +100 -43
- package/dist/{index-zjj05F0G.d.mts → index-CwRrmbzl.d.mts} +100 -43
- package/dist/index.cjs +228 -131
- package/dist/index.d.cts +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +273 -176
- 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-CBYK5LE3.cjs → relationship-B7dIK_Vc.cjs} +3247 -3231
- package/dist/{relationship-DYMxYzUD.mjs → relationship-CrNsvYto.mjs} +4264 -4248
- package/package.json +2 -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[]>;
|
|
@@ -1911,41 +1912,6 @@ declare class HasOneThroughRelation<TParent, TRelated> extends SingleResultRelat
|
|
|
1911
1912
|
getResults(): Promise<TRelated | null>;
|
|
1912
1913
|
}
|
|
1913
1914
|
//#endregion
|
|
1914
|
-
//#region src/relationship/MorphedByManyRelation.d.ts
|
|
1915
|
-
/**
|
|
1916
|
-
* Defines the inverse side of a polymorphic many-to-many relationship.
|
|
1917
|
-
*
|
|
1918
|
-
* @author Legacy (3m1n3nc3)
|
|
1919
|
-
* @since 2.12.0
|
|
1920
|
-
*/
|
|
1921
|
-
declare class MorphedByManyRelation<TParent, TRelated> extends Relation<TRelated> {
|
|
1922
|
-
private readonly parent;
|
|
1923
|
-
private readonly related;
|
|
1924
|
-
private readonly throughTable;
|
|
1925
|
-
private readonly morphName;
|
|
1926
|
-
private readonly foreignPivotKey;
|
|
1927
|
-
private readonly morphTypeColumn;
|
|
1928
|
-
private readonly relatedPivotKey;
|
|
1929
|
-
private readonly parentKey;
|
|
1930
|
-
private readonly relatedKey;
|
|
1931
|
-
constructor(parent: TParent & {
|
|
1932
|
-
getAttribute: (key: string) => unknown;
|
|
1933
|
-
}, related: RelationshipModelStatic, throughTable: string, morphName: string, foreignPivotKey: string, morphTypeColumn: string, relatedPivotKey: string, parentKey: string, relatedKey: string);
|
|
1934
|
-
/**
|
|
1935
|
-
* Build the relationship query.
|
|
1936
|
-
*
|
|
1937
|
-
* @returns
|
|
1938
|
-
*/
|
|
1939
|
-
getQuery(): Promise<QueryBuilder<TRelated>>;
|
|
1940
|
-
getMetadata(): MorphedByManyRelationMetadata;
|
|
1941
|
-
/**
|
|
1942
|
-
* Fetch the related models.
|
|
1943
|
-
*
|
|
1944
|
-
* @returns
|
|
1945
|
-
*/
|
|
1946
|
-
getResults(): Promise<ArkormCollection<TRelated>>;
|
|
1947
|
-
}
|
|
1948
|
-
//#endregion
|
|
1949
1915
|
//#region src/relationship/MorphManyRelation.d.ts
|
|
1950
1916
|
/**
|
|
1951
1917
|
* Defines a polymorphic one-to-many relationship.
|
|
@@ -2047,6 +2013,41 @@ declare class MorphToManyRelation<TParent, TRelated> extends Relation<TRelated>
|
|
|
2047
2013
|
getResults(): Promise<ArkormCollection<TRelated>>;
|
|
2048
2014
|
}
|
|
2049
2015
|
//#endregion
|
|
2016
|
+
//#region src/relationship/MorphedByManyRelation.d.ts
|
|
2017
|
+
/**
|
|
2018
|
+
* Defines the inverse side of a polymorphic many-to-many relationship.
|
|
2019
|
+
*
|
|
2020
|
+
* @author Legacy (3m1n3nc3)
|
|
2021
|
+
* @since 2.12.0
|
|
2022
|
+
*/
|
|
2023
|
+
declare class MorphedByManyRelation<TParent, TRelated> extends Relation<TRelated> {
|
|
2024
|
+
private readonly parent;
|
|
2025
|
+
private readonly related;
|
|
2026
|
+
private readonly throughTable;
|
|
2027
|
+
private readonly morphName;
|
|
2028
|
+
private readonly foreignPivotKey;
|
|
2029
|
+
private readonly morphTypeColumn;
|
|
2030
|
+
private readonly relatedPivotKey;
|
|
2031
|
+
private readonly parentKey;
|
|
2032
|
+
private readonly relatedKey;
|
|
2033
|
+
constructor(parent: TParent & {
|
|
2034
|
+
getAttribute: (key: string) => unknown;
|
|
2035
|
+
}, related: RelationshipModelStatic, throughTable: string, morphName: string, foreignPivotKey: string, morphTypeColumn: string, relatedPivotKey: string, parentKey: string, relatedKey: string);
|
|
2036
|
+
/**
|
|
2037
|
+
* Build the relationship query.
|
|
2038
|
+
*
|
|
2039
|
+
* @returns
|
|
2040
|
+
*/
|
|
2041
|
+
getQuery(): Promise<QueryBuilder<TRelated>>;
|
|
2042
|
+
getMetadata(): MorphedByManyRelationMetadata;
|
|
2043
|
+
/**
|
|
2044
|
+
* Fetch the related models.
|
|
2045
|
+
*
|
|
2046
|
+
* @returns
|
|
2047
|
+
*/
|
|
2048
|
+
getResults(): Promise<ArkormCollection<TRelated>>;
|
|
2049
|
+
}
|
|
2050
|
+
//#endregion
|
|
2050
2051
|
//#region src/relationship/MorphToRelation.d.ts
|
|
2051
2052
|
type MorphToParent = {
|
|
2052
2053
|
getAttribute: (key: string) => unknown;
|
|
@@ -3290,6 +3291,8 @@ declare abstract class Model<TSchema extends ModelQuerySchemaLike | Record<strin
|
|
|
3290
3291
|
* @returns
|
|
3291
3292
|
*/
|
|
3292
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>>;
|
|
3295
|
+
protected hasOne(related: string, foreignKey?: string, localKey?: string): HasOneRelation<this, Model>;
|
|
3293
3296
|
/**
|
|
3294
3297
|
* Define a has many relationship.
|
|
3295
3298
|
*
|
|
@@ -3299,6 +3302,8 @@ declare abstract class Model<TSchema extends ModelQuerySchemaLike | Record<strin
|
|
|
3299
3302
|
* @returns
|
|
3300
3303
|
*/
|
|
3301
3304
|
protected hasMany<TRelatedClass extends RelatedModelClass>(related: TRelatedClass, foreignKey: string, localKey?: string): HasManyRelation<this, InstanceType<TRelatedClass>>;
|
|
3305
|
+
protected hasMany<TName extends RegisteredModelName>(related: TName, foreignKey?: string, localKey?: string): HasManyRelation<this, RegisteredModelInstance<TName>>;
|
|
3306
|
+
protected hasMany(related: string, foreignKey?: string, localKey?: string): HasManyRelation<this, Model>;
|
|
3302
3307
|
/**
|
|
3303
3308
|
* Define a belongs to relationship.
|
|
3304
3309
|
*
|
|
@@ -3308,6 +3313,8 @@ declare abstract class Model<TSchema extends ModelQuerySchemaLike | Record<strin
|
|
|
3308
3313
|
* @returns
|
|
3309
3314
|
*/
|
|
3310
3315
|
protected belongsTo<TRelatedClass extends RelatedModelClass>(related: TRelatedClass, foreignKey: string, ownerKey?: string): BelongsToRelation<this, InstanceType<TRelatedClass>>;
|
|
3316
|
+
protected belongsTo<TName extends RegisteredModelName>(related: TName, foreignKey?: string, ownerKey?: string): BelongsToRelation<this, RegisteredModelInstance<TName>>;
|
|
3317
|
+
protected belongsTo(related: string, foreignKey?: string, ownerKey?: string): BelongsToRelation<this, Model>;
|
|
3311
3318
|
/**
|
|
3312
3319
|
* Define a belongs to many relationship.
|
|
3313
3320
|
*
|
|
@@ -3320,6 +3327,8 @@ declare abstract class Model<TSchema extends ModelQuerySchemaLike | Record<strin
|
|
|
3320
3327
|
* @returns
|
|
3321
3328
|
*/
|
|
3322
3329
|
protected belongsToMany<TRelatedClass extends RelatedModelClass>(related: TRelatedClass, throughTable: string, foreignPivotKey: string, relatedPivotKey: string, parentKey?: string, relatedKey?: string): BelongsToManyRelation<this, InstanceType<TRelatedClass>>;
|
|
3330
|
+
protected belongsToMany<TName extends RegisteredModelName>(related: TName, throughTable: string, foreignPivotKey: string, relatedPivotKey: string, parentKey?: string, relatedKey?: string): BelongsToManyRelation<this, RegisteredModelInstance<TName>>;
|
|
3331
|
+
protected belongsToMany(related: string, throughTable: string, foreignPivotKey: string, relatedPivotKey: string, parentKey?: string, relatedKey?: string): BelongsToManyRelation<this, Model>;
|
|
3323
3332
|
/**
|
|
3324
3333
|
* Define a has one through relationship.
|
|
3325
3334
|
*
|
|
@@ -3332,6 +3341,8 @@ declare abstract class Model<TSchema extends ModelQuerySchemaLike | Record<strin
|
|
|
3332
3341
|
* @returns
|
|
3333
3342
|
*/
|
|
3334
3343
|
protected hasOneThrough<TRelatedClass extends RelatedModelClass>(related: TRelatedClass, throughTable: string, firstKey: string, secondKey: string, localKey?: string, secondLocalKey?: string): HasOneThroughRelation<this, InstanceType<TRelatedClass>>;
|
|
3344
|
+
protected hasOneThrough<TName extends RegisteredModelName>(related: TName, throughTable: string, firstKey: string, secondKey: string, localKey?: string, secondLocalKey?: string): HasOneThroughRelation<this, RegisteredModelInstance<TName>>;
|
|
3345
|
+
protected hasOneThrough(related: string, throughTable: string, firstKey: string, secondKey: string, localKey?: string, secondLocalKey?: string): HasOneThroughRelation<this, Model>;
|
|
3335
3346
|
/**
|
|
3336
3347
|
* Define a has many through relationship.
|
|
3337
3348
|
*
|
|
@@ -3344,6 +3355,8 @@ declare abstract class Model<TSchema extends ModelQuerySchemaLike | Record<strin
|
|
|
3344
3355
|
* @returns
|
|
3345
3356
|
*/
|
|
3346
3357
|
protected hasManyThrough<TRelatedClass extends RelatedModelClass>(related: TRelatedClass, throughTable: string, firstKey: string, secondKey: string, localKey?: string, secondLocalKey?: string): HasManyThroughRelation<this, InstanceType<TRelatedClass>>;
|
|
3358
|
+
protected hasManyThrough<TName extends RegisteredModelName>(related: TName, throughTable: string, firstKey: string, secondKey: string, localKey?: string, secondLocalKey?: string): HasManyThroughRelation<this, RegisteredModelInstance<TName>>;
|
|
3359
|
+
protected hasManyThrough(related: string, throughTable: string, firstKey: string, secondKey: string, localKey?: string, secondLocalKey?: string): HasManyThroughRelation<this, Model>;
|
|
3347
3360
|
/**
|
|
3348
3361
|
* Define a polymorphic one to one relationship.
|
|
3349
3362
|
*
|
|
@@ -3355,6 +3368,8 @@ declare abstract class Model<TSchema extends ModelQuerySchemaLike | Record<strin
|
|
|
3355
3368
|
* @returns
|
|
3356
3369
|
*/
|
|
3357
3370
|
protected morphOne<TRelatedClass extends RelatedModelClass>(related: TRelatedClass, morphName: string, idColumn?: string, typeColumn?: string, localKey?: string): MorphOneRelation<this, InstanceType<TRelatedClass>>;
|
|
3371
|
+
protected morphOne<TName extends RegisteredModelName>(related: TName, morphName: string, idColumn?: string, typeColumn?: string, localKey?: string): MorphOneRelation<this, RegisteredModelInstance<TName>>;
|
|
3372
|
+
protected morphOne(related: string, morphName: string, idColumn?: string, typeColumn?: string, localKey?: string): MorphOneRelation<this, Model>;
|
|
3358
3373
|
/**
|
|
3359
3374
|
* Define a polymorphic one to many relationship.
|
|
3360
3375
|
*
|
|
@@ -3366,6 +3381,8 @@ declare abstract class Model<TSchema extends ModelQuerySchemaLike | Record<strin
|
|
|
3366
3381
|
* @returns
|
|
3367
3382
|
*/
|
|
3368
3383
|
protected morphMany<TRelatedClass extends RelatedModelClass>(related: TRelatedClass, morphName: string, idColumn?: string, typeColumn?: string, localKey?: string): MorphManyRelation<this, InstanceType<TRelatedClass>>;
|
|
3384
|
+
protected morphMany<TName extends RegisteredModelName>(related: TName, morphName: string, idColumn?: string, typeColumn?: string, localKey?: string): MorphManyRelation<this, RegisteredModelInstance<TName>>;
|
|
3385
|
+
protected morphMany(related: string, morphName: string, idColumn?: string, typeColumn?: string, localKey?: string): MorphManyRelation<this, Model>;
|
|
3369
3386
|
/**
|
|
3370
3387
|
* Define the inverse side of a polymorphic relationship.
|
|
3371
3388
|
*
|
|
@@ -3391,6 +3408,8 @@ declare abstract class Model<TSchema extends ModelQuerySchemaLike | Record<strin
|
|
|
3391
3408
|
* @returns
|
|
3392
3409
|
*/
|
|
3393
3410
|
protected morphToMany<TRelatedClass extends RelatedModelClass>(related: TRelatedClass, morphName: string, throughTable?: string, foreignPivotKey?: string, morphTypeColumn?: string, relatedPivotKey?: string, parentKey?: string, relatedKey?: string): MorphToManyRelation<this, InstanceType<TRelatedClass>>;
|
|
3411
|
+
protected morphToMany<TName extends RegisteredModelName>(related: TName, morphName: string, throughTable?: string, foreignPivotKey?: string, morphTypeColumn?: string, relatedPivotKey?: string, parentKey?: string, relatedKey?: string): MorphToManyRelation<this, RegisteredModelInstance<TName>>;
|
|
3412
|
+
protected morphToMany(related: string, morphName: string, throughTable?: string, foreignPivotKey?: string, morphTypeColumn?: string, relatedPivotKey?: string, parentKey?: string, relatedKey?: string): MorphToManyRelation<this, Model>;
|
|
3394
3413
|
/**
|
|
3395
3414
|
* Define the inverse side of a polymorphic many-to-many relationship.
|
|
3396
3415
|
*
|
|
@@ -3405,6 +3424,11 @@ declare abstract class Model<TSchema extends ModelQuerySchemaLike | Record<strin
|
|
|
3405
3424
|
* @returns
|
|
3406
3425
|
*/
|
|
3407
3426
|
protected morphedByMany<TRelatedClass extends RelatedModelClass>(related: TRelatedClass, morphName: string, throughTable?: string, foreignPivotKey?: string, morphTypeColumn?: string, relatedPivotKey?: string, parentKey?: string, relatedKey?: string): MorphedByManyRelation<this, InstanceType<TRelatedClass>>;
|
|
3427
|
+
protected morphedByMany<TName extends RegisteredModelName>(related: TName, morphName: string, throughTable?: string, foreignPivotKey?: string, morphTypeColumn?: string, relatedPivotKey?: string, parentKey?: string, relatedKey?: string): MorphedByManyRelation<this, RegisteredModelInstance<TName>>;
|
|
3428
|
+
protected morphedByMany(related: string, morphName: string, throughTable?: string, foreignPivotKey?: string, morphTypeColumn?: string, relatedPivotKey?: string, parentKey?: string, relatedKey?: string): MorphedByManyRelation<this, Model>;
|
|
3429
|
+
private resolveRelationshipModel;
|
|
3430
|
+
private resolveDefaultHasForeignKey;
|
|
3431
|
+
private resolveDefaultBelongsToForeignKey;
|
|
3408
3432
|
private resolveMorphColumns;
|
|
3409
3433
|
private formatConventionName;
|
|
3410
3434
|
private static getNamingCase;
|
|
@@ -3558,6 +3582,7 @@ declare abstract class Model<TSchema extends ModelQuerySchemaLike | Record<strin
|
|
|
3558
3582
|
}
|
|
3559
3583
|
//#endregion
|
|
3560
3584
|
//#region src/types/model.d.ts
|
|
3585
|
+
interface ArkormModelRegistry {}
|
|
3561
3586
|
type LowercaseString<T extends string> = Lowercase<T>;
|
|
3562
3587
|
type Simplify<TValue> = { [TKey in keyof TValue]: TValue[TKey] } & {};
|
|
3563
3588
|
type ConventionalAutoManagedKeys = 'id' | 'createdAt' | 'updatedAt' | 'deletedAt';
|
|
@@ -3650,6 +3675,9 @@ type ModelAttributeValue<TModel, TAttributes extends Record<string, unknown>, TK
|
|
|
3650
3675
|
type ModelCreateData<TModel, TDelegate extends ModelQuerySchemaLike> = TModel extends Model<any, infer TAttributes> ? TDelegate extends AttributeQuerySchema<TAttributes> ? AttributeCreateInput<TAttributes> : QuerySchemaCreateData<TDelegate> : QuerySchemaCreateData<TDelegate>;
|
|
3651
3676
|
type ModelUpdateData<TModel, TDelegate extends ModelQuerySchemaLike> = TModel extends Model<any, infer TAttributes> ? TDelegate extends AttributeQuerySchema<TAttributes> ? AttributeUpdateInput<TAttributes> : QuerySchemaUpdateData<TDelegate> : QuerySchemaUpdateData<TDelegate>;
|
|
3652
3677
|
type RelatedModelClass<TInstance = unknown> = (abstract new (attributes?: Record<string, unknown>) => TInstance) & RelationshipModelStatic;
|
|
3678
|
+
type RegisteredModelName = keyof ArkormModelRegistry & string;
|
|
3679
|
+
type RegisteredModelClass<TName extends RegisteredModelName> = ArkormModelRegistry[TName] extends RelatedModelClass ? ArkormModelRegistry[TName] : never;
|
|
3680
|
+
type RegisteredModelInstance<TName extends RegisteredModelName> = RegisteredModelClass<TName> extends (abstract new (...args: any[]) => infer TInstance) ? TInstance : never;
|
|
3653
3681
|
type GlobalScope = (query: QueryBuilder<any, any>) => QueryBuilder<any, any> | void;
|
|
3654
3682
|
type ModelEventName = 'retrieved' | 'saving' | 'saved' | 'creating' | 'created' | 'updating' | 'updated' | 'deleting' | 'deleted' | 'restoring' | 'restored' | 'forceDeleting' | 'forceDeleted';
|
|
3655
3683
|
type ModelEventListener<TModel extends Model = Model> = (model: TModel) => void | Promise<void>;
|
|
@@ -6727,6 +6755,10 @@ declare const getRegisteredSeeders: () => SeederConstructor[];
|
|
|
6727
6755
|
* @returns
|
|
6728
6756
|
*/
|
|
6729
6757
|
declare const getRegisteredModels: () => RegisteredModel[];
|
|
6758
|
+
declare const resolveRegisteredModel: (modelName: string, context?: {
|
|
6759
|
+
operation?: string;
|
|
6760
|
+
relation?: string;
|
|
6761
|
+
}) => RelationshipModelStatic;
|
|
6730
6762
|
/**
|
|
6731
6763
|
* Get registered factory constructors or instances.
|
|
6732
6764
|
*
|
|
@@ -6735,6 +6767,20 @@ declare const getRegisteredModels: () => RegisteredModel[];
|
|
|
6735
6767
|
declare const getRegisteredFactories: () => RegisteredFactory[];
|
|
6736
6768
|
declare const resetRuntimeRegistryForTests: () => void;
|
|
6737
6769
|
//#endregion
|
|
6770
|
+
//#region src/helpers/model-resolver.d.ts
|
|
6771
|
+
/**
|
|
6772
|
+
* Synchronously resolve an application model by name.
|
|
6773
|
+
*
|
|
6774
|
+
* Registered models are returned first. If a model has not been registered yet,
|
|
6775
|
+
* ArkORM loads it from the configured models paths, registers it, and returns
|
|
6776
|
+
* the matching constructor.
|
|
6777
|
+
*
|
|
6778
|
+
* @param modelName
|
|
6779
|
+
* @returns
|
|
6780
|
+
*/
|
|
6781
|
+
declare function getModel<TName extends RegisteredModelName>(modelName: TName): RegisteredModelClass<TName>;
|
|
6782
|
+
declare function getModel<TModel extends RelatedModelClass = RelatedModelClass>(modelName: string): TModel;
|
|
6783
|
+
//#endregion
|
|
6738
6784
|
//#region src/Arkorm.d.ts
|
|
6739
6785
|
declare class Arkorm {
|
|
6740
6786
|
/**
|
|
@@ -6853,6 +6899,14 @@ declare class Arkorm {
|
|
|
6853
6899
|
*/
|
|
6854
6900
|
static getRegisteredModels(): RuntimeConstructor[];
|
|
6855
6901
|
getRegisteredModels: typeof Arkorm.getRegisteredModels;
|
|
6902
|
+
/**
|
|
6903
|
+
* Synchronously resolve an application model by name.
|
|
6904
|
+
*
|
|
6905
|
+
* @param modelName
|
|
6906
|
+
* @returns
|
|
6907
|
+
*/
|
|
6908
|
+
static getModel: typeof getModel;
|
|
6909
|
+
getModel: typeof getModel;
|
|
6856
6910
|
/**
|
|
6857
6911
|
* Get registered factory constructors or instances.
|
|
6858
6912
|
*
|
|
@@ -6884,9 +6938,10 @@ declare function resolveCast(definition: CastDefinition): CastHandler;
|
|
|
6884
6938
|
//#endregion
|
|
6885
6939
|
//#region src/cli/CliApp.d.ts
|
|
6886
6940
|
type SyncedModelsResult = {
|
|
6887
|
-
source: 'adapter' | 'prisma';
|
|
6941
|
+
source: 'adapter' | 'prisma' | 'registry';
|
|
6888
6942
|
schemaPath?: string;
|
|
6889
6943
|
modelsDir: string;
|
|
6944
|
+
modelTypesPath?: string;
|
|
6890
6945
|
total: number;
|
|
6891
6946
|
updated: string[];
|
|
6892
6947
|
skipped: string[];
|
|
@@ -7077,6 +7132,9 @@ declare class CliApp {
|
|
|
7077
7132
|
private syncPrismaEnumImports;
|
|
7078
7133
|
private parseModelSyncSource;
|
|
7079
7134
|
private syncModelFiles;
|
|
7135
|
+
private resolveModelFiles;
|
|
7136
|
+
private syncModelRegistryTypes;
|
|
7137
|
+
private resolveModelRegistryImportPath;
|
|
7080
7138
|
private applyPersistedFieldMetadata;
|
|
7081
7139
|
/**
|
|
7082
7140
|
* Parse Prisma enum definitions from a schema and return their member names.
|
|
@@ -7117,6 +7175,9 @@ declare class CliApp {
|
|
|
7117
7175
|
schemaPath?: string;
|
|
7118
7176
|
modelsDir?: string;
|
|
7119
7177
|
}): Promise<SyncedModelsResult>;
|
|
7178
|
+
syncModelRegistry(options?: {
|
|
7179
|
+
modelsDir?: string;
|
|
7180
|
+
}): SyncedModelsResult;
|
|
7120
7181
|
/**
|
|
7121
7182
|
* Sync model attribute declarations in model files based on the Prisma schema.
|
|
7122
7183
|
* This method reads the Prisma schema to extract model definitions and their
|
|
@@ -7134,6 +7195,7 @@ declare class CliApp {
|
|
|
7134
7195
|
}): {
|
|
7135
7196
|
schemaPath: string;
|
|
7136
7197
|
modelsDir: string;
|
|
7198
|
+
modelTypesPath: string;
|
|
7137
7199
|
total: number;
|
|
7138
7200
|
updated: string[];
|
|
7139
7201
|
skipped: string[];
|
|
@@ -7283,6 +7345,7 @@ declare class MigrateCommand extends Command<CliApp> {
|
|
|
7283
7345
|
* @returns
|
|
7284
7346
|
*/
|
|
7285
7347
|
handle(): Promise<undefined>;
|
|
7348
|
+
private syncModelRegistryIfRequested;
|
|
7286
7349
|
/**
|
|
7287
7350
|
* Load all migration classes from the specified directory.
|
|
7288
7351
|
*
|
|
@@ -8232,12 +8295,6 @@ declare const getLatestAppliedMigrations: (state: AppliedMigrationsState, steps:
|
|
|
8232
8295
|
*/
|
|
8233
8296
|
declare const getLastBatchMigrations: (state: AppliedMigrationsState, batches?: number) => AppliedMigrationEntry[];
|
|
8234
8297
|
//#endregion
|
|
8235
|
-
//#region src/helpers/migration-planning.d.ts
|
|
8236
|
-
/** Runs `fn` in a side-effect-free migration-planning context. */
|
|
8237
|
-
declare const runInMigrationPlanning: <TResult>(fn: () => Promise<TResult> | TResult) => Promise<TResult>;
|
|
8238
|
-
/** True when a migration body is being invoked only to collect its schema plan. */
|
|
8239
|
-
declare const isMigrationPlanningActive: () => boolean;
|
|
8240
|
-
//#endregion
|
|
8241
8298
|
//#region src/helpers/migrations.d.ts
|
|
8242
8299
|
declare const PRISMA_MODEL_REGEX: RegExp;
|
|
8243
8300
|
declare const PRISMA_ENUM_REGEX: RegExp;
|
|
@@ -8762,4 +8819,4 @@ declare class URLDriver {
|
|
|
8762
8819
|
url(page: number): string;
|
|
8763
8820
|
}
|
|
8764
8821
|
//#endregion
|
|
8765
|
-
export { buildPrimaryKeyLine as $, ModelStatic as $a, DelegateFindManyArgs as $i, Arkorm as $n, sum as $o, InsertSpec as $r, CaseExpressionBranch as $s, PersistedTimestampColumn as $t, isQuerySchemaLike as A, PrismaTransactionCapableClient as Aa, AppliedMigrationRun as Ac, RawQuerySpec as Ai, Migration as An, ModelUpdateData as Ao, createPrismaDatabaseAdapter as Ar, RelationTableLookupSpec as As, buildMigrationIdentity as At, applyCreateTableOperation as B, QuerySchemaUniqueWhere as Ba, SchemaColumnType as Bc, UpsertSpec as Bi, MigrateRollbackCommand as Bn, JsonExpression as Bo, AdapterQueryOperation as Br, Paginator as Bs, markMigrationApplied as Bt, getRuntimeClient as C, PrismaLikeInclude as Ca, MorphToManyRelationMetadata as Cc, QueryNotCondition as Ci, QueryConstraintException as Cn, ModelEventHandlerConstructor as Co, Seeder as Cr, RelationColumnLookupSpec as Cs, supportsDatabaseCreation as Ct, getRuntimePrismaClient as D, PrismaLikeSortOrder as Da, RelationMetadata as Dc, QuerySelectColumn as Di, ArkormException as Dn, ModelOrderByInput as Do, PrismaDatabaseAdapter as Dr, RelationMetadataProvider as Ds, toModelName as Dt, getRuntimePaginationURLDriverFactory as E, PrismaLikeSelect as Ea, PivotModelStatic as Ec, QueryScalarComparisonOperator as Ei, ArkormErrorContext as En, ModelLifecycleState as Eo, SeederInput as Er, RelationDefaultValue as Es, toMigrationFileSlug as Et, PrimaryKeyGenerationPlanner as F, QuerySchemaInclude as Fa, MigrationInstanceLike as Fc, SelectSpec as Fi, resolveGeneratedExpression as Fn, Model as Fo, AdapterDatabaseCreationResult as Fr, RelatedModelForRelationship as Fs, findAppliedMigration as Ft, applyMigrationToPrismaSchema as G, RuntimeClientLike as Ga, SchemaPrimaryKey as Gc, ArkormDebugEvent as Gi, MakeMigrationCommand as Gn, count as Go, DatabaseAdapter as Gr, FactoryDefinition as Gs, resolveMigrationStateFilePath as Gt, applyMigrationRollbackToDatabase as H, QuerySchemaUpdateData as Ha, SchemaForeignKeyAction as Hc, AdapterQueryInspection as Hi, MigrateCommand as Hn, caseWhen as Ho, AggregateOperation as Hr, FactoryAttributeResolver as Hs, readAppliedMigrationsState as Ht, PRISMA_ENUM_MEMBER_REGEX as I, QuerySchemaOrderBy as Ia, PrimaryKeyGeneration as Ic, SoftDeleteQueryMode as Ii, ForeignKeyBuilder as In, AggregateExpression as Io, AdapterInspectionRequest as Ir, RelatedModelFromResult as Is, getLastBatchMigrations as It, buildFieldLine as J, SoftDeleteConfig as Ja, SchemaTableDropOperation as Jc, CastHandler as Ji, DbCommand as Jn, fromExpressionNode as Jo, DatabaseRows as Jr, FactoryRelationshipResolver as Js, writeAppliedMigrationsStateToStore as Jt, applyOperationsToPrismaSchema as K, Serializable as Ka, SchemaTableAlterOperation as Kc, ArkormDebugHandler as Ki, MakeFactoryCommand as Kn, expressionBuilder as Ko, DatabasePrimitive as Kr, FactoryDefinitionAttributes as Ks, supportsDatabaseMigrationState as Kt, PRISMA_ENUM_REGEX as L, QuerySchemaRow as La, PrismaMigrationWorkflowOptions as Lc, SortDirection as Li, SeedCommand as Ln, CaseExpression as Lo, AdapterModelFieldStructure as Lr, WhereCallback as Ls, getLastMigrationRun as Lt, loadArkormConfig as M, PrismaTransactionOptions as Ma, GenerateMigrationOptions as Mc, RelationFilterSpec as Mi, EnumBuilder as Mn, QuerySchemaForModel as Mo, createKyselyAdapter as Mr, EagerLoadRelations as Ms, computeMigrationChecksum as Mt, resetArkormRuntimeForTests as N, QuerySchemaCreateData as Na, GeneratedMigrationFile as Nc, RelationLoadPlan as Ni, TableBuilder as Nn, QuerySchemaForModelInstance as No, AdapterCapabilities as Nr, JoinOn as Ns, createEmptyAppliedMigrationsState as Nt, getUserConfig as O, PrismaLikeWhereInput as Oa, RelationMetadataType as Oc, QueryTarget as Oi, DB as On, ModelRelationshipKey as Oo, PrismaDelegateNameMapping as Or, RelationResult as Os, isMigrationPlanningActive as Ot, runArkormTransaction as P, QuerySchemaFindManyArgs as Pa, MigrationClass as Pc, RelationLoadSpec as Pi, GeneratedColumnExpression as Pn, RelatedModelClass as Po, AdapterCapability as Pr, JoinSource as Ps, deleteAppliedMigrationsStateFromStore as Pt, buildModelBlock as Q, TransactionOptions as Qa, TimestampNaming as Qc, DelegateCreateData as Qi, AttributeOptions as Qn, raw as Qo, InsertManySpec as Qr, BinaryExpressionNode as Qs, PersistedTableMetadata as Qt, PRISMA_MODEL_REGEX as R, QuerySchemaRows as Ra, PrismaSchemaSyncOptions as Rc, UpdateManySpec as Ri, ModelsSyncCommand as Rn, Expression as Ro, AdapterModelIntrospectionOptions as Rr, JoinClause as Rs, getLatestAppliedMigrations as Rt, getRuntimeAdapter as S, PrismaFindManyArgsLike as Sa, MorphOneRelationMetadata as Sc, QueryLogicalOperator as Si, QueryExecutionExceptionContext as Sn, ModelEventHandler as So, SEEDER_BRAND as Sr, RelationAggregateType as Ss, stripPrismaSchemaModelsAndEnums as St, getRuntimePaginationCurrentPageResolver as T, PrismaLikeScalarFilter as Ta, MorphedByManyRelationMetadata as Tc, QueryRawCondition as Ti, MissingDelegateException as Tn, ModelEventName as To, SeederConstructor as Tr, RelationDefaultResolver as Ts, supportsDatabaseReset as Tt, applyMigrationRollbackToPrismaSchema as U, QuerySchemaWhere as Ua, SchemaIndex as Uc, ArkormBootContext as Ui, MakeSeederCommand as Un, coalesce as Uo, AggregateSelection as Ur, FactoryAttributes as Us, readAppliedMigrationsStateFromStore as Ut, applyDropTableOperation as V, QuerySchemaUpdateArgs as Va, SchemaForeignKey as Vc, AdapterBindableModel as Vi, MigrateFreshCommand as Vn, avg as Vo, AdapterTransactionContext as Vr, ArkormCollection as Vs, markMigrationRun as Vt, applyMigrationToDatabase as W, RawSelectInput as Wa, SchemaOperation as Wc, ArkormConfig as Wi, MakeModelCommand as Wn, col as Wo, AggregateSpec as Wr, FactoryCallback as Ws, removeAppliedMigration as Wt, buildInverseRelationLine as X, TransactionCapableClient as Xa, TimestampColumnBehavior as Xc, CastType as Xi, resolveCast as Xn, max as Xo, DeleteManySpec as Xr, MaybePromise as Xs, PersistedMetadataFeatures as Xt, buildIndexLine as Y, TransactionCallback as Ya, SchemaUniqueConstraint as Yc, CastMap as Yi, CliApp as Yn, json as Yo, DatabaseValue as Yr, FactoryState as Ys, PersistedColumnMappingsState as Yt, buildMigrationSource as Z, TransactionContext as Za, TimestampNames as Zc, ClientResolver as Zi, Attribute as Zn, min as Zo, DeleteSpec as Zr, AggregateExpressionNode as Zs, PersistedPrimaryKeyGeneration as Zt, emitRuntimeDebugEvent as _, PaginationOptions as _a, HasManyThroughRelationMetadata as _c, QueryJoinRawConstraint as _i, UnsupportedAdapterFeatureException as _n, ModelAttributes as _o, registerMigrations as _r, BelongsToManyRelation as _s, resolveEnumName as _t, getRuntimeCompatibilityAdapter as a, DelegateUniqueWhere as aa, FunctionExpressionNode as ac, QueryDayCondition as ai, getPersistedEnumTsType as an, GroupByAggregateSpec as ao, RuntimePathKey as ar, SetBasedEagerLoader as as, deriveRelationAlias as at, getActiveTransactionClient as b, PrismaClientLike as ba, ModelMetadata as bc, QueryJsonCondition as bi, RelationResolutionException as bn, ModelDeclaredAttributeKey as bo, registerSeeders as br, RelationAggregateConstraint as bs, runMigrationWithPrisma as bt, PrismaDelegateMap as c, DelegateWhere as ca, NullCheckExpressionNode as cc, QueryFullTextCondition as ci, getPersistedTimestampColumns as cn, AttributeOrderBy as co, getRegisteredMigrations as cr, MorphOneRelation as cs, escapeRegex as ct, inferDelegateName as d, GetUserConfig as da, DatabaseTableOptions as dc, QueryJoin as di, resetPersistedColumnMappingsCache as dn, AttributeSelect as do, getRegisteredSeeders as dr, HasOneThroughRelation as ds, formatDefaultValue as dt, DelegateInclude as ea, CaseExpressionNode as ec, PartitionedSelectSpec as ei, applyOperationsToPersistedColumnMappingsState as en, RelationshipModelStatic as eo, Arkormx as er, val as es, buildRelationLine as et, awaitConfiguredModelsRegistration as f, ModelQuerySchemaLike as fa, DatabaseTablePersistedMetadataOptions as fc, QueryJoinBoolean as fi, resolveColumnMappingsFilePath as fn, AttributeUpdateInput as fo, loadFactoriesFrom as fr, HasOneRelation as fs, formatEnumDefaultValue as ft, disposeArkormRuntime as g, PaginationMeta as ga, HasManyRelationMetadata as gc, QueryJoinNullConstraint as gi, writePersistedColumnMappingsState as gn, ModelAttributeValue as go, registerFactories as gr, SingleResultRelation as gs, pad as gt, defineConfig as h, PaginationCurrentPageResolver as ha, ColumnMap as hc, QueryJoinNestedConstraint as hi, validatePersistedMetadataFeaturesForMigrations as hn, GlobalScope as ho, loadSeedersFrom as hr, BelongsToRelation as hs, getMigrationPlan as ht, RuntimeModuleLoader as i, DelegateSelect as ia, ExpressionNode as ic, QueryCondition as ii, getPersistedEnumMap as in, GroupByAggregateRow as io, RuntimePathInput as ir, defineFactory as is, deriveInverseRelationAlias as it, isTransactionCapableClient as j, PrismaTransactionContext as ja, AppliedMigrationsState as jc, RelationAggregateSpec as ji, SchemaBuilder as jn, ModelWhereInput as jo, KyselyDatabaseAdapter as jr, EagerLoadQueryForRelationship as js, buildMigrationRunId as jt, isDelegateLike as k, PrismaTransactionCallback as ka, AppliedMigrationEntry as kc, QueryTimeCondition as ki, MIGRATION_BRAND as kn, ModelRelationshipResult as ko, createPrismaCompatibilityAdapter as kr, RelationResultCache as ks, runInMigrationPlanning as kt, createPrismaAdapter as l, EagerLoadConstraint as la, RawExpressionNode as lc, QueryGroupByItem as li, readPersistedColumnMappingsState as ln, AttributeQuerySchema as lo, getRegisteredModels as lr, MorphManyRelation as ls, findEnumBlock as lt, configureArkormRuntime as m, NamingCase as ma, BelongsToRelationMetadata as mc, QueryJoinConstraint as mi, syncPersistedColumnMappingsFromState as mn, DelegateForModelSchema as mo, loadModelsFrom as mr, HasManyRelation as ms, generateMigrationFile as mt, PivotModel as n, DelegateRow as na, ExpressionBinaryOperator as nc, QueryComparisonCondition as ni, deletePersistedColumnMappingsState as nn, EachCallback as no, RegisteredModel as nr, InlineFactory as ns, createMigrationTimestamp as nt, resolveRuntimeCompatibilityQuerySchema as o, DelegateUpdateArgs as oa, InExpressionNode as oc, QueryExistsCondition as oi, getPersistedPrimaryKeyGeneration as on, QueryBuilder as oo, RuntimePathMap as or, MorphToRelation as os, deriveRelationFieldName as ot, bindAdapterToModels as p, ModelTableCase as pa, BelongsToManyRelationMetadata as pc, QueryJoinColumnConstraint as pi, resolvePersistedMetadataFeatures as pn, AttributeWhereInput as po, loadMigrationsFrom as pr, HasManyThroughRelation as ps, formatRelationAction as pt, buildEnumBlock as q, SimplePaginationMeta as qa, SchemaTableCreateOperation as qc, CastDefinition as qi, InitCommand as qn, fn as qo, DatabaseRow as qr, FactoryModelConstructor as qs, writeAppliedMigrationsState as qt, LoadedRuntimeModule as r, DelegateRows as ra, ExpressionJsonCast as rc, QueryComparisonOperator as ri, getPersistedColumnMap as rn, ExpressionSelectMap as ro, RuntimeConstructor as rr, ModelFactory as rs, deriveCollectionFieldName as rt, resolveRuntimeCompatibilityQuerySchemaOrThrow as s, DelegateUpdateData as sa, JsonExpressionNode as sc, QueryExpressionCondition as si, getPersistedTableMetadata as sn, AttributeCreateInput as so, getRegisteredFactories as sr, MorphToManyRelation as ss, deriveSingularFieldName as st, URLDriver as t, DelegateOrderBy as ta, ColumnExpressionNode as tc, QueryColumnComparisonCondition as ti, createEmptyPersistedColumnMappingsState as tn, ChunkCallback as to, RegisteredFactory as tr, where as ts, buildUniqueConstraintLine as tt, createPrismaDelegateMap as u, EagerLoadMap as ua, ValueExpressionNode as uc, QueryGroupCondition as ui, rebuildPersistedColumnMappingsState as un, AttributeSchemaDelegate as uo, getRegisteredPaths as ur, MorphedByManyRelation as us, findModelBlock as ut, ensureArkormConfigLoading as v, PaginationURLDriver as va, HasOneRelationMetadata as vc, QueryJoinType as vi, UniqueConstraintResolutionException as vn, ModelAttributesOf as vo, registerModels as vr, Relation as vs, resolveMigrationClassName as vt, getRuntimeDebugHandler as w, PrismaLikeOrderBy as wa, MorphToRelationMetadata as wc, QueryOrderBy as wi, ModelNotFoundException as wn, ModelEventListener as wo, SeederCallArgument as wr, RelationConstraint as ws, supportsDatabaseMigrationExecution as wt, getDefaultStubsPath as x, PrismaDelegateLike as xa, MorphManyRelationMetadata as xc, QueryJsonConditionKind as xi, QueryExecutionException as xn, ModelEventDispatcher as xo, resetRuntimeRegistryForTests as xr, RelationAggregateInput as xs, runPrismaCommand as xt, getActiveTransactionAdapter as y, PaginationURLDriverFactory as ya, HasOneThroughRelationMetadata as yc, QueryJoinValueConstraint as yi, ScopeNotDefinedException as yn, ModelCreateData as yo, registerPaths as yr, RelationTableLoader as ys, resolvePrismaType as yt, applyAlterTableOperation as z, QuerySchemaSelect as za, SchemaColumn as zc, UpdateSpec as zi, MigrationHistoryCommand as zn, ExpressionBuilder as zo, AdapterModelStructure as zr, LengthAwarePaginator as zs, isMigrationApplied as zt };
|
|
8822
|
+
export { buildPrimaryKeyLine as $, ModelStatic as $a, SchemaUniqueConstraint as $c, DelegateFindManyArgs as $i, getModel as $n, json as $o, InsertSpec as $r, FactoryState as $s, createEmptyPersistedColumnMappingsState as $t, isQuerySchemaLike as A, PrismaTransactionCapableClient as Aa, PivotModelStatic as Ac, RawQuerySpec as Ai, EnumBuilder as An, ModelRelationshipResult as Ao, createPrismaDatabaseAdapter as Ar, RelationDefaultValue as As, computeMigrationChecksum as At, applyCreateTableOperation as B, QuerySchemaUniqueWhere as Ba, PrimaryKeyGeneration as Bc, UpsertSpec as Bi, MigrateCommand as Bn, AggregateExpression as Bo, AdapterQueryOperation as Br, RelatedModelFromResult as Bs, readAppliedMigrationsState as Bt, getRuntimeClient as C, PrismaLikeInclude as Ca, HasOneThroughRelationMetadata as Cc, QueryNotCondition as Ci, MissingDelegateException as Cn, ModelEventHandler as Co, Seeder as Cr, RelationTableLoader as Cs, supportsDatabaseCreation as Ct, getRuntimePrismaClient as D, PrismaLikeSortOrder as Da, MorphToManyRelationMetadata as Dc, QuerySelectColumn as Di, MIGRATION_BRAND as Dn, ModelLifecycleState as Do, PrismaDatabaseAdapter as Dr, RelationColumnLookupSpec as Ds, toModelName as Dt, getRuntimePaginationURLDriverFactory as E, PrismaLikeSelect as Ea, MorphOneRelationMetadata as Ec, QueryScalarComparisonOperator as Ei, DB as En, ModelEventName as Eo, SeederInput as Er, RelationAggregateType as Es, toMigrationFileSlug as Et, PrimaryKeyGenerationPlanner as F, QuerySchemaInclude as Fa, AppliedMigrationsState as Fc, SelectSpec as Fi, SeedCommand as Fn, RegisteredModelClass as Fo, AdapterDatabaseCreationResult as Fr, EagerLoadQueryForRelationship as Fs, getLastMigrationRun as Ft, applyMigrationToPrismaSchema as G, RuntimeClientLike as Ga, SchemaForeignKey as Gc, ArkormDebugEvent as Gi, InitCommand as Gn, avg as Go, DatabaseAdapter as Gr, ArkormCollection as Gs, writeAppliedMigrationsState as Gt, applyMigrationRollbackToDatabase as H, QuerySchemaUpdateData as Ha, PrismaSchemaSyncOptions as Hc, AdapterQueryInspection as Hi, MakeModelCommand as Hn, Expression as Ho, AggregateOperation as Hr, JoinClause as Hs, removeAppliedMigration as Ht, PRISMA_ENUM_MEMBER_REGEX as I, QuerySchemaOrderBy as Ia, GenerateMigrationOptions as Ic, SoftDeleteQueryMode as Ii, ModelsSyncCommand as In, RegisteredModelInstance as Io, AdapterInspectionRequest as Ir, EagerLoadRelations as Is, getLatestAppliedMigrations as It, buildFieldLine as J, SoftDeleteConfig as Ja, SchemaOperation as Jc, CastHandler as Ji, resolveCast as Jn, col as Jo, DatabaseRows as Jr, FactoryCallback as Js, PersistedMetadataFeatures as Jt, applyOperationsToPrismaSchema as K, Serializable as Ka, SchemaForeignKeyAction as Kc, ArkormDebugHandler as Ki, DbCommand as Kn, caseWhen as Ko, DatabasePrimitive as Kr, FactoryAttributeResolver as Ks, writeAppliedMigrationsStateToStore as Kt, PRISMA_ENUM_REGEX as L, QuerySchemaRow as La, GeneratedMigrationFile as Lc, SortDirection as Li, MigrationHistoryCommand as Ln, RegisteredModelName as Lo, AdapterModelFieldStructure as Lr, JoinOn as Ls, isMigrationApplied as Lt, loadArkormConfig as M, PrismaTransactionOptions as Ma, RelationMetadataType as Mc, RelationFilterSpec as Mi, GeneratedColumnExpression as Mn, ModelWhereInput as Mo, createKyselyAdapter as Mr, RelationResult as Ms, deleteAppliedMigrationsStateFromStore as Mt, resetArkormRuntimeForTests as N, QuerySchemaCreateData as Na, AppliedMigrationEntry as Nc, RelationLoadPlan as Ni, resolveGeneratedExpression as Nn, QuerySchemaForModel as No, AdapterCapabilities as Nr, RelationResultCache as Ns, findAppliedMigration as Nt, getUserConfig as O, PrismaLikeWhereInput as Oa, MorphToRelationMetadata as Oc, QueryTarget as Oi, Migration as On, ModelOrderByInput as Oo, PrismaDelegateNameMapping as Or, RelationConstraint as Os, buildMigrationIdentity as Ot, runArkormTransaction as P, QuerySchemaFindManyArgs as Pa, AppliedMigrationRun as Pc, RelationLoadSpec as Pi, ForeignKeyBuilder as Pn, QuerySchemaForModelInstance as Po, AdapterCapability as Pr, RelationTableLookupSpec as Ps, getLastBatchMigrations as Pt, buildModelBlock as Q, TransactionOptions as Qa, SchemaTableDropOperation as Qc, DelegateCreateData as Qi, Arkormx as Qn, fromExpressionNode as Qo, InsertManySpec as Qr, FactoryRelationshipResolver as Qs, applyOperationsToPersistedColumnMappingsState as Qt, PRISMA_MODEL_REGEX as R, QuerySchemaRows as Ra, MigrationClass as Rc, UpdateManySpec as Ri, MigrateRollbackCommand as Rn, RelatedModelClass as Ro, AdapterModelIntrospectionOptions as Rr, JoinSource as Rs, markMigrationApplied as Rt, getRuntimeAdapter as S, PrismaFindManyArgsLike as Sa, HasOneRelationMetadata as Sc, QueryLogicalOperator as Si, ModelNotFoundException as Sn, ModelEventDispatcher as So, SEEDER_BRAND as Sr, Relation as Ss, stripPrismaSchemaModelsAndEnums as St, getRuntimePaginationCurrentPageResolver as T, PrismaLikeScalarFilter as Ta, MorphManyRelationMetadata as Tc, QueryRawCondition as Ti, ArkormException as Tn, ModelEventListener as To, SeederConstructor as Tr, RelationAggregateInput as Ts, supportsDatabaseReset as Tt, applyMigrationRollbackToPrismaSchema as U, QuerySchemaWhere as Ua, SchemaColumn as Uc, ArkormBootContext as Ui, MakeMigrationCommand as Un, ExpressionBuilder as Uo, AggregateSelection as Ur, LengthAwarePaginator as Us, resolveMigrationStateFilePath as Ut, applyDropTableOperation as V, QuerySchemaUpdateArgs as Va, PrismaMigrationWorkflowOptions as Vc, AdapterBindableModel as Vi, MakeSeederCommand as Vn, CaseExpression as Vo, AdapterTransactionContext as Vr, WhereCallback as Vs, readAppliedMigrationsStateFromStore as Vt, applyMigrationToDatabase as W, RawSelectInput as Wa, SchemaColumnType as Wc, ArkormConfig as Wi, MakeFactoryCommand as Wn, JsonExpression as Wo, AggregateSpec as Wr, Paginator as Ws, supportsDatabaseMigrationState as Wt, buildInverseRelationLine as X, TransactionCapableClient as Xa, SchemaTableAlterOperation as Xc, CastType as Xi, AttributeOptions as Xn, expressionBuilder as Xo, DeleteManySpec as Xr, FactoryDefinitionAttributes as Xs, PersistedTableMetadata as Xt, buildIndexLine as Y, TransactionCallback as Ya, SchemaPrimaryKey as Yc, CastMap as Yi, Attribute as Yn, count as Yo, DatabaseValue as Yr, FactoryDefinition as Ys, PersistedPrimaryKeyGeneration as Yt, buildMigrationSource as Z, TransactionContext as Za, SchemaTableCreateOperation as Zc, ClientResolver as Zi, Arkorm as Zn, fn as Zo, DeleteSpec as Zr, FactoryModelConstructor as Zs, PersistedTimestampColumn as Zt, emitRuntimeDebugEvent as _, PaginationOptions as _a, BelongsToManyRelationMetadata as _c, QueryJoinRawConstraint as _i, ScopeNotDefinedException as _n, ModelAttributeValue as _o, registerModels as _r, HasManyThroughRelation as _s, resolveEnumName as _t, getRuntimeCompatibilityAdapter as a, DelegateUniqueWhere as aa, ColumnExpressionNode as ac, QueryDayCondition as ai, getPersistedTableMetadata as an, GroupByAggregateSpec as ao, RuntimePathMap as ar, where as as, deriveRelationAlias as at, getActiveTransactionClient as b, PrismaClientLike as ba, HasManyRelationMetadata as bc, QueryJsonCondition as bi, QueryExecutionExceptionContext as bn, ModelCreateData as bo, resetRuntimeRegistryForTests as br, SingleResultRelation as bs, runMigrationWithPrisma as bt, PrismaDelegateMap as c, DelegateWhere as ca, ExpressionNode as cc, QueryFullTextCondition as ci, rebuildPersistedColumnMappingsState as cn, AttributeCreateInput as co, getRegisteredModels as cr, defineFactory as cs, escapeRegex as ct, inferDelegateName as d, GetUserConfig as da, JsonExpressionNode as dc, QueryJoin as di, resolvePersistedMetadataFeatures as dn, AttributeSchemaDelegate as do, loadFactoriesFrom as dr, MorphedByManyRelation as ds, formatDefaultValue as dt, DelegateInclude as ea, MaybePromise as ec, PartitionedSelectSpec as ei, TimestampColumnBehavior as el, deletePersistedColumnMappingsState as en, RelationshipModelStatic as eo, RegisteredFactory as er, max as es, buildRelationLine as et, awaitConfiguredModelsRegistration as f, ModelQuerySchemaLike as fa, NullCheckExpressionNode as fc, QueryJoinBoolean as fi, syncPersistedColumnMappingsFromState as fn, AttributeSelect as fo, loadMigrationsFrom as fr, MorphToManyRelation as fs, formatEnumDefaultValue as ft, disposeArkormRuntime as g, PaginationMeta as ga, DatabaseTablePersistedMetadataOptions as gc, QueryJoinNullConstraint as gi, UniqueConstraintResolutionException as gn, GlobalScope as go, registerMigrations as gr, HasOneRelation as gs, pad as gt, defineConfig as h, PaginationCurrentPageResolver as ha, DatabaseTableOptions as hc, QueryJoinNestedConstraint as hi, UnsupportedAdapterFeatureException as hn, DelegateForModelSchema as ho, registerFactories as hr, HasOneThroughRelation as hs, getMigrationPlan as ht, RuntimeModuleLoader as i, DelegateSelect as ia, CaseExpressionNode as ic, QueryCondition as ii, getPersistedPrimaryKeyGeneration as in, GroupByAggregateRow as io, RuntimePathKey as ir, val as is, deriveInverseRelationAlias as it, isTransactionCapableClient as j, PrismaTransactionContext as ja, RelationMetadata as jc, RelationAggregateSpec as ji, TableBuilder as jn, ModelUpdateData as jo, KyselyDatabaseAdapter as jr, RelationMetadataProvider as js, createEmptyAppliedMigrationsState as jt, isDelegateLike as k, PrismaTransactionCallback as ka, MorphedByManyRelationMetadata as kc, QueryTimeCondition as ki, SchemaBuilder as kn, ModelRelationshipKey as ko, createPrismaCompatibilityAdapter as kr, RelationDefaultResolver as ks, buildMigrationRunId as kt, createPrismaAdapter as l, EagerLoadConstraint as la, FunctionExpressionNode as lc, QueryGroupByItem as li, resetPersistedColumnMappingsCache as ln, AttributeOrderBy as lo, getRegisteredPaths as lr, SetBasedEagerLoader as ls, findEnumBlock as lt, configureArkormRuntime as m, NamingCase as ma, ValueExpressionNode as mc, QueryJoinConstraint as mi, writePersistedColumnMappingsState as mn, AttributeWhereInput as mo, loadSeedersFrom as mr, MorphManyRelation as ms, generateMigrationFile as mt, PivotModel as n, DelegateRow as na, BinaryExpressionNode as nc, QueryComparisonCondition as ni, TimestampNaming as nl, getPersistedEnumMap as nn, EachCallback as no, RuntimeConstructor as nr, raw as ns, createMigrationTimestamp as nt, resolveRuntimeCompatibilityQuerySchema as o, DelegateUpdateArgs as oa, ExpressionBinaryOperator as oc, QueryExistsCondition as oi, getPersistedTimestampColumns as on, QueryBuilder as oo, getRegisteredFactories as or, InlineFactory as os, deriveRelationFieldName as ot, bindAdapterToModels as p, ModelTableCase as pa, RawExpressionNode as pc, QueryJoinColumnConstraint as pi, validatePersistedMetadataFeaturesForMigrations as pn, AttributeUpdateInput as po, loadModelsFrom as pr, MorphOneRelation as ps, formatRelationAction as pt, buildEnumBlock as q, SimplePaginationMeta as qa, SchemaIndex as qc, CastDefinition as qi, CliApp as qn, coalesce as qo, DatabaseRow as qr, FactoryAttributes as qs, PersistedColumnMappingsState as qt, LoadedRuntimeModule as r, DelegateRows as ra, CaseExpressionBranch as rc, QueryComparisonOperator as ri, getPersistedEnumTsType as rn, ExpressionSelectMap as ro, RuntimePathInput as rr, sum as rs, deriveCollectionFieldName as rt, resolveRuntimeCompatibilityQuerySchemaOrThrow as s, DelegateUpdateData as sa, ExpressionJsonCast as sc, QueryExpressionCondition as si, readPersistedColumnMappingsState as sn, ArkormModelRegistry as so, getRegisteredMigrations as sr, ModelFactory as ss, deriveSingularFieldName as st, URLDriver as t, DelegateOrderBy as ta, AggregateExpressionNode as tc, QueryColumnComparisonCondition as ti, TimestampNames as tl, getPersistedColumnMap as tn, ChunkCallback as to, RegisteredModel as tr, min as ts, buildUniqueConstraintLine as tt, createPrismaDelegateMap as u, EagerLoadMap as ua, InExpressionNode as uc, QueryGroupCondition as ui, resolveColumnMappingsFilePath as un, AttributeQuerySchema as uo, getRegisteredSeeders as ur, MorphToRelation as us, findModelBlock as ut, ensureArkormConfigLoading as v, PaginationURLDriver as va, BelongsToRelationMetadata as vc, QueryJoinType as vi, RelationResolutionException as vn, ModelAttributes as vo, registerPaths as vr, HasManyRelation as vs, resolveMigrationClassName as vt, getRuntimeDebugHandler as w, PrismaLikeOrderBy as wa, ModelMetadata as wc, QueryOrderBy as wi, ArkormErrorContext as wn, ModelEventHandlerConstructor as wo, SeederCallArgument as wr, RelationAggregateConstraint as ws, supportsDatabaseMigrationExecution as wt, getDefaultStubsPath as x, PrismaDelegateLike as xa, HasManyThroughRelationMetadata as xc, QueryJsonConditionKind as xi, QueryConstraintException as xn, ModelDeclaredAttributeKey as xo, resolveRegisteredModel as xr, BelongsToManyRelation as xs, runPrismaCommand as xt, getActiveTransactionAdapter as y, PaginationURLDriverFactory as ya, ColumnMap as yc, QueryJoinValueConstraint as yi, QueryExecutionException as yn, ModelAttributesOf as yo, registerSeeders as yr, BelongsToRelation as ys, resolvePrismaType as yt, applyAlterTableOperation as z, QuerySchemaSelect as za, MigrationInstanceLike as zc, UpdateSpec as zi, MigrateFreshCommand as zn, Model as zo, AdapterModelStructure as zr, RelatedModelForRelationship as zs, markMigrationRun as zt };
|