arkormx 2.8.1 → 2.9.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 CHANGED
@@ -2712,6 +2712,10 @@ var PrismaDatabaseAdapter = class PrismaDatabaseAdapter {
2712
2712
  operation: "adapter.select",
2713
2713
  meta: { feature: "groupBy" }
2714
2714
  });
2715
+ if (spec.having) throw new UnsupportedAdapterFeatureException("Having clauses are not supported by the Prisma compatibility adapter; use a SQL-backed adapter.", {
2716
+ operation: "adapter.select",
2717
+ meta: { feature: "having" }
2718
+ });
2715
2719
  if (spec.joins?.length) throw new UnsupportedAdapterFeatureException("Join clauses are not supported by the Prisma compatibility adapter; use a SQL-backed adapter or DB.raw().", {
2716
2720
  operation: "adapter.select",
2717
2721
  meta: { feature: "joins" }
@@ -1,7 +1,7 @@
1
- import { Kysely, Transaction } from "kysely";
2
- import { PrismaClient } from "@prisma/client";
3
1
  import { Collection } from "@h3ravel/collect.js";
2
+ import { Kysely, Transaction } from "kysely";
4
3
  import { Command } from "@h3ravel/musket";
4
+ import { PrismaClient } from "@prisma/client";
5
5
 
6
6
  //#region src/types/migrations.d.ts
7
7
  type SchemaColumnType = 'id' | 'uuid' | 'enum' | 'string' | 'text' | 'integer' | 'bigInteger' | 'float' | 'boolean' | 'json' | 'date' | 'timestamp';
@@ -617,6 +617,17 @@ declare abstract class Relation<TModel> {
617
617
  whereFullText<TKey extends keyof ModelAttributes<TModel> & string>(columns: TKey | TKey[], value: string, options?: {
618
618
  language?: string;
619
619
  }): this;
620
+ /**
621
+ * Add an OR fulltext clause to the relationship query.
622
+ *
623
+ * @param columns
624
+ * @param value
625
+ * @param options
626
+ * @returns
627
+ */
628
+ orWhereFullText<TKey extends keyof ModelAttributes<TModel> & string>(columns: TKey | TKey[], value: string, options?: {
629
+ language?: string;
630
+ }): this;
620
631
  /**
621
632
  * Add a strongly-typed where key clause to the relationship query.
622
633
  *
@@ -673,6 +684,142 @@ declare abstract class Relation<TModel> {
673
684
  * @returns
674
685
  */
675
686
  whereLike<TKey extends keyof ModelAttributes<TModel> & string>(key: TKey, value: Extract<ModelAttributes<TModel>[TKey], string>): this;
687
+ /**
688
+ * Add an OR string contains clause to the relationship query.
689
+ *
690
+ * @param key
691
+ * @param value
692
+ * @returns
693
+ */
694
+ orWhereLike<TKey extends keyof ModelAttributes<TModel> & string>(key: TKey, value: Extract<ModelAttributes<TModel>[TKey], string>): this;
695
+ /**
696
+ * Add a negated string contains (NOT LIKE) clause to the relationship query.
697
+ *
698
+ * @param key
699
+ * @param value
700
+ * @returns
701
+ */
702
+ whereNotLike<TKey extends keyof ModelAttributes<TModel> & string>(key: TKey, value: Extract<ModelAttributes<TModel>[TKey], string>): this;
703
+ /**
704
+ * Add an OR negated string contains (NOT LIKE) clause to the relationship query.
705
+ *
706
+ * @param key
707
+ * @param value
708
+ * @returns
709
+ */
710
+ orWhereNotLike<TKey extends keyof ModelAttributes<TModel> & string>(key: TKey, value: Extract<ModelAttributes<TModel>[TKey], string>): this;
711
+ /**
712
+ * Add a JSON containment clause to the relationship query.
713
+ *
714
+ * @param key
715
+ * @param value
716
+ * @returns
717
+ */
718
+ whereJsonContains(column: string, value: DatabaseValue): this;
719
+ /**
720
+ * OR variant of whereJsonContains().
721
+ *
722
+ * @param column
723
+ * @param value
724
+ * @returns
725
+ */
726
+ orWhereJsonContains(column: string, value: DatabaseValue): this;
727
+ /**
728
+ * Add a negated JSON containment clause to the relationship query.
729
+ *
730
+ * @param column
731
+ * @param value
732
+ * @returns
733
+ */
734
+ whereJsonDoesntContain(column: string, value: DatabaseValue): this;
735
+ /**
736
+ * OR variant of whereJsonDoesntContain().
737
+ *
738
+ * @param column
739
+ * @param value
740
+ * @returns
741
+ */
742
+ orWhereJsonDoesntContain(column: string, value: DatabaseValue): this;
743
+ /**
744
+ * Add a JSON key-existence clause to the relationship query.
745
+ *
746
+ * @param column
747
+ * @param value
748
+ * @returns
749
+ */
750
+ whereJsonContainsKey(column: string): this;
751
+ /**
752
+ * OR variant of whereJsonContainsKey().
753
+ *
754
+ * @param column
755
+ * @returns
756
+ */
757
+ orWhereJsonContainsKey(column: string): this;
758
+ /**
759
+ * Add a negated JSON key-existence clause to the relationship query.
760
+ *
761
+ * @param column
762
+ * @returns
763
+ */
764
+ whereJsonDoesntContainKey(column: string): this;
765
+ /**
766
+ * OR variant of whereJsonDoesntContainKey().
767
+ *
768
+ * @param column
769
+ * @returns
770
+ */
771
+ orWhereJsonDoesntContainKey(column: string): this;
772
+ /**
773
+ * Add a JSON array-length clause to the relationship query.
774
+ *
775
+ * @param column
776
+ * @returns
777
+ */
778
+ whereJsonLength(column: string, value: number): this;
779
+ whereJsonLength(column: string, operator: QueryScalarComparisonOperator, value: number): this;
780
+ /**
781
+ * OR variant of whereJsonLength().
782
+ *
783
+ * @param column
784
+ * @param value
785
+ */
786
+ orWhereJsonLength(column: string, value: number): this;
787
+ orWhereJsonLength(column: string, operator: QueryScalarComparisonOperator, value: number): this;
788
+ /**
789
+ * Add a JSON array overlap clause to the relationship query.
790
+ *
791
+ * @param column
792
+ * @param value
793
+ */
794
+ whereJsonOverlaps(column: string, value: DatabaseValue): this;
795
+ /**
796
+ * OR variant of whereJsonOverlaps().
797
+ *
798
+ * @param column
799
+ * @param value
800
+ */
801
+ orWhereJsonOverlaps(column: string, value: DatabaseValue): this;
802
+ /**
803
+ * Add a HAVING clause to the relationship query.
804
+ *
805
+ * @param column
806
+ * @param value
807
+ */
808
+ having(column: string, value: DatabaseValue): this;
809
+ having(column: string, operator: QueryScalarComparisonOperator, value: DatabaseValue): this;
810
+ /**
811
+ * Add an OR HAVING clause to the relationship query.
812
+ */
813
+ orHaving(column: string, value: DatabaseValue): this;
814
+ orHaving(column: string, operator: QueryScalarComparisonOperator, value: DatabaseValue): this;
815
+ /**
816
+ * Add a raw HAVING clause to the relationship query.
817
+ */
818
+ havingRaw(sql: string, bindings?: unknown[]): this;
819
+ /**
820
+ * Add a raw OR HAVING clause to the relationship query.
821
+ */
822
+ orHavingRaw(sql: string, bindings?: unknown[]): this;
676
823
  /**
677
824
  * Add a string starts-with clause to the relationship query.
678
825
  *
@@ -3079,6 +3226,7 @@ declare class QueryBuilder<TModel, TDelegate extends ModelQuerySchemaLike = Mode
3079
3226
  private querySelect?;
3080
3227
  private queryDistinct;
3081
3228
  private queryGroupBy?;
3229
+ private queryHaving?;
3082
3230
  private queryJoins?;
3083
3231
  private offsetValue?;
3084
3232
  private limitValue?;
@@ -3301,6 +3449,17 @@ declare class QueryBuilder<TModel, TDelegate extends ModelQuerySchemaLike = Mode
3301
3449
  whereFullText<TKey extends keyof ModelAttributes<TModel> & string>(columns: TKey | TKey[], value: string, options?: {
3302
3450
  language?: string;
3303
3451
  }): this;
3452
+ /**
3453
+ * Adds an OR fulltext clause for columns that have full text indexes.
3454
+ *
3455
+ * @param columns
3456
+ * @param value
3457
+ * @param options
3458
+ * @returns
3459
+ */
3460
+ orWhereFullText<TKey extends keyof ModelAttributes<TModel> & string>(columns: TKey | TKey[], value: string, options?: {
3461
+ language?: string;
3462
+ }): this;
3304
3463
  /**
3305
3464
  * Adds a strongly-typed inequality where clause for a single attribute key.
3306
3465
  *
@@ -3333,6 +3492,138 @@ declare class QueryBuilder<TModel, TDelegate extends ModelQuerySchemaLike = Mode
3333
3492
  * @returns
3334
3493
  */
3335
3494
  whereLike<TKey extends keyof ModelAttributes<TModel> & string>(key: TKey, value: Extract<ModelAttributes<TModel>[TKey], string>): this;
3495
+ /**
3496
+ * Adds an OR string contains clause for a single attribute key.
3497
+ *
3498
+ * @param key
3499
+ * @param value
3500
+ * @returns
3501
+ */
3502
+ orWhereLike<TKey extends keyof ModelAttributes<TModel> & string>(key: TKey, value: Extract<ModelAttributes<TModel>[TKey], string>): this;
3503
+ /**
3504
+ * Adds a negated string contains (NOT LIKE) clause for a single attribute key.
3505
+ *
3506
+ * @param key
3507
+ * @param value
3508
+ * @returns
3509
+ */
3510
+ whereNotLike<TKey extends keyof ModelAttributes<TModel> & string>(key: TKey, value: Extract<ModelAttributes<TModel>[TKey], string>): this;
3511
+ /**
3512
+ * Adds an OR negated string contains (NOT LIKE) clause for a single attribute key.
3513
+ *
3514
+ * @param key
3515
+ * @param value
3516
+ * @returns
3517
+ */
3518
+ orWhereNotLike<TKey extends keyof ModelAttributes<TModel> & string>(key: TKey, value: Extract<ModelAttributes<TModel>[TKey], string>): this;
3519
+ /**
3520
+ * Append a structured JSON predicate, splitting a `column->path->key`
3521
+ * expression into its base column and nested path segments.
3522
+ *
3523
+ * @param boolean
3524
+ * @param kind
3525
+ * @param column
3526
+ * @param options
3527
+ * @returns
3528
+ */
3529
+ private appendJsonCondition;
3530
+ /**
3531
+ * Adds a clause asserting the JSON column contains the given value
3532
+ * (PostgreSQL `@>` containment).
3533
+ *
3534
+ * @param column
3535
+ * @param value
3536
+ * @returns
3537
+ */
3538
+ whereJsonContains(column: string, value: DatabaseValue): this;
3539
+ /**
3540
+ * OR variant of whereJsonContains().
3541
+ *
3542
+ * @param column
3543
+ * @param value
3544
+ * @returns
3545
+ */
3546
+ orWhereJsonContains(column: string, value: DatabaseValue): this;
3547
+ /**
3548
+ * Adds a clause asserting the JSON column does not contain the given value.
3549
+ *
3550
+ * @param column
3551
+ * @param value
3552
+ * @returns
3553
+ */
3554
+ whereJsonDoesntContain(column: string, value: DatabaseValue): this;
3555
+ /**
3556
+ * OR variant of whereJsonDoesntContain().
3557
+ *
3558
+ * @param column
3559
+ * @param value
3560
+ * @returns
3561
+ */
3562
+ orWhereJsonDoesntContain(column: string, value: DatabaseValue): this;
3563
+ /**
3564
+ * Adds a clause asserting the JSON document contains the given key/path.
3565
+ *
3566
+ * @param column
3567
+ * @returns
3568
+ */
3569
+ whereJsonContainsKey(column: string): this;
3570
+ /**
3571
+ * OR variant of whereJsonContainsKey().
3572
+ *
3573
+ * @param column
3574
+ * @returns
3575
+ */
3576
+ orWhereJsonContainsKey(column: string): this;
3577
+ /**
3578
+ * Adds a clause asserting the JSON document does not contain the given key/path.
3579
+ *
3580
+ * @param column
3581
+ * @returns
3582
+ */
3583
+ whereJsonDoesntContainKey(column: string): this;
3584
+ /**
3585
+ * OR variant of whereJsonDoesntContainKey().
3586
+ *
3587
+ * @param column
3588
+ * @returns
3589
+ */
3590
+ orWhereJsonDoesntContainKey(column: string): this;
3591
+ /**
3592
+ * Adds a clause comparing the length of a JSON array column.
3593
+ *
3594
+ * @param column
3595
+ * @param operatorOrValue
3596
+ * @param maybeValue
3597
+ * @returns
3598
+ */
3599
+ whereJsonLength(column: string, value: number): this;
3600
+ whereJsonLength(column: string, operator: QueryScalarComparisonOperator, value: number): this;
3601
+ /**
3602
+ * OR variant of whereJsonLength().
3603
+ *
3604
+ * @param column
3605
+ * @param value
3606
+ */
3607
+ orWhereJsonLength(column: string, value: number): this;
3608
+ orWhereJsonLength(column: string, operator: QueryScalarComparisonOperator, value: number): this;
3609
+ private resolveJsonLengthArgs;
3610
+ /**
3611
+ * Adds a clause asserting the JSON array column overlaps with the given
3612
+ * array (shares at least one element).
3613
+ *
3614
+ * @param column
3615
+ * @param value
3616
+ * @returns
3617
+ */
3618
+ whereJsonOverlaps(column: string, value: DatabaseValue): this;
3619
+ /**
3620
+ * OR variant of whereJsonOverlaps().
3621
+ *
3622
+ * @param column
3623
+ * @param value
3624
+ * @returns
3625
+ */
3626
+ orWhereJsonOverlaps(column: string, value: DatabaseValue): this;
3336
3627
  /**
3337
3628
  * Adds a string starts-with clause for a single attribute key.
3338
3629
  *
@@ -3680,6 +3971,47 @@ declare class QueryBuilder<TModel, TDelegate extends ModelQuerySchemaLike = Mode
3680
3971
  */
3681
3972
  groupBy<TKey extends keyof ModelAttributes<TModel> & string>(columns: TKey[]): this;
3682
3973
  groupBy<TKey extends keyof ModelAttributes<TModel> & string>(...columns: TKey[]): this;
3974
+ private appendHavingCondition;
3975
+ private buildHavingComparison;
3976
+ /**
3977
+ * Adds a HAVING clause to filter grouped rows. Accepts either
3978
+ * `having(column, value)` (defaulting to equality) or
3979
+ * `having(column, operator, value)`. Multiple calls combine with AND.
3980
+ *
3981
+ * @param column
3982
+ * @param operatorOrValue
3983
+ * @param maybeValue
3984
+ * @returns
3985
+ */
3986
+ having(column: string, value: DatabaseValue): this;
3987
+ having(column: string, operator: QueryScalarComparisonOperator, value: DatabaseValue): this;
3988
+ /**
3989
+ * Adds an OR HAVING clause to filter grouped rows.
3990
+ *
3991
+ * @param column
3992
+ * @param operatorOrValue
3993
+ * @param maybeValue
3994
+ * @returns
3995
+ */
3996
+ orHaving(column: string, value: DatabaseValue): this;
3997
+ orHaving(column: string, operator: QueryScalarComparisonOperator, value: DatabaseValue): this;
3998
+ /**
3999
+ * Adds a raw HAVING clause, useful for filtering on aggregate expressions
4000
+ * such as `count(*)`. Combines with previous HAVING clauses using AND.
4001
+ *
4002
+ * @param sql
4003
+ * @param bindings
4004
+ * @returns
4005
+ */
4006
+ havingRaw(sql: string, bindings?: unknown[]): this;
4007
+ /**
4008
+ * Adds a raw OR HAVING clause.
4009
+ *
4010
+ * @param sql
4011
+ * @param bindings
4012
+ * @returns
4013
+ */
4014
+ orHavingRaw(sql: string, bindings?: unknown[]): this;
3683
4015
  /**
3684
4016
  * Adds a join clause to the query.
3685
4017
  *
@@ -4774,11 +5106,25 @@ interface QueryFullTextCondition {
4774
5106
  value: string;
4775
5107
  language?: string;
4776
5108
  }
5109
+ type QueryJsonConditionKind = 'contains' | 'contains-key' | 'length' | 'overlaps';
5110
+ interface QueryJsonCondition {
5111
+ type: 'json';
5112
+ kind: QueryJsonConditionKind;
5113
+ column: string;
5114
+ /** Nested JSON path segments below the base column (e.g. `data->meta->lang`). */
5115
+ path?: string[];
5116
+ /** Negates the predicate (doesntContain / doesntContainKey). */
5117
+ not?: boolean;
5118
+ /** JSON value for `contains`/`overlaps`, or the integer length for `length`. */
5119
+ value?: DatabaseValue;
5120
+ /** Comparison operator used by the `length` kind. */
5121
+ operator?: QueryScalarComparisonOperator;
5122
+ }
4777
5123
  interface RawQuerySpec {
4778
5124
  sql: string;
4779
5125
  bindings?: DatabaseValue[];
4780
5126
  }
4781
- type QueryCondition = QueryComparisonCondition | QueryColumnComparisonCondition | QueryTimeCondition | QueryDayCondition | QueryExistsCondition | QueryFullTextCondition | QueryGroupCondition | QueryNotCondition | QueryRawCondition;
5127
+ type QueryCondition = QueryComparisonCondition | QueryColumnComparisonCondition | QueryTimeCondition | QueryDayCondition | QueryExistsCondition | QueryFullTextCondition | QueryJsonCondition | QueryGroupCondition | QueryNotCondition | QueryRawCondition;
4782
5128
  interface AggregateSelection {
4783
5129
  type: AggregateOperation;
4784
5130
  column?: string;
@@ -4858,6 +5204,7 @@ interface SelectSpec<TModel = unknown> {
4858
5204
  columns?: QuerySelectColumn[];
4859
5205
  distinct?: boolean;
4860
5206
  groupBy?: string[];
5207
+ having?: QueryCondition;
4861
5208
  joins?: QueryJoin[];
4862
5209
  where?: QueryCondition;
4863
5210
  orderBy?: QueryOrderBy[];
@@ -5106,6 +5453,7 @@ declare class KyselyDatabaseAdapter implements DatabaseAdapter {
5106
5453
  private buildSelectList;
5107
5454
  private buildOrderBy;
5108
5455
  private buildGroupBy;
5456
+ private buildHavingClause;
5109
5457
  private buildJoinClause;
5110
5458
  private joinKeyword;
5111
5459
  private buildJoinSource;
@@ -5120,6 +5468,8 @@ declare class KyselyDatabaseAdapter implements DatabaseAdapter {
5120
5468
  private buildDayCondition;
5121
5469
  private buildExistsCondition;
5122
5470
  private buildFullTextCondition;
5471
+ private buildJsonAccessor;
5472
+ private buildJsonCondition;
5123
5473
  private buildWhereCondition;
5124
5474
  private buildWhereClause;
5125
5475
  private buildPaginationClause;
@@ -7396,4 +7746,4 @@ declare class URLDriver {
7396
7746
  url(page: number): string;
7397
7747
  }
7398
7748
  //#endregion
7399
- export { buildRelationLine as $, AttributeUpdateInput as $a, GetUserConfig as $i, RuntimePathMap as $n, ArkormCollection as $o, QueryFullTextCondition as $r, getPersistedColumnMap as $t, isTransactionCapableClient as A, QuerySchemaUpdateData as Aa, AdapterQueryInspection as Ai, ForeignKeyBuilder as An, MorphManyRelation as Ao, AdapterModelFieldStructure as Ar, GeneratedMigrationFile as As, createEmptyAppliedMigrationsState as At, applyDropTableOperation as B, TransactionOptions as Ba, DelegateCreateData as Bi, MakeFactoryCommand as Bn, RelationAggregateConstraint as Bo, DatabaseRow as Br, SchemaIndex as Bs, removeAppliedMigration as Bt, getRuntimeDebugHandler as C, QuerySchemaInclude as Ca, SelectSpec as Ci, ArkormException as Cn, InlineFactory as Co, createPrismaDatabaseAdapter as Cr, PivotModelStatic as Cs, supportsDatabaseMigrationExecution as Ct, getUserConfig as D, QuerySchemaSelect as Da, UpdateSpec as Di, SchemaBuilder as Dn, MorphToRelation as Do, AdapterCapability as Dr, AppliedMigrationRun as Ds, buildMigrationIdentity as Dt, getRuntimePrismaClient as E, QuerySchemaRows as Ea, UpdateManySpec as Ei, Migration as En, SetBasedEagerLoader as Eo, AdapterCapabilities as Er, AppliedMigrationEntry as Es, toModelName as Et, PRISMA_ENUM_MEMBER_REGEX as F, SimplePaginationMeta as Fa, CastDefinition as Fi, MigrateFreshCommand as Fn, BelongsToRelation as Fo, AggregateOperation as Fr, PrismaSchemaSyncOptions as Fs, isMigrationApplied as Ft, applyOperationsToPrismaSchema as G, JoinSource as Ga, DelegateRows as Gi, AttributeOptions as Gn, RelationDefaultResolver as Go, InsertManySpec as Gr, SchemaTableDropOperation as Gs, PersistedColumnMappingsState as Gt, applyMigrationRollbackToPrismaSchema as H, RelationshipModelStatic as Ha, DelegateInclude as Hi, CliApp as Hn, RelationAggregateType as Ho, DatabaseValue as Hr, SchemaPrimaryKey as Hs, supportsDatabaseMigrationState as Ht, PRISMA_ENUM_REGEX as I, SoftDeleteConfig as Ia, CastHandler as Ii, MigrateCommand as In, SingleResultRelation as Io, AggregateSelection as Ir, SchemaColumn as Is, markMigrationApplied as It, buildIndexLine as J, AttributeCreateInput as Ja, DelegateUpdateArgs as Ji, RegisteredFactory as Jn, RelationResult as Jo, QueryComparisonCondition as Jr, TimestampNames as Js, PersistedTableMetadata as Jt, buildEnumBlock as K, QueryBuilder as Ka, DelegateSelect as Ki, Arkorm as Kn, RelationDefaultValue as Ko, InsertSpec as Kr, SchemaUniqueConstraint as Ks, PersistedMetadataFeatures as Kt, PRISMA_MODEL_REGEX as L, TransactionCallback as La, CastMap as Li, MakeSeederCommand as Ln, BelongsToManyRelation as Lo, AggregateSpec as Lr, SchemaColumnType as Ls, markMigrationRun as Lt, resetArkormRuntimeForTests as M, RawSelectInput as Ma, ArkormConfig as Mi, ModelsSyncCommand as Mn, HasOneRelation as Mo, AdapterModelStructure as Mr, MigrationInstanceLike as Ms, findAppliedMigration as Mt, runArkormTransaction as N, RuntimeClientLike as Na, ArkormDebugEvent as Ni, MigrationHistoryCommand as Nn, HasManyThroughRelation as No, AdapterQueryOperation as Nr, PrimaryKeyGeneration as Ns, getLastMigrationRun as Nt, isDelegateLike as O, QuerySchemaUniqueWhere as Oa, UpsertSpec as Oi, EnumBuilder as On, MorphToManyRelation as Oo, AdapterDatabaseCreationResult as Or, AppliedMigrationsState as Os, buildMigrationRunId as Ot, PrimaryKeyGenerationPlanner as P, Serializable as Pa, ArkormDebugHandler as Pi, MigrateRollbackCommand as Pn, HasManyRelation as Po, AdapterTransactionContext as Pr, PrismaMigrationWorkflowOptions as Ps, getLatestAppliedMigrations as Pt, buildPrimaryKeyLine as Q, AttributeSelect as Qa, EagerLoadMap as Qi, RuntimePathKey as Qn, Paginator as Qo, QueryExistsCondition as Qr, deletePersistedColumnMappingsState as Qt, applyAlterTableOperation as R, TransactionCapableClient as Ra, CastType as Ri, MakeModelCommand as Rn, Relation as Ro, DatabaseAdapter as Rr, SchemaForeignKey as Rs, readAppliedMigrationsState as Rt, getRuntimeClient as S, QuerySchemaFindManyArgs as Sa, RelationLoadSpec as Si, ArkormErrorContext as Sn, Model as So, createPrismaCompatibilityAdapter as Sr, MorphToRelationMetadata as Ss, supportsDatabaseCreation as St, getRuntimePaginationURLDriverFactory as T, QuerySchemaRow as Ta, SortDirection as Ti, MIGRATION_BRAND as Tn, defineFactory as To, createKyselyAdapter as Tr, RelationMetadataType as Ts, toMigrationFileSlug as Tt, applyMigrationToDatabase as U, EagerLoadRelations as Ua, DelegateOrderBy as Ui, resolveCast as Un, RelationColumnLookupSpec as Uo, DeleteManySpec as Ur, SchemaTableAlterOperation as Us, writeAppliedMigrationsState as Ut, applyMigrationRollbackToDatabase as V, ModelStatic as Va, DelegateFindManyArgs as Vi, InitCommand as Vn, RelationAggregateInput as Vo, DatabaseRows as Vr, SchemaOperation as Vs, resolveMigrationStateFilePath as Vt, applyMigrationToPrismaSchema as W, JoinOn as Wa, DelegateRow as Wi, Attribute as Wn, RelationConstraint as Wo, DeleteSpec as Wr, SchemaTableCreateOperation as Ws, writeAppliedMigrationsStateToStore as Wt, buildMigrationSource as X, AttributeQuerySchema as Xa, DelegateWhere as Xi, RuntimeConstructor as Xn, RelationTableLookupSpec as Xo, QueryCondition as Xr, applyOperationsToPersistedColumnMappingsState as Xt, buildInverseRelationLine as Y, AttributeOrderBy as Ya, DelegateUpdateData as Yi, RegisteredModel as Yn, RelationResultCache as Yo, QueryComparisonOperator as Yr, TimestampNaming as Ys, PersistedTimestampColumn as Yt, buildModelBlock as Z, AttributeSchemaDelegate as Za, EagerLoadConstraint as Zi, RuntimePathInput as Zn, LengthAwarePaginator as Zo, QueryDayCondition as Zr, createEmptyPersistedColumnMappingsState as Zt, ensureArkormConfigLoading as _, PrismaTransactionCallback as _a, QueryTimeCondition as _i, QueryExecutionException as _n, ModelUpdateData as _o, SeederCallArgument as _r, HasOneThroughRelationMetadata as _s, resolveMigrationClassName as _t, getRuntimeCompatibilityAdapter as a, PaginationOptions as aa, QueryJoinNestedConstraint as ai, readPersistedColumnMappingsState as an, ModelAttributesOf as ao, loadFactoriesFrom as ar, FactoryModelConstructor as as, deriveRelationFieldName as at, getDefaultStubsPath as b, PrismaTransactionOptions as ba, RelationFilterSpec as bi, ModelNotFoundException as bn, QuerySchemaForModelInstance as bo, PrismaDatabaseAdapter as br, MorphOneRelationMetadata as bs, runPrismaCommand as bt, PrismaDelegateMap as c, PrismaClientLike as ca, QueryJoinType as ci, resolveColumnMappingsFilePath as cn, ModelEventDispatcher as co, loadSeedersFrom as cr, MaybePromise as cs, findEnumBlock as ct, inferDelegateName as d, PrismaLikeInclude as da, QueryNotCondition as di, validatePersistedMetadataFeaturesForMigrations as dn, ModelEventListener as do, registerModels as dr, BelongsToManyRelationMetadata as ds, formatEnumDefaultValue as dt, ModelQuerySchemaLike as ea, QueryGroupCondition as ei, getPersistedEnumMap as en, AttributeWhereInput as eo, getRegisteredFactories as er, FactoryAttributeResolver as es, buildUniqueConstraintLine as et, awaitConfiguredModelsRegistration as f, PrismaLikeOrderBy as fa, QueryOrderBy as fi, writePersistedColumnMappingsState as fn, ModelEventName as fo, registerPaths as fr, BelongsToRelationMetadata as fs, formatRelationAction as ft, emitRuntimeDebugEvent as g, PrismaLikeWhereInput as ga, QueryTarget as gi, RelationResolutionException as gn, ModelRelationshipResult as go, Seeder as gr, HasOneRelationMetadata as gs, resolveEnumName as gt, defineConfig as h, PrismaLikeSortOrder as ha, QuerySelectColumn as hi, ScopeNotDefinedException as hn, ModelRelationshipKey as ho, SEEDER_BRAND as hr, HasManyThroughRelationMetadata as hs, pad as ht, RuntimeModuleLoader as i, PaginationMeta as ia, QueryJoinConstraint as ii, getPersistedTimestampColumns as in, ModelAttributes as io, getRegisteredSeeders as ir, FactoryDefinitionAttributes as is, deriveRelationAlias as it, loadArkormConfig as j, QuerySchemaWhere as ja, ArkormBootContext as ji, SeedCommand as jn, HasOneThroughRelation as jo, AdapterModelIntrospectionOptions as jr, MigrationClass as js, deleteAppliedMigrationsStateFromStore as jt, isQuerySchemaLike as k, QuerySchemaUpdateArgs as ka, AdapterBindableModel as ki, TableBuilder as kn, MorphOneRelation as ko, AdapterInspectionRequest as kr, GenerateMigrationOptions as ks, computeMigrationChecksum as kt, createPrismaAdapter as l, PrismaDelegateLike as la, QueryJoinValueConstraint as li, resolvePersistedMetadataFeatures as ln, ModelEventHandler as lo, registerFactories as lr, DatabaseTableOptions as ls, findModelBlock as lt, configureArkormRuntime as m, PrismaLikeSelect as ma, QueryScalarComparisonOperator as mi, UniqueConstraintResolutionException as mn, ModelOrderByInput as mo, resetRuntimeRegistryForTests as mr, HasManyRelationMetadata as ms, getMigrationPlan as mt, PivotModel as n, NamingCase as na, QueryJoinBoolean as ni, getPersistedPrimaryKeyGeneration as nn, GlobalScope as no, getRegisteredModels as nr, FactoryCallback as ns, deriveCollectionFieldName as nt, resolveRuntimeCompatibilityQuerySchema as o, PaginationURLDriver as oa, QueryJoinNullConstraint as oi, rebuildPersistedColumnMappingsState as on, ModelCreateData as oo, loadMigrationsFrom as or, FactoryRelationshipResolver as os, deriveSingularFieldName as ot, bindAdapterToModels as p, PrismaLikeScalarFilter as pa, QueryRawCondition as pi, UnsupportedAdapterFeatureException as pn, ModelLifecycleState as po, registerSeeders as pr, ColumnMap as ps, generateMigrationFile as pt, buildFieldLine as q, JoinClause as qa, DelegateUniqueWhere as qi, Arkormx as qn, RelationMetadataProvider as qo, QueryColumnComparisonCondition as qr, TimestampColumnBehavior as qs, PersistedPrimaryKeyGeneration as qt, LoadedRuntimeModule as r, PaginationCurrentPageResolver as ra, QueryJoinColumnConstraint as ri, getPersistedTableMetadata as rn, ModelAttributeValue as ro, getRegisteredPaths as rr, FactoryDefinition as rs, deriveInverseRelationAlias as rt, resolveRuntimeCompatibilityQuerySchemaOrThrow as s, PaginationURLDriverFactory as sa, QueryJoinRawConstraint as si, resetPersistedColumnMappingsCache as sn, ModelDeclaredAttributeKey as so, loadModelsFrom as sr, FactoryState as ss, escapeRegex as st, URLDriver as t, ModelTableCase as ta, QueryJoin as ti, getPersistedEnumTsType as tn, DelegateForModelSchema as to, getRegisteredMigrations as tr, FactoryAttributes as ts, createMigrationTimestamp as tt, createPrismaDelegateMap as u, PrismaFindManyArgsLike as ua, QueryLogicalOperator as ui, syncPersistedColumnMappingsFromState as un, ModelEventHandlerConstructor as uo, registerMigrations as ur, DatabaseTablePersistedMetadataOptions as us, formatDefaultValue as ut, getActiveTransactionAdapter as v, PrismaTransactionCapableClient as va, RawQuerySpec as vi, QueryExecutionExceptionContext as vn, ModelWhereInput as vo, SeederConstructor as vr, ModelMetadata as vs, resolvePrismaType as vt, getRuntimePaginationCurrentPageResolver as w, QuerySchemaOrderBy as wa, SoftDeleteQueryMode as wi, DB as wn, ModelFactory as wo, KyselyDatabaseAdapter as wr, RelationMetadata as ws, supportsDatabaseReset as wt, getRuntimeAdapter as x, QuerySchemaCreateData as xa, RelationLoadPlan as xi, MissingDelegateException as xn, RelatedModelClass as xo, PrismaDelegateNameMapping as xr, MorphToManyRelationMetadata as xs, stripPrismaSchemaModelsAndEnums as xt, getActiveTransactionClient as y, PrismaTransactionContext as ya, RelationAggregateSpec as yi, QueryConstraintException as yn, QuerySchemaForModel as yo, SeederInput as yr, MorphManyRelationMetadata as ys, runMigrationWithPrisma as yt, applyCreateTableOperation as z, TransactionContext as za, ClientResolver as zi, MakeMigrationCommand as zn, RelationTableLoader as zo, DatabasePrimitive as zr, SchemaForeignKeyAction as zs, readAppliedMigrationsStateFromStore as zt };
7749
+ export { buildRelationLine as $, AttributeSchemaDelegate as $a, EagerLoadConstraint as $i, RuntimePathMap as $n, LengthAwarePaginator as $o, QueryFullTextCondition as $r, getPersistedColumnMap as $t, isTransactionCapableClient as A, QuerySchemaUniqueWhere as Aa, UpsertSpec as Ai, ForeignKeyBuilder as An, MorphToManyRelation as Ao, AdapterModelFieldStructure as Ar, AppliedMigrationsState as As, createEmptyAppliedMigrationsState as At, applyDropTableOperation as B, TransactionCapableClient as Ba, CastType as Bi, MakeFactoryCommand as Bn, Relation as Bo, DatabaseRow as Br, SchemaForeignKey as Bs, removeAppliedMigration as Bt, getRuntimeDebugHandler as C, QuerySchemaCreateData as Ca, RelationLoadPlan as Ci, ArkormException as Cn, RelatedModelClass as Co, createPrismaDatabaseAdapter as Cr, MorphToManyRelationMetadata as Cs, supportsDatabaseMigrationExecution as Ct, getUserConfig as D, QuerySchemaRow as Da, SortDirection as Di, SchemaBuilder as Dn, defineFactory as Do, AdapterCapability as Dr, RelationMetadataType as Ds, buildMigrationIdentity as Dt, getRuntimePrismaClient as E, QuerySchemaOrderBy as Ea, SoftDeleteQueryMode as Ei, Migration as En, ModelFactory as Eo, AdapterCapabilities as Er, RelationMetadata as Es, toModelName as Et, PRISMA_ENUM_MEMBER_REGEX as F, RuntimeClientLike as Fa, ArkormDebugEvent as Fi, MigrateFreshCommand as Fn, HasManyThroughRelation as Fo, AggregateOperation as Fr, PrimaryKeyGeneration as Fs, isMigrationApplied as Ft, applyOperationsToPrismaSchema as G, EagerLoadRelations as Ga, DelegateOrderBy as Gi, AttributeOptions as Gn, RelationColumnLookupSpec as Go, InsertManySpec as Gr, SchemaTableAlterOperation as Gs, PersistedColumnMappingsState as Gt, applyMigrationRollbackToPrismaSchema as H, TransactionOptions as Ha, DelegateCreateData as Hi, CliApp as Hn, RelationAggregateConstraint as Ho, DatabaseValue as Hr, SchemaIndex as Hs, supportsDatabaseMigrationState as Ht, PRISMA_ENUM_REGEX as I, Serializable as Ia, ArkormDebugHandler as Ii, MigrateCommand as In, HasManyRelation as Io, AggregateSelection as Ir, PrismaMigrationWorkflowOptions as Is, markMigrationApplied as It, buildIndexLine as J, QueryBuilder as Ja, DelegateSelect as Ji, RegisteredFactory as Jn, RelationDefaultValue as Jo, QueryComparisonCondition as Jr, SchemaUniqueConstraint as Js, PersistedTableMetadata as Jt, buildEnumBlock as K, JoinOn as Ka, DelegateRow as Ki, Arkorm as Kn, RelationConstraint as Ko, InsertSpec as Kr, SchemaTableCreateOperation as Ks, PersistedMetadataFeatures as Kt, PRISMA_MODEL_REGEX as L, SimplePaginationMeta as La, CastDefinition as Li, MakeSeederCommand as Ln, BelongsToRelation as Lo, AggregateSpec as Lr, PrismaSchemaSyncOptions as Ls, markMigrationRun as Lt, resetArkormRuntimeForTests as M, QuerySchemaUpdateData as Ma, AdapterQueryInspection as Mi, ModelsSyncCommand as Mn, MorphManyRelation as Mo, AdapterModelStructure as Mr, GeneratedMigrationFile as Ms, findAppliedMigration as Mt, runArkormTransaction as N, QuerySchemaWhere as Na, ArkormBootContext as Ni, MigrationHistoryCommand as Nn, HasOneThroughRelation as No, AdapterQueryOperation as Nr, MigrationClass as Ns, getLastMigrationRun as Nt, isDelegateLike as O, QuerySchemaRows as Oa, UpdateManySpec as Oi, EnumBuilder as On, SetBasedEagerLoader as Oo, AdapterDatabaseCreationResult as Or, AppliedMigrationEntry as Os, buildMigrationRunId as Ot, PrimaryKeyGenerationPlanner as P, RawSelectInput as Pa, ArkormConfig as Pi, MigrateRollbackCommand as Pn, HasOneRelation as Po, AdapterTransactionContext as Pr, MigrationInstanceLike as Ps, getLatestAppliedMigrations as Pt, buildPrimaryKeyLine as Q, AttributeQuerySchema as Qa, DelegateWhere as Qi, RuntimePathKey as Qn, RelationTableLookupSpec as Qo, QueryExistsCondition as Qr, deletePersistedColumnMappingsState as Qt, applyAlterTableOperation as R, SoftDeleteConfig as Ra, CastHandler as Ri, MakeModelCommand as Rn, SingleResultRelation as Ro, DatabaseAdapter as Rr, SchemaColumn as Rs, readAppliedMigrationsState as Rt, getRuntimeClient as S, PrismaTransactionOptions as Sa, RelationFilterSpec as Si, ArkormErrorContext as Sn, QuerySchemaForModelInstance as So, createPrismaCompatibilityAdapter as Sr, MorphOneRelationMetadata as Ss, supportsDatabaseCreation as St, getRuntimePaginationURLDriverFactory as T, QuerySchemaInclude as Ta, SelectSpec as Ti, MIGRATION_BRAND as Tn, InlineFactory as To, createKyselyAdapter as Tr, PivotModelStatic as Ts, toMigrationFileSlug as Tt, applyMigrationToDatabase as U, ModelStatic as Ua, DelegateFindManyArgs as Ui, resolveCast as Un, RelationAggregateInput as Uo, DeleteManySpec as Ur, SchemaOperation as Us, writeAppliedMigrationsState as Ut, applyMigrationRollbackToDatabase as V, TransactionContext as Va, ClientResolver as Vi, InitCommand as Vn, RelationTableLoader as Vo, DatabaseRows as Vr, SchemaForeignKeyAction as Vs, resolveMigrationStateFilePath as Vt, applyMigrationToPrismaSchema as W, RelationshipModelStatic as Wa, DelegateInclude as Wi, Attribute as Wn, RelationAggregateType as Wo, DeleteSpec as Wr, SchemaPrimaryKey as Ws, writeAppliedMigrationsStateToStore as Wt, buildMigrationSource as X, AttributeCreateInput as Xa, DelegateUpdateArgs as Xi, RuntimeConstructor as Xn, RelationResult as Xo, QueryCondition as Xr, TimestampNames as Xs, applyOperationsToPersistedColumnMappingsState as Xt, buildInverseRelationLine as Y, JoinClause as Ya, DelegateUniqueWhere as Yi, RegisteredModel as Yn, RelationMetadataProvider as Yo, QueryComparisonOperator as Yr, TimestampColumnBehavior as Ys, PersistedTimestampColumn as Yt, buildModelBlock as Z, AttributeOrderBy as Za, DelegateUpdateData as Zi, RuntimePathInput as Zn, RelationResultCache as Zo, QueryDayCondition as Zr, TimestampNaming as Zs, createEmptyPersistedColumnMappingsState as Zt, ensureArkormConfigLoading as _, PrismaLikeSortOrder as _a, QuerySelectColumn as _i, QueryExecutionException as _n, ModelRelationshipKey as _o, SeederCallArgument as _r, HasManyThroughRelationMetadata as _s, resolveMigrationClassName as _t, getRuntimeCompatibilityAdapter as a, PaginationCurrentPageResolver as aa, QueryJoinNestedConstraint as ai, readPersistedColumnMappingsState as an, ModelAttributeValue as ao, loadFactoriesFrom as ar, FactoryDefinition as as, deriveRelationFieldName as at, getDefaultStubsPath as b, PrismaTransactionCapableClient as ba, RawQuerySpec as bi, ModelNotFoundException as bn, ModelWhereInput as bo, PrismaDatabaseAdapter as br, ModelMetadata as bs, runPrismaCommand as bt, PrismaDelegateMap as c, PaginationURLDriver as ca, QueryJoinType as ci, resolveColumnMappingsFilePath as cn, ModelCreateData as co, loadSeedersFrom as cr, FactoryRelationshipResolver as cs, findEnumBlock as ct, inferDelegateName as d, PrismaDelegateLike as da, QueryJsonConditionKind as di, validatePersistedMetadataFeaturesForMigrations as dn, ModelEventHandler as do, registerModels as dr, DatabaseTableOptions as ds, formatEnumDefaultValue as dt, EagerLoadMap as ea, QueryGroupCondition as ei, getPersistedEnumMap as en, AttributeSelect as eo, getRegisteredFactories as er, Paginator as es, buildUniqueConstraintLine as et, awaitConfiguredModelsRegistration as f, PrismaFindManyArgsLike as fa, QueryLogicalOperator as fi, writePersistedColumnMappingsState as fn, ModelEventHandlerConstructor as fo, registerPaths as fr, DatabaseTablePersistedMetadataOptions as fs, formatRelationAction as ft, emitRuntimeDebugEvent as g, PrismaLikeSelect as ga, QueryScalarComparisonOperator as gi, RelationResolutionException as gn, ModelOrderByInput as go, Seeder as gr, HasManyRelationMetadata as gs, resolveEnumName as gt, defineConfig as h, PrismaLikeScalarFilter as ha, QueryRawCondition as hi, ScopeNotDefinedException as hn, ModelLifecycleState as ho, SEEDER_BRAND as hr, ColumnMap as hs, pad as ht, RuntimeModuleLoader as i, NamingCase as ia, QueryJoinConstraint as ii, getPersistedTimestampColumns as in, GlobalScope as io, getRegisteredSeeders as ir, FactoryCallback as is, deriveRelationAlias as it, loadArkormConfig as j, QuerySchemaUpdateArgs as ja, AdapterBindableModel as ji, SeedCommand as jn, MorphOneRelation as jo, AdapterModelIntrospectionOptions as jr, GenerateMigrationOptions as js, deleteAppliedMigrationsStateFromStore as jt, isQuerySchemaLike as k, QuerySchemaSelect as ka, UpdateSpec as ki, TableBuilder as kn, MorphToRelation as ko, AdapterInspectionRequest as kr, AppliedMigrationRun as ks, computeMigrationChecksum as kt, createPrismaAdapter as l, PaginationURLDriverFactory as la, QueryJoinValueConstraint as li, resolvePersistedMetadataFeatures as ln, ModelDeclaredAttributeKey as lo, registerFactories as lr, FactoryState as ls, findModelBlock as lt, configureArkormRuntime as m, PrismaLikeOrderBy as ma, QueryOrderBy as mi, UniqueConstraintResolutionException as mn, ModelEventName as mo, resetRuntimeRegistryForTests as mr, BelongsToRelationMetadata as ms, getMigrationPlan as mt, PivotModel as n, ModelQuerySchemaLike as na, QueryJoinBoolean as ni, getPersistedPrimaryKeyGeneration as nn, AttributeWhereInput as no, getRegisteredModels as nr, FactoryAttributeResolver as ns, deriveCollectionFieldName as nt, resolveRuntimeCompatibilityQuerySchema as o, PaginationMeta as oa, QueryJoinNullConstraint as oi, rebuildPersistedColumnMappingsState as on, ModelAttributes as oo, loadMigrationsFrom as or, FactoryDefinitionAttributes as os, deriveSingularFieldName as ot, bindAdapterToModels as p, PrismaLikeInclude as pa, QueryNotCondition as pi, UnsupportedAdapterFeatureException as pn, ModelEventListener as po, registerSeeders as pr, BelongsToManyRelationMetadata as ps, generateMigrationFile as pt, buildFieldLine as q, JoinSource as qa, DelegateRows as qi, Arkormx as qn, RelationDefaultResolver as qo, QueryColumnComparisonCondition as qr, SchemaTableDropOperation as qs, PersistedPrimaryKeyGeneration as qt, LoadedRuntimeModule as r, ModelTableCase as ra, QueryJoinColumnConstraint as ri, getPersistedTableMetadata as rn, DelegateForModelSchema as ro, getRegisteredPaths as rr, FactoryAttributes as rs, deriveInverseRelationAlias as rt, resolveRuntimeCompatibilityQuerySchemaOrThrow as s, PaginationOptions as sa, QueryJoinRawConstraint as si, resetPersistedColumnMappingsCache as sn, ModelAttributesOf as so, loadModelsFrom as sr, FactoryModelConstructor as ss, escapeRegex as st, URLDriver as t, GetUserConfig as ta, QueryJoin as ti, getPersistedEnumTsType as tn, AttributeUpdateInput as to, getRegisteredMigrations as tr, ArkormCollection as ts, createMigrationTimestamp as tt, createPrismaDelegateMap as u, PrismaClientLike as ua, QueryJsonCondition as ui, syncPersistedColumnMappingsFromState as un, ModelEventDispatcher as uo, registerMigrations as ur, MaybePromise as us, formatDefaultValue as ut, getActiveTransactionAdapter as v, PrismaLikeWhereInput as va, QueryTarget as vi, QueryExecutionExceptionContext as vn, ModelRelationshipResult as vo, SeederConstructor as vr, HasOneRelationMetadata as vs, resolvePrismaType as vt, getRuntimePaginationCurrentPageResolver as w, QuerySchemaFindManyArgs as wa, RelationLoadSpec as wi, DB as wn, Model as wo, KyselyDatabaseAdapter as wr, MorphToRelationMetadata as ws, supportsDatabaseReset as wt, getRuntimeAdapter as x, PrismaTransactionContext as xa, RelationAggregateSpec as xi, MissingDelegateException as xn, QuerySchemaForModel as xo, PrismaDelegateNameMapping as xr, MorphManyRelationMetadata as xs, stripPrismaSchemaModelsAndEnums as xt, getActiveTransactionClient as y, PrismaTransactionCallback as ya, QueryTimeCondition as yi, QueryConstraintException as yn, ModelUpdateData as yo, SeederInput as yr, HasOneThroughRelationMetadata as ys, runMigrationWithPrisma as yt, applyCreateTableOperation as z, TransactionCallback as za, CastMap as zi, MakeMigrationCommand as zn, BelongsToManyRelation as zo, DatabasePrimitive as zr, SchemaColumnType as zs, readAppliedMigrationsStateFromStore as zt };