arkormx 2.11.4 → 2.11.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{index-D7VO5UgJ.d.mts → index-DI1Hid1L.d.cts} +59 -8
- package/dist/{index-DeVBgYm9.d.cts → index-DYNvPnqx.d.mts} +59 -8
- package/dist/index.cjs +101 -21
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +101 -21
- 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-Bds4OCOY.cjs → relationship-2fnJrK_E.cjs} +18 -0
- package/dist/{relationship-BJbmLMNN.mjs → relationship-DwQfiCEZ.mjs} +18 -0
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Collection } from "@h3ravel/collect.js";
|
|
2
1
|
import { Kysely, Transaction } from "kysely";
|
|
3
|
-
import { Command } from "@h3ravel/musket";
|
|
4
2
|
import { PrismaClient } from "@prisma/client";
|
|
3
|
+
import { Collection } from "@h3ravel/collect.js";
|
|
4
|
+
import { Command } from "@h3ravel/musket";
|
|
5
5
|
|
|
6
6
|
//#region src/types/migrations.d.ts
|
|
7
7
|
type SchemaColumnType = 'id' | 'uuid' | 'enum' | 'string' | 'text' | 'integer' | 'bigInteger' | 'float' | 'decimal' | 'boolean' | 'json' | 'date' | 'dateTime' | 'timestamp';
|
|
@@ -1446,6 +1446,7 @@ declare class BelongsToManyRelation<TParent, TRelated> extends Relation<TRelated
|
|
|
1446
1446
|
private pivotWhere;
|
|
1447
1447
|
private pivotModel;
|
|
1448
1448
|
private shouldAttachPivot;
|
|
1449
|
+
private readonly pivotValues;
|
|
1449
1450
|
constructor(parent: TParent & {
|
|
1450
1451
|
getAttribute: (key: string) => unknown;
|
|
1451
1452
|
}, related: RelationshipModelStatic, throughTable: string, foreignPivotKey: string, relatedPivotKey: string, parentKey: string, relatedKey: string);
|
|
@@ -1474,6 +1475,21 @@ declare class BelongsToManyRelation<TParent, TRelated> extends Relation<TRelated
|
|
|
1474
1475
|
* @returns The current instance of the relationship.
|
|
1475
1476
|
*/
|
|
1476
1477
|
as(accessor: string): this;
|
|
1478
|
+
/**
|
|
1479
|
+
* Constrains the relationship to pivot rows where the given column equals the
|
|
1480
|
+
* given value, and uses that value as the default for the column whenever a new
|
|
1481
|
+
* pivot row is created through this relationship (`attach`/`create`/`save`/`sync`).
|
|
1482
|
+
*
|
|
1483
|
+
* Combine forms are supported: pass a single `column`/`value`, or an object of
|
|
1484
|
+
* `{ column: value }` pairs.
|
|
1485
|
+
*
|
|
1486
|
+
* @param column The pivot column, or a map of pivot columns to values.
|
|
1487
|
+
* @param value The fixed value when `column` is a string.
|
|
1488
|
+
* @returns
|
|
1489
|
+
*/
|
|
1490
|
+
withPivotValue(column: string, value: unknown): this;
|
|
1491
|
+
withPivotValue(values: Record<string, unknown>): this;
|
|
1492
|
+
private applyPivotValue;
|
|
1477
1493
|
/**
|
|
1478
1494
|
* Specifies a custom pivot model to use for the pivot records. The pivot model can
|
|
1479
1495
|
* be used to define custom behavior or methods on the pivot records, as well as to
|
|
@@ -2579,6 +2595,7 @@ declare abstract class Model<TSchema extends ModelQuerySchemaLike | Record<strin
|
|
|
2579
2595
|
private static readonly lifecycleStates;
|
|
2580
2596
|
private static readonly castMapCache;
|
|
2581
2597
|
private static readonly computedCache;
|
|
2598
|
+
private static readonly attributeAccessorCache;
|
|
2582
2599
|
private static readonly emittedDeprecationWarnings;
|
|
2583
2600
|
private static eventsSuppressed;
|
|
2584
2601
|
protected static factoryClass?: new () => ModelFactory<any, any>;
|
|
@@ -3294,6 +3311,16 @@ declare abstract class Model<TSchema extends ModelQuerySchemaLike | Record<strin
|
|
|
3294
3311
|
* @returns
|
|
3295
3312
|
*/
|
|
3296
3313
|
private resolveAttributeMutator;
|
|
3314
|
+
private static resolveAttributeAccessorCache;
|
|
3315
|
+
/**
|
|
3316
|
+
* Whether `key` names a model attribute — a loaded attribute, an appended
|
|
3317
|
+
* accessor, a cast, or a mapped column. Gates Attribute-object accessor probing
|
|
3318
|
+
* on the read path so relations/actions are never invoked by property access.
|
|
3319
|
+
*
|
|
3320
|
+
* @param key
|
|
3321
|
+
* @returns
|
|
3322
|
+
*/
|
|
3323
|
+
private isDeclaredAttributeKey;
|
|
3297
3324
|
/**
|
|
3298
3325
|
* Resolve a set mutator method for a given attribute key, if it exists.
|
|
3299
3326
|
*
|
|
@@ -3512,6 +3539,10 @@ type ExpressionSelectMap = Record<string, Expression | boolean | string>;
|
|
|
3512
3539
|
type ChunkCallback<TModel> = (models: ArkormCollection<TModel>, page: number) => unknown | Promise<unknown>;
|
|
3513
3540
|
/** Callback invoked with each record during `each`/`eachById`; return `false` to stop. */
|
|
3514
3541
|
type EachCallback<TModel> = (model: TModel, index: number) => unknown | Promise<unknown>;
|
|
3542
|
+
/** A model attribute name usable as a positional `where` column (autocompletes). */
|
|
3543
|
+
type WhereColumn<TModel> = keyof ModelAttributes<TModel> & string;
|
|
3544
|
+
/** Comparison operators accepted by the positional `where()` form (plus SQL aliases). */
|
|
3545
|
+
type WhereComparisonOperator = QueryComparisonOperator | '<>' | '==';
|
|
3515
3546
|
/** Map of model attributes selected for an aggregate (`{ amount: true }`). */
|
|
3516
3547
|
type AggregateColumnMap<TModel> = Partial<Record<keyof ModelAttributes<TModel> & string, true>>;
|
|
3517
3548
|
/**
|
|
@@ -3585,19 +3616,24 @@ declare class QueryBuilder<TModel, TDelegate extends ModelQuerySchemaLike = Mode
|
|
|
3585
3616
|
constructor(model: ModelStatic<TModel, TDelegate>, adapter?: DatabaseAdapter | undefined);
|
|
3586
3617
|
private resolvePaginationPage;
|
|
3587
3618
|
/**
|
|
3588
|
-
* Adds a where clause to the query. Multiple calls
|
|
3589
|
-
* the clauses with AND logic.
|
|
3619
|
+
* Adds a where clause to the query. Multiple calls combine with AND logic.
|
|
3590
3620
|
*
|
|
3591
|
-
*
|
|
3592
|
-
*
|
|
3593
|
-
* `(
|
|
3621
|
+
* Accepts several forms:
|
|
3622
|
+
* - an attribute object: `where({ status: 'active' })` (columns autocomplete);
|
|
3623
|
+
* - positional: `where('age', '>=', 18)` or `where('status', 'active')`;
|
|
3624
|
+
* - a unary operator: `where('deletedAt', 'is-null')`;
|
|
3625
|
+
* - a boolean {@link Expression}; or
|
|
3626
|
+
* - a callback for a parenthesized group, e.g.
|
|
3627
|
+
* `where(query => query.where('a', 1).orWhere('b', 2))` → `(... or ...)`.
|
|
3594
3628
|
*
|
|
3595
|
-
* @param where
|
|
3596
3629
|
* @returns
|
|
3597
3630
|
*/
|
|
3631
|
+
where(where: ModelWhereInput<TModel>): this;
|
|
3598
3632
|
where(where: QuerySchemaWhere<TDelegate>): this;
|
|
3599
3633
|
where(callback: WhereCallback<TModel, TDelegate>): this;
|
|
3600
3634
|
where(expression: Expression): this;
|
|
3635
|
+
where(column: WhereColumn<TModel>, value: DatabaseValue): this;
|
|
3636
|
+
where(column: WhereColumn<TModel>, operator: WhereComparisonOperator, value?: DatabaseValue | DatabaseValue[]): this;
|
|
3601
3637
|
/**
|
|
3602
3638
|
* Adds an OR where clause to the query. Pass a callback to build a
|
|
3603
3639
|
* parenthesized group of nested conditions.
|
|
@@ -3605,9 +3641,24 @@ declare class QueryBuilder<TModel, TDelegate extends ModelQuerySchemaLike = Mode
|
|
|
3605
3641
|
* @param where
|
|
3606
3642
|
* @returns
|
|
3607
3643
|
*/
|
|
3644
|
+
orWhere(where: ModelWhereInput<TModel>): this;
|
|
3608
3645
|
orWhere(where: QuerySchemaWhere<TDelegate>): this;
|
|
3609
3646
|
orWhere(callback: WhereCallback<TModel, TDelegate>): this;
|
|
3610
3647
|
orWhere(expression: Expression): this;
|
|
3648
|
+
orWhere(column: WhereColumn<TModel>, value: DatabaseValue): this;
|
|
3649
|
+
orWhere(column: WhereColumn<TModel>, operator: WhereComparisonOperator, value?: DatabaseValue | DatabaseValue[]): this;
|
|
3650
|
+
/**
|
|
3651
|
+
* Resolves the positional `where(column, value)`, `where(column, operator, value)`,
|
|
3652
|
+
* and unary `where(column, 'is-null' | 'is-not-null')` forms into a comparison
|
|
3653
|
+
* condition and appends it.
|
|
3654
|
+
*/
|
|
3655
|
+
private addPositionalWhere;
|
|
3656
|
+
private normalizeWhereOperator;
|
|
3657
|
+
/**
|
|
3658
|
+
* Appends a pre-built structured condition, first flushing any Prisma-like
|
|
3659
|
+
* legacy where into the structured representation so the two combine correctly.
|
|
3660
|
+
*/
|
|
3661
|
+
private appendStructuredWhere;
|
|
3611
3662
|
/**
|
|
3612
3663
|
* Appends a boolean {@link Expression} as a where predicate. When the query is
|
|
3613
3664
|
* using the Prisma-like legacy where representation, the expression is merged in
|
|
@@ -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' | 'decimal' | 'boolean' | 'json' | 'date' | 'dateTime' | 'timestamp';
|
|
@@ -1446,6 +1446,7 @@ declare class BelongsToManyRelation<TParent, TRelated> extends Relation<TRelated
|
|
|
1446
1446
|
private pivotWhere;
|
|
1447
1447
|
private pivotModel;
|
|
1448
1448
|
private shouldAttachPivot;
|
|
1449
|
+
private readonly pivotValues;
|
|
1449
1450
|
constructor(parent: TParent & {
|
|
1450
1451
|
getAttribute: (key: string) => unknown;
|
|
1451
1452
|
}, related: RelationshipModelStatic, throughTable: string, foreignPivotKey: string, relatedPivotKey: string, parentKey: string, relatedKey: string);
|
|
@@ -1474,6 +1475,21 @@ declare class BelongsToManyRelation<TParent, TRelated> extends Relation<TRelated
|
|
|
1474
1475
|
* @returns The current instance of the relationship.
|
|
1475
1476
|
*/
|
|
1476
1477
|
as(accessor: string): this;
|
|
1478
|
+
/**
|
|
1479
|
+
* Constrains the relationship to pivot rows where the given column equals the
|
|
1480
|
+
* given value, and uses that value as the default for the column whenever a new
|
|
1481
|
+
* pivot row is created through this relationship (`attach`/`create`/`save`/`sync`).
|
|
1482
|
+
*
|
|
1483
|
+
* Combine forms are supported: pass a single `column`/`value`, or an object of
|
|
1484
|
+
* `{ column: value }` pairs.
|
|
1485
|
+
*
|
|
1486
|
+
* @param column The pivot column, or a map of pivot columns to values.
|
|
1487
|
+
* @param value The fixed value when `column` is a string.
|
|
1488
|
+
* @returns
|
|
1489
|
+
*/
|
|
1490
|
+
withPivotValue(column: string, value: unknown): this;
|
|
1491
|
+
withPivotValue(values: Record<string, unknown>): this;
|
|
1492
|
+
private applyPivotValue;
|
|
1477
1493
|
/**
|
|
1478
1494
|
* Specifies a custom pivot model to use for the pivot records. The pivot model can
|
|
1479
1495
|
* be used to define custom behavior or methods on the pivot records, as well as to
|
|
@@ -2579,6 +2595,7 @@ declare abstract class Model<TSchema extends ModelQuerySchemaLike | Record<strin
|
|
|
2579
2595
|
private static readonly lifecycleStates;
|
|
2580
2596
|
private static readonly castMapCache;
|
|
2581
2597
|
private static readonly computedCache;
|
|
2598
|
+
private static readonly attributeAccessorCache;
|
|
2582
2599
|
private static readonly emittedDeprecationWarnings;
|
|
2583
2600
|
private static eventsSuppressed;
|
|
2584
2601
|
protected static factoryClass?: new () => ModelFactory<any, any>;
|
|
@@ -3294,6 +3311,16 @@ declare abstract class Model<TSchema extends ModelQuerySchemaLike | Record<strin
|
|
|
3294
3311
|
* @returns
|
|
3295
3312
|
*/
|
|
3296
3313
|
private resolveAttributeMutator;
|
|
3314
|
+
private static resolveAttributeAccessorCache;
|
|
3315
|
+
/**
|
|
3316
|
+
* Whether `key` names a model attribute — a loaded attribute, an appended
|
|
3317
|
+
* accessor, a cast, or a mapped column. Gates Attribute-object accessor probing
|
|
3318
|
+
* on the read path so relations/actions are never invoked by property access.
|
|
3319
|
+
*
|
|
3320
|
+
* @param key
|
|
3321
|
+
* @returns
|
|
3322
|
+
*/
|
|
3323
|
+
private isDeclaredAttributeKey;
|
|
3297
3324
|
/**
|
|
3298
3325
|
* Resolve a set mutator method for a given attribute key, if it exists.
|
|
3299
3326
|
*
|
|
@@ -3512,6 +3539,10 @@ type ExpressionSelectMap = Record<string, Expression | boolean | string>;
|
|
|
3512
3539
|
type ChunkCallback<TModel> = (models: ArkormCollection<TModel>, page: number) => unknown | Promise<unknown>;
|
|
3513
3540
|
/** Callback invoked with each record during `each`/`eachById`; return `false` to stop. */
|
|
3514
3541
|
type EachCallback<TModel> = (model: TModel, index: number) => unknown | Promise<unknown>;
|
|
3542
|
+
/** A model attribute name usable as a positional `where` column (autocompletes). */
|
|
3543
|
+
type WhereColumn<TModel> = keyof ModelAttributes<TModel> & string;
|
|
3544
|
+
/** Comparison operators accepted by the positional `where()` form (plus SQL aliases). */
|
|
3545
|
+
type WhereComparisonOperator = QueryComparisonOperator | '<>' | '==';
|
|
3515
3546
|
/** Map of model attributes selected for an aggregate (`{ amount: true }`). */
|
|
3516
3547
|
type AggregateColumnMap<TModel> = Partial<Record<keyof ModelAttributes<TModel> & string, true>>;
|
|
3517
3548
|
/**
|
|
@@ -3585,19 +3616,24 @@ declare class QueryBuilder<TModel, TDelegate extends ModelQuerySchemaLike = Mode
|
|
|
3585
3616
|
constructor(model: ModelStatic<TModel, TDelegate>, adapter?: DatabaseAdapter | undefined);
|
|
3586
3617
|
private resolvePaginationPage;
|
|
3587
3618
|
/**
|
|
3588
|
-
* Adds a where clause to the query. Multiple calls
|
|
3589
|
-
* the clauses with AND logic.
|
|
3619
|
+
* Adds a where clause to the query. Multiple calls combine with AND logic.
|
|
3590
3620
|
*
|
|
3591
|
-
*
|
|
3592
|
-
*
|
|
3593
|
-
* `(
|
|
3621
|
+
* Accepts several forms:
|
|
3622
|
+
* - an attribute object: `where({ status: 'active' })` (columns autocomplete);
|
|
3623
|
+
* - positional: `where('age', '>=', 18)` or `where('status', 'active')`;
|
|
3624
|
+
* - a unary operator: `where('deletedAt', 'is-null')`;
|
|
3625
|
+
* - a boolean {@link Expression}; or
|
|
3626
|
+
* - a callback for a parenthesized group, e.g.
|
|
3627
|
+
* `where(query => query.where('a', 1).orWhere('b', 2))` → `(... or ...)`.
|
|
3594
3628
|
*
|
|
3595
|
-
* @param where
|
|
3596
3629
|
* @returns
|
|
3597
3630
|
*/
|
|
3631
|
+
where(where: ModelWhereInput<TModel>): this;
|
|
3598
3632
|
where(where: QuerySchemaWhere<TDelegate>): this;
|
|
3599
3633
|
where(callback: WhereCallback<TModel, TDelegate>): this;
|
|
3600
3634
|
where(expression: Expression): this;
|
|
3635
|
+
where(column: WhereColumn<TModel>, value: DatabaseValue): this;
|
|
3636
|
+
where(column: WhereColumn<TModel>, operator: WhereComparisonOperator, value?: DatabaseValue | DatabaseValue[]): this;
|
|
3601
3637
|
/**
|
|
3602
3638
|
* Adds an OR where clause to the query. Pass a callback to build a
|
|
3603
3639
|
* parenthesized group of nested conditions.
|
|
@@ -3605,9 +3641,24 @@ declare class QueryBuilder<TModel, TDelegate extends ModelQuerySchemaLike = Mode
|
|
|
3605
3641
|
* @param where
|
|
3606
3642
|
* @returns
|
|
3607
3643
|
*/
|
|
3644
|
+
orWhere(where: ModelWhereInput<TModel>): this;
|
|
3608
3645
|
orWhere(where: QuerySchemaWhere<TDelegate>): this;
|
|
3609
3646
|
orWhere(callback: WhereCallback<TModel, TDelegate>): this;
|
|
3610
3647
|
orWhere(expression: Expression): this;
|
|
3648
|
+
orWhere(column: WhereColumn<TModel>, value: DatabaseValue): this;
|
|
3649
|
+
orWhere(column: WhereColumn<TModel>, operator: WhereComparisonOperator, value?: DatabaseValue | DatabaseValue[]): this;
|
|
3650
|
+
/**
|
|
3651
|
+
* Resolves the positional `where(column, value)`, `where(column, operator, value)`,
|
|
3652
|
+
* and unary `where(column, 'is-null' | 'is-not-null')` forms into a comparison
|
|
3653
|
+
* condition and appends it.
|
|
3654
|
+
*/
|
|
3655
|
+
private addPositionalWhere;
|
|
3656
|
+
private normalizeWhereOperator;
|
|
3657
|
+
/**
|
|
3658
|
+
* Appends a pre-built structured condition, first flushing any Prisma-like
|
|
3659
|
+
* legacy where into the structured representation so the two combine correctly.
|
|
3660
|
+
*/
|
|
3661
|
+
private appendStructuredWhere;
|
|
3611
3662
|
/**
|
|
3612
3663
|
* Appends a boolean {@link Expression} as a where predicate. When the query is
|
|
3613
3664
|
* using the Prisma-like legacy where representation, the expression is merged in
|
package/dist/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_relationship = require('./relationship-
|
|
2
|
+
const require_relationship = require('./relationship-2fnJrK_E.cjs');
|
|
3
3
|
let pg = require("pg");
|
|
4
4
|
let node_path = require("node:path");
|
|
5
5
|
let module$1 = require("module");
|
|
@@ -4744,15 +4744,62 @@ var QueryBuilder = class QueryBuilder {
|
|
|
4744
4744
|
if (typeof resolvedPage !== "number" || !Number.isFinite(resolvedPage)) return 1;
|
|
4745
4745
|
return Math.max(1, resolvedPage);
|
|
4746
4746
|
}
|
|
4747
|
-
where(
|
|
4748
|
-
if (
|
|
4749
|
-
if (typeof
|
|
4750
|
-
return this.
|
|
4747
|
+
where(columnOrWhere, operatorOrValue, value) {
|
|
4748
|
+
if (columnOrWhere instanceof require_relationship.Expression) return this.appendExpressionCondition("AND", columnOrWhere);
|
|
4749
|
+
if (typeof columnOrWhere === "function") return this.appendNestedWhere("AND", columnOrWhere);
|
|
4750
|
+
if (typeof columnOrWhere === "string") return this.addPositionalWhere("AND", columnOrWhere, arguments.length, operatorOrValue, value);
|
|
4751
|
+
return this.addLogicalWhere("AND", columnOrWhere);
|
|
4752
|
+
}
|
|
4753
|
+
orWhere(columnOrWhere, operatorOrValue, value) {
|
|
4754
|
+
if (columnOrWhere instanceof require_relationship.Expression) return this.appendExpressionCondition("OR", columnOrWhere);
|
|
4755
|
+
if (typeof columnOrWhere === "function") return this.appendNestedWhere("OR", columnOrWhere);
|
|
4756
|
+
if (typeof columnOrWhere === "string") return this.addPositionalWhere("OR", columnOrWhere, arguments.length, operatorOrValue, value);
|
|
4757
|
+
return this.addLogicalWhere("OR", columnOrWhere);
|
|
4758
|
+
}
|
|
4759
|
+
/**
|
|
4760
|
+
* Resolves the positional `where(column, value)`, `where(column, operator, value)`,
|
|
4761
|
+
* and unary `where(column, 'is-null' | 'is-not-null')` forms into a comparison
|
|
4762
|
+
* condition and appends it.
|
|
4763
|
+
*/
|
|
4764
|
+
addPositionalWhere(boolean, column, argCount, operatorOrValue, value) {
|
|
4765
|
+
const unaryOperators = new Set(["is-null", "is-not-null"]);
|
|
4766
|
+
let operator;
|
|
4767
|
+
let resolvedValue;
|
|
4768
|
+
if (argCount >= 3) {
|
|
4769
|
+
operator = this.normalizeWhereOperator(operatorOrValue);
|
|
4770
|
+
resolvedValue = value;
|
|
4771
|
+
} else if (typeof operatorOrValue === "string" && unaryOperators.has(operatorOrValue)) {
|
|
4772
|
+
operator = operatorOrValue;
|
|
4773
|
+
resolvedValue = void 0;
|
|
4774
|
+
} else {
|
|
4775
|
+
operator = "=";
|
|
4776
|
+
resolvedValue = operatorOrValue;
|
|
4777
|
+
}
|
|
4778
|
+
const condition = {
|
|
4779
|
+
type: "comparison",
|
|
4780
|
+
column,
|
|
4781
|
+
operator,
|
|
4782
|
+
value: resolvedValue
|
|
4783
|
+
};
|
|
4784
|
+
return this.appendStructuredWhere(boolean, condition);
|
|
4751
4785
|
}
|
|
4752
|
-
|
|
4753
|
-
if (
|
|
4754
|
-
if (
|
|
4755
|
-
return
|
|
4786
|
+
normalizeWhereOperator(operator) {
|
|
4787
|
+
if (operator === "<>") return "!=";
|
|
4788
|
+
if (operator === "==") return "=";
|
|
4789
|
+
return operator;
|
|
4790
|
+
}
|
|
4791
|
+
/**
|
|
4792
|
+
* Appends a pre-built structured condition, first flushing any Prisma-like
|
|
4793
|
+
* legacy where into the structured representation so the two combine correctly.
|
|
4794
|
+
*/
|
|
4795
|
+
appendStructuredWhere(boolean, condition) {
|
|
4796
|
+
if (this.legacyWhere) {
|
|
4797
|
+
const existing = this.tryBuildQueryCondition(this.legacyWhere);
|
|
4798
|
+
this.legacyWhere = void 0;
|
|
4799
|
+
if (existing) this.queryWhere = existing;
|
|
4800
|
+
}
|
|
4801
|
+
this.appendQueryCondition(boolean, condition);
|
|
4802
|
+
return this;
|
|
4756
4803
|
}
|
|
4757
4804
|
/**
|
|
4758
4805
|
* Appends a boolean {@link Expression} as a where predicate. When the query is
|
|
@@ -4764,13 +4811,7 @@ var QueryBuilder = class QueryBuilder {
|
|
|
4764
4811
|
type: "expression",
|
|
4765
4812
|
expression: expression.toExpressionNode()
|
|
4766
4813
|
};
|
|
4767
|
-
|
|
4768
|
-
const existing = this.tryBuildQueryCondition(this.legacyWhere);
|
|
4769
|
-
this.legacyWhere = void 0;
|
|
4770
|
-
if (existing) this.queryWhere = existing;
|
|
4771
|
-
}
|
|
4772
|
-
this.appendQueryCondition(boolean, condition);
|
|
4773
|
-
return this;
|
|
4814
|
+
return this.appendStructuredWhere(boolean, condition);
|
|
4774
4815
|
}
|
|
4775
4816
|
/**
|
|
4776
4817
|
* Resolve a callback into a parenthesized group condition and append it.
|
|
@@ -8376,6 +8417,9 @@ var Model = class Model {
|
|
|
8376
8417
|
static {
|
|
8377
8418
|
this.computedCache = /* @__PURE__ */ new WeakMap();
|
|
8378
8419
|
}
|
|
8420
|
+
static {
|
|
8421
|
+
this.attributeAccessorCache = /* @__PURE__ */ new WeakMap();
|
|
8422
|
+
}
|
|
8379
8423
|
static {
|
|
8380
8424
|
this.emittedDeprecationWarnings = /* @__PURE__ */ new Set();
|
|
8381
8425
|
}
|
|
@@ -8419,7 +8463,7 @@ var Model = class Model {
|
|
|
8419
8463
|
return new Proxy(this, {
|
|
8420
8464
|
get: (target, key, receiver) => {
|
|
8421
8465
|
if (typeof key !== "string") return Reflect.get(target, key, receiver);
|
|
8422
|
-
const attributeMutator = target.resolveAttributeMutator(key);
|
|
8466
|
+
const attributeMutator = target.resolveAttributeMutator(key, true);
|
|
8423
8467
|
if (key in target && !attributeMutator) return Reflect.get(target, key, receiver);
|
|
8424
8468
|
return target.getAttribute(key);
|
|
8425
8469
|
},
|
|
@@ -8977,7 +9021,7 @@ var Model = class Model {
|
|
|
8977
9021
|
return await this.fill(attributes).saveOrFail();
|
|
8978
9022
|
}
|
|
8979
9023
|
getAttribute(key) {
|
|
8980
|
-
const attributeMutator = this.resolveAttributeMutator(key);
|
|
9024
|
+
const attributeMutator = this.resolveAttributeMutator(key, true);
|
|
8981
9025
|
const mutator = this.resolveGetMutator(key);
|
|
8982
9026
|
const cast = this.casts[key];
|
|
8983
9027
|
let value = this.attributes[key];
|
|
@@ -9571,7 +9615,7 @@ var Model = class Model {
|
|
|
9571
9615
|
* @param key
|
|
9572
9616
|
* @returns
|
|
9573
9617
|
*/
|
|
9574
|
-
resolveAttributeMutator(key) {
|
|
9618
|
+
resolveAttributeMutator(key, requireDeclaredAttribute = false) {
|
|
9575
9619
|
if (key === "constructor") return null;
|
|
9576
9620
|
const methodName = `${(0, _h3ravel_support.str)(key).camel()}`;
|
|
9577
9621
|
const prototype = Object.getPrototypeOf(this);
|
|
@@ -9579,9 +9623,45 @@ var Model = class Model {
|
|
|
9579
9623
|
const method = prototype[methodName];
|
|
9580
9624
|
if (typeof method !== "function") return null;
|
|
9581
9625
|
if (method === Model.prototype[methodName]) return null;
|
|
9626
|
+
if (method.length !== 0) return null;
|
|
9627
|
+
if (requireDeclaredAttribute && !this.isDeclaredAttributeKey(key)) return null;
|
|
9628
|
+
const cache = Model.resolveAttributeAccessorCache(this.constructor);
|
|
9629
|
+
let isAccessor = cache.get(methodName);
|
|
9630
|
+
if (isAccessor === void 0) {
|
|
9631
|
+
const probe = method.call(this);
|
|
9632
|
+
isAccessor = Attribute.isAttribute(probe);
|
|
9633
|
+
cache.set(methodName, isAccessor);
|
|
9634
|
+
if (isAccessor) return probe;
|
|
9635
|
+
}
|
|
9636
|
+
if (!isAccessor) return null;
|
|
9582
9637
|
const resolved = method.call(this);
|
|
9583
|
-
|
|
9584
|
-
|
|
9638
|
+
return Attribute.isAttribute(resolved) ? resolved : null;
|
|
9639
|
+
}
|
|
9640
|
+
static resolveAttributeAccessorCache(constructor) {
|
|
9641
|
+
let cache = Model.attributeAccessorCache.get(constructor);
|
|
9642
|
+
if (!cache) {
|
|
9643
|
+
cache = /* @__PURE__ */ new Map();
|
|
9644
|
+
Model.attributeAccessorCache.set(constructor, cache);
|
|
9645
|
+
}
|
|
9646
|
+
return cache;
|
|
9647
|
+
}
|
|
9648
|
+
/**
|
|
9649
|
+
* Whether `key` names a model attribute — a loaded attribute, an appended
|
|
9650
|
+
* accessor, a cast, or a mapped column. Gates Attribute-object accessor probing
|
|
9651
|
+
* on the read path so relations/actions are never invoked by property access.
|
|
9652
|
+
*
|
|
9653
|
+
* @param key
|
|
9654
|
+
* @returns
|
|
9655
|
+
*/
|
|
9656
|
+
isDeclaredAttributeKey(key) {
|
|
9657
|
+
if (Object.prototype.hasOwnProperty.call(this.attributes, key)) return true;
|
|
9658
|
+
if (Array.isArray(this.appends) && this.appends.includes(key)) return true;
|
|
9659
|
+
if (this.casts && Object.prototype.hasOwnProperty.call(this.casts, key)) return true;
|
|
9660
|
+
try {
|
|
9661
|
+
const columns = this.constructor.getColumnMap();
|
|
9662
|
+
if (columns && Object.prototype.hasOwnProperty.call(columns, key)) return true;
|
|
9663
|
+
} catch {}
|
|
9664
|
+
return false;
|
|
9585
9665
|
}
|
|
9586
9666
|
/**
|
|
9587
9667
|
* Resolve a set mutator method for a given attribute key, if it exists.
|
package/dist/index.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as buildPrimaryKeyLine, $a as RelationshipModelStatic, $i as DelegateInclude, $n as Arkorm, $o as val, $r as InsertSpec, $s as ExpressionBinaryOperator, $t as PersistedTimestampColumn, A as isQuerySchemaLike, Aa as PrismaTransactionContext, Ac as MigrationClass, Ai as RelationAggregateSpec, An as Migration, Ao as ModelWhereInput, Ar as createPrismaDatabaseAdapter, As as JoinOn, At as buildMigrationIdentity, B as applyCreateTableOperation, Ba as QuerySchemaUpdateArgs, Bc as SchemaOperation, Bi as AdapterBindableModel, Bn as MigrateRollbackCommand, Bo as avg, Br as AdapterQueryOperation, Bs as FactoryAttributes, Bt as markMigrationApplied, C as getRuntimeClient, Ca as PrismaLikeOrderBy, Cc as RelationMetadata, Ci as QueryOrderBy, Cn as QueryConstraintException, Co as ModelEventListener, Cr as Seeder, Cs as RelationDefaultResolver, Ct as supportsDatabaseCreation, D as getRuntimePrismaClient, Da as PrismaLikeWhereInput, Dc as AppliedMigrationsState, Di as QueryTarget, Dn as ArkormException, Do as ModelRelationshipKey, Dr as PrismaDatabaseAdapter, Ds as RelationResultCache, Dt as toModelName, E as getRuntimePaginationURLDriverFactory, Ea as PrismaLikeSortOrder, Ec as AppliedMigrationRun, Ei as QuerySelectColumn, En as ArkormErrorContext, Eo as ModelOrderByInput, Er as SeederInput, Es as RelationResult, Et as toMigrationFileSlug, F as PrimaryKeyGenerationPlanner, Fa as QuerySchemaOrderBy, Fc as SchemaColumn, Fi as SoftDeleteQueryMode, Fn as resolveGeneratedExpression, Fo as AggregateExpression, Fr as AdapterDatabaseCreationResult, Fs as JoinClause, Ft as findAppliedMigration, G as applyMigrationToPrismaSchema, Ga as Serializable, Gc as SchemaUniqueConstraint, Gi as ArkormDebugHandler, Gn as MakeMigrationCommand, Go as expressionBuilder, Gr as DatabaseAdapter, Gs as FactoryRelationshipResolver, Gt as resolveMigrationStateFilePath, H as applyMigrationRollbackToDatabase, Ha as QuerySchemaWhere, Hc as SchemaTableAlterOperation, Hi as ArkormBootContext, Hn as MigrateCommand, Ho as coalesce, Hr as AggregateOperation, Hs as FactoryDefinition, Ht as readAppliedMigrationsState, I as PRISMA_ENUM_MEMBER_REGEX, Ia as QuerySchemaRow, Ic as SchemaColumnType, Ii as SortDirection, In as ForeignKeyBuilder, Io as CaseExpression, Ir as AdapterInspectionRequest, Is as LengthAwarePaginator, It as getLastBatchMigrations, J as buildFieldLine, Ja as TransactionCallback, Jc as TimestampNaming, Ji as CastMap, Jn as DbCommand, Jo as json, Jr as DatabaseRows, Js as AggregateExpressionNode, Jt as writeAppliedMigrationsStateToStore, K as applyOperationsToPrismaSchema, Ka as SimplePaginationMeta, Kc as TimestampColumnBehavior, Ki as CastDefinition, Kn as MakeFactoryCommand, Ko as fn, Kr as DatabasePrimitive, Ks as FactoryState, Kt as supportsDatabaseMigrationState, L as PRISMA_ENUM_REGEX, La as QuerySchemaRows, Lc as SchemaForeignKey, Li as UpdateManySpec, Ln as SeedCommand, Lo as Expression, Lr as AdapterModelFieldStructure, Ls as Paginator, Lt as getLastMigrationRun, M as loadArkormConfig, Ma as QuerySchemaCreateData, Mc as PrimaryKeyGeneration, Mi as RelationLoadPlan, Mn as EnumBuilder, Mo as QuerySchemaForModelInstance, Mr as createKyselyAdapter, Ms as RelatedModelForRelationship, Mt as computeMigrationChecksum, N as resetArkormRuntimeForTests, Na as QuerySchemaFindManyArgs, Nc as PrismaMigrationWorkflowOptions, Ni as RelationLoadSpec, Nn as TableBuilder, No as RelatedModelClass, Nr as AdapterCapabilities, Ns as RelatedModelFromResult, Nt as createEmptyAppliedMigrationsState, O as getUserConfig, Oa as PrismaTransactionCallback, Oc as GenerateMigrationOptions, Oi as QueryTimeCondition, On as DB, Oo as ModelRelationshipResult, Or as PrismaDelegateNameMapping, Os as RelationTableLookupSpec, Ot as isMigrationPlanningActive, P as runArkormTransaction, Pa as QuerySchemaInclude, Pc as PrismaSchemaSyncOptions, Pi as SelectSpec, Pn as GeneratedColumnExpression, Po as Model, Pr as AdapterCapability, Ps as WhereCallback, Pt as deleteAppliedMigrationsStateFromStore, Q as buildModelBlock, Qa as ModelStatic, Qi as DelegateFindManyArgs, Qn as AttributeOptions, Qo as sum, Qr as InsertManySpec, Qs as ColumnExpressionNode, Qt as PersistedTableMetadata, R as PRISMA_MODEL_REGEX, Ra as QuerySchemaSelect, Rc as SchemaForeignKeyAction, Ri as UpdateSpec, Rn as ModelsSyncCommand, Ro as ExpressionBuilder, Rr as AdapterModelIntrospectionOptions, Rs as ArkormCollection, Rt as getLatestAppliedMigrations, S as getRuntimeAdapter, Sa as PrismaLikeInclude, Sc as PivotModelStatic, Si as QueryNotCondition, Sn as QueryExecutionExceptionContext, So as ModelEventHandlerConstructor, Sr as SEEDER_BRAND, Ss as RelationConstraint, St as stripPrismaSchemaModelsAndEnums, T as getRuntimePaginationCurrentPageResolver, Ta as PrismaLikeSelect, Tc as AppliedMigrationEntry, Ti as QueryScalarComparisonOperator, Tn as MissingDelegateException, To as ModelLifecycleState, Tr as SeederConstructor, Ts as RelationMetadataProvider, Tt as supportsDatabaseReset, U as applyMigrationRollbackToPrismaSchema, Ua as RawSelectInput, Uc as SchemaTableCreateOperation, Ui as ArkormConfig, Un as MakeSeederCommand, Uo as col, Ur as AggregateSelection, Us as FactoryDefinitionAttributes, Ut as readAppliedMigrationsStateFromStore, V as applyDropTableOperation, Va as QuerySchemaUpdateData, Vc as SchemaPrimaryKey, Vi as AdapterQueryInspection, Vn as MigrateFreshCommand, Vo as caseWhen, Vr as AdapterTransactionContext, Vs as FactoryCallback, Vt as markMigrationRun, W as applyMigrationToDatabase, Wa as RuntimeClientLike, Wc as SchemaTableDropOperation, Wi as ArkormDebugEvent, Wn as MakeModelCommand, Wo as count, Wr as AggregateSpec, Ws as FactoryModelConstructor, Wt as removeAppliedMigration, X as buildInverseRelationLine, Xa as TransactionContext, Xi as ClientResolver, Xn as resolveCast, Xo as min, Xr as DeleteManySpec, Xs as CaseExpressionBranch, Xt as PersistedMetadataFeatures, Y as buildIndexLine, Ya as TransactionCapableClient, Yi as CastType, Yn as CliApp, Yo as max, Yr as DatabaseValue, Ys as BinaryExpressionNode, Yt as PersistedColumnMappingsState, Z as buildMigrationSource, Za as TransactionOptions, Zi as DelegateCreateData, Zn as Attribute, Zo as raw, Zr as DeleteSpec, Zs as CaseExpressionNode, Zt as PersistedPrimaryKeyGeneration, _ as emitRuntimeDebugEvent, _a as PaginationURLDriver, _c as ModelMetadata, _i as QueryJoinType, _n as UnsupportedAdapterFeatureException, _o as ModelAttributesOf, _r as registerMigrations, _t as resolveEnumName, a as getRuntimeCompatibilityAdapter, aa as DelegateUpdateArgs, ac as NullCheckExpressionNode, ai as QueryExistsCondition, an as getPersistedEnumTsType, ao as QueryBuilder, ar as RuntimePathKey, at as deriveRelationAlias, b as getActiveTransactionClient, ba as PrismaDelegateLike, bc as MorphToManyRelationMetadata, bi as QueryJsonConditionKind, bn as RelationResolutionException, bo as ModelEventDispatcher, br as registerSeeders, bs as RelationAggregateType, bt as runMigrationWithPrisma, c as PrismaDelegateMap, ca as EagerLoadConstraint, cc as DatabaseTableOptions, ci as QueryGroupByItem, cn as getPersistedTimestampColumns, co as AttributeQuerySchema, cr as getRegisteredMigrations, ct as escapeRegex, d as inferDelegateName, da as ModelQuerySchemaLike, dc as BelongsToRelationMetadata, di as QueryJoinBoolean, dn as resetPersistedColumnMappingsCache, do as AttributeUpdateInput, dr as getRegisteredSeeders, dt as formatDefaultValue, ea as DelegateOrderBy, ec as ExpressionJsonCast, ei as QueryColumnComparisonCondition, en as applyOperationsToPersistedColumnMappingsState, eo as ChunkCallback, er as Arkormx, es as where, et as buildRelationLine, f as awaitConfiguredModelsRegistration, fa as ModelTableCase, fc as ColumnMap, fi as QueryJoinColumnConstraint, fn as resolveColumnMappingsFilePath, fo as AttributeWhereInput, fr as loadFactoriesFrom, ft as formatEnumDefaultValue, g as disposeArkormRuntime, ga as PaginationOptions, gc as HasOneThroughRelationMetadata, gi as QueryJoinRawConstraint, gn as writePersistedColumnMappingsState, go as ModelAttributes, gr as registerFactories, gt as pad, h as defineConfig, ha as PaginationMeta, hc as HasOneRelationMetadata, hi as QueryJoinNullConstraint, hn as validatePersistedMetadataFeaturesForMigrations, ho as ModelAttributeValue, hr as loadSeedersFrom, ht as getMigrationPlan, i as RuntimeModuleLoader, ia as DelegateUniqueWhere, ic as JsonExpressionNode, ii as QueryDayCondition, in as getPersistedEnumMap, io as GroupByAggregateSpec, ir as RuntimePathInput, it as deriveInverseRelationAlias, j as isTransactionCapableClient, ja as PrismaTransactionOptions, jc as MigrationInstanceLike, ji as RelationFilterSpec, jn as SchemaBuilder, jo as QuerySchemaForModel, jr as KyselyDatabaseAdapter, js as JoinSource, jt as buildMigrationRunId, k as isDelegateLike, ka as PrismaTransactionCapableClient, kc as GeneratedMigrationFile, ki as RawQuerySpec, kn as MIGRATION_BRAND, ko as ModelUpdateData, kr as createPrismaCompatibilityAdapter, ks as EagerLoadRelations, kt as runInMigrationPlanning, l as createPrismaAdapter, la as EagerLoadMap, lc as DatabaseTablePersistedMetadataOptions, li as QueryGroupCondition, ln as readPersistedColumnMappingsState, lo as AttributeSchemaDelegate, lr as getRegisteredModels, lt as findEnumBlock, m as configureArkormRuntime, ma as PaginationCurrentPageResolver, mc as HasManyThroughRelationMetadata, mi as QueryJoinNestedConstraint, mn as syncPersistedColumnMappingsFromState, mo as GlobalScope, mr as loadModelsFrom, mt as generateMigrationFile, n as PivotModel, na as DelegateRows, nc as FunctionExpressionNode, ni as QueryComparisonOperator, nn as deletePersistedColumnMappingsState, no as ExpressionSelectMap, nr as RegisteredModel, ns as ModelFactory, nt as createMigrationTimestamp, o as resolveRuntimeCompatibilityQuerySchema, oa as DelegateUpdateData, oc as RawExpressionNode, oi as QueryExpressionCondition, on as getPersistedPrimaryKeyGeneration, oo as AttributeCreateInput, or as RuntimePathMap, ot as deriveRelationFieldName, p as bindAdapterToModels, pa as NamingCase, pc as HasManyRelationMetadata, pi as QueryJoinConstraint, pn as resolvePersistedMetadataFeatures, po as DelegateForModelSchema, pr as loadMigrationsFrom, pt as formatRelationAction, q as buildEnumBlock, qa as SoftDeleteConfig, qc as TimestampNames, qi as CastHandler, qn as InitCommand, qo as fromExpressionNode, qr as DatabaseRow, qs as MaybePromise, qt as writeAppliedMigrationsState, r as LoadedRuntimeModule, ra as DelegateSelect, rc as InExpressionNode, ri as QueryCondition, rn as getPersistedColumnMap, ro as GroupByAggregateRow, rr as RuntimeConstructor, rs as defineFactory, rt as deriveCollectionFieldName, s as resolveRuntimeCompatibilityQuerySchemaOrThrow, sa as DelegateWhere, sc as ValueExpressionNode, si as QueryFullTextCondition, sn as getPersistedTableMetadata, so as AttributeOrderBy, sr as getRegisteredFactories, st as deriveSingularFieldName, t as URLDriver, ta as DelegateRow, tc as ExpressionNode, ti as QueryComparisonCondition, tn as createEmptyPersistedColumnMappingsState, to as EachCallback, tr as RegisteredFactory, ts as InlineFactory, tt as buildUniqueConstraintLine, u as createPrismaDelegateMap, ua as GetUserConfig, uc as BelongsToManyRelationMetadata, ui as QueryJoin, un as rebuildPersistedColumnMappingsState, uo as AttributeSelect, ur as getRegisteredPaths, ut as findModelBlock, v as ensureArkormConfigLoading, va as PaginationURLDriverFactory, vc as MorphManyRelationMetadata, vi as QueryJoinValueConstraint, vn as UniqueConstraintResolutionException, vo as ModelCreateData, vr as registerModels, vs as RelationAggregateConstraint, vt as resolveMigrationClassName, w as getRuntimeDebugHandler, wa as PrismaLikeScalarFilter, wc as RelationMetadataType, wi as QueryRawCondition, wn as ModelNotFoundException, wo as ModelEventName, wr as SeederCallArgument, ws as RelationDefaultValue, wt as supportsDatabaseMigrationExecution, x as getDefaultStubsPath, xa as PrismaFindManyArgsLike, xc as MorphToRelationMetadata, xi as QueryLogicalOperator, xn as QueryExecutionException, xo as ModelEventHandler, xr as resetRuntimeRegistryForTests, xs as RelationColumnLookupSpec, xt as runPrismaCommand, y as getActiveTransactionAdapter, ya as PrismaClientLike, yc as MorphOneRelationMetadata, yi as QueryJsonCondition, yn as ScopeNotDefinedException, yo as ModelDeclaredAttributeKey, yr as registerPaths, ys as RelationAggregateInput, yt as resolvePrismaType, z as applyAlterTableOperation, za as QuerySchemaUniqueWhere, zc as SchemaIndex, zi as UpsertSpec, zn as MigrationHistoryCommand, zo as JsonExpression, zr as AdapterModelStructure, zs as FactoryAttributeResolver, zt as isMigrationApplied } from "./index-DeVBgYm9.cjs";
|
|
1
|
+
import { $ as buildPrimaryKeyLine, $a as RelationshipModelStatic, $i as DelegateInclude, $n as Arkorm, $o as val, $r as InsertSpec, $s as ExpressionBinaryOperator, $t as PersistedTimestampColumn, A as isQuerySchemaLike, Aa as PrismaTransactionContext, Ac as MigrationClass, Ai as RelationAggregateSpec, An as Migration, Ao as ModelWhereInput, Ar as createPrismaDatabaseAdapter, As as JoinOn, At as buildMigrationIdentity, B as applyCreateTableOperation, Ba as QuerySchemaUpdateArgs, Bc as SchemaOperation, Bi as AdapterBindableModel, Bn as MigrateRollbackCommand, Bo as avg, Br as AdapterQueryOperation, Bs as FactoryAttributes, Bt as markMigrationApplied, C as getRuntimeClient, Ca as PrismaLikeOrderBy, Cc as RelationMetadata, Ci as QueryOrderBy, Cn as QueryConstraintException, Co as ModelEventListener, Cr as Seeder, Cs as RelationDefaultResolver, Ct as supportsDatabaseCreation, D as getRuntimePrismaClient, Da as PrismaLikeWhereInput, Dc as AppliedMigrationsState, Di as QueryTarget, Dn as ArkormException, Do as ModelRelationshipKey, Dr as PrismaDatabaseAdapter, Ds as RelationResultCache, Dt as toModelName, E as getRuntimePaginationURLDriverFactory, Ea as PrismaLikeSortOrder, Ec as AppliedMigrationRun, Ei as QuerySelectColumn, En as ArkormErrorContext, Eo as ModelOrderByInput, Er as SeederInput, Es as RelationResult, Et as toMigrationFileSlug, F as PrimaryKeyGenerationPlanner, Fa as QuerySchemaOrderBy, Fc as SchemaColumn, Fi as SoftDeleteQueryMode, Fn as resolveGeneratedExpression, Fo as AggregateExpression, Fr as AdapterDatabaseCreationResult, Fs as JoinClause, Ft as findAppliedMigration, G as applyMigrationToPrismaSchema, Ga as Serializable, Gc as SchemaUniqueConstraint, Gi as ArkormDebugHandler, Gn as MakeMigrationCommand, Go as expressionBuilder, Gr as DatabaseAdapter, Gs as FactoryRelationshipResolver, Gt as resolveMigrationStateFilePath, H as applyMigrationRollbackToDatabase, Ha as QuerySchemaWhere, Hc as SchemaTableAlterOperation, Hi as ArkormBootContext, Hn as MigrateCommand, Ho as coalesce, Hr as AggregateOperation, Hs as FactoryDefinition, Ht as readAppliedMigrationsState, I as PRISMA_ENUM_MEMBER_REGEX, Ia as QuerySchemaRow, Ic as SchemaColumnType, Ii as SortDirection, In as ForeignKeyBuilder, Io as CaseExpression, Ir as AdapterInspectionRequest, Is as LengthAwarePaginator, It as getLastBatchMigrations, J as buildFieldLine, Ja as TransactionCallback, Jc as TimestampNaming, Ji as CastMap, Jn as DbCommand, Jo as json, Jr as DatabaseRows, Js as AggregateExpressionNode, Jt as writeAppliedMigrationsStateToStore, K as applyOperationsToPrismaSchema, Ka as SimplePaginationMeta, Kc as TimestampColumnBehavior, Ki as CastDefinition, Kn as MakeFactoryCommand, Ko as fn, Kr as DatabasePrimitive, Ks as FactoryState, Kt as supportsDatabaseMigrationState, L as PRISMA_ENUM_REGEX, La as QuerySchemaRows, Lc as SchemaForeignKey, Li as UpdateManySpec, Ln as SeedCommand, Lo as Expression, Lr as AdapterModelFieldStructure, Ls as Paginator, Lt as getLastMigrationRun, M as loadArkormConfig, Ma as QuerySchemaCreateData, Mc as PrimaryKeyGeneration, Mi as RelationLoadPlan, Mn as EnumBuilder, Mo as QuerySchemaForModelInstance, Mr as createKyselyAdapter, Ms as RelatedModelForRelationship, Mt as computeMigrationChecksum, N as resetArkormRuntimeForTests, Na as QuerySchemaFindManyArgs, Nc as PrismaMigrationWorkflowOptions, Ni as RelationLoadSpec, Nn as TableBuilder, No as RelatedModelClass, Nr as AdapterCapabilities, Ns as RelatedModelFromResult, Nt as createEmptyAppliedMigrationsState, O as getUserConfig, Oa as PrismaTransactionCallback, Oc as GenerateMigrationOptions, Oi as QueryTimeCondition, On as DB, Oo as ModelRelationshipResult, Or as PrismaDelegateNameMapping, Os as RelationTableLookupSpec, Ot as isMigrationPlanningActive, P as runArkormTransaction, Pa as QuerySchemaInclude, Pc as PrismaSchemaSyncOptions, Pi as SelectSpec, Pn as GeneratedColumnExpression, Po as Model, Pr as AdapterCapability, Ps as WhereCallback, Pt as deleteAppliedMigrationsStateFromStore, Q as buildModelBlock, Qa as ModelStatic, Qi as DelegateFindManyArgs, Qn as AttributeOptions, Qo as sum, Qr as InsertManySpec, Qs as ColumnExpressionNode, Qt as PersistedTableMetadata, R as PRISMA_MODEL_REGEX, Ra as QuerySchemaSelect, Rc as SchemaForeignKeyAction, Ri as UpdateSpec, Rn as ModelsSyncCommand, Ro as ExpressionBuilder, Rr as AdapterModelIntrospectionOptions, Rs as ArkormCollection, Rt as getLatestAppliedMigrations, S as getRuntimeAdapter, Sa as PrismaLikeInclude, Sc as PivotModelStatic, Si as QueryNotCondition, Sn as QueryExecutionExceptionContext, So as ModelEventHandlerConstructor, Sr as SEEDER_BRAND, Ss as RelationConstraint, St as stripPrismaSchemaModelsAndEnums, T as getRuntimePaginationCurrentPageResolver, Ta as PrismaLikeSelect, Tc as AppliedMigrationEntry, Ti as QueryScalarComparisonOperator, Tn as MissingDelegateException, To as ModelLifecycleState, Tr as SeederConstructor, Ts as RelationMetadataProvider, Tt as supportsDatabaseReset, U as applyMigrationRollbackToPrismaSchema, Ua as RawSelectInput, Uc as SchemaTableCreateOperation, Ui as ArkormConfig, Un as MakeSeederCommand, Uo as col, Ur as AggregateSelection, Us as FactoryDefinitionAttributes, Ut as readAppliedMigrationsStateFromStore, V as applyDropTableOperation, Va as QuerySchemaUpdateData, Vc as SchemaPrimaryKey, Vi as AdapterQueryInspection, Vn as MigrateFreshCommand, Vo as caseWhen, Vr as AdapterTransactionContext, Vs as FactoryCallback, Vt as markMigrationRun, W as applyMigrationToDatabase, Wa as RuntimeClientLike, Wc as SchemaTableDropOperation, Wi as ArkormDebugEvent, Wn as MakeModelCommand, Wo as count, Wr as AggregateSpec, Ws as FactoryModelConstructor, Wt as removeAppliedMigration, X as buildInverseRelationLine, Xa as TransactionContext, Xi as ClientResolver, Xn as resolveCast, Xo as min, Xr as DeleteManySpec, Xs as CaseExpressionBranch, Xt as PersistedMetadataFeatures, Y as buildIndexLine, Ya as TransactionCapableClient, Yi as CastType, Yn as CliApp, Yo as max, Yr as DatabaseValue, Ys as BinaryExpressionNode, Yt as PersistedColumnMappingsState, Z as buildMigrationSource, Za as TransactionOptions, Zi as DelegateCreateData, Zn as Attribute, Zo as raw, Zr as DeleteSpec, Zs as CaseExpressionNode, Zt as PersistedPrimaryKeyGeneration, _ as emitRuntimeDebugEvent, _a as PaginationURLDriver, _c as ModelMetadata, _i as QueryJoinType, _n as UnsupportedAdapterFeatureException, _o as ModelAttributesOf, _r as registerMigrations, _t as resolveEnumName, a as getRuntimeCompatibilityAdapter, aa as DelegateUpdateArgs, ac as NullCheckExpressionNode, ai as QueryExistsCondition, an as getPersistedEnumTsType, ao as QueryBuilder, ar as RuntimePathKey, at as deriveRelationAlias, b as getActiveTransactionClient, ba as PrismaDelegateLike, bc as MorphToManyRelationMetadata, bi as QueryJsonConditionKind, bn as RelationResolutionException, bo as ModelEventDispatcher, br as registerSeeders, bs as RelationAggregateType, bt as runMigrationWithPrisma, c as PrismaDelegateMap, ca as EagerLoadConstraint, cc as DatabaseTableOptions, ci as QueryGroupByItem, cn as getPersistedTimestampColumns, co as AttributeQuerySchema, cr as getRegisteredMigrations, ct as escapeRegex, d as inferDelegateName, da as ModelQuerySchemaLike, dc as BelongsToRelationMetadata, di as QueryJoinBoolean, dn as resetPersistedColumnMappingsCache, do as AttributeUpdateInput, dr as getRegisteredSeeders, dt as formatDefaultValue, ea as DelegateOrderBy, ec as ExpressionJsonCast, ei as QueryColumnComparisonCondition, en as applyOperationsToPersistedColumnMappingsState, eo as ChunkCallback, er as Arkormx, es as where, et as buildRelationLine, f as awaitConfiguredModelsRegistration, fa as ModelTableCase, fc as ColumnMap, fi as QueryJoinColumnConstraint, fn as resolveColumnMappingsFilePath, fo as AttributeWhereInput, fr as loadFactoriesFrom, ft as formatEnumDefaultValue, g as disposeArkormRuntime, ga as PaginationOptions, gc as HasOneThroughRelationMetadata, gi as QueryJoinRawConstraint, gn as writePersistedColumnMappingsState, go as ModelAttributes, gr as registerFactories, gt as pad, h as defineConfig, ha as PaginationMeta, hc as HasOneRelationMetadata, hi as QueryJoinNullConstraint, hn as validatePersistedMetadataFeaturesForMigrations, ho as ModelAttributeValue, hr as loadSeedersFrom, ht as getMigrationPlan, i as RuntimeModuleLoader, ia as DelegateUniqueWhere, ic as JsonExpressionNode, ii as QueryDayCondition, in as getPersistedEnumMap, io as GroupByAggregateSpec, ir as RuntimePathInput, it as deriveInverseRelationAlias, j as isTransactionCapableClient, ja as PrismaTransactionOptions, jc as MigrationInstanceLike, ji as RelationFilterSpec, jn as SchemaBuilder, jo as QuerySchemaForModel, jr as KyselyDatabaseAdapter, js as JoinSource, jt as buildMigrationRunId, k as isDelegateLike, ka as PrismaTransactionCapableClient, kc as GeneratedMigrationFile, ki as RawQuerySpec, kn as MIGRATION_BRAND, ko as ModelUpdateData, kr as createPrismaCompatibilityAdapter, ks as EagerLoadRelations, kt as runInMigrationPlanning, l as createPrismaAdapter, la as EagerLoadMap, lc as DatabaseTablePersistedMetadataOptions, li as QueryGroupCondition, ln as readPersistedColumnMappingsState, lo as AttributeSchemaDelegate, lr as getRegisteredModels, lt as findEnumBlock, m as configureArkormRuntime, ma as PaginationCurrentPageResolver, mc as HasManyThroughRelationMetadata, mi as QueryJoinNestedConstraint, mn as syncPersistedColumnMappingsFromState, mo as GlobalScope, mr as loadModelsFrom, mt as generateMigrationFile, n as PivotModel, na as DelegateRows, nc as FunctionExpressionNode, ni as QueryComparisonOperator, nn as deletePersistedColumnMappingsState, no as ExpressionSelectMap, nr as RegisteredModel, ns as ModelFactory, nt as createMigrationTimestamp, o as resolveRuntimeCompatibilityQuerySchema, oa as DelegateUpdateData, oc as RawExpressionNode, oi as QueryExpressionCondition, on as getPersistedPrimaryKeyGeneration, oo as AttributeCreateInput, or as RuntimePathMap, ot as deriveRelationFieldName, p as bindAdapterToModels, pa as NamingCase, pc as HasManyRelationMetadata, pi as QueryJoinConstraint, pn as resolvePersistedMetadataFeatures, po as DelegateForModelSchema, pr as loadMigrationsFrom, pt as formatRelationAction, q as buildEnumBlock, qa as SoftDeleteConfig, qc as TimestampNames, qi as CastHandler, qn as InitCommand, qo as fromExpressionNode, qr as DatabaseRow, qs as MaybePromise, qt as writeAppliedMigrationsState, r as LoadedRuntimeModule, ra as DelegateSelect, rc as InExpressionNode, ri as QueryCondition, rn as getPersistedColumnMap, ro as GroupByAggregateRow, rr as RuntimeConstructor, rs as defineFactory, rt as deriveCollectionFieldName, s as resolveRuntimeCompatibilityQuerySchemaOrThrow, sa as DelegateWhere, sc as ValueExpressionNode, si as QueryFullTextCondition, sn as getPersistedTableMetadata, so as AttributeOrderBy, sr as getRegisteredFactories, st as deriveSingularFieldName, t as URLDriver, ta as DelegateRow, tc as ExpressionNode, ti as QueryComparisonCondition, tn as createEmptyPersistedColumnMappingsState, to as EachCallback, tr as RegisteredFactory, ts as InlineFactory, tt as buildUniqueConstraintLine, u as createPrismaDelegateMap, ua as GetUserConfig, uc as BelongsToManyRelationMetadata, ui as QueryJoin, un as rebuildPersistedColumnMappingsState, uo as AttributeSelect, ur as getRegisteredPaths, ut as findModelBlock, v as ensureArkormConfigLoading, va as PaginationURLDriverFactory, vc as MorphManyRelationMetadata, vi as QueryJoinValueConstraint, vn as UniqueConstraintResolutionException, vo as ModelCreateData, vr as registerModels, vs as RelationAggregateConstraint, vt as resolveMigrationClassName, w as getRuntimeDebugHandler, wa as PrismaLikeScalarFilter, wc as RelationMetadataType, wi as QueryRawCondition, wn as ModelNotFoundException, wo as ModelEventName, wr as SeederCallArgument, ws as RelationDefaultValue, wt as supportsDatabaseMigrationExecution, x as getDefaultStubsPath, xa as PrismaFindManyArgsLike, xc as MorphToRelationMetadata, xi as QueryLogicalOperator, xn as QueryExecutionException, xo as ModelEventHandler, xr as resetRuntimeRegistryForTests, xs as RelationColumnLookupSpec, xt as runPrismaCommand, y as getActiveTransactionAdapter, ya as PrismaClientLike, yc as MorphOneRelationMetadata, yi as QueryJsonCondition, yn as ScopeNotDefinedException, yo as ModelDeclaredAttributeKey, yr as registerPaths, ys as RelationAggregateInput, yt as resolvePrismaType, z as applyAlterTableOperation, za as QuerySchemaUniqueWhere, zc as SchemaIndex, zi as UpsertSpec, zn as MigrationHistoryCommand, zo as JsonExpression, zr as AdapterModelStructure, zs as FactoryAttributeResolver, zt as isMigrationApplied } from "./index-DI1Hid1L.cjs";
|
|
2
2
|
export { AdapterBindableModel, AdapterCapabilities, AdapterCapability, AdapterDatabaseCreationResult, AdapterInspectionRequest, AdapterModelFieldStructure, AdapterModelIntrospectionOptions, AdapterModelStructure, AdapterQueryInspection, AdapterQueryOperation, AdapterTransactionContext, AggregateExpression, AggregateExpressionNode, AggregateOperation, AggregateSelection, AggregateSpec, AppliedMigrationEntry, AppliedMigrationRun, AppliedMigrationsState, Arkorm, ArkormBootContext, ArkormCollection, ArkormConfig, ArkormDebugEvent, ArkormDebugHandler, ArkormErrorContext, ArkormException, Arkormx, Attribute, AttributeCreateInput, AttributeOptions, AttributeOrderBy, AttributeQuerySchema, AttributeSchemaDelegate, AttributeSelect, AttributeUpdateInput, AttributeWhereInput, BelongsToManyRelationMetadata, BelongsToRelationMetadata, BinaryExpressionNode, CaseExpression, CaseExpressionBranch, CaseExpressionNode, CastDefinition, CastHandler, CastMap, CastType, ChunkCallback, CliApp, ClientResolver, ColumnExpressionNode, ColumnMap, DB, DatabaseAdapter, DatabasePrimitive, DatabaseRow, DatabaseRows, DatabaseTableOptions, DatabaseTablePersistedMetadataOptions, DatabaseValue, DbCommand, DelegateCreateData, DelegateFindManyArgs, DelegateForModelSchema, DelegateInclude, DelegateOrderBy, DelegateRow, DelegateRows, DelegateSelect, DelegateUniqueWhere, DelegateUpdateArgs, DelegateUpdateData, DelegateWhere, DeleteManySpec, DeleteSpec, EachCallback, EagerLoadConstraint, EagerLoadMap, EagerLoadRelations, EnumBuilder, Expression, ExpressionBinaryOperator, ExpressionBuilder, ExpressionJsonCast, ExpressionNode, ExpressionSelectMap, FactoryAttributeResolver, FactoryAttributes, FactoryCallback, FactoryDefinition, FactoryDefinitionAttributes, FactoryModelConstructor, FactoryRelationshipResolver, FactoryState, ForeignKeyBuilder, FunctionExpressionNode, GenerateMigrationOptions, GeneratedColumnExpression, GeneratedMigrationFile, GetUserConfig, GlobalScope, GroupByAggregateRow, GroupByAggregateSpec, HasManyRelationMetadata, HasManyThroughRelationMetadata, HasOneRelationMetadata, HasOneThroughRelationMetadata, InExpressionNode, InitCommand, InlineFactory, InsertManySpec, InsertSpec, JoinClause, JoinOn, JoinSource, JsonExpression, JsonExpressionNode, KyselyDatabaseAdapter, LengthAwarePaginator, LoadedRuntimeModule, MIGRATION_BRAND, MakeFactoryCommand, MakeMigrationCommand, MakeModelCommand, MakeSeederCommand, MaybePromise, MigrateCommand, MigrateFreshCommand, MigrateRollbackCommand, Migration, MigrationClass, MigrationHistoryCommand, MigrationInstanceLike, MissingDelegateException, Model, ModelAttributeValue, ModelAttributes, ModelAttributesOf, ModelCreateData, ModelDeclaredAttributeKey, ModelEventDispatcher, ModelEventHandler, ModelEventHandlerConstructor, ModelEventListener, ModelEventName, ModelFactory, ModelLifecycleState, ModelMetadata, ModelNotFoundException, ModelOrderByInput, ModelQuerySchemaLike, ModelRelationshipKey, ModelRelationshipResult, ModelStatic, ModelTableCase, ModelUpdateData, ModelWhereInput, ModelsSyncCommand, MorphManyRelationMetadata, MorphOneRelationMetadata, MorphToManyRelationMetadata, MorphToRelationMetadata, NamingCase, NullCheckExpressionNode, PRISMA_ENUM_MEMBER_REGEX, PRISMA_ENUM_REGEX, PRISMA_MODEL_REGEX, PaginationCurrentPageResolver, PaginationMeta, PaginationOptions, PaginationURLDriver, PaginationURLDriverFactory, Paginator, PersistedColumnMappingsState, PersistedMetadataFeatures, PersistedPrimaryKeyGeneration, PersistedTableMetadata, PersistedTimestampColumn, PivotModel, PivotModelStatic, PrimaryKeyGeneration, PrimaryKeyGenerationPlanner, PrismaClientLike, PrismaDatabaseAdapter, PrismaDelegateLike, PrismaDelegateMap, PrismaDelegateNameMapping, PrismaFindManyArgsLike, PrismaLikeInclude, PrismaLikeOrderBy, PrismaLikeScalarFilter, PrismaLikeSelect, PrismaLikeSortOrder, PrismaLikeWhereInput, PrismaMigrationWorkflowOptions, PrismaSchemaSyncOptions, PrismaTransactionCallback, PrismaTransactionCapableClient, PrismaTransactionContext, PrismaTransactionOptions, QueryBuilder, QueryColumnComparisonCondition, QueryComparisonCondition, QueryComparisonOperator, QueryCondition, QueryConstraintException, QueryDayCondition, QueryExecutionException, QueryExecutionExceptionContext, QueryExistsCondition, QueryExpressionCondition, QueryFullTextCondition, QueryGroupByItem, QueryGroupCondition, QueryJoin, QueryJoinBoolean, QueryJoinColumnConstraint, QueryJoinConstraint, QueryJoinNestedConstraint, QueryJoinNullConstraint, QueryJoinRawConstraint, QueryJoinType, QueryJoinValueConstraint, QueryJsonCondition, QueryJsonConditionKind, QueryLogicalOperator, QueryNotCondition, QueryOrderBy, QueryRawCondition, QueryScalarComparisonOperator, QuerySchemaCreateData, QuerySchemaFindManyArgs, QuerySchemaForModel, QuerySchemaForModelInstance, QuerySchemaInclude, QuerySchemaOrderBy, QuerySchemaRow, QuerySchemaRows, QuerySchemaSelect, QuerySchemaUniqueWhere, QuerySchemaUpdateArgs, QuerySchemaUpdateData, QuerySchemaWhere, QuerySelectColumn, QueryTarget, QueryTimeCondition, RawExpressionNode, RawQuerySpec, RawSelectInput, RegisteredFactory, RegisteredModel, RelatedModelClass, RelatedModelForRelationship, RelatedModelFromResult, RelationAggregateConstraint, RelationAggregateInput, RelationAggregateSpec, RelationAggregateType, RelationColumnLookupSpec, RelationConstraint, RelationDefaultResolver, RelationDefaultValue, RelationFilterSpec, RelationLoadPlan, RelationLoadSpec, RelationMetadata, RelationMetadataProvider, RelationMetadataType, RelationResolutionException, RelationResult, RelationResultCache, RelationTableLookupSpec, RelationshipModelStatic, RuntimeClientLike, RuntimeConstructor, RuntimeModuleLoader, RuntimePathInput, RuntimePathKey, RuntimePathMap, SEEDER_BRAND, SchemaBuilder, SchemaColumn, SchemaColumnType, SchemaForeignKey, SchemaForeignKeyAction, SchemaIndex, SchemaOperation, SchemaPrimaryKey, SchemaTableAlterOperation, SchemaTableCreateOperation, SchemaTableDropOperation, SchemaUniqueConstraint, ScopeNotDefinedException, SeedCommand, Seeder, SeederCallArgument, SeederConstructor, SeederInput, SelectSpec, Serializable, SimplePaginationMeta, SoftDeleteConfig, SoftDeleteQueryMode, SortDirection, TableBuilder, TimestampColumnBehavior, TimestampNames, TimestampNaming, TransactionCallback, TransactionCapableClient, TransactionContext, TransactionOptions, URLDriver, UniqueConstraintResolutionException, UnsupportedAdapterFeatureException, UpdateManySpec, UpdateSpec, UpsertSpec, ValueExpressionNode, WhereCallback, applyAlterTableOperation, applyCreateTableOperation, applyDropTableOperation, applyMigrationRollbackToDatabase, applyMigrationRollbackToPrismaSchema, applyMigrationToDatabase, applyMigrationToPrismaSchema, applyOperationsToPersistedColumnMappingsState, applyOperationsToPrismaSchema, avg, awaitConfiguredModelsRegistration, bindAdapterToModels, buildEnumBlock, buildFieldLine, buildIndexLine, buildInverseRelationLine, buildMigrationIdentity, buildMigrationRunId, buildMigrationSource, buildModelBlock, buildPrimaryKeyLine, buildRelationLine, buildUniqueConstraintLine, caseWhen, coalesce, col, computeMigrationChecksum, configureArkormRuntime, count, createEmptyAppliedMigrationsState, createEmptyPersistedColumnMappingsState, createKyselyAdapter, createMigrationTimestamp, createPrismaAdapter, createPrismaCompatibilityAdapter, createPrismaDatabaseAdapter, createPrismaDelegateMap, defineConfig, defineFactory, deleteAppliedMigrationsStateFromStore, deletePersistedColumnMappingsState, deriveCollectionFieldName, deriveInverseRelationAlias, deriveRelationAlias, deriveRelationFieldName, deriveSingularFieldName, disposeArkormRuntime, emitRuntimeDebugEvent, ensureArkormConfigLoading, escapeRegex, expressionBuilder, findAppliedMigration, findEnumBlock, findModelBlock, fn, formatDefaultValue, formatEnumDefaultValue, formatRelationAction, fromExpressionNode, generateMigrationFile, getActiveTransactionAdapter, getActiveTransactionClient, getDefaultStubsPath, getLastBatchMigrations, getLastMigrationRun, getLatestAppliedMigrations, getMigrationPlan, getPersistedColumnMap, getPersistedEnumMap, getPersistedEnumTsType, getPersistedPrimaryKeyGeneration, getPersistedTableMetadata, getPersistedTimestampColumns, getRegisteredFactories, getRegisteredMigrations, getRegisteredModels, getRegisteredPaths, getRegisteredSeeders, getRuntimeAdapter, getRuntimeClient, getRuntimeCompatibilityAdapter, getRuntimeDebugHandler, getRuntimePaginationCurrentPageResolver, getRuntimePaginationURLDriverFactory, getRuntimePrismaClient, getUserConfig, inferDelegateName, isDelegateLike, isMigrationApplied, isMigrationPlanningActive, isQuerySchemaLike, isTransactionCapableClient, json, loadArkormConfig, loadFactoriesFrom, loadMigrationsFrom, loadModelsFrom, loadSeedersFrom, markMigrationApplied, markMigrationRun, max, min, pad, raw, readAppliedMigrationsState, readAppliedMigrationsStateFromStore, readPersistedColumnMappingsState, rebuildPersistedColumnMappingsState, registerFactories, registerMigrations, registerModels, registerPaths, registerSeeders, removeAppliedMigration, resetArkormRuntimeForTests, resetPersistedColumnMappingsCache, resetRuntimeRegistryForTests, resolveCast, resolveColumnMappingsFilePath, resolveEnumName, resolveGeneratedExpression, resolveMigrationClassName, resolveMigrationStateFilePath, resolvePersistedMetadataFeatures, resolvePrismaType, resolveRuntimeCompatibilityQuerySchema, resolveRuntimeCompatibilityQuerySchemaOrThrow, runArkormTransaction, runInMigrationPlanning, runMigrationWithPrisma, runPrismaCommand, stripPrismaSchemaModelsAndEnums, sum, supportsDatabaseCreation, supportsDatabaseMigrationExecution, supportsDatabaseMigrationState, supportsDatabaseReset, syncPersistedColumnMappingsFromState, toMigrationFileSlug, toModelName, val, validatePersistedMetadataFeaturesForMigrations, where, writeAppliedMigrationsState, writeAppliedMigrationsStateToStore, writePersistedColumnMappingsState };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as buildPrimaryKeyLine, $a as RelationshipModelStatic, $i as DelegateInclude, $n as Arkorm, $o as val, $r as InsertSpec, $s as ExpressionBinaryOperator, $t as PersistedTimestampColumn, A as isQuerySchemaLike, Aa as PrismaTransactionContext, Ac as MigrationClass, Ai as RelationAggregateSpec, An as Migration, Ao as ModelWhereInput, Ar as createPrismaDatabaseAdapter, As as JoinOn, At as buildMigrationIdentity, B as applyCreateTableOperation, Ba as QuerySchemaUpdateArgs, Bc as SchemaOperation, Bi as AdapterBindableModel, Bn as MigrateRollbackCommand, Bo as avg, Br as AdapterQueryOperation, Bs as FactoryAttributes, Bt as markMigrationApplied, C as getRuntimeClient, Ca as PrismaLikeOrderBy, Cc as RelationMetadata, Ci as QueryOrderBy, Cn as QueryConstraintException, Co as ModelEventListener, Cr as Seeder, Cs as RelationDefaultResolver, Ct as supportsDatabaseCreation, D as getRuntimePrismaClient, Da as PrismaLikeWhereInput, Dc as AppliedMigrationsState, Di as QueryTarget, Dn as ArkormException, Do as ModelRelationshipKey, Dr as PrismaDatabaseAdapter, Ds as RelationResultCache, Dt as toModelName, E as getRuntimePaginationURLDriverFactory, Ea as PrismaLikeSortOrder, Ec as AppliedMigrationRun, Ei as QuerySelectColumn, En as ArkormErrorContext, Eo as ModelOrderByInput, Er as SeederInput, Es as RelationResult, Et as toMigrationFileSlug, F as PrimaryKeyGenerationPlanner, Fa as QuerySchemaOrderBy, Fc as SchemaColumn, Fi as SoftDeleteQueryMode, Fn as resolveGeneratedExpression, Fo as AggregateExpression, Fr as AdapterDatabaseCreationResult, Fs as JoinClause, Ft as findAppliedMigration, G as applyMigrationToPrismaSchema, Ga as Serializable, Gc as SchemaUniqueConstraint, Gi as ArkormDebugHandler, Gn as MakeMigrationCommand, Go as expressionBuilder, Gr as DatabaseAdapter, Gs as FactoryRelationshipResolver, Gt as resolveMigrationStateFilePath, H as applyMigrationRollbackToDatabase, Ha as QuerySchemaWhere, Hc as SchemaTableAlterOperation, Hi as ArkormBootContext, Hn as MigrateCommand, Ho as coalesce, Hr as AggregateOperation, Hs as FactoryDefinition, Ht as readAppliedMigrationsState, I as PRISMA_ENUM_MEMBER_REGEX, Ia as QuerySchemaRow, Ic as SchemaColumnType, Ii as SortDirection, In as ForeignKeyBuilder, Io as CaseExpression, Ir as AdapterInspectionRequest, Is as LengthAwarePaginator, It as getLastBatchMigrations, J as buildFieldLine, Ja as TransactionCallback, Jc as TimestampNaming, Ji as CastMap, Jn as DbCommand, Jo as json, Jr as DatabaseRows, Js as AggregateExpressionNode, Jt as writeAppliedMigrationsStateToStore, K as applyOperationsToPrismaSchema, Ka as SimplePaginationMeta, Kc as TimestampColumnBehavior, Ki as CastDefinition, Kn as MakeFactoryCommand, Ko as fn, Kr as DatabasePrimitive, Ks as FactoryState, Kt as supportsDatabaseMigrationState, L as PRISMA_ENUM_REGEX, La as QuerySchemaRows, Lc as SchemaForeignKey, Li as UpdateManySpec, Ln as SeedCommand, Lo as Expression, Lr as AdapterModelFieldStructure, Ls as Paginator, Lt as getLastMigrationRun, M as loadArkormConfig, Ma as QuerySchemaCreateData, Mc as PrimaryKeyGeneration, Mi as RelationLoadPlan, Mn as EnumBuilder, Mo as QuerySchemaForModelInstance, Mr as createKyselyAdapter, Ms as RelatedModelForRelationship, Mt as computeMigrationChecksum, N as resetArkormRuntimeForTests, Na as QuerySchemaFindManyArgs, Nc as PrismaMigrationWorkflowOptions, Ni as RelationLoadSpec, Nn as TableBuilder, No as RelatedModelClass, Nr as AdapterCapabilities, Ns as RelatedModelFromResult, Nt as createEmptyAppliedMigrationsState, O as getUserConfig, Oa as PrismaTransactionCallback, Oc as GenerateMigrationOptions, Oi as QueryTimeCondition, On as DB, Oo as ModelRelationshipResult, Or as PrismaDelegateNameMapping, Os as RelationTableLookupSpec, Ot as isMigrationPlanningActive, P as runArkormTransaction, Pa as QuerySchemaInclude, Pc as PrismaSchemaSyncOptions, Pi as SelectSpec, Pn as GeneratedColumnExpression, Po as Model, Pr as AdapterCapability, Ps as WhereCallback, Pt as deleteAppliedMigrationsStateFromStore, Q as buildModelBlock, Qa as ModelStatic, Qi as DelegateFindManyArgs, Qn as AttributeOptions, Qo as sum, Qr as InsertManySpec, Qs as ColumnExpressionNode, Qt as PersistedTableMetadata, R as PRISMA_MODEL_REGEX, Ra as QuerySchemaSelect, Rc as SchemaForeignKeyAction, Ri as UpdateSpec, Rn as ModelsSyncCommand, Ro as ExpressionBuilder, Rr as AdapterModelIntrospectionOptions, Rs as ArkormCollection, Rt as getLatestAppliedMigrations, S as getRuntimeAdapter, Sa as PrismaLikeInclude, Sc as PivotModelStatic, Si as QueryNotCondition, Sn as QueryExecutionExceptionContext, So as ModelEventHandlerConstructor, Sr as SEEDER_BRAND, Ss as RelationConstraint, St as stripPrismaSchemaModelsAndEnums, T as getRuntimePaginationCurrentPageResolver, Ta as PrismaLikeSelect, Tc as AppliedMigrationEntry, Ti as QueryScalarComparisonOperator, Tn as MissingDelegateException, To as ModelLifecycleState, Tr as SeederConstructor, Ts as RelationMetadataProvider, Tt as supportsDatabaseReset, U as applyMigrationRollbackToPrismaSchema, Ua as RawSelectInput, Uc as SchemaTableCreateOperation, Ui as ArkormConfig, Un as MakeSeederCommand, Uo as col, Ur as AggregateSelection, Us as FactoryDefinitionAttributes, Ut as readAppliedMigrationsStateFromStore, V as applyDropTableOperation, Va as QuerySchemaUpdateData, Vc as SchemaPrimaryKey, Vi as AdapterQueryInspection, Vn as MigrateFreshCommand, Vo as caseWhen, Vr as AdapterTransactionContext, Vs as FactoryCallback, Vt as markMigrationRun, W as applyMigrationToDatabase, Wa as RuntimeClientLike, Wc as SchemaTableDropOperation, Wi as ArkormDebugEvent, Wn as MakeModelCommand, Wo as count, Wr as AggregateSpec, Ws as FactoryModelConstructor, Wt as removeAppliedMigration, X as buildInverseRelationLine, Xa as TransactionContext, Xi as ClientResolver, Xn as resolveCast, Xo as min, Xr as DeleteManySpec, Xs as CaseExpressionBranch, Xt as PersistedMetadataFeatures, Y as buildIndexLine, Ya as TransactionCapableClient, Yi as CastType, Yn as CliApp, Yo as max, Yr as DatabaseValue, Ys as BinaryExpressionNode, Yt as PersistedColumnMappingsState, Z as buildMigrationSource, Za as TransactionOptions, Zi as DelegateCreateData, Zn as Attribute, Zo as raw, Zr as DeleteSpec, Zs as CaseExpressionNode, Zt as PersistedPrimaryKeyGeneration, _ as emitRuntimeDebugEvent, _a as PaginationURLDriver, _c as ModelMetadata, _i as QueryJoinType, _n as UnsupportedAdapterFeatureException, _o as ModelAttributesOf, _r as registerMigrations, _t as resolveEnumName, a as getRuntimeCompatibilityAdapter, aa as DelegateUpdateArgs, ac as NullCheckExpressionNode, ai as QueryExistsCondition, an as getPersistedEnumTsType, ao as QueryBuilder, ar as RuntimePathKey, at as deriveRelationAlias, b as getActiveTransactionClient, ba as PrismaDelegateLike, bc as MorphToManyRelationMetadata, bi as QueryJsonConditionKind, bn as RelationResolutionException, bo as ModelEventDispatcher, br as registerSeeders, bs as RelationAggregateType, bt as runMigrationWithPrisma, c as PrismaDelegateMap, ca as EagerLoadConstraint, cc as DatabaseTableOptions, ci as QueryGroupByItem, cn as getPersistedTimestampColumns, co as AttributeQuerySchema, cr as getRegisteredMigrations, ct as escapeRegex, d as inferDelegateName, da as ModelQuerySchemaLike, dc as BelongsToRelationMetadata, di as QueryJoinBoolean, dn as resetPersistedColumnMappingsCache, do as AttributeUpdateInput, dr as getRegisteredSeeders, dt as formatDefaultValue, ea as DelegateOrderBy, ec as ExpressionJsonCast, ei as QueryColumnComparisonCondition, en as applyOperationsToPersistedColumnMappingsState, eo as ChunkCallback, er as Arkormx, es as where, et as buildRelationLine, f as awaitConfiguredModelsRegistration, fa as ModelTableCase, fc as ColumnMap, fi as QueryJoinColumnConstraint, fn as resolveColumnMappingsFilePath, fo as AttributeWhereInput, fr as loadFactoriesFrom, ft as formatEnumDefaultValue, g as disposeArkormRuntime, ga as PaginationOptions, gc as HasOneThroughRelationMetadata, gi as QueryJoinRawConstraint, gn as writePersistedColumnMappingsState, go as ModelAttributes, gr as registerFactories, gt as pad, h as defineConfig, ha as PaginationMeta, hc as HasOneRelationMetadata, hi as QueryJoinNullConstraint, hn as validatePersistedMetadataFeaturesForMigrations, ho as ModelAttributeValue, hr as loadSeedersFrom, ht as getMigrationPlan, i as RuntimeModuleLoader, ia as DelegateUniqueWhere, ic as JsonExpressionNode, ii as QueryDayCondition, in as getPersistedEnumMap, io as GroupByAggregateSpec, ir as RuntimePathInput, it as deriveInverseRelationAlias, j as isTransactionCapableClient, ja as PrismaTransactionOptions, jc as MigrationInstanceLike, ji as RelationFilterSpec, jn as SchemaBuilder, jo as QuerySchemaForModel, jr as KyselyDatabaseAdapter, js as JoinSource, jt as buildMigrationRunId, k as isDelegateLike, ka as PrismaTransactionCapableClient, kc as GeneratedMigrationFile, ki as RawQuerySpec, kn as MIGRATION_BRAND, ko as ModelUpdateData, kr as createPrismaCompatibilityAdapter, ks as EagerLoadRelations, kt as runInMigrationPlanning, l as createPrismaAdapter, la as EagerLoadMap, lc as DatabaseTablePersistedMetadataOptions, li as QueryGroupCondition, ln as readPersistedColumnMappingsState, lo as AttributeSchemaDelegate, lr as getRegisteredModels, lt as findEnumBlock, m as configureArkormRuntime, ma as PaginationCurrentPageResolver, mc as HasManyThroughRelationMetadata, mi as QueryJoinNestedConstraint, mn as syncPersistedColumnMappingsFromState, mo as GlobalScope, mr as loadModelsFrom, mt as generateMigrationFile, n as PivotModel, na as DelegateRows, nc as FunctionExpressionNode, ni as QueryComparisonOperator, nn as deletePersistedColumnMappingsState, no as ExpressionSelectMap, nr as RegisteredModel, ns as ModelFactory, nt as createMigrationTimestamp, o as resolveRuntimeCompatibilityQuerySchema, oa as DelegateUpdateData, oc as RawExpressionNode, oi as QueryExpressionCondition, on as getPersistedPrimaryKeyGeneration, oo as AttributeCreateInput, or as RuntimePathMap, ot as deriveRelationFieldName, p as bindAdapterToModels, pa as NamingCase, pc as HasManyRelationMetadata, pi as QueryJoinConstraint, pn as resolvePersistedMetadataFeatures, po as DelegateForModelSchema, pr as loadMigrationsFrom, pt as formatRelationAction, q as buildEnumBlock, qa as SoftDeleteConfig, qc as TimestampNames, qi as CastHandler, qn as InitCommand, qo as fromExpressionNode, qr as DatabaseRow, qs as MaybePromise, qt as writeAppliedMigrationsState, r as LoadedRuntimeModule, ra as DelegateSelect, rc as InExpressionNode, ri as QueryCondition, rn as getPersistedColumnMap, ro as GroupByAggregateRow, rr as RuntimeConstructor, rs as defineFactory, rt as deriveCollectionFieldName, s as resolveRuntimeCompatibilityQuerySchemaOrThrow, sa as DelegateWhere, sc as ValueExpressionNode, si as QueryFullTextCondition, sn as getPersistedTableMetadata, so as AttributeOrderBy, sr as getRegisteredFactories, st as deriveSingularFieldName, t as URLDriver, ta as DelegateRow, tc as ExpressionNode, ti as QueryComparisonCondition, tn as createEmptyPersistedColumnMappingsState, to as EachCallback, tr as RegisteredFactory, ts as InlineFactory, tt as buildUniqueConstraintLine, u as createPrismaDelegateMap, ua as GetUserConfig, uc as BelongsToManyRelationMetadata, ui as QueryJoin, un as rebuildPersistedColumnMappingsState, uo as AttributeSelect, ur as getRegisteredPaths, ut as findModelBlock, v as ensureArkormConfigLoading, va as PaginationURLDriverFactory, vc as MorphManyRelationMetadata, vi as QueryJoinValueConstraint, vn as UniqueConstraintResolutionException, vo as ModelCreateData, vr as registerModels, vs as RelationAggregateConstraint, vt as resolveMigrationClassName, w as getRuntimeDebugHandler, wa as PrismaLikeScalarFilter, wc as RelationMetadataType, wi as QueryRawCondition, wn as ModelNotFoundException, wo as ModelEventName, wr as SeederCallArgument, ws as RelationDefaultValue, wt as supportsDatabaseMigrationExecution, x as getDefaultStubsPath, xa as PrismaFindManyArgsLike, xc as MorphToRelationMetadata, xi as QueryLogicalOperator, xn as QueryExecutionException, xo as ModelEventHandler, xr as resetRuntimeRegistryForTests, xs as RelationColumnLookupSpec, xt as runPrismaCommand, y as getActiveTransactionAdapter, ya as PrismaClientLike, yc as MorphOneRelationMetadata, yi as QueryJsonCondition, yn as ScopeNotDefinedException, yo as ModelDeclaredAttributeKey, yr as registerPaths, ys as RelationAggregateInput, yt as resolvePrismaType, z as applyAlterTableOperation, za as QuerySchemaUniqueWhere, zc as SchemaIndex, zi as UpsertSpec, zn as MigrationHistoryCommand, zo as JsonExpression, zr as AdapterModelStructure, zs as FactoryAttributeResolver, zt as isMigrationApplied } from "./index-D7VO5UgJ.mjs";
|
|
1
|
+
import { $ as buildPrimaryKeyLine, $a as RelationshipModelStatic, $i as DelegateInclude, $n as Arkorm, $o as val, $r as InsertSpec, $s as ExpressionBinaryOperator, $t as PersistedTimestampColumn, A as isQuerySchemaLike, Aa as PrismaTransactionContext, Ac as MigrationClass, Ai as RelationAggregateSpec, An as Migration, Ao as ModelWhereInput, Ar as createPrismaDatabaseAdapter, As as JoinOn, At as buildMigrationIdentity, B as applyCreateTableOperation, Ba as QuerySchemaUpdateArgs, Bc as SchemaOperation, Bi as AdapterBindableModel, Bn as MigrateRollbackCommand, Bo as avg, Br as AdapterQueryOperation, Bs as FactoryAttributes, Bt as markMigrationApplied, C as getRuntimeClient, Ca as PrismaLikeOrderBy, Cc as RelationMetadata, Ci as QueryOrderBy, Cn as QueryConstraintException, Co as ModelEventListener, Cr as Seeder, Cs as RelationDefaultResolver, Ct as supportsDatabaseCreation, D as getRuntimePrismaClient, Da as PrismaLikeWhereInput, Dc as AppliedMigrationsState, Di as QueryTarget, Dn as ArkormException, Do as ModelRelationshipKey, Dr as PrismaDatabaseAdapter, Ds as RelationResultCache, Dt as toModelName, E as getRuntimePaginationURLDriverFactory, Ea as PrismaLikeSortOrder, Ec as AppliedMigrationRun, Ei as QuerySelectColumn, En as ArkormErrorContext, Eo as ModelOrderByInput, Er as SeederInput, Es as RelationResult, Et as toMigrationFileSlug, F as PrimaryKeyGenerationPlanner, Fa as QuerySchemaOrderBy, Fc as SchemaColumn, Fi as SoftDeleteQueryMode, Fn as resolveGeneratedExpression, Fo as AggregateExpression, Fr as AdapterDatabaseCreationResult, Fs as JoinClause, Ft as findAppliedMigration, G as applyMigrationToPrismaSchema, Ga as Serializable, Gc as SchemaUniqueConstraint, Gi as ArkormDebugHandler, Gn as MakeMigrationCommand, Go as expressionBuilder, Gr as DatabaseAdapter, Gs as FactoryRelationshipResolver, Gt as resolveMigrationStateFilePath, H as applyMigrationRollbackToDatabase, Ha as QuerySchemaWhere, Hc as SchemaTableAlterOperation, Hi as ArkormBootContext, Hn as MigrateCommand, Ho as coalesce, Hr as AggregateOperation, Hs as FactoryDefinition, Ht as readAppliedMigrationsState, I as PRISMA_ENUM_MEMBER_REGEX, Ia as QuerySchemaRow, Ic as SchemaColumnType, Ii as SortDirection, In as ForeignKeyBuilder, Io as CaseExpression, Ir as AdapterInspectionRequest, Is as LengthAwarePaginator, It as getLastBatchMigrations, J as buildFieldLine, Ja as TransactionCallback, Jc as TimestampNaming, Ji as CastMap, Jn as DbCommand, Jo as json, Jr as DatabaseRows, Js as AggregateExpressionNode, Jt as writeAppliedMigrationsStateToStore, K as applyOperationsToPrismaSchema, Ka as SimplePaginationMeta, Kc as TimestampColumnBehavior, Ki as CastDefinition, Kn as MakeFactoryCommand, Ko as fn, Kr as DatabasePrimitive, Ks as FactoryState, Kt as supportsDatabaseMigrationState, L as PRISMA_ENUM_REGEX, La as QuerySchemaRows, Lc as SchemaForeignKey, Li as UpdateManySpec, Ln as SeedCommand, Lo as Expression, Lr as AdapterModelFieldStructure, Ls as Paginator, Lt as getLastMigrationRun, M as loadArkormConfig, Ma as QuerySchemaCreateData, Mc as PrimaryKeyGeneration, Mi as RelationLoadPlan, Mn as EnumBuilder, Mo as QuerySchemaForModelInstance, Mr as createKyselyAdapter, Ms as RelatedModelForRelationship, Mt as computeMigrationChecksum, N as resetArkormRuntimeForTests, Na as QuerySchemaFindManyArgs, Nc as PrismaMigrationWorkflowOptions, Ni as RelationLoadSpec, Nn as TableBuilder, No as RelatedModelClass, Nr as AdapterCapabilities, Ns as RelatedModelFromResult, Nt as createEmptyAppliedMigrationsState, O as getUserConfig, Oa as PrismaTransactionCallback, Oc as GenerateMigrationOptions, Oi as QueryTimeCondition, On as DB, Oo as ModelRelationshipResult, Or as PrismaDelegateNameMapping, Os as RelationTableLookupSpec, Ot as isMigrationPlanningActive, P as runArkormTransaction, Pa as QuerySchemaInclude, Pc as PrismaSchemaSyncOptions, Pi as SelectSpec, Pn as GeneratedColumnExpression, Po as Model, Pr as AdapterCapability, Ps as WhereCallback, Pt as deleteAppliedMigrationsStateFromStore, Q as buildModelBlock, Qa as ModelStatic, Qi as DelegateFindManyArgs, Qn as AttributeOptions, Qo as sum, Qr as InsertManySpec, Qs as ColumnExpressionNode, Qt as PersistedTableMetadata, R as PRISMA_MODEL_REGEX, Ra as QuerySchemaSelect, Rc as SchemaForeignKeyAction, Ri as UpdateSpec, Rn as ModelsSyncCommand, Ro as ExpressionBuilder, Rr as AdapterModelIntrospectionOptions, Rs as ArkormCollection, Rt as getLatestAppliedMigrations, S as getRuntimeAdapter, Sa as PrismaLikeInclude, Sc as PivotModelStatic, Si as QueryNotCondition, Sn as QueryExecutionExceptionContext, So as ModelEventHandlerConstructor, Sr as SEEDER_BRAND, Ss as RelationConstraint, St as stripPrismaSchemaModelsAndEnums, T as getRuntimePaginationCurrentPageResolver, Ta as PrismaLikeSelect, Tc as AppliedMigrationEntry, Ti as QueryScalarComparisonOperator, Tn as MissingDelegateException, To as ModelLifecycleState, Tr as SeederConstructor, Ts as RelationMetadataProvider, Tt as supportsDatabaseReset, U as applyMigrationRollbackToPrismaSchema, Ua as RawSelectInput, Uc as SchemaTableCreateOperation, Ui as ArkormConfig, Un as MakeSeederCommand, Uo as col, Ur as AggregateSelection, Us as FactoryDefinitionAttributes, Ut as readAppliedMigrationsStateFromStore, V as applyDropTableOperation, Va as QuerySchemaUpdateData, Vc as SchemaPrimaryKey, Vi as AdapterQueryInspection, Vn as MigrateFreshCommand, Vo as caseWhen, Vr as AdapterTransactionContext, Vs as FactoryCallback, Vt as markMigrationRun, W as applyMigrationToDatabase, Wa as RuntimeClientLike, Wc as SchemaTableDropOperation, Wi as ArkormDebugEvent, Wn as MakeModelCommand, Wo as count, Wr as AggregateSpec, Ws as FactoryModelConstructor, Wt as removeAppliedMigration, X as buildInverseRelationLine, Xa as TransactionContext, Xi as ClientResolver, Xn as resolveCast, Xo as min, Xr as DeleteManySpec, Xs as CaseExpressionBranch, Xt as PersistedMetadataFeatures, Y as buildIndexLine, Ya as TransactionCapableClient, Yi as CastType, Yn as CliApp, Yo as max, Yr as DatabaseValue, Ys as BinaryExpressionNode, Yt as PersistedColumnMappingsState, Z as buildMigrationSource, Za as TransactionOptions, Zi as DelegateCreateData, Zn as Attribute, Zo as raw, Zr as DeleteSpec, Zs as CaseExpressionNode, Zt as PersistedPrimaryKeyGeneration, _ as emitRuntimeDebugEvent, _a as PaginationURLDriver, _c as ModelMetadata, _i as QueryJoinType, _n as UnsupportedAdapterFeatureException, _o as ModelAttributesOf, _r as registerMigrations, _t as resolveEnumName, a as getRuntimeCompatibilityAdapter, aa as DelegateUpdateArgs, ac as NullCheckExpressionNode, ai as QueryExistsCondition, an as getPersistedEnumTsType, ao as QueryBuilder, ar as RuntimePathKey, at as deriveRelationAlias, b as getActiveTransactionClient, ba as PrismaDelegateLike, bc as MorphToManyRelationMetadata, bi as QueryJsonConditionKind, bn as RelationResolutionException, bo as ModelEventDispatcher, br as registerSeeders, bs as RelationAggregateType, bt as runMigrationWithPrisma, c as PrismaDelegateMap, ca as EagerLoadConstraint, cc as DatabaseTableOptions, ci as QueryGroupByItem, cn as getPersistedTimestampColumns, co as AttributeQuerySchema, cr as getRegisteredMigrations, ct as escapeRegex, d as inferDelegateName, da as ModelQuerySchemaLike, dc as BelongsToRelationMetadata, di as QueryJoinBoolean, dn as resetPersistedColumnMappingsCache, do as AttributeUpdateInput, dr as getRegisteredSeeders, dt as formatDefaultValue, ea as DelegateOrderBy, ec as ExpressionJsonCast, ei as QueryColumnComparisonCondition, en as applyOperationsToPersistedColumnMappingsState, eo as ChunkCallback, er as Arkormx, es as where, et as buildRelationLine, f as awaitConfiguredModelsRegistration, fa as ModelTableCase, fc as ColumnMap, fi as QueryJoinColumnConstraint, fn as resolveColumnMappingsFilePath, fo as AttributeWhereInput, fr as loadFactoriesFrom, ft as formatEnumDefaultValue, g as disposeArkormRuntime, ga as PaginationOptions, gc as HasOneThroughRelationMetadata, gi as QueryJoinRawConstraint, gn as writePersistedColumnMappingsState, go as ModelAttributes, gr as registerFactories, gt as pad, h as defineConfig, ha as PaginationMeta, hc as HasOneRelationMetadata, hi as QueryJoinNullConstraint, hn as validatePersistedMetadataFeaturesForMigrations, ho as ModelAttributeValue, hr as loadSeedersFrom, ht as getMigrationPlan, i as RuntimeModuleLoader, ia as DelegateUniqueWhere, ic as JsonExpressionNode, ii as QueryDayCondition, in as getPersistedEnumMap, io as GroupByAggregateSpec, ir as RuntimePathInput, it as deriveInverseRelationAlias, j as isTransactionCapableClient, ja as PrismaTransactionOptions, jc as MigrationInstanceLike, ji as RelationFilterSpec, jn as SchemaBuilder, jo as QuerySchemaForModel, jr as KyselyDatabaseAdapter, js as JoinSource, jt as buildMigrationRunId, k as isDelegateLike, ka as PrismaTransactionCapableClient, kc as GeneratedMigrationFile, ki as RawQuerySpec, kn as MIGRATION_BRAND, ko as ModelUpdateData, kr as createPrismaCompatibilityAdapter, ks as EagerLoadRelations, kt as runInMigrationPlanning, l as createPrismaAdapter, la as EagerLoadMap, lc as DatabaseTablePersistedMetadataOptions, li as QueryGroupCondition, ln as readPersistedColumnMappingsState, lo as AttributeSchemaDelegate, lr as getRegisteredModels, lt as findEnumBlock, m as configureArkormRuntime, ma as PaginationCurrentPageResolver, mc as HasManyThroughRelationMetadata, mi as QueryJoinNestedConstraint, mn as syncPersistedColumnMappingsFromState, mo as GlobalScope, mr as loadModelsFrom, mt as generateMigrationFile, n as PivotModel, na as DelegateRows, nc as FunctionExpressionNode, ni as QueryComparisonOperator, nn as deletePersistedColumnMappingsState, no as ExpressionSelectMap, nr as RegisteredModel, ns as ModelFactory, nt as createMigrationTimestamp, o as resolveRuntimeCompatibilityQuerySchema, oa as DelegateUpdateData, oc as RawExpressionNode, oi as QueryExpressionCondition, on as getPersistedPrimaryKeyGeneration, oo as AttributeCreateInput, or as RuntimePathMap, ot as deriveRelationFieldName, p as bindAdapterToModels, pa as NamingCase, pc as HasManyRelationMetadata, pi as QueryJoinConstraint, pn as resolvePersistedMetadataFeatures, po as DelegateForModelSchema, pr as loadMigrationsFrom, pt as formatRelationAction, q as buildEnumBlock, qa as SoftDeleteConfig, qc as TimestampNames, qi as CastHandler, qn as InitCommand, qo as fromExpressionNode, qr as DatabaseRow, qs as MaybePromise, qt as writeAppliedMigrationsState, r as LoadedRuntimeModule, ra as DelegateSelect, rc as InExpressionNode, ri as QueryCondition, rn as getPersistedColumnMap, ro as GroupByAggregateRow, rr as RuntimeConstructor, rs as defineFactory, rt as deriveCollectionFieldName, s as resolveRuntimeCompatibilityQuerySchemaOrThrow, sa as DelegateWhere, sc as ValueExpressionNode, si as QueryFullTextCondition, sn as getPersistedTableMetadata, so as AttributeOrderBy, sr as getRegisteredFactories, st as deriveSingularFieldName, t as URLDriver, ta as DelegateRow, tc as ExpressionNode, ti as QueryComparisonCondition, tn as createEmptyPersistedColumnMappingsState, to as EachCallback, tr as RegisteredFactory, ts as InlineFactory, tt as buildUniqueConstraintLine, u as createPrismaDelegateMap, ua as GetUserConfig, uc as BelongsToManyRelationMetadata, ui as QueryJoin, un as rebuildPersistedColumnMappingsState, uo as AttributeSelect, ur as getRegisteredPaths, ut as findModelBlock, v as ensureArkormConfigLoading, va as PaginationURLDriverFactory, vc as MorphManyRelationMetadata, vi as QueryJoinValueConstraint, vn as UniqueConstraintResolutionException, vo as ModelCreateData, vr as registerModels, vs as RelationAggregateConstraint, vt as resolveMigrationClassName, w as getRuntimeDebugHandler, wa as PrismaLikeScalarFilter, wc as RelationMetadataType, wi as QueryRawCondition, wn as ModelNotFoundException, wo as ModelEventName, wr as SeederCallArgument, ws as RelationDefaultValue, wt as supportsDatabaseMigrationExecution, x as getDefaultStubsPath, xa as PrismaFindManyArgsLike, xc as MorphToRelationMetadata, xi as QueryLogicalOperator, xn as QueryExecutionException, xo as ModelEventHandler, xr as resetRuntimeRegistryForTests, xs as RelationColumnLookupSpec, xt as runPrismaCommand, y as getActiveTransactionAdapter, ya as PrismaClientLike, yc as MorphOneRelationMetadata, yi as QueryJsonCondition, yn as ScopeNotDefinedException, yo as ModelDeclaredAttributeKey, yr as registerPaths, ys as RelationAggregateInput, yt as resolvePrismaType, z as applyAlterTableOperation, za as QuerySchemaUniqueWhere, zc as SchemaIndex, zi as UpsertSpec, zn as MigrationHistoryCommand, zo as JsonExpression, zr as AdapterModelStructure, zs as FactoryAttributeResolver, zt as isMigrationApplied } from "./index-DYNvPnqx.mjs";
|
|
2
2
|
export { AdapterBindableModel, AdapterCapabilities, AdapterCapability, AdapterDatabaseCreationResult, AdapterInspectionRequest, AdapterModelFieldStructure, AdapterModelIntrospectionOptions, AdapterModelStructure, AdapterQueryInspection, AdapterQueryOperation, AdapterTransactionContext, AggregateExpression, AggregateExpressionNode, AggregateOperation, AggregateSelection, AggregateSpec, AppliedMigrationEntry, AppliedMigrationRun, AppliedMigrationsState, Arkorm, ArkormBootContext, ArkormCollection, ArkormConfig, ArkormDebugEvent, ArkormDebugHandler, ArkormErrorContext, ArkormException, Arkormx, Attribute, AttributeCreateInput, AttributeOptions, AttributeOrderBy, AttributeQuerySchema, AttributeSchemaDelegate, AttributeSelect, AttributeUpdateInput, AttributeWhereInput, BelongsToManyRelationMetadata, BelongsToRelationMetadata, BinaryExpressionNode, CaseExpression, CaseExpressionBranch, CaseExpressionNode, CastDefinition, CastHandler, CastMap, CastType, ChunkCallback, CliApp, ClientResolver, ColumnExpressionNode, ColumnMap, DB, DatabaseAdapter, DatabasePrimitive, DatabaseRow, DatabaseRows, DatabaseTableOptions, DatabaseTablePersistedMetadataOptions, DatabaseValue, DbCommand, DelegateCreateData, DelegateFindManyArgs, DelegateForModelSchema, DelegateInclude, DelegateOrderBy, DelegateRow, DelegateRows, DelegateSelect, DelegateUniqueWhere, DelegateUpdateArgs, DelegateUpdateData, DelegateWhere, DeleteManySpec, DeleteSpec, EachCallback, EagerLoadConstraint, EagerLoadMap, EagerLoadRelations, EnumBuilder, Expression, ExpressionBinaryOperator, ExpressionBuilder, ExpressionJsonCast, ExpressionNode, ExpressionSelectMap, FactoryAttributeResolver, FactoryAttributes, FactoryCallback, FactoryDefinition, FactoryDefinitionAttributes, FactoryModelConstructor, FactoryRelationshipResolver, FactoryState, ForeignKeyBuilder, FunctionExpressionNode, GenerateMigrationOptions, GeneratedColumnExpression, GeneratedMigrationFile, GetUserConfig, GlobalScope, GroupByAggregateRow, GroupByAggregateSpec, HasManyRelationMetadata, HasManyThroughRelationMetadata, HasOneRelationMetadata, HasOneThroughRelationMetadata, InExpressionNode, InitCommand, InlineFactory, InsertManySpec, InsertSpec, JoinClause, JoinOn, JoinSource, JsonExpression, JsonExpressionNode, KyselyDatabaseAdapter, LengthAwarePaginator, LoadedRuntimeModule, MIGRATION_BRAND, MakeFactoryCommand, MakeMigrationCommand, MakeModelCommand, MakeSeederCommand, MaybePromise, MigrateCommand, MigrateFreshCommand, MigrateRollbackCommand, Migration, MigrationClass, MigrationHistoryCommand, MigrationInstanceLike, MissingDelegateException, Model, ModelAttributeValue, ModelAttributes, ModelAttributesOf, ModelCreateData, ModelDeclaredAttributeKey, ModelEventDispatcher, ModelEventHandler, ModelEventHandlerConstructor, ModelEventListener, ModelEventName, ModelFactory, ModelLifecycleState, ModelMetadata, ModelNotFoundException, ModelOrderByInput, ModelQuerySchemaLike, ModelRelationshipKey, ModelRelationshipResult, ModelStatic, ModelTableCase, ModelUpdateData, ModelWhereInput, ModelsSyncCommand, MorphManyRelationMetadata, MorphOneRelationMetadata, MorphToManyRelationMetadata, MorphToRelationMetadata, NamingCase, NullCheckExpressionNode, PRISMA_ENUM_MEMBER_REGEX, PRISMA_ENUM_REGEX, PRISMA_MODEL_REGEX, PaginationCurrentPageResolver, PaginationMeta, PaginationOptions, PaginationURLDriver, PaginationURLDriverFactory, Paginator, PersistedColumnMappingsState, PersistedMetadataFeatures, PersistedPrimaryKeyGeneration, PersistedTableMetadata, PersistedTimestampColumn, PivotModel, PivotModelStatic, PrimaryKeyGeneration, PrimaryKeyGenerationPlanner, PrismaClientLike, PrismaDatabaseAdapter, PrismaDelegateLike, PrismaDelegateMap, PrismaDelegateNameMapping, PrismaFindManyArgsLike, PrismaLikeInclude, PrismaLikeOrderBy, PrismaLikeScalarFilter, PrismaLikeSelect, PrismaLikeSortOrder, PrismaLikeWhereInput, PrismaMigrationWorkflowOptions, PrismaSchemaSyncOptions, PrismaTransactionCallback, PrismaTransactionCapableClient, PrismaTransactionContext, PrismaTransactionOptions, QueryBuilder, QueryColumnComparisonCondition, QueryComparisonCondition, QueryComparisonOperator, QueryCondition, QueryConstraintException, QueryDayCondition, QueryExecutionException, QueryExecutionExceptionContext, QueryExistsCondition, QueryExpressionCondition, QueryFullTextCondition, QueryGroupByItem, QueryGroupCondition, QueryJoin, QueryJoinBoolean, QueryJoinColumnConstraint, QueryJoinConstraint, QueryJoinNestedConstraint, QueryJoinNullConstraint, QueryJoinRawConstraint, QueryJoinType, QueryJoinValueConstraint, QueryJsonCondition, QueryJsonConditionKind, QueryLogicalOperator, QueryNotCondition, QueryOrderBy, QueryRawCondition, QueryScalarComparisonOperator, QuerySchemaCreateData, QuerySchemaFindManyArgs, QuerySchemaForModel, QuerySchemaForModelInstance, QuerySchemaInclude, QuerySchemaOrderBy, QuerySchemaRow, QuerySchemaRows, QuerySchemaSelect, QuerySchemaUniqueWhere, QuerySchemaUpdateArgs, QuerySchemaUpdateData, QuerySchemaWhere, QuerySelectColumn, QueryTarget, QueryTimeCondition, RawExpressionNode, RawQuerySpec, RawSelectInput, RegisteredFactory, RegisteredModel, RelatedModelClass, RelatedModelForRelationship, RelatedModelFromResult, RelationAggregateConstraint, RelationAggregateInput, RelationAggregateSpec, RelationAggregateType, RelationColumnLookupSpec, RelationConstraint, RelationDefaultResolver, RelationDefaultValue, RelationFilterSpec, RelationLoadPlan, RelationLoadSpec, RelationMetadata, RelationMetadataProvider, RelationMetadataType, RelationResolutionException, RelationResult, RelationResultCache, RelationTableLookupSpec, RelationshipModelStatic, RuntimeClientLike, RuntimeConstructor, RuntimeModuleLoader, RuntimePathInput, RuntimePathKey, RuntimePathMap, SEEDER_BRAND, SchemaBuilder, SchemaColumn, SchemaColumnType, SchemaForeignKey, SchemaForeignKeyAction, SchemaIndex, SchemaOperation, SchemaPrimaryKey, SchemaTableAlterOperation, SchemaTableCreateOperation, SchemaTableDropOperation, SchemaUniqueConstraint, ScopeNotDefinedException, SeedCommand, Seeder, SeederCallArgument, SeederConstructor, SeederInput, SelectSpec, Serializable, SimplePaginationMeta, SoftDeleteConfig, SoftDeleteQueryMode, SortDirection, TableBuilder, TimestampColumnBehavior, TimestampNames, TimestampNaming, TransactionCallback, TransactionCapableClient, TransactionContext, TransactionOptions, URLDriver, UniqueConstraintResolutionException, UnsupportedAdapterFeatureException, UpdateManySpec, UpdateSpec, UpsertSpec, ValueExpressionNode, WhereCallback, applyAlterTableOperation, applyCreateTableOperation, applyDropTableOperation, applyMigrationRollbackToDatabase, applyMigrationRollbackToPrismaSchema, applyMigrationToDatabase, applyMigrationToPrismaSchema, applyOperationsToPersistedColumnMappingsState, applyOperationsToPrismaSchema, avg, awaitConfiguredModelsRegistration, bindAdapterToModels, buildEnumBlock, buildFieldLine, buildIndexLine, buildInverseRelationLine, buildMigrationIdentity, buildMigrationRunId, buildMigrationSource, buildModelBlock, buildPrimaryKeyLine, buildRelationLine, buildUniqueConstraintLine, caseWhen, coalesce, col, computeMigrationChecksum, configureArkormRuntime, count, createEmptyAppliedMigrationsState, createEmptyPersistedColumnMappingsState, createKyselyAdapter, createMigrationTimestamp, createPrismaAdapter, createPrismaCompatibilityAdapter, createPrismaDatabaseAdapter, createPrismaDelegateMap, defineConfig, defineFactory, deleteAppliedMigrationsStateFromStore, deletePersistedColumnMappingsState, deriveCollectionFieldName, deriveInverseRelationAlias, deriveRelationAlias, deriveRelationFieldName, deriveSingularFieldName, disposeArkormRuntime, emitRuntimeDebugEvent, ensureArkormConfigLoading, escapeRegex, expressionBuilder, findAppliedMigration, findEnumBlock, findModelBlock, fn, formatDefaultValue, formatEnumDefaultValue, formatRelationAction, fromExpressionNode, generateMigrationFile, getActiveTransactionAdapter, getActiveTransactionClient, getDefaultStubsPath, getLastBatchMigrations, getLastMigrationRun, getLatestAppliedMigrations, getMigrationPlan, getPersistedColumnMap, getPersistedEnumMap, getPersistedEnumTsType, getPersistedPrimaryKeyGeneration, getPersistedTableMetadata, getPersistedTimestampColumns, getRegisteredFactories, getRegisteredMigrations, getRegisteredModels, getRegisteredPaths, getRegisteredSeeders, getRuntimeAdapter, getRuntimeClient, getRuntimeCompatibilityAdapter, getRuntimeDebugHandler, getRuntimePaginationCurrentPageResolver, getRuntimePaginationURLDriverFactory, getRuntimePrismaClient, getUserConfig, inferDelegateName, isDelegateLike, isMigrationApplied, isMigrationPlanningActive, isQuerySchemaLike, isTransactionCapableClient, json, loadArkormConfig, loadFactoriesFrom, loadMigrationsFrom, loadModelsFrom, loadSeedersFrom, markMigrationApplied, markMigrationRun, max, min, pad, raw, readAppliedMigrationsState, readAppliedMigrationsStateFromStore, readPersistedColumnMappingsState, rebuildPersistedColumnMappingsState, registerFactories, registerMigrations, registerModels, registerPaths, registerSeeders, removeAppliedMigration, resetArkormRuntimeForTests, resetPersistedColumnMappingsCache, resetRuntimeRegistryForTests, resolveCast, resolveColumnMappingsFilePath, resolveEnumName, resolveGeneratedExpression, resolveMigrationClassName, resolveMigrationStateFilePath, resolvePersistedMetadataFeatures, resolvePrismaType, resolveRuntimeCompatibilityQuerySchema, resolveRuntimeCompatibilityQuerySchemaOrThrow, runArkormTransaction, runInMigrationPlanning, runMigrationWithPrisma, runPrismaCommand, stripPrismaSchemaModelsAndEnums, sum, supportsDatabaseCreation, supportsDatabaseMigrationExecution, supportsDatabaseMigrationState, supportsDatabaseReset, syncPersistedColumnMappingsFromState, toMigrationFileSlug, toModelName, val, validatePersistedMetadataFeaturesForMigrations, where, writeAppliedMigrationsState, writeAppliedMigrationsStateToStore, writePersistedColumnMappingsState };
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as resetRuntimeRegistryForTests, $n as writeAppliedMigrationsState, $t as resolveMigrationClassName, A as getRuntimePaginationURLDriverFactory, An as raw, At as buildIndexLine, B as getRegisteredMigrations, Bn as deleteAppliedMigrationsStateFromStore, Bt as deriveRelationAlias, C as getActiveTransactionAdapter, Cn as count, Ct as applyMigrationRollbackToDatabase, D as getRuntimeClient, Dn as json, Dt as applyOperationsToPrismaSchema, E as getRuntimeAdapter, En as fromExpressionNode, Et as applyMigrationToPrismaSchema, F as isTransactionCapableClient, Fn as ForeignKeyBuilder, Ft as buildRelationLine, G as loadMigrationsFrom, Gn as isMigrationApplied, Gt as findModelBlock, H as getRegisteredPaths, Hn as getLastBatchMigrations, Ht as deriveSingularFieldName, I as loadArkormConfig, In as buildMigrationIdentity, It as buildUniqueConstraintLine, J as registerFactories, Jn as readAppliedMigrationsState, Jt as formatRelationAction, K as loadModelsFrom, Kn as markMigrationApplied, Kt as formatDefaultValue, L as resetArkormRuntimeForTests, Ln as buildMigrationRunId, Lt as createMigrationTimestamp, M as getUserConfig, Mn as val, Mt as buildMigrationSource, N as isDelegateLike, Nn as where, Nt as buildModelBlock, O as getRuntimeDebugHandler, On as max, Ot as buildEnumBlock, P as isQuerySchemaLike, Pn as PrimaryKeyGenerationPlanner, Pt as buildPrimaryKeyLine, Q as registerSeeders, Qn as supportsDatabaseMigrationState, Qt as resolveEnumName, R as runArkormTransaction, Rn as computeMigrationChecksum, Rt as deriveCollectionFieldName, S as ensureArkormConfigLoading, Sn as col, St as applyDropTableOperation, T as getDefaultStubsPath, Tn as fn, Tt as applyMigrationToDatabase, U as getRegisteredSeeders, Un as getLastMigrationRun, Ut as escapeRegex, V as getRegisteredModels, Vn as findAppliedMigration, Vt as deriveRelationFieldName, W as loadFactoriesFrom, Wn as getLatestAppliedMigrations, Wt as findEnumBlock, X as registerModels, Xn as removeAppliedMigration, Xt as getMigrationPlan, Y as registerMigrations, Yn as readAppliedMigrationsStateFromStore, Yt as generateMigrationFile, Z as registerPaths, Zn as resolveMigrationStateFilePath, Zt as pad, _ as bindAdapterToModels, _n as Expression, _t as PRISMA_ENUM_MEMBER_REGEX, a as HasOneThroughRelation, an as supportsDatabaseMigrationExecution, ar as RelationResolutionException, at as getPersistedEnumTsType, b as disposeArkormRuntime, bn as caseWhen, bt as applyAlterTableOperation, c as HasManyRelation, cn as toModelName, ct as getPersistedTimestampColumns, d as BelongsToManyRelation, dn as SchemaBuilder, dt as resetPersistedColumnMappingsCache, en as resolvePrismaType, er as writeAppliedMigrationsStateToStore, et as applyOperationsToPersistedColumnMappingsState, f as Relation, fn as EnumBuilder, ft as resolveColumnMappingsFilePath, g as awaitConfiguredModelsRegistration, gn as CaseExpression, gt as writePersistedColumnMappingsState, h as URLDriver, hn as AggregateExpression, ht as validatePersistedMetadataFeaturesForMigrations, i as MorphManyRelation, in as supportsDatabaseCreation, it as getPersistedEnumMap, j as getRuntimePrismaClient, jn as sum, jt as buildInverseRelationLine, k as getRuntimePaginationCurrentPageResolver, kn as min, kt as buildFieldLine, l as BelongsToRelation, ln as isMigrationPlanningActive, lt as readPersistedColumnMappingsState, m as Paginator, mn as resolveGeneratedExpression, mt as syncPersistedColumnMappingsFromState, n as MorphToManyRelation, nn as runPrismaCommand, nr as UnsupportedAdapterFeatureException, nt as deletePersistedColumnMappingsState, o as HasOneRelation, on as supportsDatabaseReset, or as ArkormCollection, ot as getPersistedPrimaryKeyGeneration, p as LengthAwarePaginator, pn as TableBuilder, pt as resolvePersistedMetadataFeatures, q as loadSeedersFrom, qn as markMigrationRun, qt as formatEnumDefaultValue, r as MorphOneRelation, rn as stripPrismaSchemaModelsAndEnums, rr as SetBasedEagerLoader, rt as getPersistedColumnMap, s as HasManyThroughRelation, sn as toMigrationFileSlug, sr as ArkormException, st as getPersistedTableMetadata, t as MorphToRelation, tn as runMigrationWithPrisma, tr as RuntimeModuleLoader, tt as createEmptyPersistedColumnMappingsState, un as runInMigrationPlanning, ut as rebuildPersistedColumnMappingsState, v as configureArkormRuntime, vn as JsonExpression, vt as PRISMA_ENUM_REGEX, w as getActiveTransactionClient, wn as expressionBuilder, wt as applyMigrationRollbackToPrismaSchema, x as emitRuntimeDebugEvent, xn as coalesce, xt as applyCreateTableOperation, y as defineConfig, yn as avg, yt as PRISMA_MODEL_REGEX, z as getRegisteredFactories, zn as createEmptyAppliedMigrationsState, zt as deriveInverseRelationAlias } from "./relationship-
|
|
1
|
+
import { $ as resetRuntimeRegistryForTests, $n as writeAppliedMigrationsState, $t as resolveMigrationClassName, A as getRuntimePaginationURLDriverFactory, An as raw, At as buildIndexLine, B as getRegisteredMigrations, Bn as deleteAppliedMigrationsStateFromStore, Bt as deriveRelationAlias, C as getActiveTransactionAdapter, Cn as count, Ct as applyMigrationRollbackToDatabase, D as getRuntimeClient, Dn as json, Dt as applyOperationsToPrismaSchema, E as getRuntimeAdapter, En as fromExpressionNode, Et as applyMigrationToPrismaSchema, F as isTransactionCapableClient, Fn as ForeignKeyBuilder, Ft as buildRelationLine, G as loadMigrationsFrom, Gn as isMigrationApplied, Gt as findModelBlock, H as getRegisteredPaths, Hn as getLastBatchMigrations, Ht as deriveSingularFieldName, I as loadArkormConfig, In as buildMigrationIdentity, It as buildUniqueConstraintLine, J as registerFactories, Jn as readAppliedMigrationsState, Jt as formatRelationAction, K as loadModelsFrom, Kn as markMigrationApplied, Kt as formatDefaultValue, L as resetArkormRuntimeForTests, Ln as buildMigrationRunId, Lt as createMigrationTimestamp, M as getUserConfig, Mn as val, Mt as buildMigrationSource, N as isDelegateLike, Nn as where, Nt as buildModelBlock, O as getRuntimeDebugHandler, On as max, Ot as buildEnumBlock, P as isQuerySchemaLike, Pn as PrimaryKeyGenerationPlanner, Pt as buildPrimaryKeyLine, Q as registerSeeders, Qn as supportsDatabaseMigrationState, Qt as resolveEnumName, R as runArkormTransaction, Rn as computeMigrationChecksum, Rt as deriveCollectionFieldName, S as ensureArkormConfigLoading, Sn as col, St as applyDropTableOperation, T as getDefaultStubsPath, Tn as fn, Tt as applyMigrationToDatabase, U as getRegisteredSeeders, Un as getLastMigrationRun, Ut as escapeRegex, V as getRegisteredModels, Vn as findAppliedMigration, Vt as deriveRelationFieldName, W as loadFactoriesFrom, Wn as getLatestAppliedMigrations, Wt as findEnumBlock, X as registerModels, Xn as removeAppliedMigration, Xt as getMigrationPlan, Y as registerMigrations, Yn as readAppliedMigrationsStateFromStore, Yt as generateMigrationFile, Z as registerPaths, Zn as resolveMigrationStateFilePath, Zt as pad, _ as bindAdapterToModels, _n as Expression, _t as PRISMA_ENUM_MEMBER_REGEX, a as HasOneThroughRelation, an as supportsDatabaseMigrationExecution, ar as RelationResolutionException, at as getPersistedEnumTsType, b as disposeArkormRuntime, bn as caseWhen, bt as applyAlterTableOperation, c as HasManyRelation, cn as toModelName, ct as getPersistedTimestampColumns, d as BelongsToManyRelation, dn as SchemaBuilder, dt as resetPersistedColumnMappingsCache, en as resolvePrismaType, er as writeAppliedMigrationsStateToStore, et as applyOperationsToPersistedColumnMappingsState, f as Relation, fn as EnumBuilder, ft as resolveColumnMappingsFilePath, g as awaitConfiguredModelsRegistration, gn as CaseExpression, gt as writePersistedColumnMappingsState, h as URLDriver, hn as AggregateExpression, ht as validatePersistedMetadataFeaturesForMigrations, i as MorphManyRelation, in as supportsDatabaseCreation, it as getPersistedEnumMap, j as getRuntimePrismaClient, jn as sum, jt as buildInverseRelationLine, k as getRuntimePaginationCurrentPageResolver, kn as min, kt as buildFieldLine, l as BelongsToRelation, ln as isMigrationPlanningActive, lt as readPersistedColumnMappingsState, m as Paginator, mn as resolveGeneratedExpression, mt as syncPersistedColumnMappingsFromState, n as MorphToManyRelation, nn as runPrismaCommand, nr as UnsupportedAdapterFeatureException, nt as deletePersistedColumnMappingsState, o as HasOneRelation, on as supportsDatabaseReset, or as ArkormCollection, ot as getPersistedPrimaryKeyGeneration, p as LengthAwarePaginator, pn as TableBuilder, pt as resolvePersistedMetadataFeatures, q as loadSeedersFrom, qn as markMigrationRun, qt as formatEnumDefaultValue, r as MorphOneRelation, rn as stripPrismaSchemaModelsAndEnums, rr as SetBasedEagerLoader, rt as getPersistedColumnMap, s as HasManyThroughRelation, sn as toMigrationFileSlug, sr as ArkormException, st as getPersistedTableMetadata, t as MorphToRelation, tn as runMigrationWithPrisma, tr as RuntimeModuleLoader, tt as createEmptyPersistedColumnMappingsState, un as runInMigrationPlanning, ut as rebuildPersistedColumnMappingsState, v as configureArkormRuntime, vn as JsonExpression, vt as PRISMA_ENUM_REGEX, w as getActiveTransactionClient, wn as expressionBuilder, wt as applyMigrationRollbackToPrismaSchema, x as emitRuntimeDebugEvent, xn as coalesce, xt as applyCreateTableOperation, y as defineConfig, yn as avg, yt as PRISMA_MODEL_REGEX, z as getRegisteredFactories, zn as createEmptyAppliedMigrationsState, zt as deriveInverseRelationAlias } from "./relationship-DwQfiCEZ.mjs";
|
|
2
2
|
import { Pool } from "pg";
|
|
3
3
|
import { join, resolve } from "node:path";
|
|
4
4
|
import { createRequire } from "module";
|
|
@@ -4743,15 +4743,62 @@ var QueryBuilder = class QueryBuilder {
|
|
|
4743
4743
|
if (typeof resolvedPage !== "number" || !Number.isFinite(resolvedPage)) return 1;
|
|
4744
4744
|
return Math.max(1, resolvedPage);
|
|
4745
4745
|
}
|
|
4746
|
-
where(
|
|
4747
|
-
if (
|
|
4748
|
-
if (typeof
|
|
4749
|
-
return this.
|
|
4746
|
+
where(columnOrWhere, operatorOrValue, value) {
|
|
4747
|
+
if (columnOrWhere instanceof Expression) return this.appendExpressionCondition("AND", columnOrWhere);
|
|
4748
|
+
if (typeof columnOrWhere === "function") return this.appendNestedWhere("AND", columnOrWhere);
|
|
4749
|
+
if (typeof columnOrWhere === "string") return this.addPositionalWhere("AND", columnOrWhere, arguments.length, operatorOrValue, value);
|
|
4750
|
+
return this.addLogicalWhere("AND", columnOrWhere);
|
|
4751
|
+
}
|
|
4752
|
+
orWhere(columnOrWhere, operatorOrValue, value) {
|
|
4753
|
+
if (columnOrWhere instanceof Expression) return this.appendExpressionCondition("OR", columnOrWhere);
|
|
4754
|
+
if (typeof columnOrWhere === "function") return this.appendNestedWhere("OR", columnOrWhere);
|
|
4755
|
+
if (typeof columnOrWhere === "string") return this.addPositionalWhere("OR", columnOrWhere, arguments.length, operatorOrValue, value);
|
|
4756
|
+
return this.addLogicalWhere("OR", columnOrWhere);
|
|
4757
|
+
}
|
|
4758
|
+
/**
|
|
4759
|
+
* Resolves the positional `where(column, value)`, `where(column, operator, value)`,
|
|
4760
|
+
* and unary `where(column, 'is-null' | 'is-not-null')` forms into a comparison
|
|
4761
|
+
* condition and appends it.
|
|
4762
|
+
*/
|
|
4763
|
+
addPositionalWhere(boolean, column, argCount, operatorOrValue, value) {
|
|
4764
|
+
const unaryOperators = new Set(["is-null", "is-not-null"]);
|
|
4765
|
+
let operator;
|
|
4766
|
+
let resolvedValue;
|
|
4767
|
+
if (argCount >= 3) {
|
|
4768
|
+
operator = this.normalizeWhereOperator(operatorOrValue);
|
|
4769
|
+
resolvedValue = value;
|
|
4770
|
+
} else if (typeof operatorOrValue === "string" && unaryOperators.has(operatorOrValue)) {
|
|
4771
|
+
operator = operatorOrValue;
|
|
4772
|
+
resolvedValue = void 0;
|
|
4773
|
+
} else {
|
|
4774
|
+
operator = "=";
|
|
4775
|
+
resolvedValue = operatorOrValue;
|
|
4776
|
+
}
|
|
4777
|
+
const condition = {
|
|
4778
|
+
type: "comparison",
|
|
4779
|
+
column,
|
|
4780
|
+
operator,
|
|
4781
|
+
value: resolvedValue
|
|
4782
|
+
};
|
|
4783
|
+
return this.appendStructuredWhere(boolean, condition);
|
|
4750
4784
|
}
|
|
4751
|
-
|
|
4752
|
-
if (
|
|
4753
|
-
if (
|
|
4754
|
-
return
|
|
4785
|
+
normalizeWhereOperator(operator) {
|
|
4786
|
+
if (operator === "<>") return "!=";
|
|
4787
|
+
if (operator === "==") return "=";
|
|
4788
|
+
return operator;
|
|
4789
|
+
}
|
|
4790
|
+
/**
|
|
4791
|
+
* Appends a pre-built structured condition, first flushing any Prisma-like
|
|
4792
|
+
* legacy where into the structured representation so the two combine correctly.
|
|
4793
|
+
*/
|
|
4794
|
+
appendStructuredWhere(boolean, condition) {
|
|
4795
|
+
if (this.legacyWhere) {
|
|
4796
|
+
const existing = this.tryBuildQueryCondition(this.legacyWhere);
|
|
4797
|
+
this.legacyWhere = void 0;
|
|
4798
|
+
if (existing) this.queryWhere = existing;
|
|
4799
|
+
}
|
|
4800
|
+
this.appendQueryCondition(boolean, condition);
|
|
4801
|
+
return this;
|
|
4755
4802
|
}
|
|
4756
4803
|
/**
|
|
4757
4804
|
* Appends a boolean {@link Expression} as a where predicate. When the query is
|
|
@@ -4763,13 +4810,7 @@ var QueryBuilder = class QueryBuilder {
|
|
|
4763
4810
|
type: "expression",
|
|
4764
4811
|
expression: expression.toExpressionNode()
|
|
4765
4812
|
};
|
|
4766
|
-
|
|
4767
|
-
const existing = this.tryBuildQueryCondition(this.legacyWhere);
|
|
4768
|
-
this.legacyWhere = void 0;
|
|
4769
|
-
if (existing) this.queryWhere = existing;
|
|
4770
|
-
}
|
|
4771
|
-
this.appendQueryCondition(boolean, condition);
|
|
4772
|
-
return this;
|
|
4813
|
+
return this.appendStructuredWhere(boolean, condition);
|
|
4773
4814
|
}
|
|
4774
4815
|
/**
|
|
4775
4816
|
* Resolve a callback into a parenthesized group condition and append it.
|
|
@@ -8375,6 +8416,9 @@ var Model = class Model {
|
|
|
8375
8416
|
static {
|
|
8376
8417
|
this.computedCache = /* @__PURE__ */ new WeakMap();
|
|
8377
8418
|
}
|
|
8419
|
+
static {
|
|
8420
|
+
this.attributeAccessorCache = /* @__PURE__ */ new WeakMap();
|
|
8421
|
+
}
|
|
8378
8422
|
static {
|
|
8379
8423
|
this.emittedDeprecationWarnings = /* @__PURE__ */ new Set();
|
|
8380
8424
|
}
|
|
@@ -8418,7 +8462,7 @@ var Model = class Model {
|
|
|
8418
8462
|
return new Proxy(this, {
|
|
8419
8463
|
get: (target, key, receiver) => {
|
|
8420
8464
|
if (typeof key !== "string") return Reflect.get(target, key, receiver);
|
|
8421
|
-
const attributeMutator = target.resolveAttributeMutator(key);
|
|
8465
|
+
const attributeMutator = target.resolveAttributeMutator(key, true);
|
|
8422
8466
|
if (key in target && !attributeMutator) return Reflect.get(target, key, receiver);
|
|
8423
8467
|
return target.getAttribute(key);
|
|
8424
8468
|
},
|
|
@@ -8976,7 +9020,7 @@ var Model = class Model {
|
|
|
8976
9020
|
return await this.fill(attributes).saveOrFail();
|
|
8977
9021
|
}
|
|
8978
9022
|
getAttribute(key) {
|
|
8979
|
-
const attributeMutator = this.resolveAttributeMutator(key);
|
|
9023
|
+
const attributeMutator = this.resolveAttributeMutator(key, true);
|
|
8980
9024
|
const mutator = this.resolveGetMutator(key);
|
|
8981
9025
|
const cast = this.casts[key];
|
|
8982
9026
|
let value = this.attributes[key];
|
|
@@ -9570,7 +9614,7 @@ var Model = class Model {
|
|
|
9570
9614
|
* @param key
|
|
9571
9615
|
* @returns
|
|
9572
9616
|
*/
|
|
9573
|
-
resolveAttributeMutator(key) {
|
|
9617
|
+
resolveAttributeMutator(key, requireDeclaredAttribute = false) {
|
|
9574
9618
|
if (key === "constructor") return null;
|
|
9575
9619
|
const methodName = `${str(key).camel()}`;
|
|
9576
9620
|
const prototype = Object.getPrototypeOf(this);
|
|
@@ -9578,9 +9622,45 @@ var Model = class Model {
|
|
|
9578
9622
|
const method = prototype[methodName];
|
|
9579
9623
|
if (typeof method !== "function") return null;
|
|
9580
9624
|
if (method === Model.prototype[methodName]) return null;
|
|
9625
|
+
if (method.length !== 0) return null;
|
|
9626
|
+
if (requireDeclaredAttribute && !this.isDeclaredAttributeKey(key)) return null;
|
|
9627
|
+
const cache = Model.resolveAttributeAccessorCache(this.constructor);
|
|
9628
|
+
let isAccessor = cache.get(methodName);
|
|
9629
|
+
if (isAccessor === void 0) {
|
|
9630
|
+
const probe = method.call(this);
|
|
9631
|
+
isAccessor = Attribute.isAttribute(probe);
|
|
9632
|
+
cache.set(methodName, isAccessor);
|
|
9633
|
+
if (isAccessor) return probe;
|
|
9634
|
+
}
|
|
9635
|
+
if (!isAccessor) return null;
|
|
9581
9636
|
const resolved = method.call(this);
|
|
9582
|
-
|
|
9583
|
-
|
|
9637
|
+
return Attribute.isAttribute(resolved) ? resolved : null;
|
|
9638
|
+
}
|
|
9639
|
+
static resolveAttributeAccessorCache(constructor) {
|
|
9640
|
+
let cache = Model.attributeAccessorCache.get(constructor);
|
|
9641
|
+
if (!cache) {
|
|
9642
|
+
cache = /* @__PURE__ */ new Map();
|
|
9643
|
+
Model.attributeAccessorCache.set(constructor, cache);
|
|
9644
|
+
}
|
|
9645
|
+
return cache;
|
|
9646
|
+
}
|
|
9647
|
+
/**
|
|
9648
|
+
* Whether `key` names a model attribute — a loaded attribute, an appended
|
|
9649
|
+
* accessor, a cast, or a mapped column. Gates Attribute-object accessor probing
|
|
9650
|
+
* on the read path so relations/actions are never invoked by property access.
|
|
9651
|
+
*
|
|
9652
|
+
* @param key
|
|
9653
|
+
* @returns
|
|
9654
|
+
*/
|
|
9655
|
+
isDeclaredAttributeKey(key) {
|
|
9656
|
+
if (Object.prototype.hasOwnProperty.call(this.attributes, key)) return true;
|
|
9657
|
+
if (Array.isArray(this.appends) && this.appends.includes(key)) return true;
|
|
9658
|
+
if (this.casts && Object.prototype.hasOwnProperty.call(this.casts, key)) return true;
|
|
9659
|
+
try {
|
|
9660
|
+
const columns = this.constructor.getColumnMap();
|
|
9661
|
+
if (columns && Object.prototype.hasOwnProperty.call(columns, key)) return true;
|
|
9662
|
+
} catch {}
|
|
9663
|
+
return false;
|
|
9584
9664
|
}
|
|
9585
9665
|
/**
|
|
9586
9666
|
* Resolve a set mutator method for a given attribute key, if it exists.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_relationship = require('../relationship-
|
|
2
|
+
const require_relationship = require('../relationship-2fnJrK_E.cjs');
|
|
3
3
|
|
|
4
4
|
exports.BelongsToManyRelation = require_relationship.BelongsToManyRelation;
|
|
5
5
|
exports.BelongsToRelation = require_relationship.BelongsToRelation;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _s as RelationTableLoader, as as MorphToRelation, cs as MorphManyRelation, ds as HasManyThroughRelation, fs as HasManyRelation, gs as Relation, hs as BelongsToManyRelation, is as SetBasedEagerLoader, ls as HasOneThroughRelation, ms as SingleResultRelation, os as MorphToManyRelation, ps as BelongsToRelation, ss as MorphOneRelation, us as HasOneRelation } from "../index-
|
|
1
|
+
import { _s as RelationTableLoader, as as MorphToRelation, cs as MorphManyRelation, ds as HasManyThroughRelation, fs as HasManyRelation, gs as Relation, hs as BelongsToManyRelation, is as SetBasedEagerLoader, ls as HasOneThroughRelation, ms as SingleResultRelation, os as MorphToManyRelation, ps as BelongsToRelation, ss as MorphOneRelation, us as HasOneRelation } from "../index-DI1Hid1L.cjs";
|
|
2
2
|
export { BelongsToManyRelation, BelongsToRelation, HasManyRelation, HasManyThroughRelation, HasOneRelation, HasOneThroughRelation, MorphManyRelation, MorphOneRelation, MorphToManyRelation, MorphToRelation, Relation, RelationTableLoader, SetBasedEagerLoader, SingleResultRelation };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _s as RelationTableLoader, as as MorphToRelation, cs as MorphManyRelation, ds as HasManyThroughRelation, fs as HasManyRelation, gs as Relation, hs as BelongsToManyRelation, is as SetBasedEagerLoader, ls as HasOneThroughRelation, ms as SingleResultRelation, os as MorphToManyRelation, ps as BelongsToRelation, ss as MorphOneRelation, us as HasOneRelation } from "../index-
|
|
1
|
+
import { _s as RelationTableLoader, as as MorphToRelation, cs as MorphManyRelation, ds as HasManyThroughRelation, fs as HasManyRelation, gs as Relation, hs as BelongsToManyRelation, is as SetBasedEagerLoader, ls as HasOneThroughRelation, ms as SingleResultRelation, os as MorphToManyRelation, ps as BelongsToRelation, ss as MorphOneRelation, us as HasOneRelation } from "../index-DYNvPnqx.mjs";
|
|
2
2
|
export { BelongsToManyRelation, BelongsToRelation, HasManyRelation, HasManyThroughRelation, HasOneRelation, HasOneThroughRelation, MorphManyRelation, MorphOneRelation, MorphToManyRelation, MorphToRelation, Relation, RelationTableLoader, SetBasedEagerLoader, SingleResultRelation };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as HasOneThroughRelation, c as HasManyRelation, d as BelongsToManyRelation, f as Relation, i as MorphManyRelation, ir as RelationTableLoader, l as BelongsToRelation, n as MorphToManyRelation, o as HasOneRelation, r as MorphOneRelation, rr as SetBasedEagerLoader, s as HasManyThroughRelation, t as MorphToRelation, u as SingleResultRelation } from "../relationship-
|
|
1
|
+
import { a as HasOneThroughRelation, c as HasManyRelation, d as BelongsToManyRelation, f as Relation, i as MorphManyRelation, ir as RelationTableLoader, l as BelongsToRelation, n as MorphToManyRelation, o as HasOneRelation, r as MorphOneRelation, rr as SetBasedEagerLoader, s as HasManyThroughRelation, t as MorphToRelation, u as SingleResultRelation } from "../relationship-DwQfiCEZ.mjs";
|
|
2
2
|
|
|
3
3
|
export { BelongsToManyRelation, BelongsToRelation, HasManyRelation, HasManyThroughRelation, HasOneRelation, HasOneThroughRelation, MorphManyRelation, MorphOneRelation, MorphToManyRelation, MorphToRelation, Relation, RelationTableLoader, SetBasedEagerLoader, SingleResultRelation };
|
|
@@ -5448,6 +5448,7 @@ var BelongsToManyRelation = class BelongsToManyRelation extends Relation {
|
|
|
5448
5448
|
this.pivotColumns = /* @__PURE__ */ new Set();
|
|
5449
5449
|
this.pivotAccessor = "pivot";
|
|
5450
5450
|
this.shouldAttachPivot = false;
|
|
5451
|
+
this.pivotValues = /* @__PURE__ */ new Map();
|
|
5451
5452
|
}
|
|
5452
5453
|
/**
|
|
5453
5454
|
* Specifies additional pivot columns to include on the related models.
|
|
@@ -5491,6 +5492,22 @@ var BelongsToManyRelation = class BelongsToManyRelation extends Relation {
|
|
|
5491
5492
|
this.shouldAttachPivot = true;
|
|
5492
5493
|
return this;
|
|
5493
5494
|
}
|
|
5495
|
+
withPivotValue(column, value) {
|
|
5496
|
+
if (typeof column === "object" && column !== null) {
|
|
5497
|
+
Object.entries(column).forEach(([name, columnValue]) => {
|
|
5498
|
+
this.applyPivotValue(name, columnValue);
|
|
5499
|
+
});
|
|
5500
|
+
return this;
|
|
5501
|
+
}
|
|
5502
|
+
return this.applyPivotValue(column, value);
|
|
5503
|
+
}
|
|
5504
|
+
applyPivotValue(column, value) {
|
|
5505
|
+
const normalized = column.trim();
|
|
5506
|
+
if (normalized.length === 0) return this;
|
|
5507
|
+
this.wherePivot(normalized, value);
|
|
5508
|
+
this.pivotValues.set(normalized, value);
|
|
5509
|
+
return this;
|
|
5510
|
+
}
|
|
5494
5511
|
/**
|
|
5495
5512
|
* Specifies a custom pivot model to use for the pivot records. The pivot model can
|
|
5496
5513
|
* be used to define custom behavior or methods on the pivot records, as well as to
|
|
@@ -5682,6 +5699,7 @@ var BelongsToManyRelation = class BelongsToManyRelation extends Relation {
|
|
|
5682
5699
|
}
|
|
5683
5700
|
buildPivotInsertValues(related, attributes = {}) {
|
|
5684
5701
|
const values = {
|
|
5702
|
+
...Object.fromEntries(this.pivotValues),
|
|
5685
5703
|
...attributes,
|
|
5686
5704
|
[this.foreignPivotKey]: this.resolveParentPivotValue(),
|
|
5687
5705
|
[this.relatedPivotKey]: this.resolveRelatedPivotValue(related)
|
|
@@ -5420,6 +5420,7 @@ var BelongsToManyRelation = class BelongsToManyRelation extends Relation {
|
|
|
5420
5420
|
this.pivotColumns = /* @__PURE__ */ new Set();
|
|
5421
5421
|
this.pivotAccessor = "pivot";
|
|
5422
5422
|
this.shouldAttachPivot = false;
|
|
5423
|
+
this.pivotValues = /* @__PURE__ */ new Map();
|
|
5423
5424
|
}
|
|
5424
5425
|
/**
|
|
5425
5426
|
* Specifies additional pivot columns to include on the related models.
|
|
@@ -5463,6 +5464,22 @@ var BelongsToManyRelation = class BelongsToManyRelation extends Relation {
|
|
|
5463
5464
|
this.shouldAttachPivot = true;
|
|
5464
5465
|
return this;
|
|
5465
5466
|
}
|
|
5467
|
+
withPivotValue(column, value) {
|
|
5468
|
+
if (typeof column === "object" && column !== null) {
|
|
5469
|
+
Object.entries(column).forEach(([name, columnValue]) => {
|
|
5470
|
+
this.applyPivotValue(name, columnValue);
|
|
5471
|
+
});
|
|
5472
|
+
return this;
|
|
5473
|
+
}
|
|
5474
|
+
return this.applyPivotValue(column, value);
|
|
5475
|
+
}
|
|
5476
|
+
applyPivotValue(column, value) {
|
|
5477
|
+
const normalized = column.trim();
|
|
5478
|
+
if (normalized.length === 0) return this;
|
|
5479
|
+
this.wherePivot(normalized, value);
|
|
5480
|
+
this.pivotValues.set(normalized, value);
|
|
5481
|
+
return this;
|
|
5482
|
+
}
|
|
5466
5483
|
/**
|
|
5467
5484
|
* Specifies a custom pivot model to use for the pivot records. The pivot model can
|
|
5468
5485
|
* be used to define custom behavior or methods on the pivot records, as well as to
|
|
@@ -5654,6 +5671,7 @@ var BelongsToManyRelation = class BelongsToManyRelation extends Relation {
|
|
|
5654
5671
|
}
|
|
5655
5672
|
buildPivotInsertValues(related, attributes = {}) {
|
|
5656
5673
|
const values = {
|
|
5674
|
+
...Object.fromEntries(this.pivotValues),
|
|
5657
5675
|
...attributes,
|
|
5658
5676
|
[this.foreignPivotKey]: this.resolveParentPivotValue(),
|
|
5659
5677
|
[this.relatedPivotKey]: this.resolveRelatedPivotValue(related)
|