arkormx 2.5.3 → 2.5.5

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.
@@ -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';
@@ -416,7 +416,190 @@ declare abstract class Relation<TModel> {
416
416
  * @param where
417
417
  * @returns
418
418
  */
419
- where(where: Parameters<QueryBuilder<TModel>['where']>[0]): this;
419
+ where(where: ModelWhereInput<TModel>): this;
420
+ /**
421
+ * Adds an OR where clause to the query.
422
+ *
423
+ * @param where
424
+ * @returns
425
+ */
426
+ orWhere(where: ModelWhereInput<TModel>): this;
427
+ /**
428
+ * Adds a NOT where clause to the query.
429
+ *
430
+ * @param where
431
+ * @returns
432
+ */
433
+ whereNot(where: ModelWhereInput<TModel>): this;
434
+ /**
435
+ * Adds an OR NOT where clause to the query.
436
+ *
437
+ * @param where
438
+ * @returns
439
+ */
440
+ orWhereNot(where: ModelWhereInput<TModel>): this;
441
+ /**
442
+ * Adds a null check for a key.
443
+ *
444
+ * @param key
445
+ * @returns
446
+ */
447
+ whereNull<TKey extends keyof ModelAttributes<TModel> & string>(key: TKey): this;
448
+ /**
449
+ * Adds a not-null check for a key.
450
+ *
451
+ * @param key
452
+ * @returns
453
+ */
454
+ whereNotNull<TKey extends keyof ModelAttributes<TModel> & string>(key: TKey): this;
455
+ /**
456
+ * Adds a between range clause for a key.
457
+ *
458
+ * @param key
459
+ * @param range
460
+ * @returns
461
+ */
462
+ whereBetween<TKey extends keyof ModelAttributes<TModel> & string>(key: TKey, range: [ModelAttributes<TModel>[TKey], ModelAttributes<TModel>[TKey]]): this;
463
+ /**
464
+ * Adds a date-only equality clause for a date-like key.
465
+ *
466
+ * @param key
467
+ * @param value
468
+ * @returns
469
+ */
470
+ whereDate<TKey extends keyof ModelAttributes<TModel> & string>(key: TKey, value: Date | string): this;
471
+ whereMonth<TKey extends keyof ModelAttributes<TModel> & string>(key: TKey, month: number, year?: number): this;
472
+ whereYear<TKey extends keyof ModelAttributes<TModel> & string>(key: TKey, year: number): this;
473
+ /**
474
+ * Adds a time clause for a date-like key.
475
+ *
476
+ * @param key
477
+ * @param value
478
+ * @returns
479
+ */
480
+ whereTime<TKey extends keyof ModelAttributes<TModel> & string>(key: TKey, value: Date | string): this;
481
+ /**
482
+ * Adds a time clause for a date-like key.
483
+ *
484
+ * @param key
485
+ * @param operator
486
+ * @param value
487
+ * @returns
488
+ */
489
+ whereTime<TKey extends keyof ModelAttributes<TModel> & string>(key: TKey, operator: QueryScalarComparisonOperator, value: Date | string): this;
490
+ /**
491
+ * Adds a day clause for a date-like key.
492
+ *
493
+ * @param key
494
+ * @param day
495
+ * @returns
496
+ */
497
+ whereDay<TKey extends keyof ModelAttributes<TModel> & string>(key: TKey, day: number): this;
498
+ /**
499
+ * Adds a day clause for a date-like key.
500
+ *
501
+ * @param key
502
+ * @param operator
503
+ * @param day
504
+ * @returns
505
+ */
506
+ whereDay<TKey extends keyof ModelAttributes<TModel> & string>(key: TKey, operator: QueryScalarComparisonOperator, day: number): this;
507
+ /**
508
+ * Adds clause to determine if a column's value is in the past
509
+ *
510
+ * @param key
511
+ * @returns
512
+ */
513
+ wherePast<TKey extends keyof ModelAttributes<TModel> & string>(key: TKey): this;
514
+ /**
515
+ * Adds clause to determine if a column's value is in the future
516
+ *
517
+ * @param key
518
+ * @returns
519
+ */
520
+ whereFuture<TKey extends keyof ModelAttributes<TModel> & string>(key: TKey): this;
521
+ /**
522
+ * Adds clause to determine if a column's value is in the past, inclusive of the current date and time
523
+ *
524
+ * @param key
525
+ * @returns
526
+ */
527
+ whereNowOrPast<TKey extends keyof ModelAttributes<TModel> & string>(key: TKey): this;
528
+ /**
529
+ * Adds clause to determine if a column's value is in the future, inclusive of the current date and time
530
+ *
531
+ * @param key
532
+ * @returns
533
+ */
534
+ whereNowOrFuture<TKey extends keyof ModelAttributes<TModel> & string>(key: TKey): this;
535
+ /**
536
+ * Adds clause to determine if a column's value is today
537
+ *
538
+ * @param key
539
+ * @returns
540
+ */
541
+ whereToday<TKey extends keyof ModelAttributes<TModel> & string>(key: TKey): this;
542
+ /**
543
+ * Adds clause to determine if a column's value is before today
544
+ *
545
+ * @param key
546
+ * @returns
547
+ */
548
+ whereBeforeToday<TKey extends keyof ModelAttributes<TModel> & string>(key: TKey): this;
549
+ /**
550
+ * Adds clause to determine if a column's value is after today
551
+ *
552
+ * @param key
553
+ * @returns
554
+ */
555
+ whereAfterToday<TKey extends keyof ModelAttributes<TModel> & string>(key: TKey): this;
556
+ /**
557
+ * Adds clause to determine if a column's value is today or before today
558
+ *
559
+ * @param key
560
+ * @returns
561
+ */
562
+ whereTodayOrBefore<TKey extends keyof ModelAttributes<TModel> & string>(key: TKey): this;
563
+ /**
564
+ * Adds clause to determine if a column's value is today or after today
565
+ *
566
+ * @param key
567
+ * @returns
568
+ */
569
+ whereTodayOrAfter<TKey extends keyof ModelAttributes<TModel> & string>(key: TKey): this;
570
+ /**
571
+ * Adds clause to verify that two columns are equal
572
+ *
573
+ * @param left
574
+ * @param right
575
+ */
576
+ whereColumn<TLeft extends keyof ModelAttributes<TModel> & string, TRight extends keyof ModelAttributes<TModel> & string>(left: TLeft, right: TRight): this;
577
+ /**
578
+ * Adds clause to verify that two columns are equal
579
+ *
580
+ * @param left
581
+ * @param operator
582
+ * @param right
583
+ */
584
+ whereColumn<TLeft extends keyof ModelAttributes<TModel> & string, TRight extends keyof ModelAttributes<TModel> & string>(left: TLeft, operator: QueryScalarComparisonOperator, right: TRight): this;
585
+ /**
586
+ * Adds "where exists" SQL clauses.
587
+ *
588
+ * @param queryOrCallback
589
+ * @returns
590
+ */
591
+ whereExists(queryOrCallback: QueryBuilder<any, any> | ((query: QueryBuilder<TModel>) => QueryBuilder<any, any> | void)): this;
592
+ /**
593
+ * Adds a fulltext clause for columns that have full text indexes.
594
+ *
595
+ * @param columns
596
+ * @param value
597
+ * @param options
598
+ * @returns
599
+ */
600
+ whereFullText<TKey extends keyof ModelAttributes<TModel> & string>(columns: TKey | TKey[], value: string, options?: {
601
+ language?: string;
602
+ }): this;
420
603
  /**
421
604
  * Add a strongly-typed where key clause to the relationship query.
422
605
  *
@@ -425,6 +608,14 @@ declare abstract class Relation<TModel> {
425
608
  * @returns
426
609
  */
427
610
  whereKey<TKey extends keyof ModelAttributes<TModel> & string>(key: TKey, value: ModelAttributes<TModel>[TKey]): this;
611
+ /**
612
+ * Adds a strongly-typed inequality where clause for a single attribute key.
613
+ *
614
+ * @param key
615
+ * @param value
616
+ * @returns
617
+ */
618
+ whereKeyNot<TKey extends keyof ModelAttributes<TModel> & string>(key: TKey, value: ModelAttributes<TModel>[TKey]): this;
428
619
  /**
429
620
  * Add a strongly-typed where in clause to the relationship query.
430
621
  *
@@ -433,6 +624,30 @@ declare abstract class Relation<TModel> {
433
624
  * @returns
434
625
  */
435
626
  whereIn<TKey extends keyof ModelAttributes<TModel> & string>(key: TKey, values: ModelAttributes<TModel>[TKey][]): this;
627
+ /**
628
+ * Adds a strongly-typed OR IN where clause for a single attribute key.
629
+ *
630
+ * @param key
631
+ * @param values
632
+ * @returns
633
+ */
634
+ orWhereIn<TKey extends keyof ModelAttributes<TModel> & string>(key: TKey, values: ModelAttributes<TModel>[TKey][]): this;
635
+ /**
636
+ * Adds a strongly-typed NOT IN where clause for a single attribute key.
637
+ *
638
+ * @param key
639
+ * @param values
640
+ * @returns
641
+ */
642
+ whereNotIn<TKey extends keyof ModelAttributes<TModel> & string>(key: TKey, values: ModelAttributes<TModel>[TKey][]): this;
643
+ /**
644
+ * Adds a strongly-typed OR NOT IN where clause for a single attribute key.
645
+ *
646
+ * @param key
647
+ * @param values
648
+ * @returns
649
+ */
650
+ orWhereNotIn<TKey extends keyof ModelAttributes<TModel> & string>(key: TKey, values: ModelAttributes<TModel>[TKey][]): this;
436
651
  /**
437
652
  * Add a string contains clause to the relationship query.
438
653
  *
@@ -463,28 +678,57 @@ declare abstract class Relation<TModel> {
463
678
  * @param orderBy
464
679
  * @returns
465
680
  */
466
- orderBy(orderBy: Parameters<QueryBuilder<TModel>['orderBy']>[0]): this;
681
+ orderBy(orderBy: ModelOrderByInput<TModel>): this;
682
+ /**
683
+ * Puts the query results in random order.
684
+ *
685
+ * @returns
686
+ */
687
+ inRandomOrder(): this;
688
+ /**
689
+ * Removes existing order clauses and optionally applies a new one.
690
+ *
691
+ * @param column
692
+ * @param direction
693
+ * @returns
694
+ */
695
+ reorder(column?: string, direction?: 'asc' | 'desc'): this;
696
+ /**
697
+ * Adds an orderBy descending clause for a timestamp-like column.
698
+ *
699
+ * @param column
700
+ * @returns
701
+ */
702
+ latest(column?: string): this;
703
+ /**
704
+ * Adds an orderBy ascending clause for a timestamp-like column.
705
+ *
706
+ * @param column
707
+ * @returns
708
+ */
709
+ oldest(column?: string): this;
467
710
  /**
468
711
  * Add an include clause to the relationship query.
469
712
  *
470
713
  * @param include
471
714
  * @returns
472
715
  */
473
- include(include: Parameters<QueryBuilder<TModel>['include']>[0]): this;
716
+ include(include: QuerySchemaInclude<QuerySchemaForModelInstance<TModel>>): this;
474
717
  /**
475
718
  * Add eager loading relations to the relationship query.
476
719
  *
477
720
  * @param relations
478
721
  * @returns
479
722
  */
480
- with(relations: Parameters<QueryBuilder<TModel>['with']>[0]): this;
723
+ with(relations: string | string[] | Record<string, true | EagerLoadConstraint | undefined>): this;
481
724
  /**
482
725
  * Add a select clause to the relationship query.
483
726
  *
484
727
  * @param select
485
728
  * @returns
486
729
  */
487
- select(select: Parameters<QueryBuilder<TModel>['select']>[0]): this;
730
+ select(select: QuerySchemaSelect<QuerySchemaForModelInstance<TModel>>): this;
731
+ addSelect(select: QuerySchemaSelect<QuerySchemaForModelInstance<TModel>>): this;
488
732
  /**
489
733
  * Add a skip clause to the relationship query.
490
734
  *
@@ -492,6 +736,7 @@ declare abstract class Relation<TModel> {
492
736
  * @returns
493
737
  */
494
738
  skip(skip: number): this;
739
+ offset(value: number): this;
495
740
  /**
496
741
  * Add a take clause to the relationship query.
497
742
  *
@@ -499,6 +744,37 @@ declare abstract class Relation<TModel> {
499
744
  * @returns
500
745
  */
501
746
  take(take: number): this;
747
+ /**
748
+ * Alias for take.
749
+ *
750
+ * @param value
751
+ * @returns
752
+ */
753
+ limit(value: number): this;
754
+ /**
755
+ * Sets offset/limit for a 1-based page.
756
+ *
757
+ * @param page
758
+ * @param perPage
759
+ * @returns
760
+ */
761
+ forPage(page: number, perPage?: number): this;
762
+ /**
763
+ * Adds a raw where clause when supported by the adapter.
764
+ *
765
+ * @param sql
766
+ * @param bindings
767
+ * @returns
768
+ */
769
+ whereRaw(sql: string, bindings?: unknown[]): this;
770
+ /**
771
+ * Adds a raw OR where clause when supported by the adapter.
772
+ *
773
+ * @param sql
774
+ * @param bindings
775
+ * @returns
776
+ */
777
+ orWhereRaw(sql: string, bindings?: unknown[]): this;
502
778
  /**
503
779
  * Include soft-deleted records in the relationship query.
504
780
  *
@@ -2446,9 +2722,14 @@ type AttributeSchemaDelegate<TAttributes extends Record<string, unknown>> = Attr
2446
2722
  */
2447
2723
  type DelegateForModelSchema<TSchema extends ModelQuerySchemaLike | Record<string, unknown> | string, TAttributes extends Record<string, unknown> = ModelAttributesOf<TSchema>> = QuerySchemaForModel<TSchema, TAttributes>;
2448
2724
  type ModelAttributesOf<TSchema extends ModelQuerySchemaLike | Record<string, unknown> | string> = TSchema extends ModelQuerySchemaLike ? QuerySchemaRow<TSchema> extends Record<string, unknown> ? QuerySchemaRow<TSchema> : Record<string, any> : TSchema extends string ? DelegateFromPrismaClient<TSchema> extends ModelQuerySchemaLike ? QuerySchemaRow<DelegateFromPrismaClient<TSchema>> extends Record<string, unknown> ? QuerySchemaRow<DelegateFromPrismaClient<TSchema>> : Record<string, any> : Record<string, any> : TSchema extends Record<string, unknown> ? TSchema : Record<string, any>;
2449
- type ModelAttributes<TModel> = TModel extends Model<any, infer TAttributes> ? TAttributes : Record<string, any>;
2450
2725
  type BaseModelInstance = Model<any, any>;
2451
2726
  type ModelDeclaredAttributeKey<TModel> = { [TKey in keyof TModel & string]: TKey extends keyof BaseModelInstance ? never : TModel[TKey] extends ((...args: any[]) => any) ? never : TKey }[keyof TModel & string];
2727
+ type ModelDeclaredAttributes<TModel> = { [TKey in ModelDeclaredAttributeKey<TModel>]: TModel[TKey] };
2728
+ type ResolveModelAttributes<TModel, TAttributes extends Record<string, unknown>> = [ModelDeclaredAttributeKey<TModel>] extends [never] ? TAttributes : string extends keyof TAttributes ? ModelDeclaredAttributes<TModel> : TAttributes & ModelDeclaredAttributes<TModel>;
2729
+ type ModelAttributes<TModel> = TModel extends Model<any, infer TAttributes> ? ResolveModelAttributes<TModel, TAttributes> : Record<string, any>;
2730
+ type QuerySchemaForModelInstance<TModel> = TModel extends Model<infer TSchema, infer TAttributes> ? TSchema extends ModelQuerySchemaLike | string ? QuerySchemaForModel<TSchema, TAttributes> : AttributeQuerySchema<ResolveModelAttributes<TModel, TAttributes>> : ModelQuerySchemaLike;
2731
+ type ModelWhereInput<TModel> = string extends keyof ModelAttributes<TModel> ? PrismaLikeWhereInput : AttributeWhereInput<ModelAttributes<TModel>>;
2732
+ type ModelOrderByInput<TModel> = string extends keyof ModelAttributes<TModel> ? PrismaLikeOrderBy : AttributeOrderBy<ModelAttributes<TModel>>;
2452
2733
  type RelationshipResultProvider<TResult = unknown> = {
2453
2734
  getResults: (...args: any[]) => Promise<TResult>;
2454
2735
  };
@@ -2580,6 +2861,136 @@ declare class QueryBuilder<TModel, TDelegate extends ModelQuerySchemaLike = Mode
2580
2861
  * @returns
2581
2862
  */
2582
2863
  whereYear<TKey extends keyof ModelAttributes<TModel> & string>(key: TKey, year: number): this;
2864
+ /**
2865
+ * Adds a time clause for a date-like key.
2866
+ *
2867
+ * @param key
2868
+ * @param value
2869
+ * @returns
2870
+ */
2871
+ whereTime<TKey extends keyof ModelAttributes<TModel> & string>(key: TKey, value: Date | string): this;
2872
+ /**
2873
+ * Adds a time clause for a date-like key.
2874
+ *
2875
+ * @param key
2876
+ * @param operator
2877
+ * @param value
2878
+ * @returns
2879
+ */
2880
+ whereTime<TKey extends keyof ModelAttributes<TModel> & string>(key: TKey, operator: QueryScalarComparisonOperator, value: Date | string): this;
2881
+ /**
2882
+ * Adds a day clause for a date-like key.
2883
+ *
2884
+ * @param key
2885
+ * @param day
2886
+ * @returns
2887
+ */
2888
+ whereDay<TKey extends keyof ModelAttributes<TModel> & string>(key: TKey, day: number): this;
2889
+ /**
2890
+ * Adds a day clause for a date-like key.
2891
+ *
2892
+ * @param key
2893
+ * @param operator
2894
+ * @param day
2895
+ * @returns
2896
+ */
2897
+ whereDay<TKey extends keyof ModelAttributes<TModel> & string>(key: TKey, operator: QueryScalarComparisonOperator, day: number): this;
2898
+ /**
2899
+ * Adds clause to determine if a column's value is in the past
2900
+ *
2901
+ * @param key
2902
+ * @returns
2903
+ */
2904
+ wherePast<TKey extends keyof ModelAttributes<TModel> & string>(key: TKey): this;
2905
+ /**
2906
+ * Adds clause to determine if a column's value is in the future
2907
+ *
2908
+ * @param key
2909
+ * @returns
2910
+ */
2911
+ whereFuture<TKey extends keyof ModelAttributes<TModel> & string>(key: TKey): this;
2912
+ /**
2913
+ * Adds clause to determine if a column's value is in the past, inclusive of the current date and time
2914
+ *
2915
+ * @param key
2916
+ * @returns
2917
+ */
2918
+ whereNowOrPast<TKey extends keyof ModelAttributes<TModel> & string>(key: TKey): this;
2919
+ /**
2920
+ * Adds clause to determine if a column's value is in the future, inclusive of the current date and time
2921
+ *
2922
+ * @param key
2923
+ * @returns
2924
+ */
2925
+ whereNowOrFuture<TKey extends keyof ModelAttributes<TModel> & string>(key: TKey): this;
2926
+ /**
2927
+ * Adds clause to determine if a column's value is today
2928
+ *
2929
+ * @param key
2930
+ * @returns
2931
+ */
2932
+ whereToday<TKey extends keyof ModelAttributes<TModel> & string>(key: TKey): this;
2933
+ /**
2934
+ * Adds clause to determine if a column's value is before today
2935
+ *
2936
+ * @param key
2937
+ * @returns
2938
+ */
2939
+ whereBeforeToday<TKey extends keyof ModelAttributes<TModel> & string>(key: TKey): this;
2940
+ /**
2941
+ * Adds clause to determine if a column's value is after today
2942
+ *
2943
+ * @param key
2944
+ * @returns
2945
+ */
2946
+ whereAfterToday<TKey extends keyof ModelAttributes<TModel> & string>(key: TKey): this;
2947
+ /**
2948
+ * Adds clause to determine if a column's value is today or before today
2949
+ *
2950
+ * @param key
2951
+ * @returns
2952
+ */
2953
+ whereTodayOrBefore<TKey extends keyof ModelAttributes<TModel> & string>(key: TKey): this;
2954
+ /**
2955
+ * Adds clause to determine if a column's value is today or after today
2956
+ *
2957
+ * @param key
2958
+ * @returns
2959
+ */
2960
+ whereTodayOrAfter<TKey extends keyof ModelAttributes<TModel> & string>(key: TKey): this;
2961
+ /**
2962
+ * Adds clause to verify that two columns are equal
2963
+ *
2964
+ * @param left
2965
+ * @param right
2966
+ */
2967
+ whereColumn<TLeft extends keyof ModelAttributes<TModel> & string, TRight extends keyof ModelAttributes<TModel> & string>(left: TLeft, right: TRight): this;
2968
+ /**
2969
+ * Adds clause to verify that two columns are equal
2970
+ *
2971
+ * @param left
2972
+ * @param operator
2973
+ * @param right
2974
+ */
2975
+ whereColumn<TLeft extends keyof ModelAttributes<TModel> & string, TRight extends keyof ModelAttributes<TModel> & string>(left: TLeft, operator: QueryScalarComparisonOperator, right: TRight): this;
2976
+ /**
2977
+ * Adds "where exists" SQL clauses.
2978
+ *
2979
+ * @param queryOrCallback
2980
+ * @returns
2981
+ */
2982
+ whereExists(queryOrCallback: QueryBuilder<any, any> | ((query: QueryBuilder<TModel, TDelegate>) => QueryBuilder<any, any> | void)): this;
2983
+ /**
2984
+ * Adds a fulltext clause for columns that have full text indexes.
2985
+ *
2986
+ * @param columns
2987
+ * @param value
2988
+ * @param options
2989
+ * @returns
2990
+ */
2991
+ whereFullText<TKey extends keyof ModelAttributes<TModel> & string>(columns: TKey | TKey[], value: string, options?: {
2992
+ language?: string;
2993
+ }): this;
2583
2994
  /**
2584
2995
  * Adds a strongly-typed inequality where clause for a single attribute key.
2585
2996
  *
@@ -2656,6 +3067,8 @@ declare class QueryBuilder<TModel, TDelegate extends ModelQuerySchemaLike = Mode
2656
3067
  private addLogicalWhere;
2657
3068
  private buildComparisonWhere;
2658
3069
  private coerceDate;
3070
+ private normalizeTimeValue;
3071
+ private getUtcDayBounds;
2659
3072
  /**
2660
3073
  * Adds a strongly-typed equality where clause for a single attribute key.
2661
3074
  *
@@ -3757,6 +4170,7 @@ type AdapterCapability = 'transactions' | 'returning' | 'insertMany' | 'upsert'
3757
4170
  type AdapterCapabilities = Partial<Record<AdapterCapability, boolean>>;
3758
4171
  type QueryLogicalOperator = 'and' | 'or';
3759
4172
  type QueryComparisonOperator = '=' | '!=' | '>' | '>=' | '<' | '<=' | 'in' | 'not-in' | 'contains' | 'starts-with' | 'ends-with' | 'is-null' | 'is-not-null';
4173
+ type QueryScalarComparisonOperator = '=' | '!=' | '>' | '>=' | '<' | '<=';
3760
4174
  type SortDirection = 'asc' | 'desc';
3761
4175
  type AggregateOperation = 'count' | 'exists' | 'sum' | 'avg' | 'min' | 'max';
3762
4176
  type SoftDeleteQueryMode = 'exclude' | 'include' | 'only';
@@ -3801,11 +4215,39 @@ interface QueryRawCondition {
3801
4215
  sql: string;
3802
4216
  bindings?: DatabaseValue[];
3803
4217
  }
4218
+ interface QueryColumnComparisonCondition {
4219
+ type: 'column-comparison';
4220
+ leftColumn: string;
4221
+ operator: QueryScalarComparisonOperator;
4222
+ rightColumn: string;
4223
+ }
4224
+ interface QueryTimeCondition {
4225
+ type: 'time';
4226
+ column: string;
4227
+ operator: QueryScalarComparisonOperator;
4228
+ value: string;
4229
+ }
4230
+ interface QueryDayCondition {
4231
+ type: 'day';
4232
+ column: string;
4233
+ operator: QueryScalarComparisonOperator;
4234
+ value: number;
4235
+ }
4236
+ interface QueryExistsCondition {
4237
+ type: 'exists';
4238
+ query: SelectSpec;
4239
+ }
4240
+ interface QueryFullTextCondition {
4241
+ type: 'full-text';
4242
+ columns: string[];
4243
+ value: string;
4244
+ language?: string;
4245
+ }
3804
4246
  interface RawQuerySpec {
3805
4247
  sql: string;
3806
4248
  bindings?: DatabaseValue[];
3807
4249
  }
3808
- type QueryCondition = QueryComparisonCondition | QueryGroupCondition | QueryNotCondition | QueryRawCondition;
4250
+ type QueryCondition = QueryComparisonCondition | QueryColumnComparisonCondition | QueryTimeCondition | QueryDayCondition | QueryExistsCondition | QueryFullTextCondition | QueryGroupCondition | QueryNotCondition | QueryRawCondition;
3809
4251
  interface AggregateSelection {
3810
4252
  type: AggregateOperation;
3811
4253
  column?: string;
@@ -4046,6 +4488,11 @@ declare class KyselyDatabaseAdapter implements DatabaseAdapter {
4046
4488
  private buildConditionValueList;
4047
4489
  private buildComparisonCondition;
4048
4490
  private buildRawWhereCondition;
4491
+ private buildColumnComparisonCondition;
4492
+ private buildTimeCondition;
4493
+ private buildDayCondition;
4494
+ private buildExistsCondition;
4495
+ private buildFullTextCondition;
4049
4496
  private buildWhereCondition;
4050
4497
  private buildWhereClause;
4051
4498
  private buildPaginationClause;
@@ -6277,4 +6724,4 @@ declare class URLDriver {
6277
6724
  url(page: number): string;
6278
6725
  }
6279
6726
  //#endregion
6280
- export { buildUniqueConstraintLine as $, Model as $a, PrismaLikeSortOrder as $i, getRegisteredFactories as $n, MorphToRelationMetadata as $o, QueryRawCondition as $r, getPersistedEnumMap as $t, loadArkormConfig as A, AttributeQuerySchema as Aa, DelegateSelect as Ai, SeedCommand as An, ArkormCollection as Ao, AdapterModelIntrospectionOptions as Ar, deleteAppliedMigrationsStateFromStore as At, applyMigrationRollbackToDatabase as B, ModelCreateData as Ba, NamingCase as Bi, InitCommand as Bn, DatabaseTableOptions as Bo, DatabaseRows as Br, resolveMigrationStateFilePath as Bt, getRuntimePaginationCurrentPageResolver as C, TransactionContext as Ca, ClientResolver as Ci, DB as Cn, RelationDefaultValue as Co, KyselyDatabaseAdapter as Cr, SchemaUniqueConstraint as Cs, supportsDatabaseReset as Ct, isDelegateLike as D, QueryBuilder as Da, DelegateOrderBy as Di, EnumBuilder as Dn, RelationTableLookupSpec as Do, AdapterDatabaseCreationResult as Dr, buildMigrationRunId as Dt, getUserConfig as E, RelationshipModelStatic as Ea, DelegateInclude as Ei, SchemaBuilder as En, RelationResultCache as Eo, AdapterCapability as Er, buildMigrationIdentity as Et, PRISMA_ENUM_REGEX as F, DelegateForModelSchema as Fa, EagerLoadConstraint as Fi, MigrateCommand as Fn, FactoryDefinitionAttributes as Fo, AggregateSelection as Fr, markMigrationApplied as Ft, buildEnumBlock as G, ModelEventListener as Ga, PaginationURLDriverFactory as Gi, Arkorm as Gn, HasManyRelationMetadata as Go, InsertSpec as Gr, PersistedMetadataFeatures as Gt, applyMigrationToDatabase as H, ModelEventDispatcher as Ha, PaginationMeta as Hi, resolveCast as Hn, BelongsToManyRelationMetadata as Ho, DeleteManySpec as Hr, writeAppliedMigrationsState as Ht, PRISMA_MODEL_REGEX as I, GlobalScope as Ia, EagerLoadMap as Ii, MakeSeederCommand as In, FactoryModelConstructor as Io, AggregateSpec as Ir, markMigrationRun as It, buildInverseRelationLine as J, ModelRelationshipKey as Ja, PrismaFindManyArgsLike as Ji, RegisteredModel as Jn, HasOneThroughRelationMetadata as Jo, QueryCondition as Jr, PersistedTimestampColumn as Jt, buildFieldLine as K, ModelEventName as Ka, PrismaClientLike as Ki, Arkormx as Kn, HasManyThroughRelationMetadata as Ko, QueryComparisonCondition as Kr, PersistedPrimaryKeyGeneration as Kt, applyAlterTableOperation as L, ModelAttributeValue as La, GetUserConfig as Li, MakeModelCommand as Ln, FactoryRelationshipResolver as Lo, DatabaseAdapter as Lr, readAppliedMigrationsState as Lt, runArkormTransaction as M, AttributeSelect as Ma, DelegateUpdateArgs as Mi, MigrationHistoryCommand as Mn, FactoryAttributes as Mo, AdapterQueryOperation as Mr, getLastMigrationRun as Mt, PrimaryKeyGenerationPlanner as N, AttributeUpdateInput as Na, DelegateUpdateData as Ni, MigrateRollbackCommand as Nn, FactoryCallback as No, AdapterTransactionContext as Nr, getLatestAppliedMigrations as Nt, isQuerySchemaLike as O, AttributeCreateInput as Oa, DelegateRow as Oi, TableBuilder as On, LengthAwarePaginator as Oo, AdapterInspectionRequest as Or, computeMigrationChecksum as Ot, PRISMA_ENUM_MEMBER_REGEX as P, AttributeWhereInput as Pa, DelegateWhere as Pi, MigrateFreshCommand as Pn, FactoryDefinition as Po, AggregateOperation as Pr, isMigrationApplied as Pt, buildRelationLine as Q, RelatedModelClass as Qa, PrismaLikeSelect as Qi, RuntimePathMap as Qn, MorphToManyRelationMetadata as Qo, QueryOrderBy as Qr, getPersistedColumnMap as Qt, applyCreateTableOperation as R, ModelAttributes as Ra, ModelQuerySchemaLike as Ri, MakeMigrationCommand as Rn, FactoryState as Ro, DatabasePrimitive as Rr, readAppliedMigrationsStateFromStore as Rt, getRuntimeDebugHandler as S, TransactionCapableClient as Sa, CastType as Si, ArkormException as Sn, RelationDefaultResolver as So, createPrismaDatabaseAdapter as Sr, SchemaTableDropOperation as Ss, supportsDatabaseMigrationExecution as St, getRuntimePrismaClient as T, ModelStatic as Ta, DelegateFindManyArgs as Ti, Migration as Tn, RelationResult as To, AdapterCapabilities as Tr, toModelName as Tt, applyMigrationToPrismaSchema as U, ModelEventHandler as Ua, PaginationOptions as Ui, Attribute as Un, BelongsToRelationMetadata as Uo, DeleteSpec as Ur, writeAppliedMigrationsStateToStore as Ut, applyMigrationRollbackToPrismaSchema as V, ModelDeclaredAttributeKey as Va, PaginationCurrentPageResolver as Vi, CliApp as Vn, DatabaseTablePersistedMetadataOptions as Vo, DatabaseValue as Vr, supportsDatabaseMigrationState as Vt, applyOperationsToPrismaSchema as W, ModelEventHandlerConstructor as Wa, PaginationURLDriver as Wi, AttributeOptions as Wn, ColumnMap as Wo, InsertManySpec as Wr, PersistedColumnMappingsState as Wt, buildModelBlock as X, ModelUpdateData as Xa, PrismaLikeOrderBy as Xi, RuntimePathInput as Xn, MorphManyRelationMetadata as Xo, QueryLogicalOperator as Xr, createEmptyPersistedColumnMappingsState as Xt, buildMigrationSource as Y, ModelRelationshipResult as Ya, PrismaLikeInclude as Yi, RuntimeConstructor as Yn, ModelMetadata as Yo, QueryGroupCondition as Yr, applyOperationsToPersistedColumnMappingsState as Yt, buildPrimaryKeyLine as Z, QuerySchemaForModel as Za, PrismaLikeScalarFilter as Zi, RuntimePathKey as Zn, MorphOneRelationMetadata as Zo, QueryNotCondition as Zr, deletePersistedColumnMappingsState as Zt, getActiveTransactionAdapter as _, RuntimeClientLike as _a, ArkormDebugEvent as _i, QueryExecutionExceptionContext as _n, RelationAggregateConstraint as _o, SeederConstructor as _r, SchemaIndex as _s, resolvePrismaType as _t, resolveRuntimeCompatibilityQuerySchema as a, QuerySchemaCreateData as aa, RelationLoadPlan as ai, rebuildPersistedColumnMappingsState as an, MorphToManyRelation as ao, loadMigrationsFrom as ar, AppliedMigrationsState as as, deriveSingularFieldName as at, getRuntimeAdapter as b, SoftDeleteConfig as ba, CastHandler as bi, MissingDelegateException as bn, RelationColumnLookupSpec as bo, PrismaDelegateNameMapping as br, SchemaTableAlterOperation as bs, stripPrismaSchemaModelsAndEnums as bt, createPrismaAdapter as c, QuerySchemaOrderBy as ca, SoftDeleteQueryMode as ci, resolvePersistedMetadataFeatures as cn, HasOneThroughRelation as co, registerFactories as cr, MigrationClass as cs, findModelBlock as ct, awaitConfiguredModelsRegistration as d, QuerySchemaSelect as da, UpdateSpec as di, writePersistedColumnMappingsState as dn, HasManyRelation as do, registerPaths as dr, PrismaMigrationWorkflowOptions as ds, formatRelationAction as dt, PrismaLikeWhereInput as ea, QuerySelectColumn as ei, getPersistedEnumTsType as en, InlineFactory as eo, getRegisteredMigrations as er, PivotModelStatic as es, createMigrationTimestamp as et, bindAdapterToModels as f, QuerySchemaUniqueWhere as fa, UpsertSpec as fi, UnsupportedAdapterFeatureException as fn, BelongsToRelation as fo, registerSeeders as fr, PrismaSchemaSyncOptions as fs, generateMigrationFile as ft, ensureArkormConfigLoading as g, RawSelectInput as ga, ArkormConfig as gi, QueryExecutionException as gn, RelationTableLoader as go, SeederCallArgument as gr, SchemaForeignKeyAction as gs, resolveMigrationClassName as gt, emitRuntimeDebugEvent as h, QuerySchemaWhere as ha, ArkormBootContext as hi, RelationResolutionException as hn, Relation as ho, Seeder as hr, SchemaForeignKey as hs, resolveEnumName as ht, getRuntimeCompatibilityAdapter as i, PrismaTransactionOptions as ia, RelationFilterSpec as ii, readPersistedColumnMappingsState as in, MorphToRelation as io, loadFactoriesFrom as ir, AppliedMigrationRun as is, deriveRelationFieldName as it, resetArkormRuntimeForTests as j, AttributeSchemaDelegate as ja, DelegateUniqueWhere as ji, ModelsSyncCommand as jn, FactoryAttributeResolver as jo, AdapterModelStructure as jr, findAppliedMigration as jt, isTransactionCapableClient as k, AttributeOrderBy as ka, DelegateRows as ki, ForeignKeyBuilder as kn, Paginator as ko, AdapterModelFieldStructure as kr, createEmptyAppliedMigrationsState as kt, createPrismaDelegateMap as l, QuerySchemaRow as la, SortDirection as li, syncPersistedColumnMappingsFromState as ln, HasOneRelation as lo, registerMigrations as lr, MigrationInstanceLike as ls, formatDefaultValue as lt, defineConfig as m, QuerySchemaUpdateData as ma, AdapterQueryInspection as mi, ScopeNotDefinedException as mn, BelongsToManyRelation as mo, SEEDER_BRAND as mr, SchemaColumnType as ms, pad as mt, PivotModel as n, PrismaTransactionCapableClient as na, RawQuerySpec as ni, getPersistedTableMetadata as nn, defineFactory as no, getRegisteredPaths as nr, RelationMetadataType as ns, deriveInverseRelationAlias as nt, resolveRuntimeCompatibilityQuerySchemaOrThrow as o, QuerySchemaFindManyArgs as oa, RelationLoadSpec as oi, resetPersistedColumnMappingsCache as on, MorphOneRelation as oo, loadModelsFrom as or, GenerateMigrationOptions as os, escapeRegex as ot, configureArkormRuntime as p, QuerySchemaUpdateArgs as pa, AdapterBindableModel as pi, UniqueConstraintResolutionException as pn, SingleResultRelation as po, resetRuntimeRegistryForTests as pr, SchemaColumn as ps, getMigrationPlan as pt, buildIndexLine as q, ModelLifecycleState as qa, PrismaDelegateLike as qi, RegisteredFactory as qn, HasOneRelationMetadata as qo, QueryComparisonOperator as qr, PersistedTableMetadata as qt, RuntimeModuleLoader as r, PrismaTransactionContext as ra, RelationAggregateSpec as ri, getPersistedTimestampColumns as rn, SetBasedEagerLoader as ro, getRegisteredSeeders as rr, AppliedMigrationEntry as rs, deriveRelationAlias as rt, PrismaDelegateMap as s, QuerySchemaInclude as sa, SelectSpec as si, resolveColumnMappingsFilePath as sn, MorphManyRelation as so, loadSeedersFrom as sr, GeneratedMigrationFile as ss, findEnumBlock as st, URLDriver as t, PrismaTransactionCallback as ta, QueryTarget as ti, getPersistedPrimaryKeyGeneration as tn, ModelFactory as to, getRegisteredModels as tr, RelationMetadata as ts, deriveCollectionFieldName as tt, inferDelegateName as u, QuerySchemaRows as ua, UpdateManySpec as ui, validatePersistedMetadataFeaturesForMigrations as un, HasManyThroughRelation as uo, registerModels as ur, PrimaryKeyGeneration as us, formatEnumDefaultValue as ut, getActiveTransactionClient as v, Serializable as va, ArkormDebugHandler as vi, QueryConstraintException as vn, RelationAggregateInput as vo, SeederInput as vr, SchemaOperation as vs, runMigrationWithPrisma as vt, getRuntimePaginationURLDriverFactory as w, TransactionOptions as wa, DelegateCreateData as wi, MIGRATION_BRAND as wn, RelationMetadataProvider as wo, createKyselyAdapter as wr, TimestampColumnBehavior as ws, toMigrationFileSlug as wt, getRuntimeClient as x, TransactionCallback as xa, CastMap as xi, ArkormErrorContext as xn, RelationConstraint as xo, createPrismaCompatibilityAdapter as xr, SchemaTableCreateOperation as xs, supportsDatabaseCreation as xt, getDefaultStubsPath as y, SimplePaginationMeta as ya, CastDefinition as yi, ModelNotFoundException as yn, RelationAggregateType as yo, PrismaDatabaseAdapter as yr, SchemaPrimaryKey as ys, runPrismaCommand as yt, applyDropTableOperation as z, ModelAttributesOf as za, ModelTableCase as zi, MakeFactoryCommand as zn, MaybePromise as zo, DatabaseRow as zr, removeAppliedMigration as zt };
6727
+ export { buildUniqueConstraintLine as $, ModelLifecycleState as $a, PrismaDelegateLike as $i, getRegisteredFactories as $n, ColumnMap as $o, QueryGroupCondition as $r, getPersistedEnumMap as $t, loadArkormConfig as A, TransactionOptions as Aa, DelegateCreateData as Ai, SeedCommand as An, RelationConstraint as Ao, AdapterModelIntrospectionOptions as Ar, SchemaTableCreateOperation as As, deleteAppliedMigrationsStateFromStore as At, applyMigrationRollbackToDatabase as B, AttributeWhereInput as Ba, DelegateWhere as Bi, InitCommand as Bn, FactoryAttributeResolver as Bo, DatabaseRows as Br, resolveMigrationStateFilePath as Bt, getRuntimePaginationCurrentPageResolver as C, RuntimeClientLike as Ca, ArkormDebugEvent as Ci, DB as Cn, BelongsToManyRelation as Co, KyselyDatabaseAdapter as Cr, SchemaColumnType as Cs, supportsDatabaseReset as Ct, isDelegateLike as D, TransactionCallback as Da, CastMap as Di, EnumBuilder as Dn, RelationAggregateInput as Do, AdapterDatabaseCreationResult as Dr, SchemaOperation as Ds, buildMigrationRunId as Dt, getUserConfig as E, SoftDeleteConfig as Ea, CastHandler as Ei, SchemaBuilder as En, RelationAggregateConstraint as Eo, AdapterCapability as Er, SchemaIndex as Es, buildMigrationIdentity as Et, PRISMA_ENUM_REGEX as F, AttributeOrderBy as Fa, DelegateRows as Fi, MigrateCommand as Fn, RelationResultCache as Fo, AggregateSelection as Fr, markMigrationApplied as Ft, buildEnumBlock as G, ModelAttributesOf as Ga, ModelTableCase as Gi, Arkorm as Gn, FactoryModelConstructor as Go, InsertSpec as Gr, PersistedMetadataFeatures as Gt, applyMigrationToDatabase as H, GlobalScope as Ha, EagerLoadMap as Hi, resolveCast as Hn, FactoryCallback as Ho, DeleteManySpec as Hr, writeAppliedMigrationsState as Ht, PRISMA_MODEL_REGEX as I, AttributeQuerySchema as Ia, DelegateSelect as Ii, MakeSeederCommand as In, RelationTableLookupSpec as Io, AggregateSpec as Ir, markMigrationRun as It, buildInverseRelationLine as J, ModelEventDispatcher as Ja, PaginationMeta as Ji, RegisteredModel as Jn, MaybePromise as Jo, QueryComparisonOperator as Jr, PersistedTimestampColumn as Jt, buildFieldLine as K, ModelCreateData as Ka, NamingCase as Ki, Arkormx as Kn, FactoryRelationshipResolver as Ko, QueryColumnComparisonCondition as Kr, PersistedPrimaryKeyGeneration as Kt, applyAlterTableOperation as L, AttributeSchemaDelegate as La, DelegateUniqueWhere as Li, MakeModelCommand as Ln, LengthAwarePaginator as Lo, DatabaseAdapter as Lr, readAppliedMigrationsState as Lt, runArkormTransaction as M, RelationshipModelStatic as Ma, DelegateInclude as Mi, MigrationHistoryCommand as Mn, RelationDefaultValue as Mo, AdapterQueryOperation as Mr, SchemaUniqueConstraint as Ms, getLastMigrationRun as Mt, PrimaryKeyGenerationPlanner as N, QueryBuilder as Na, DelegateOrderBy as Ni, MigrateRollbackCommand as Nn, RelationMetadataProvider as No, AdapterTransactionContext as Nr, TimestampColumnBehavior as Ns, getLatestAppliedMigrations as Nt, isQuerySchemaLike as O, TransactionCapableClient as Oa, CastType as Oi, TableBuilder as On, RelationAggregateType as Oo, AdapterInspectionRequest as Or, SchemaPrimaryKey as Os, computeMigrationChecksum as Ot, PRISMA_ENUM_MEMBER_REGEX as P, AttributeCreateInput as Pa, DelegateRow as Pi, MigrateFreshCommand as Pn, RelationResult as Po, AggregateOperation as Pr, isMigrationApplied as Pt, buildRelationLine as Q, ModelEventName as Qa, PrismaClientLike as Qi, RuntimePathMap as Qn, BelongsToRelationMetadata as Qo, QueryFullTextCondition as Qr, getPersistedColumnMap as Qt, applyCreateTableOperation as R, AttributeSelect as Ra, DelegateUpdateArgs as Ri, MakeMigrationCommand as Rn, Paginator as Ro, DatabasePrimitive as Rr, readAppliedMigrationsStateFromStore as Rt, getRuntimeDebugHandler as S, RawSelectInput as Sa, ArkormConfig as Si, ArkormException as Sn, SingleResultRelation as So, createPrismaDatabaseAdapter as Sr, SchemaColumn as Ss, supportsDatabaseMigrationExecution as St, getRuntimePrismaClient as T, SimplePaginationMeta as Ta, CastDefinition as Ti, Migration as Tn, RelationTableLoader as To, AdapterCapabilities as Tr, SchemaForeignKeyAction as Ts, toModelName as Tt, applyMigrationToPrismaSchema as U, ModelAttributeValue as Ua, GetUserConfig as Ui, Attribute as Un, FactoryDefinition as Uo, DeleteSpec as Ur, writeAppliedMigrationsStateToStore as Ut, applyMigrationRollbackToPrismaSchema as V, DelegateForModelSchema as Va, EagerLoadConstraint as Vi, CliApp as Vn, FactoryAttributes as Vo, DatabaseValue as Vr, supportsDatabaseMigrationState as Vt, applyOperationsToPrismaSchema as W, ModelAttributes as Wa, ModelQuerySchemaLike as Wi, AttributeOptions as Wn, FactoryDefinitionAttributes as Wo, InsertManySpec as Wr, PersistedColumnMappingsState as Wt, buildModelBlock as X, ModelEventHandlerConstructor as Xa, PaginationURLDriver as Xi, RuntimePathInput as Xn, DatabaseTablePersistedMetadataOptions as Xo, QueryDayCondition as Xr, createEmptyPersistedColumnMappingsState as Xt, buildMigrationSource as Y, ModelEventHandler as Ya, PaginationOptions as Yi, RuntimeConstructor as Yn, DatabaseTableOptions as Yo, QueryCondition as Yr, applyOperationsToPersistedColumnMappingsState as Yt, buildPrimaryKeyLine as Z, ModelEventListener as Za, PaginationURLDriverFactory as Zi, RuntimePathKey as Zn, BelongsToManyRelationMetadata as Zo, QueryExistsCondition as Zr, deletePersistedColumnMappingsState as Zt, getActiveTransactionAdapter as _, QuerySchemaSelect as _a, UpdateSpec as _i, QueryExecutionExceptionContext as _n, HasOneThroughRelation as _o, SeederConstructor as _r, MigrationClass as _s, resolvePrismaType as _t, resolveRuntimeCompatibilityQuerySchema as a, PrismaLikeSortOrder as aa, QuerySelectColumn as ai, rebuildPersistedColumnMappingsState as an, QuerySchemaForModel as ao, loadMigrationsFrom as ar, MorphManyRelationMetadata as as, deriveSingularFieldName as at, getRuntimeAdapter as b, QuerySchemaUpdateData as ba, AdapterQueryInspection as bi, MissingDelegateException as bn, HasManyRelation as bo, PrismaDelegateNameMapping as br, PrismaMigrationWorkflowOptions as bs, stripPrismaSchemaModelsAndEnums as bt, createPrismaAdapter as c, PrismaTransactionCapableClient as ca, RawQuerySpec as ci, resolvePersistedMetadataFeatures as cn, Model as co, registerFactories as cr, MorphToRelationMetadata as cs, findModelBlock as ct, awaitConfiguredModelsRegistration as d, QuerySchemaCreateData as da, RelationLoadPlan as di, writePersistedColumnMappingsState as dn, defineFactory as do, registerPaths as dr, RelationMetadataType as ds, formatRelationAction as dt, PrismaFindManyArgsLike as ea, QueryLogicalOperator as ei, getPersistedEnumTsType as en, ModelOrderByInput as eo, getRegisteredMigrations as er, HasManyRelationMetadata as es, createMigrationTimestamp as et, bindAdapterToModels as f, QuerySchemaFindManyArgs as fa, RelationLoadSpec as fi, UnsupportedAdapterFeatureException as fn, SetBasedEagerLoader as fo, registerSeeders as fr, AppliedMigrationEntry as fs, generateMigrationFile as ft, ensureArkormConfigLoading as g, QuerySchemaRows as ga, UpdateManySpec as gi, QueryExecutionException as gn, MorphManyRelation as go, SeederCallArgument as gr, GeneratedMigrationFile as gs, resolveMigrationClassName as gt, emitRuntimeDebugEvent as h, QuerySchemaRow as ha, SortDirection as hi, RelationResolutionException as hn, MorphOneRelation as ho, Seeder as hr, GenerateMigrationOptions as hs, resolveEnumName as ht, getRuntimeCompatibilityAdapter as i, PrismaLikeSelect as ia, QueryScalarComparisonOperator as ii, readPersistedColumnMappingsState as in, ModelWhereInput as io, loadFactoriesFrom as ir, ModelMetadata as is, deriveRelationFieldName as it, resetArkormRuntimeForTests as j, ModelStatic as ja, DelegateFindManyArgs as ji, ModelsSyncCommand as jn, RelationDefaultResolver as jo, AdapterModelStructure as jr, SchemaTableDropOperation as js, findAppliedMigration as jt, isTransactionCapableClient as k, TransactionContext as ka, ClientResolver as ki, ForeignKeyBuilder as kn, RelationColumnLookupSpec as ko, AdapterModelFieldStructure as kr, SchemaTableAlterOperation as ks, createEmptyAppliedMigrationsState as kt, createPrismaDelegateMap as l, PrismaTransactionContext as la, RelationAggregateSpec as li, syncPersistedColumnMappingsFromState as ln, InlineFactory as lo, registerMigrations as lr, PivotModelStatic as ls, formatDefaultValue as lt, defineConfig as m, QuerySchemaOrderBy as ma, SoftDeleteQueryMode as mi, ScopeNotDefinedException as mn, MorphToManyRelation as mo, SEEDER_BRAND as mr, AppliedMigrationsState as ms, pad as mt, PivotModel as n, PrismaLikeOrderBy as na, QueryOrderBy as ni, getPersistedTableMetadata as nn, ModelRelationshipResult as no, getRegisteredPaths as nr, HasOneRelationMetadata as ns, deriveInverseRelationAlias as nt, resolveRuntimeCompatibilityQuerySchemaOrThrow as o, PrismaLikeWhereInput as oa, QueryTarget as oi, resetPersistedColumnMappingsCache as on, QuerySchemaForModelInstance as oo, loadModelsFrom as or, MorphOneRelationMetadata as os, escapeRegex as ot, configureArkormRuntime as p, QuerySchemaInclude as pa, SelectSpec as pi, UniqueConstraintResolutionException as pn, MorphToRelation as po, resetRuntimeRegistryForTests as pr, AppliedMigrationRun as ps, getMigrationPlan as pt, buildIndexLine as q, ModelDeclaredAttributeKey as qa, PaginationCurrentPageResolver as qi, RegisteredFactory as qn, FactoryState as qo, QueryComparisonCondition as qr, PersistedTableMetadata as qt, RuntimeModuleLoader as r, PrismaLikeScalarFilter as ra, QueryRawCondition as ri, getPersistedTimestampColumns as rn, ModelUpdateData as ro, getRegisteredSeeders as rr, HasOneThroughRelationMetadata as rs, deriveRelationAlias as rt, PrismaDelegateMap as s, PrismaTransactionCallback as sa, QueryTimeCondition as si, resolveColumnMappingsFilePath as sn, RelatedModelClass as so, loadSeedersFrom as sr, MorphToManyRelationMetadata as ss, findEnumBlock as st, URLDriver as t, PrismaLikeInclude as ta, QueryNotCondition as ti, getPersistedPrimaryKeyGeneration as tn, ModelRelationshipKey as to, getRegisteredModels as tr, HasManyThroughRelationMetadata as ts, deriveCollectionFieldName as tt, inferDelegateName as u, PrismaTransactionOptions as ua, RelationFilterSpec as ui, validatePersistedMetadataFeaturesForMigrations as un, ModelFactory as uo, registerModels as ur, RelationMetadata as us, formatEnumDefaultValue as ut, getActiveTransactionClient as v, QuerySchemaUniqueWhere as va, UpsertSpec as vi, QueryConstraintException as vn, HasOneRelation as vo, SeederInput as vr, MigrationInstanceLike as vs, runMigrationWithPrisma as vt, getRuntimePaginationURLDriverFactory as w, Serializable as wa, ArkormDebugHandler as wi, MIGRATION_BRAND as wn, Relation as wo, createKyselyAdapter as wr, SchemaForeignKey as ws, toMigrationFileSlug as wt, getRuntimeClient as x, QuerySchemaWhere as xa, ArkormBootContext as xi, ArkormErrorContext as xn, BelongsToRelation as xo, createPrismaCompatibilityAdapter as xr, PrismaSchemaSyncOptions as xs, supportsDatabaseCreation as xt, getDefaultStubsPath as y, QuerySchemaUpdateArgs as ya, AdapterBindableModel as yi, ModelNotFoundException as yn, HasManyThroughRelation as yo, PrismaDatabaseAdapter as yr, PrimaryKeyGeneration as ys, runPrismaCommand as yt, applyDropTableOperation as z, AttributeUpdateInput as za, DelegateUpdateData as zi, MakeFactoryCommand as zn, ArkormCollection as zo, DatabaseRow as zr, removeAppliedMigration as zt };