arkormx 2.4.7 → 2.4.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.mjs +37 -17
- package/dist/{index-Bn-2R_ax.d.mts → index-DJ2D553t.d.cts} +16 -2
- package/dist/{index-DKqMpR3p.d.cts → index-cQ970J2L.d.mts} +16 -2
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +1 -1
- 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-CuPNAoHm.cjs → relationship-C_BxiE6O.cjs} +37 -17
- package/dist/{relationship-BkNxySap.mjs → relationship-DCLZJvww.mjs} +38 -18
- package/package.json +1 -1
package/dist/cli.mjs
CHANGED
|
@@ -227,23 +227,6 @@ const getLatestAppliedMigrations = (state, steps) => {
|
|
|
227
227
|
}).slice(0, Math.max(0, steps)).map((entry) => entry.migration);
|
|
228
228
|
};
|
|
229
229
|
|
|
230
|
-
//#endregion
|
|
231
|
-
//#region src/helpers/PrimaryKeyGenerationPlanner.ts
|
|
232
|
-
var PrimaryKeyGenerationPlanner = class {
|
|
233
|
-
static plan(column) {
|
|
234
|
-
if (!column.primary || column.default !== void 0) return void 0;
|
|
235
|
-
if (column.type === "uuid" || column.type === "string") return {
|
|
236
|
-
strategy: "uuid",
|
|
237
|
-
prismaDefault: "@default(uuid())",
|
|
238
|
-
databaseDefault: column.type === "uuid" ? "gen_random_uuid()" : "gen_random_uuid()::text",
|
|
239
|
-
runtimeFactory: "uuid"
|
|
240
|
-
};
|
|
241
|
-
}
|
|
242
|
-
static generate(generation) {
|
|
243
|
-
if (generation?.runtimeFactory === "uuid") return randomUUID();
|
|
244
|
-
}
|
|
245
|
-
};
|
|
246
|
-
|
|
247
230
|
//#endregion
|
|
248
231
|
//#region src/database/ForeignKeyBuilder.ts
|
|
249
232
|
/**
|
|
@@ -316,6 +299,23 @@ var ForeignKeyBuilder = class {
|
|
|
316
299
|
}
|
|
317
300
|
};
|
|
318
301
|
|
|
302
|
+
//#endregion
|
|
303
|
+
//#region src/helpers/PrimaryKeyGenerationPlanner.ts
|
|
304
|
+
var PrimaryKeyGenerationPlanner = class {
|
|
305
|
+
static plan(column) {
|
|
306
|
+
if (!column.primary || column.default !== void 0) return void 0;
|
|
307
|
+
if (column.type === "uuid" || column.type === "string") return {
|
|
308
|
+
strategy: "uuid",
|
|
309
|
+
prismaDefault: "@default(uuid())",
|
|
310
|
+
databaseDefault: column.type === "uuid" ? "gen_random_uuid()" : "gen_random_uuid()::text",
|
|
311
|
+
runtimeFactory: "uuid"
|
|
312
|
+
};
|
|
313
|
+
}
|
|
314
|
+
static generate(generation) {
|
|
315
|
+
if (generation?.runtimeFactory === "uuid") return randomUUID();
|
|
316
|
+
}
|
|
317
|
+
};
|
|
318
|
+
|
|
319
319
|
//#endregion
|
|
320
320
|
//#region src/database/TableBuilder.ts
|
|
321
321
|
const PRISMA_ENUM_MEMBER_REGEX$1 = /^[A-Za-z][A-Za-z0-9_]*$/;
|
|
@@ -590,6 +590,17 @@ var TableBuilder = class {
|
|
|
590
590
|
return this;
|
|
591
591
|
}
|
|
592
592
|
/**
|
|
593
|
+
* Defines columns for a polymorphic relationship in the table with UUID ID.
|
|
594
|
+
*
|
|
595
|
+
* @param name The base name for the polymorphic relationship columns.
|
|
596
|
+
* @returns
|
|
597
|
+
*/
|
|
598
|
+
uuidMorphs(name, nullable = false) {
|
|
599
|
+
this.string(`${name}Type`, { nullable });
|
|
600
|
+
this.uuid(`${name}Id`, { nullable });
|
|
601
|
+
return this;
|
|
602
|
+
}
|
|
603
|
+
/**
|
|
593
604
|
* Defines nullable columns for a polymorphic relationship in the table.
|
|
594
605
|
*
|
|
595
606
|
* @param name The base name for the polymorphic relationship columns.
|
|
@@ -599,6 +610,15 @@ var TableBuilder = class {
|
|
|
599
610
|
return this.morphs(name, true);
|
|
600
611
|
}
|
|
601
612
|
/**
|
|
613
|
+
* Defines nullable columns for a polymorphic relationship in the table with UUID ID.
|
|
614
|
+
*
|
|
615
|
+
* @param name The base name for the polymorphic relationship columns.
|
|
616
|
+
* @returns
|
|
617
|
+
*/
|
|
618
|
+
nullableUuidMorphs(name) {
|
|
619
|
+
return this.uuidMorphs(name, true);
|
|
620
|
+
}
|
|
621
|
+
/**
|
|
602
622
|
* Defines a timestamp column in the table.
|
|
603
623
|
*
|
|
604
624
|
* @param name The name of the timestamp column.
|
|
@@ -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' | 'boolean' | 'json' | 'date' | 'timestamp';
|
|
@@ -5280,6 +5280,13 @@ declare class TableBuilder {
|
|
|
5280
5280
|
* @returns
|
|
5281
5281
|
*/
|
|
5282
5282
|
morphs(name: string, nullable?: boolean): this;
|
|
5283
|
+
/**
|
|
5284
|
+
* Defines columns for a polymorphic relationship in the table with UUID ID.
|
|
5285
|
+
*
|
|
5286
|
+
* @param name The base name for the polymorphic relationship columns.
|
|
5287
|
+
* @returns
|
|
5288
|
+
*/
|
|
5289
|
+
uuidMorphs(name: string, nullable?: boolean): this;
|
|
5283
5290
|
/**
|
|
5284
5291
|
* Defines nullable columns for a polymorphic relationship in the table.
|
|
5285
5292
|
*
|
|
@@ -5287,6 +5294,13 @@ declare class TableBuilder {
|
|
|
5287
5294
|
* @returns
|
|
5288
5295
|
*/
|
|
5289
5296
|
nullableMorphs(name: string): this;
|
|
5297
|
+
/**
|
|
5298
|
+
* Defines nullable columns for a polymorphic relationship in the table with UUID ID.
|
|
5299
|
+
*
|
|
5300
|
+
* @param name The base name for the polymorphic relationship columns.
|
|
5301
|
+
* @returns
|
|
5302
|
+
*/
|
|
5303
|
+
nullableUuidMorphs(name: string): this;
|
|
5290
5304
|
/**
|
|
5291
5305
|
* Defines a timestamp column in the table.
|
|
5292
5306
|
*
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Kysely, Transaction } from "kysely";
|
|
2
|
-
import { PrismaClient } from "@prisma/client";
|
|
3
1
|
import { Collection } from "@h3ravel/collect.js";
|
|
2
|
+
import { Kysely, Transaction } from "kysely";
|
|
4
3
|
import { Command } from "@h3ravel/musket";
|
|
4
|
+
import { PrismaClient } from "@prisma/client";
|
|
5
5
|
|
|
6
6
|
//#region src/types/migrations.d.ts
|
|
7
7
|
type SchemaColumnType = 'id' | 'uuid' | 'enum' | 'string' | 'text' | 'integer' | 'bigInteger' | 'float' | 'boolean' | 'json' | 'date' | 'timestamp';
|
|
@@ -5280,6 +5280,13 @@ declare class TableBuilder {
|
|
|
5280
5280
|
* @returns
|
|
5281
5281
|
*/
|
|
5282
5282
|
morphs(name: string, nullable?: boolean): this;
|
|
5283
|
+
/**
|
|
5284
|
+
* Defines columns for a polymorphic relationship in the table with UUID ID.
|
|
5285
|
+
*
|
|
5286
|
+
* @param name The base name for the polymorphic relationship columns.
|
|
5287
|
+
* @returns
|
|
5288
|
+
*/
|
|
5289
|
+
uuidMorphs(name: string, nullable?: boolean): this;
|
|
5283
5290
|
/**
|
|
5284
5291
|
* Defines nullable columns for a polymorphic relationship in the table.
|
|
5285
5292
|
*
|
|
@@ -5287,6 +5294,13 @@ declare class TableBuilder {
|
|
|
5287
5294
|
* @returns
|
|
5288
5295
|
*/
|
|
5289
5296
|
nullableMorphs(name: string): this;
|
|
5297
|
+
/**
|
|
5298
|
+
* Defines nullable columns for a polymorphic relationship in the table with UUID ID.
|
|
5299
|
+
*
|
|
5300
|
+
* @param name The base name for the polymorphic relationship columns.
|
|
5301
|
+
* @returns
|
|
5302
|
+
*/
|
|
5303
|
+
nullableUuidMorphs(name: string): this;
|
|
5290
5304
|
/**
|
|
5291
5305
|
* Defines a timestamp column in the table.
|
|
5292
5306
|
*
|
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-C_BxiE6O.cjs');
|
|
3
3
|
let pg = require("pg");
|
|
4
4
|
let node_path = require("node:path");
|
|
5
5
|
let module$1 = require("module");
|
package/dist/index.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as createMigrationTimestamp, $a as ModelFactory, $i as PrismaTransactionCallback, $n as getRegisteredMigrations, $o as AppliedMigrationEntry, $r as QuerySelectColumn, $t as getPersistedEnumTsType, A as resetArkormRuntimeForTests, Aa as AttributeSelect, Ai as DelegateUniqueWhere, An as ModelsSyncCommand, Ao as FactoryCallback, Ar as AdapterModelStructure, At as findAppliedMigration, B as applyMigrationRollbackToPrismaSchema, Ba as ModelEventDispatcher, Bi as PaginationMeta, Bn as CliApp, Bo as BelongsToRelationMetadata, Br as DatabaseValue, Bt as supportsDatabaseMigrationState, C as getRuntimePaginationURLDriverFactory, Ca as ModelStatic, Ci as DelegateCreateData, Cn as MIGRATION_BRAND, Co as RelationResultCache, Cr as createKyselyAdapter, Ct as toMigrationFileSlug, D as isQuerySchemaLike, Da as AttributeOrderBy, Di as DelegateRow, Dn as TableBuilder, Do as ArkormCollection, Dr as AdapterInspectionRequest, Dt as computeMigrationChecksum, E as isDelegateLike, Ea as AttributeCreateInput, Ei as DelegateOrderBy, En as EnumBuilder, Eo as Paginator, Er as AdapterDatabaseCreationResult, Et as buildMigrationRunId, F as PRISMA_MODEL_REGEX, Fa as ModelAttributeValue, Fi as EagerLoadMap, Fn as MakeSeederCommand, Fo as FactoryState, Fr as AggregateSpec, Ft as markMigrationRun, G as buildFieldLine, Ga as ModelLifecycleState, Gi as PrismaDelegateLike, Gn as Arkormx, Go as HasOneThroughRelationMetadata, Gr as QueryComparisonCondition, Gt as PersistedPrimaryKeyGeneration, H as applyMigrationToPrismaSchema, Ha as ModelEventHandlerConstructor, Hi as PaginationURLDriver, Hn as Attribute, Ho as HasManyRelationMetadata, Hr as DeleteSpec, Ht as writeAppliedMigrationsStateToStore, I as applyAlterTableOperation, Ia as ModelAttributes, Ii as GetUserConfig, In as MakeModelCommand, Io as MaybePromise, Ir as DatabaseAdapter, It as readAppliedMigrationsState, J as buildMigrationSource, Ja as ModelUpdateData, Ji as PrismaLikeOrderBy, Jn as RuntimeConstructor, Jo as MorphOneRelationMetadata, Jr as QueryGroupCondition, Jt as applyOperationsToPersistedColumnMappingsState, K as buildIndexLine, Ka as ModelRelationshipKey, Ki as PrismaFindManyArgsLike, Kn as RegisteredFactory, Ko as ModelMetadata, Kr as QueryComparisonOperator, Kt as PersistedTableMetadata, L as applyCreateTableOperation, La as ModelAttributesOf, Li as ModelQuerySchemaLike, Ln as MakeMigrationCommand, Lo as DatabaseTableOptions, Lr as DatabasePrimitive, Lt as readAppliedMigrationsStateFromStore, M as PrimaryKeyGenerationPlanner, Ma as AttributeWhereInput, Mi as DelegateUpdateData, Mn as MigrateRollbackCommand, Mo as FactoryDefinitionAttributes, Mr as AdapterTransactionContext, Mt as getLatestAppliedMigrations, N as PRISMA_ENUM_MEMBER_REGEX, Na as DelegateForModelSchema, Ni as DelegateWhere, Nn as MigrateFreshCommand, No as FactoryModelConstructor, Nr as AggregateOperation, Nt as isMigrationApplied, O as isTransactionCapableClient, Oa as AttributeQuerySchema, Oi as DelegateRows, On as ForeignKeyBuilder, Oo as FactoryAttributeResolver, Or as AdapterModelFieldStructure, Ot as createEmptyAppliedMigrationsState, P as PRISMA_ENUM_REGEX, Pa as GlobalScope, Pi as EagerLoadConstraint, Pn as MigrateCommand, Po as FactoryRelationshipResolver, Pr as AggregateSelection, Pt as markMigrationApplied, Q as buildUniqueConstraintLine, Qa as InlineFactory, Qi as PrismaLikeWhereInput, Qn as getRegisteredFactories, Qo as RelationMetadataType, Qr as QueryRawCondition, Qt as getPersistedEnumMap, R as applyDropTableOperation, Ra as ModelCreateData, Ri as ModelTableCase, Rn as MakeFactoryCommand, Ro as DatabaseTablePersistedMetadataOptions, Rr as DatabaseRow, Rt as removeAppliedMigration, S as getRuntimePaginationCurrentPageResolver, Sa as TransactionOptions, Si as ClientResolver, Sn as DB, So as RelationResult, Sr as KyselyDatabaseAdapter, St as supportsDatabaseReset, T as getUserConfig, Ta as QueryBuilder, Ti as DelegateInclude, Tn as SchemaBuilder, To as LengthAwarePaginator, Tr as AdapterCapability, Tt as buildMigrationIdentity, U as applyOperationsToPrismaSchema, Ua as ModelEventListener, Ui as PaginationURLDriverFactory, Un as AttributeOptions, Uo as HasManyThroughRelationMetadata, Ur as InsertManySpec, Ut as PersistedColumnMappingsState, V as applyMigrationToDatabase, Va as ModelEventHandler, Vi as PaginationOptions, Vn as resolveCast, Vo as ColumnMap, Vr as DeleteManySpec, Vt as writeAppliedMigrationsState, W as buildEnumBlock, Wa as ModelEventName, Wi as PrismaClientLike, Wn as Arkorm, Wo as HasOneRelationMetadata, Wr as InsertSpec, Wt as PersistedMetadataFeatures, X as buildPrimaryKeyLine, Xa as RelatedModelClass, Xi as PrismaLikeSelect, Xn as RuntimePathKey, Xo as PivotModelStatic, Xr as QueryNotCondition, Xt as deletePersistedColumnMappingsState, Y as buildModelBlock, Ya as QuerySchemaForModel, Yi as PrismaLikeScalarFilter, Yn as RuntimePathInput, Yo as MorphToManyRelationMetadata, Yr as QueryLogicalOperator, Yt as createEmptyPersistedColumnMappingsState, Z as buildRelationLine, Za as Model, Zi as PrismaLikeSortOrder, Zn as RuntimePathMap, Zo as RelationMetadata, Zr as QueryOrderBy, Zt as getPersistedColumnMap, _ as getActiveTransactionClient, _a as SimplePaginationMeta, _i as ArkormDebugHandler, _n as QueryConstraintException, _o as RelationColumnLookupSpec, _r as SeederInput, _s as SchemaTableCreateOperation, _t as runMigrationWithPrisma, a as resolveRuntimeCompatibilityQuerySchema, aa as QuerySchemaInclude, ai as RelationLoadSpec, an as resetPersistedColumnMappingsCache, ar as loadModelsFrom, as as MigrationInstanceLike, at as escapeRegex, b as getRuntimeClient, ba as TransactionCapableClient, bi as CastMap, bn as ArkormErrorContext, bo as RelationDefaultValue, br as createPrismaCompatibilityAdapter, bs as TimestampColumnBehavior, bt as supportsDatabaseCreation, c as createPrismaAdapter, ca as QuerySchemaRows, ci as SortDirection, cn as syncPersistedColumnMappingsFromState, cr as registerMigrations, cs as PrismaSchemaSyncOptions, ct as formatDefaultValue, d as bindAdapterToModels, da as QuerySchemaUpdateArgs, di as UpsertSpec, dn as UnsupportedAdapterFeatureException, dr as registerSeeders, ds as SchemaForeignKey, dt as generateMigrationFile, ea as PrismaTransactionCapableClient, ei as QueryTarget, en as getPersistedPrimaryKeyGeneration, eo as defineFactory, er as getRegisteredModels, es as AppliedMigrationRun, et as deriveCollectionFieldName, f as configureArkormRuntime, fa as QuerySchemaUpdateData, fi as AdapterBindableModel, fn as UniqueConstraintResolutionException, fr as resetRuntimeRegistryForTests, fs as SchemaForeignKeyAction, ft as getMigrationPlan, g as getActiveTransactionAdapter, ga as Serializable, gi as ArkormDebugEvent, gn as QueryExecutionExceptionContext, go as RelationAggregateType, gr as SeederConstructor, gs as SchemaTableAlterOperation, gt as resolvePrismaType, h as ensureArkormConfigLoading, ha as RuntimeClientLike, hi as ArkormConfig, hn as QueryExecutionException, ho as RelationAggregateInput, hr as SeederCallArgument, hs as SchemaPrimaryKey, ht as resolveMigrationClassName, i as getRuntimeCompatibilityAdapter, ia as QuerySchemaFindManyArgs, ii as RelationLoadPlan, in as rebuildPersistedColumnMappingsState, ir as loadMigrationsFrom, is as MigrationClass, it as deriveSingularFieldName, j as runArkormTransaction, ja as AttributeUpdateInput, ji as DelegateUpdateArgs, jn as MigrationHistoryCommand, jo as FactoryDefinition, jr as AdapterQueryOperation, jt as getLastMigrationRun, k as loadArkormConfig, ka as AttributeSchemaDelegate, ki as DelegateSelect, kn as SeedCommand, ko as FactoryAttributes, kr as AdapterModelIntrospectionOptions, kt as deleteAppliedMigrationsStateFromStore, l as createPrismaDelegateMap, la as QuerySchemaSelect, li as UpdateManySpec, ln as validatePersistedMetadataFeaturesForMigrations, lr as registerModels, ls as SchemaColumn, lt as formatEnumDefaultValue, m as emitRuntimeDebugEvent, ma as RawSelectInput, mi as ArkormBootContext, mn as RelationResolutionException, mo as RelationAggregateConstraint, mr as Seeder, ms as SchemaOperation, mt as resolveEnumName, n as PivotModel, na as PrismaTransactionOptions, ni as RelationAggregateSpec, nn as getPersistedTimestampColumns, nr as getRegisteredSeeders, ns as GenerateMigrationOptions, nt as deriveRelationAlias, o as resolveRuntimeCompatibilityQuerySchemaOrThrow, oa as QuerySchemaOrderBy, oi as SelectSpec, on as resolveColumnMappingsFilePath, or as loadSeedersFrom, os as PrimaryKeyGeneration, ot as findEnumBlock, p as defineConfig, pa as QuerySchemaWhere, pi as AdapterQueryInspection, pn as ScopeNotDefinedException, pr as SEEDER_BRAND, ps as SchemaIndex, pt as pad, q as buildInverseRelationLine, qa as ModelRelationshipResult, qi as PrismaLikeInclude, qn as RegisteredModel, qo as MorphManyRelationMetadata, qr as QueryCondition, qt as PersistedTimestampColumn, r as RuntimeModuleLoader, ra as QuerySchemaCreateData, ri as RelationFilterSpec, rn as readPersistedColumnMappingsState, rr as loadFactoriesFrom, rs as GeneratedMigrationFile, rt as deriveRelationFieldName, s as PrismaDelegateMap, sa as QuerySchemaRow, si as SoftDeleteQueryMode, sn as resolvePersistedMetadataFeatures, sr as registerFactories, ss as PrismaMigrationWorkflowOptions, st as findModelBlock, t as URLDriver, ta as PrismaTransactionContext, ti as RawQuerySpec, tn as getPersistedTableMetadata, tr as getRegisteredPaths, ts as AppliedMigrationsState, tt as deriveInverseRelationAlias, u as inferDelegateName, ua as QuerySchemaUniqueWhere, ui as UpdateSpec, un as writePersistedColumnMappingsState, ur as registerPaths, us as SchemaColumnType, ut as formatRelationAction, v as getDefaultStubsPath, va as SoftDeleteConfig, vi as CastDefinition, vn as ModelNotFoundException, vo as RelationConstraint, vr as PrismaDatabaseAdapter, vs as SchemaTableDropOperation, vt as runPrismaCommand, w as getRuntimePrismaClient, wa as RelationshipModelStatic, wi as DelegateFindManyArgs, wn as Migration, wo as RelationTableLookupSpec, wr as AdapterCapabilities, wt as toModelName, x as getRuntimeDebugHandler, xa as TransactionContext, xi as CastType, xn as ArkormException, xo as RelationMetadataProvider, xr as createPrismaDatabaseAdapter, xt as supportsDatabaseMigrationExecution, y as getRuntimeAdapter, ya as TransactionCallback, yi as CastHandler, yn as MissingDelegateException, yo as RelationDefaultResolver, yr as PrismaDelegateNameMapping, ys as SchemaUniqueConstraint, yt as stripPrismaSchemaModelsAndEnums, z as applyMigrationRollbackToDatabase, za as ModelDeclaredAttributeKey, zi as PaginationCurrentPageResolver, zn as InitCommand, zo as BelongsToManyRelationMetadata, zr as DatabaseRows, zt as resolveMigrationStateFilePath } from "./index-DKqMpR3p.cjs";
|
|
1
|
+
import { $ as createMigrationTimestamp, $a as ModelFactory, $i as PrismaTransactionCallback, $n as getRegisteredMigrations, $o as AppliedMigrationEntry, $r as QuerySelectColumn, $t as getPersistedEnumTsType, A as resetArkormRuntimeForTests, Aa as AttributeSelect, Ai as DelegateUniqueWhere, An as ModelsSyncCommand, Ao as FactoryCallback, Ar as AdapterModelStructure, At as findAppliedMigration, B as applyMigrationRollbackToPrismaSchema, Ba as ModelEventDispatcher, Bi as PaginationMeta, Bn as CliApp, Bo as BelongsToRelationMetadata, Br as DatabaseValue, Bt as supportsDatabaseMigrationState, C as getRuntimePaginationURLDriverFactory, Ca as ModelStatic, Ci as DelegateCreateData, Cn as MIGRATION_BRAND, Co as RelationResultCache, Cr as createKyselyAdapter, Ct as toMigrationFileSlug, D as isQuerySchemaLike, Da as AttributeOrderBy, Di as DelegateRow, Dn as TableBuilder, Do as ArkormCollection, Dr as AdapterInspectionRequest, Dt as computeMigrationChecksum, E as isDelegateLike, Ea as AttributeCreateInput, Ei as DelegateOrderBy, En as EnumBuilder, Eo as Paginator, Er as AdapterDatabaseCreationResult, Et as buildMigrationRunId, F as PRISMA_MODEL_REGEX, Fa as ModelAttributeValue, Fi as EagerLoadMap, Fn as MakeSeederCommand, Fo as FactoryState, Fr as AggregateSpec, Ft as markMigrationRun, G as buildFieldLine, Ga as ModelLifecycleState, Gi as PrismaDelegateLike, Gn as Arkormx, Go as HasOneThroughRelationMetadata, Gr as QueryComparisonCondition, Gt as PersistedPrimaryKeyGeneration, H as applyMigrationToPrismaSchema, Ha as ModelEventHandlerConstructor, Hi as PaginationURLDriver, Hn as Attribute, Ho as HasManyRelationMetadata, Hr as DeleteSpec, Ht as writeAppliedMigrationsStateToStore, I as applyAlterTableOperation, Ia as ModelAttributes, Ii as GetUserConfig, In as MakeModelCommand, Io as MaybePromise, Ir as DatabaseAdapter, It as readAppliedMigrationsState, J as buildMigrationSource, Ja as ModelUpdateData, Ji as PrismaLikeOrderBy, Jn as RuntimeConstructor, Jo as MorphOneRelationMetadata, Jr as QueryGroupCondition, Jt as applyOperationsToPersistedColumnMappingsState, K as buildIndexLine, Ka as ModelRelationshipKey, Ki as PrismaFindManyArgsLike, Kn as RegisteredFactory, Ko as ModelMetadata, Kr as QueryComparisonOperator, Kt as PersistedTableMetadata, L as applyCreateTableOperation, La as ModelAttributesOf, Li as ModelQuerySchemaLike, Ln as MakeMigrationCommand, Lo as DatabaseTableOptions, Lr as DatabasePrimitive, Lt as readAppliedMigrationsStateFromStore, M as PrimaryKeyGenerationPlanner, Ma as AttributeWhereInput, Mi as DelegateUpdateData, Mn as MigrateRollbackCommand, Mo as FactoryDefinitionAttributes, Mr as AdapterTransactionContext, Mt as getLatestAppliedMigrations, N as PRISMA_ENUM_MEMBER_REGEX, Na as DelegateForModelSchema, Ni as DelegateWhere, Nn as MigrateFreshCommand, No as FactoryModelConstructor, Nr as AggregateOperation, Nt as isMigrationApplied, O as isTransactionCapableClient, Oa as AttributeQuerySchema, Oi as DelegateRows, On as ForeignKeyBuilder, Oo as FactoryAttributeResolver, Or as AdapterModelFieldStructure, Ot as createEmptyAppliedMigrationsState, P as PRISMA_ENUM_REGEX, Pa as GlobalScope, Pi as EagerLoadConstraint, Pn as MigrateCommand, Po as FactoryRelationshipResolver, Pr as AggregateSelection, Pt as markMigrationApplied, Q as buildUniqueConstraintLine, Qa as InlineFactory, Qi as PrismaLikeWhereInput, Qn as getRegisteredFactories, Qo as RelationMetadataType, Qr as QueryRawCondition, Qt as getPersistedEnumMap, R as applyDropTableOperation, Ra as ModelCreateData, Ri as ModelTableCase, Rn as MakeFactoryCommand, Ro as DatabaseTablePersistedMetadataOptions, Rr as DatabaseRow, Rt as removeAppliedMigration, S as getRuntimePaginationCurrentPageResolver, Sa as TransactionOptions, Si as ClientResolver, Sn as DB, So as RelationResult, Sr as KyselyDatabaseAdapter, St as supportsDatabaseReset, T as getUserConfig, Ta as QueryBuilder, Ti as DelegateInclude, Tn as SchemaBuilder, To as LengthAwarePaginator, Tr as AdapterCapability, Tt as buildMigrationIdentity, U as applyOperationsToPrismaSchema, Ua as ModelEventListener, Ui as PaginationURLDriverFactory, Un as AttributeOptions, Uo as HasManyThroughRelationMetadata, Ur as InsertManySpec, Ut as PersistedColumnMappingsState, V as applyMigrationToDatabase, Va as ModelEventHandler, Vi as PaginationOptions, Vn as resolveCast, Vo as ColumnMap, Vr as DeleteManySpec, Vt as writeAppliedMigrationsState, W as buildEnumBlock, Wa as ModelEventName, Wi as PrismaClientLike, Wn as Arkorm, Wo as HasOneRelationMetadata, Wr as InsertSpec, Wt as PersistedMetadataFeatures, X as buildPrimaryKeyLine, Xa as RelatedModelClass, Xi as PrismaLikeSelect, Xn as RuntimePathKey, Xo as PivotModelStatic, Xr as QueryNotCondition, Xt as deletePersistedColumnMappingsState, Y as buildModelBlock, Ya as QuerySchemaForModel, Yi as PrismaLikeScalarFilter, Yn as RuntimePathInput, Yo as MorphToManyRelationMetadata, Yr as QueryLogicalOperator, Yt as createEmptyPersistedColumnMappingsState, Z as buildRelationLine, Za as Model, Zi as PrismaLikeSortOrder, Zn as RuntimePathMap, Zo as RelationMetadata, Zr as QueryOrderBy, Zt as getPersistedColumnMap, _ as getActiveTransactionClient, _a as SimplePaginationMeta, _i as ArkormDebugHandler, _n as QueryConstraintException, _o as RelationColumnLookupSpec, _r as SeederInput, _s as SchemaTableCreateOperation, _t as runMigrationWithPrisma, a as resolveRuntimeCompatibilityQuerySchema, aa as QuerySchemaInclude, ai as RelationLoadSpec, an as resetPersistedColumnMappingsCache, ar as loadModelsFrom, as as MigrationInstanceLike, at as escapeRegex, b as getRuntimeClient, ba as TransactionCapableClient, bi as CastMap, bn as ArkormErrorContext, bo as RelationDefaultValue, br as createPrismaCompatibilityAdapter, bs as TimestampColumnBehavior, bt as supportsDatabaseCreation, c as createPrismaAdapter, ca as QuerySchemaRows, ci as SortDirection, cn as syncPersistedColumnMappingsFromState, cr as registerMigrations, cs as PrismaSchemaSyncOptions, ct as formatDefaultValue, d as bindAdapterToModels, da as QuerySchemaUpdateArgs, di as UpsertSpec, dn as UnsupportedAdapterFeatureException, dr as registerSeeders, ds as SchemaForeignKey, dt as generateMigrationFile, ea as PrismaTransactionCapableClient, ei as QueryTarget, en as getPersistedPrimaryKeyGeneration, eo as defineFactory, er as getRegisteredModels, es as AppliedMigrationRun, et as deriveCollectionFieldName, f as configureArkormRuntime, fa as QuerySchemaUpdateData, fi as AdapterBindableModel, fn as UniqueConstraintResolutionException, fr as resetRuntimeRegistryForTests, fs as SchemaForeignKeyAction, ft as getMigrationPlan, g as getActiveTransactionAdapter, ga as Serializable, gi as ArkormDebugEvent, gn as QueryExecutionExceptionContext, go as RelationAggregateType, gr as SeederConstructor, gs as SchemaTableAlterOperation, gt as resolvePrismaType, h as ensureArkormConfigLoading, ha as RuntimeClientLike, hi as ArkormConfig, hn as QueryExecutionException, ho as RelationAggregateInput, hr as SeederCallArgument, hs as SchemaPrimaryKey, ht as resolveMigrationClassName, i as getRuntimeCompatibilityAdapter, ia as QuerySchemaFindManyArgs, ii as RelationLoadPlan, in as rebuildPersistedColumnMappingsState, ir as loadMigrationsFrom, is as MigrationClass, it as deriveSingularFieldName, j as runArkormTransaction, ja as AttributeUpdateInput, ji as DelegateUpdateArgs, jn as MigrationHistoryCommand, jo as FactoryDefinition, jr as AdapterQueryOperation, jt as getLastMigrationRun, k as loadArkormConfig, ka as AttributeSchemaDelegate, ki as DelegateSelect, kn as SeedCommand, ko as FactoryAttributes, kr as AdapterModelIntrospectionOptions, kt as deleteAppliedMigrationsStateFromStore, l as createPrismaDelegateMap, la as QuerySchemaSelect, li as UpdateManySpec, ln as validatePersistedMetadataFeaturesForMigrations, lr as registerModels, ls as SchemaColumn, lt as formatEnumDefaultValue, m as emitRuntimeDebugEvent, ma as RawSelectInput, mi as ArkormBootContext, mn as RelationResolutionException, mo as RelationAggregateConstraint, mr as Seeder, ms as SchemaOperation, mt as resolveEnumName, n as PivotModel, na as PrismaTransactionOptions, ni as RelationAggregateSpec, nn as getPersistedTimestampColumns, nr as getRegisteredSeeders, ns as GenerateMigrationOptions, nt as deriveRelationAlias, o as resolveRuntimeCompatibilityQuerySchemaOrThrow, oa as QuerySchemaOrderBy, oi as SelectSpec, on as resolveColumnMappingsFilePath, or as loadSeedersFrom, os as PrimaryKeyGeneration, ot as findEnumBlock, p as defineConfig, pa as QuerySchemaWhere, pi as AdapterQueryInspection, pn as ScopeNotDefinedException, pr as SEEDER_BRAND, ps as SchemaIndex, pt as pad, q as buildInverseRelationLine, qa as ModelRelationshipResult, qi as PrismaLikeInclude, qn as RegisteredModel, qo as MorphManyRelationMetadata, qr as QueryCondition, qt as PersistedTimestampColumn, r as RuntimeModuleLoader, ra as QuerySchemaCreateData, ri as RelationFilterSpec, rn as readPersistedColumnMappingsState, rr as loadFactoriesFrom, rs as GeneratedMigrationFile, rt as deriveRelationFieldName, s as PrismaDelegateMap, sa as QuerySchemaRow, si as SoftDeleteQueryMode, sn as resolvePersistedMetadataFeatures, sr as registerFactories, ss as PrismaMigrationWorkflowOptions, st as findModelBlock, t as URLDriver, ta as PrismaTransactionContext, ti as RawQuerySpec, tn as getPersistedTableMetadata, tr as getRegisteredPaths, ts as AppliedMigrationsState, tt as deriveInverseRelationAlias, u as inferDelegateName, ua as QuerySchemaUniqueWhere, ui as UpdateSpec, un as writePersistedColumnMappingsState, ur as registerPaths, us as SchemaColumnType, ut as formatRelationAction, v as getDefaultStubsPath, va as SoftDeleteConfig, vi as CastDefinition, vn as ModelNotFoundException, vo as RelationConstraint, vr as PrismaDatabaseAdapter, vs as SchemaTableDropOperation, vt as runPrismaCommand, w as getRuntimePrismaClient, wa as RelationshipModelStatic, wi as DelegateFindManyArgs, wn as Migration, wo as RelationTableLookupSpec, wr as AdapterCapabilities, wt as toModelName, x as getRuntimeDebugHandler, xa as TransactionContext, xi as CastType, xn as ArkormException, xo as RelationMetadataProvider, xr as createPrismaDatabaseAdapter, xt as supportsDatabaseMigrationExecution, y as getRuntimeAdapter, ya as TransactionCallback, yi as CastHandler, yn as MissingDelegateException, yo as RelationDefaultResolver, yr as PrismaDelegateNameMapping, ys as SchemaUniqueConstraint, yt as stripPrismaSchemaModelsAndEnums, z as applyMigrationRollbackToDatabase, za as ModelDeclaredAttributeKey, zi as PaginationCurrentPageResolver, zn as InitCommand, zo as BelongsToManyRelationMetadata, zr as DatabaseRows, zt as resolveMigrationStateFilePath } from "./index-DJ2D553t.cjs";
|
|
2
2
|
export { AdapterBindableModel, AdapterCapabilities, AdapterCapability, AdapterDatabaseCreationResult, AdapterInspectionRequest, AdapterModelFieldStructure, AdapterModelIntrospectionOptions, AdapterModelStructure, AdapterQueryInspection, AdapterQueryOperation, AdapterTransactionContext, 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, CastDefinition, CastHandler, CastMap, CastType, CliApp, ClientResolver, ColumnMap, DB, DatabaseAdapter, DatabasePrimitive, DatabaseRow, DatabaseRows, DatabaseTableOptions, DatabaseTablePersistedMetadataOptions, DatabaseValue, DelegateCreateData, DelegateFindManyArgs, DelegateForModelSchema, DelegateInclude, DelegateOrderBy, DelegateRow, DelegateRows, DelegateSelect, DelegateUniqueWhere, DelegateUpdateArgs, DelegateUpdateData, DelegateWhere, DeleteManySpec, DeleteSpec, EagerLoadConstraint, EagerLoadMap, EnumBuilder, FactoryAttributeResolver, FactoryAttributes, FactoryCallback, FactoryDefinition, FactoryDefinitionAttributes, FactoryModelConstructor, FactoryRelationshipResolver, FactoryState, ForeignKeyBuilder, GenerateMigrationOptions, GeneratedMigrationFile, GetUserConfig, GlobalScope, HasManyRelationMetadata, HasManyThroughRelationMetadata, HasOneRelationMetadata, HasOneThroughRelationMetadata, InitCommand, InlineFactory, InsertManySpec, InsertSpec, KyselyDatabaseAdapter, LengthAwarePaginator, 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, ModelQuerySchemaLike, ModelRelationshipKey, ModelRelationshipResult, ModelStatic, ModelTableCase, ModelUpdateData, ModelsSyncCommand, MorphManyRelationMetadata, MorphOneRelationMetadata, MorphToManyRelationMetadata, 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, QueryComparisonCondition, QueryComparisonOperator, QueryCondition, QueryConstraintException, QueryExecutionException, QueryExecutionExceptionContext, QueryGroupCondition, QueryLogicalOperator, QueryNotCondition, QueryOrderBy, QueryRawCondition, QuerySchemaCreateData, QuerySchemaFindManyArgs, QuerySchemaForModel, QuerySchemaInclude, QuerySchemaOrderBy, QuerySchemaRow, QuerySchemaRows, QuerySchemaSelect, QuerySchemaUniqueWhere, QuerySchemaUpdateArgs, QuerySchemaUpdateData, QuerySchemaWhere, QuerySelectColumn, QueryTarget, RawQuerySpec, RawSelectInput, RegisteredFactory, RegisteredModel, RelatedModelClass, 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, TransactionCallback, TransactionCapableClient, TransactionContext, TransactionOptions, URLDriver, UniqueConstraintResolutionException, UnsupportedAdapterFeatureException, UpdateManySpec, UpdateSpec, UpsertSpec, applyAlterTableOperation, applyCreateTableOperation, applyDropTableOperation, applyMigrationRollbackToDatabase, applyMigrationRollbackToPrismaSchema, applyMigrationToDatabase, applyMigrationToPrismaSchema, applyOperationsToPersistedColumnMappingsState, applyOperationsToPrismaSchema, bindAdapterToModels, buildEnumBlock, buildFieldLine, buildIndexLine, buildInverseRelationLine, buildMigrationIdentity, buildMigrationRunId, buildMigrationSource, buildModelBlock, buildPrimaryKeyLine, buildRelationLine, buildUniqueConstraintLine, computeMigrationChecksum, configureArkormRuntime, createEmptyAppliedMigrationsState, createEmptyPersistedColumnMappingsState, createKyselyAdapter, createMigrationTimestamp, createPrismaAdapter, createPrismaCompatibilityAdapter, createPrismaDatabaseAdapter, createPrismaDelegateMap, defineConfig, defineFactory, deleteAppliedMigrationsStateFromStore, deletePersistedColumnMappingsState, deriveCollectionFieldName, deriveInverseRelationAlias, deriveRelationAlias, deriveRelationFieldName, deriveSingularFieldName, emitRuntimeDebugEvent, ensureArkormConfigLoading, escapeRegex, findAppliedMigration, findEnumBlock, findModelBlock, formatDefaultValue, formatEnumDefaultValue, formatRelationAction, generateMigrationFile, getActiveTransactionAdapter, getActiveTransactionClient, getDefaultStubsPath, 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, isQuerySchemaLike, isTransactionCapableClient, loadArkormConfig, loadFactoriesFrom, loadMigrationsFrom, loadModelsFrom, loadSeedersFrom, markMigrationApplied, markMigrationRun, pad, readAppliedMigrationsState, readAppliedMigrationsStateFromStore, readPersistedColumnMappingsState, rebuildPersistedColumnMappingsState, registerFactories, registerMigrations, registerModels, registerPaths, registerSeeders, removeAppliedMigration, resetArkormRuntimeForTests, resetPersistedColumnMappingsCache, resetRuntimeRegistryForTests, resolveCast, resolveColumnMappingsFilePath, resolveEnumName, resolveMigrationClassName, resolveMigrationStateFilePath, resolvePersistedMetadataFeatures, resolvePrismaType, resolveRuntimeCompatibilityQuerySchema, resolveRuntimeCompatibilityQuerySchemaOrThrow, runArkormTransaction, runMigrationWithPrisma, runPrismaCommand, stripPrismaSchemaModelsAndEnums, supportsDatabaseCreation, supportsDatabaseMigrationExecution, supportsDatabaseMigrationState, supportsDatabaseReset, syncPersistedColumnMappingsFromState, toMigrationFileSlug, toModelName, validatePersistedMetadataFeaturesForMigrations, writeAppliedMigrationsState, writeAppliedMigrationsStateToStore, writePersistedColumnMappingsState };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as createMigrationTimestamp, $a as ModelFactory, $i as PrismaTransactionCallback, $n as getRegisteredMigrations, $o as AppliedMigrationEntry, $r as QuerySelectColumn, $t as getPersistedEnumTsType, A as resetArkormRuntimeForTests, Aa as AttributeSelect, Ai as DelegateUniqueWhere, An as ModelsSyncCommand, Ao as FactoryCallback, Ar as AdapterModelStructure, At as findAppliedMigration, B as applyMigrationRollbackToPrismaSchema, Ba as ModelEventDispatcher, Bi as PaginationMeta, Bn as CliApp, Bo as BelongsToRelationMetadata, Br as DatabaseValue, Bt as supportsDatabaseMigrationState, C as getRuntimePaginationURLDriverFactory, Ca as ModelStatic, Ci as DelegateCreateData, Cn as MIGRATION_BRAND, Co as RelationResultCache, Cr as createKyselyAdapter, Ct as toMigrationFileSlug, D as isQuerySchemaLike, Da as AttributeOrderBy, Di as DelegateRow, Dn as TableBuilder, Do as ArkormCollection, Dr as AdapterInspectionRequest, Dt as computeMigrationChecksum, E as isDelegateLike, Ea as AttributeCreateInput, Ei as DelegateOrderBy, En as EnumBuilder, Eo as Paginator, Er as AdapterDatabaseCreationResult, Et as buildMigrationRunId, F as PRISMA_MODEL_REGEX, Fa as ModelAttributeValue, Fi as EagerLoadMap, Fn as MakeSeederCommand, Fo as FactoryState, Fr as AggregateSpec, Ft as markMigrationRun, G as buildFieldLine, Ga as ModelLifecycleState, Gi as PrismaDelegateLike, Gn as Arkormx, Go as HasOneThroughRelationMetadata, Gr as QueryComparisonCondition, Gt as PersistedPrimaryKeyGeneration, H as applyMigrationToPrismaSchema, Ha as ModelEventHandlerConstructor, Hi as PaginationURLDriver, Hn as Attribute, Ho as HasManyRelationMetadata, Hr as DeleteSpec, Ht as writeAppliedMigrationsStateToStore, I as applyAlterTableOperation, Ia as ModelAttributes, Ii as GetUserConfig, In as MakeModelCommand, Io as MaybePromise, Ir as DatabaseAdapter, It as readAppliedMigrationsState, J as buildMigrationSource, Ja as ModelUpdateData, Ji as PrismaLikeOrderBy, Jn as RuntimeConstructor, Jo as MorphOneRelationMetadata, Jr as QueryGroupCondition, Jt as applyOperationsToPersistedColumnMappingsState, K as buildIndexLine, Ka as ModelRelationshipKey, Ki as PrismaFindManyArgsLike, Kn as RegisteredFactory, Ko as ModelMetadata, Kr as QueryComparisonOperator, Kt as PersistedTableMetadata, L as applyCreateTableOperation, La as ModelAttributesOf, Li as ModelQuerySchemaLike, Ln as MakeMigrationCommand, Lo as DatabaseTableOptions, Lr as DatabasePrimitive, Lt as readAppliedMigrationsStateFromStore, M as PrimaryKeyGenerationPlanner, Ma as AttributeWhereInput, Mi as DelegateUpdateData, Mn as MigrateRollbackCommand, Mo as FactoryDefinitionAttributes, Mr as AdapterTransactionContext, Mt as getLatestAppliedMigrations, N as PRISMA_ENUM_MEMBER_REGEX, Na as DelegateForModelSchema, Ni as DelegateWhere, Nn as MigrateFreshCommand, No as FactoryModelConstructor, Nr as AggregateOperation, Nt as isMigrationApplied, O as isTransactionCapableClient, Oa as AttributeQuerySchema, Oi as DelegateRows, On as ForeignKeyBuilder, Oo as FactoryAttributeResolver, Or as AdapterModelFieldStructure, Ot as createEmptyAppliedMigrationsState, P as PRISMA_ENUM_REGEX, Pa as GlobalScope, Pi as EagerLoadConstraint, Pn as MigrateCommand, Po as FactoryRelationshipResolver, Pr as AggregateSelection, Pt as markMigrationApplied, Q as buildUniqueConstraintLine, Qa as InlineFactory, Qi as PrismaLikeWhereInput, Qn as getRegisteredFactories, Qo as RelationMetadataType, Qr as QueryRawCondition, Qt as getPersistedEnumMap, R as applyDropTableOperation, Ra as ModelCreateData, Ri as ModelTableCase, Rn as MakeFactoryCommand, Ro as DatabaseTablePersistedMetadataOptions, Rr as DatabaseRow, Rt as removeAppliedMigration, S as getRuntimePaginationCurrentPageResolver, Sa as TransactionOptions, Si as ClientResolver, Sn as DB, So as RelationResult, Sr as KyselyDatabaseAdapter, St as supportsDatabaseReset, T as getUserConfig, Ta as QueryBuilder, Ti as DelegateInclude, Tn as SchemaBuilder, To as LengthAwarePaginator, Tr as AdapterCapability, Tt as buildMigrationIdentity, U as applyOperationsToPrismaSchema, Ua as ModelEventListener, Ui as PaginationURLDriverFactory, Un as AttributeOptions, Uo as HasManyThroughRelationMetadata, Ur as InsertManySpec, Ut as PersistedColumnMappingsState, V as applyMigrationToDatabase, Va as ModelEventHandler, Vi as PaginationOptions, Vn as resolveCast, Vo as ColumnMap, Vr as DeleteManySpec, Vt as writeAppliedMigrationsState, W as buildEnumBlock, Wa as ModelEventName, Wi as PrismaClientLike, Wn as Arkorm, Wo as HasOneRelationMetadata, Wr as InsertSpec, Wt as PersistedMetadataFeatures, X as buildPrimaryKeyLine, Xa as RelatedModelClass, Xi as PrismaLikeSelect, Xn as RuntimePathKey, Xo as PivotModelStatic, Xr as QueryNotCondition, Xt as deletePersistedColumnMappingsState, Y as buildModelBlock, Ya as QuerySchemaForModel, Yi as PrismaLikeScalarFilter, Yn as RuntimePathInput, Yo as MorphToManyRelationMetadata, Yr as QueryLogicalOperator, Yt as createEmptyPersistedColumnMappingsState, Z as buildRelationLine, Za as Model, Zi as PrismaLikeSortOrder, Zn as RuntimePathMap, Zo as RelationMetadata, Zr as QueryOrderBy, Zt as getPersistedColumnMap, _ as getActiveTransactionClient, _a as SimplePaginationMeta, _i as ArkormDebugHandler, _n as QueryConstraintException, _o as RelationColumnLookupSpec, _r as SeederInput, _s as SchemaTableCreateOperation, _t as runMigrationWithPrisma, a as resolveRuntimeCompatibilityQuerySchema, aa as QuerySchemaInclude, ai as RelationLoadSpec, an as resetPersistedColumnMappingsCache, ar as loadModelsFrom, as as MigrationInstanceLike, at as escapeRegex, b as getRuntimeClient, ba as TransactionCapableClient, bi as CastMap, bn as ArkormErrorContext, bo as RelationDefaultValue, br as createPrismaCompatibilityAdapter, bs as TimestampColumnBehavior, bt as supportsDatabaseCreation, c as createPrismaAdapter, ca as QuerySchemaRows, ci as SortDirection, cn as syncPersistedColumnMappingsFromState, cr as registerMigrations, cs as PrismaSchemaSyncOptions, ct as formatDefaultValue, d as bindAdapterToModels, da as QuerySchemaUpdateArgs, di as UpsertSpec, dn as UnsupportedAdapterFeatureException, dr as registerSeeders, ds as SchemaForeignKey, dt as generateMigrationFile, ea as PrismaTransactionCapableClient, ei as QueryTarget, en as getPersistedPrimaryKeyGeneration, eo as defineFactory, er as getRegisteredModels, es as AppliedMigrationRun, et as deriveCollectionFieldName, f as configureArkormRuntime, fa as QuerySchemaUpdateData, fi as AdapterBindableModel, fn as UniqueConstraintResolutionException, fr as resetRuntimeRegistryForTests, fs as SchemaForeignKeyAction, ft as getMigrationPlan, g as getActiveTransactionAdapter, ga as Serializable, gi as ArkormDebugEvent, gn as QueryExecutionExceptionContext, go as RelationAggregateType, gr as SeederConstructor, gs as SchemaTableAlterOperation, gt as resolvePrismaType, h as ensureArkormConfigLoading, ha as RuntimeClientLike, hi as ArkormConfig, hn as QueryExecutionException, ho as RelationAggregateInput, hr as SeederCallArgument, hs as SchemaPrimaryKey, ht as resolveMigrationClassName, i as getRuntimeCompatibilityAdapter, ia as QuerySchemaFindManyArgs, ii as RelationLoadPlan, in as rebuildPersistedColumnMappingsState, ir as loadMigrationsFrom, is as MigrationClass, it as deriveSingularFieldName, j as runArkormTransaction, ja as AttributeUpdateInput, ji as DelegateUpdateArgs, jn as MigrationHistoryCommand, jo as FactoryDefinition, jr as AdapterQueryOperation, jt as getLastMigrationRun, k as loadArkormConfig, ka as AttributeSchemaDelegate, ki as DelegateSelect, kn as SeedCommand, ko as FactoryAttributes, kr as AdapterModelIntrospectionOptions, kt as deleteAppliedMigrationsStateFromStore, l as createPrismaDelegateMap, la as QuerySchemaSelect, li as UpdateManySpec, ln as validatePersistedMetadataFeaturesForMigrations, lr as registerModels, ls as SchemaColumn, lt as formatEnumDefaultValue, m as emitRuntimeDebugEvent, ma as RawSelectInput, mi as ArkormBootContext, mn as RelationResolutionException, mo as RelationAggregateConstraint, mr as Seeder, ms as SchemaOperation, mt as resolveEnumName, n as PivotModel, na as PrismaTransactionOptions, ni as RelationAggregateSpec, nn as getPersistedTimestampColumns, nr as getRegisteredSeeders, ns as GenerateMigrationOptions, nt as deriveRelationAlias, o as resolveRuntimeCompatibilityQuerySchemaOrThrow, oa as QuerySchemaOrderBy, oi as SelectSpec, on as resolveColumnMappingsFilePath, or as loadSeedersFrom, os as PrimaryKeyGeneration, ot as findEnumBlock, p as defineConfig, pa as QuerySchemaWhere, pi as AdapterQueryInspection, pn as ScopeNotDefinedException, pr as SEEDER_BRAND, ps as SchemaIndex, pt as pad, q as buildInverseRelationLine, qa as ModelRelationshipResult, qi as PrismaLikeInclude, qn as RegisteredModel, qo as MorphManyRelationMetadata, qr as QueryCondition, qt as PersistedTimestampColumn, r as RuntimeModuleLoader, ra as QuerySchemaCreateData, ri as RelationFilterSpec, rn as readPersistedColumnMappingsState, rr as loadFactoriesFrom, rs as GeneratedMigrationFile, rt as deriveRelationFieldName, s as PrismaDelegateMap, sa as QuerySchemaRow, si as SoftDeleteQueryMode, sn as resolvePersistedMetadataFeatures, sr as registerFactories, ss as PrismaMigrationWorkflowOptions, st as findModelBlock, t as URLDriver, ta as PrismaTransactionContext, ti as RawQuerySpec, tn as getPersistedTableMetadata, tr as getRegisteredPaths, ts as AppliedMigrationsState, tt as deriveInverseRelationAlias, u as inferDelegateName, ua as QuerySchemaUniqueWhere, ui as UpdateSpec, un as writePersistedColumnMappingsState, ur as registerPaths, us as SchemaColumnType, ut as formatRelationAction, v as getDefaultStubsPath, va as SoftDeleteConfig, vi as CastDefinition, vn as ModelNotFoundException, vo as RelationConstraint, vr as PrismaDatabaseAdapter, vs as SchemaTableDropOperation, vt as runPrismaCommand, w as getRuntimePrismaClient, wa as RelationshipModelStatic, wi as DelegateFindManyArgs, wn as Migration, wo as RelationTableLookupSpec, wr as AdapterCapabilities, wt as toModelName, x as getRuntimeDebugHandler, xa as TransactionContext, xi as CastType, xn as ArkormException, xo as RelationMetadataProvider, xr as createPrismaDatabaseAdapter, xt as supportsDatabaseMigrationExecution, y as getRuntimeAdapter, ya as TransactionCallback, yi as CastHandler, yn as MissingDelegateException, yo as RelationDefaultResolver, yr as PrismaDelegateNameMapping, ys as SchemaUniqueConstraint, yt as stripPrismaSchemaModelsAndEnums, z as applyMigrationRollbackToDatabase, za as ModelDeclaredAttributeKey, zi as PaginationCurrentPageResolver, zn as InitCommand, zo as BelongsToManyRelationMetadata, zr as DatabaseRows, zt as resolveMigrationStateFilePath } from "./index-Bn-2R_ax.mjs";
|
|
1
|
+
import { $ as createMigrationTimestamp, $a as ModelFactory, $i as PrismaTransactionCallback, $n as getRegisteredMigrations, $o as AppliedMigrationEntry, $r as QuerySelectColumn, $t as getPersistedEnumTsType, A as resetArkormRuntimeForTests, Aa as AttributeSelect, Ai as DelegateUniqueWhere, An as ModelsSyncCommand, Ao as FactoryCallback, Ar as AdapterModelStructure, At as findAppliedMigration, B as applyMigrationRollbackToPrismaSchema, Ba as ModelEventDispatcher, Bi as PaginationMeta, Bn as CliApp, Bo as BelongsToRelationMetadata, Br as DatabaseValue, Bt as supportsDatabaseMigrationState, C as getRuntimePaginationURLDriverFactory, Ca as ModelStatic, Ci as DelegateCreateData, Cn as MIGRATION_BRAND, Co as RelationResultCache, Cr as createKyselyAdapter, Ct as toMigrationFileSlug, D as isQuerySchemaLike, Da as AttributeOrderBy, Di as DelegateRow, Dn as TableBuilder, Do as ArkormCollection, Dr as AdapterInspectionRequest, Dt as computeMigrationChecksum, E as isDelegateLike, Ea as AttributeCreateInput, Ei as DelegateOrderBy, En as EnumBuilder, Eo as Paginator, Er as AdapterDatabaseCreationResult, Et as buildMigrationRunId, F as PRISMA_MODEL_REGEX, Fa as ModelAttributeValue, Fi as EagerLoadMap, Fn as MakeSeederCommand, Fo as FactoryState, Fr as AggregateSpec, Ft as markMigrationRun, G as buildFieldLine, Ga as ModelLifecycleState, Gi as PrismaDelegateLike, Gn as Arkormx, Go as HasOneThroughRelationMetadata, Gr as QueryComparisonCondition, Gt as PersistedPrimaryKeyGeneration, H as applyMigrationToPrismaSchema, Ha as ModelEventHandlerConstructor, Hi as PaginationURLDriver, Hn as Attribute, Ho as HasManyRelationMetadata, Hr as DeleteSpec, Ht as writeAppliedMigrationsStateToStore, I as applyAlterTableOperation, Ia as ModelAttributes, Ii as GetUserConfig, In as MakeModelCommand, Io as MaybePromise, Ir as DatabaseAdapter, It as readAppliedMigrationsState, J as buildMigrationSource, Ja as ModelUpdateData, Ji as PrismaLikeOrderBy, Jn as RuntimeConstructor, Jo as MorphOneRelationMetadata, Jr as QueryGroupCondition, Jt as applyOperationsToPersistedColumnMappingsState, K as buildIndexLine, Ka as ModelRelationshipKey, Ki as PrismaFindManyArgsLike, Kn as RegisteredFactory, Ko as ModelMetadata, Kr as QueryComparisonOperator, Kt as PersistedTableMetadata, L as applyCreateTableOperation, La as ModelAttributesOf, Li as ModelQuerySchemaLike, Ln as MakeMigrationCommand, Lo as DatabaseTableOptions, Lr as DatabasePrimitive, Lt as readAppliedMigrationsStateFromStore, M as PrimaryKeyGenerationPlanner, Ma as AttributeWhereInput, Mi as DelegateUpdateData, Mn as MigrateRollbackCommand, Mo as FactoryDefinitionAttributes, Mr as AdapterTransactionContext, Mt as getLatestAppliedMigrations, N as PRISMA_ENUM_MEMBER_REGEX, Na as DelegateForModelSchema, Ni as DelegateWhere, Nn as MigrateFreshCommand, No as FactoryModelConstructor, Nr as AggregateOperation, Nt as isMigrationApplied, O as isTransactionCapableClient, Oa as AttributeQuerySchema, Oi as DelegateRows, On as ForeignKeyBuilder, Oo as FactoryAttributeResolver, Or as AdapterModelFieldStructure, Ot as createEmptyAppliedMigrationsState, P as PRISMA_ENUM_REGEX, Pa as GlobalScope, Pi as EagerLoadConstraint, Pn as MigrateCommand, Po as FactoryRelationshipResolver, Pr as AggregateSelection, Pt as markMigrationApplied, Q as buildUniqueConstraintLine, Qa as InlineFactory, Qi as PrismaLikeWhereInput, Qn as getRegisteredFactories, Qo as RelationMetadataType, Qr as QueryRawCondition, Qt as getPersistedEnumMap, R as applyDropTableOperation, Ra as ModelCreateData, Ri as ModelTableCase, Rn as MakeFactoryCommand, Ro as DatabaseTablePersistedMetadataOptions, Rr as DatabaseRow, Rt as removeAppliedMigration, S as getRuntimePaginationCurrentPageResolver, Sa as TransactionOptions, Si as ClientResolver, Sn as DB, So as RelationResult, Sr as KyselyDatabaseAdapter, St as supportsDatabaseReset, T as getUserConfig, Ta as QueryBuilder, Ti as DelegateInclude, Tn as SchemaBuilder, To as LengthAwarePaginator, Tr as AdapterCapability, Tt as buildMigrationIdentity, U as applyOperationsToPrismaSchema, Ua as ModelEventListener, Ui as PaginationURLDriverFactory, Un as AttributeOptions, Uo as HasManyThroughRelationMetadata, Ur as InsertManySpec, Ut as PersistedColumnMappingsState, V as applyMigrationToDatabase, Va as ModelEventHandler, Vi as PaginationOptions, Vn as resolveCast, Vo as ColumnMap, Vr as DeleteManySpec, Vt as writeAppliedMigrationsState, W as buildEnumBlock, Wa as ModelEventName, Wi as PrismaClientLike, Wn as Arkorm, Wo as HasOneRelationMetadata, Wr as InsertSpec, Wt as PersistedMetadataFeatures, X as buildPrimaryKeyLine, Xa as RelatedModelClass, Xi as PrismaLikeSelect, Xn as RuntimePathKey, Xo as PivotModelStatic, Xr as QueryNotCondition, Xt as deletePersistedColumnMappingsState, Y as buildModelBlock, Ya as QuerySchemaForModel, Yi as PrismaLikeScalarFilter, Yn as RuntimePathInput, Yo as MorphToManyRelationMetadata, Yr as QueryLogicalOperator, Yt as createEmptyPersistedColumnMappingsState, Z as buildRelationLine, Za as Model, Zi as PrismaLikeSortOrder, Zn as RuntimePathMap, Zo as RelationMetadata, Zr as QueryOrderBy, Zt as getPersistedColumnMap, _ as getActiveTransactionClient, _a as SimplePaginationMeta, _i as ArkormDebugHandler, _n as QueryConstraintException, _o as RelationColumnLookupSpec, _r as SeederInput, _s as SchemaTableCreateOperation, _t as runMigrationWithPrisma, a as resolveRuntimeCompatibilityQuerySchema, aa as QuerySchemaInclude, ai as RelationLoadSpec, an as resetPersistedColumnMappingsCache, ar as loadModelsFrom, as as MigrationInstanceLike, at as escapeRegex, b as getRuntimeClient, ba as TransactionCapableClient, bi as CastMap, bn as ArkormErrorContext, bo as RelationDefaultValue, br as createPrismaCompatibilityAdapter, bs as TimestampColumnBehavior, bt as supportsDatabaseCreation, c as createPrismaAdapter, ca as QuerySchemaRows, ci as SortDirection, cn as syncPersistedColumnMappingsFromState, cr as registerMigrations, cs as PrismaSchemaSyncOptions, ct as formatDefaultValue, d as bindAdapterToModels, da as QuerySchemaUpdateArgs, di as UpsertSpec, dn as UnsupportedAdapterFeatureException, dr as registerSeeders, ds as SchemaForeignKey, dt as generateMigrationFile, ea as PrismaTransactionCapableClient, ei as QueryTarget, en as getPersistedPrimaryKeyGeneration, eo as defineFactory, er as getRegisteredModels, es as AppliedMigrationRun, et as deriveCollectionFieldName, f as configureArkormRuntime, fa as QuerySchemaUpdateData, fi as AdapterBindableModel, fn as UniqueConstraintResolutionException, fr as resetRuntimeRegistryForTests, fs as SchemaForeignKeyAction, ft as getMigrationPlan, g as getActiveTransactionAdapter, ga as Serializable, gi as ArkormDebugEvent, gn as QueryExecutionExceptionContext, go as RelationAggregateType, gr as SeederConstructor, gs as SchemaTableAlterOperation, gt as resolvePrismaType, h as ensureArkormConfigLoading, ha as RuntimeClientLike, hi as ArkormConfig, hn as QueryExecutionException, ho as RelationAggregateInput, hr as SeederCallArgument, hs as SchemaPrimaryKey, ht as resolveMigrationClassName, i as getRuntimeCompatibilityAdapter, ia as QuerySchemaFindManyArgs, ii as RelationLoadPlan, in as rebuildPersistedColumnMappingsState, ir as loadMigrationsFrom, is as MigrationClass, it as deriveSingularFieldName, j as runArkormTransaction, ja as AttributeUpdateInput, ji as DelegateUpdateArgs, jn as MigrationHistoryCommand, jo as FactoryDefinition, jr as AdapterQueryOperation, jt as getLastMigrationRun, k as loadArkormConfig, ka as AttributeSchemaDelegate, ki as DelegateSelect, kn as SeedCommand, ko as FactoryAttributes, kr as AdapterModelIntrospectionOptions, kt as deleteAppliedMigrationsStateFromStore, l as createPrismaDelegateMap, la as QuerySchemaSelect, li as UpdateManySpec, ln as validatePersistedMetadataFeaturesForMigrations, lr as registerModels, ls as SchemaColumn, lt as formatEnumDefaultValue, m as emitRuntimeDebugEvent, ma as RawSelectInput, mi as ArkormBootContext, mn as RelationResolutionException, mo as RelationAggregateConstraint, mr as Seeder, ms as SchemaOperation, mt as resolveEnumName, n as PivotModel, na as PrismaTransactionOptions, ni as RelationAggregateSpec, nn as getPersistedTimestampColumns, nr as getRegisteredSeeders, ns as GenerateMigrationOptions, nt as deriveRelationAlias, o as resolveRuntimeCompatibilityQuerySchemaOrThrow, oa as QuerySchemaOrderBy, oi as SelectSpec, on as resolveColumnMappingsFilePath, or as loadSeedersFrom, os as PrimaryKeyGeneration, ot as findEnumBlock, p as defineConfig, pa as QuerySchemaWhere, pi as AdapterQueryInspection, pn as ScopeNotDefinedException, pr as SEEDER_BRAND, ps as SchemaIndex, pt as pad, q as buildInverseRelationLine, qa as ModelRelationshipResult, qi as PrismaLikeInclude, qn as RegisteredModel, qo as MorphManyRelationMetadata, qr as QueryCondition, qt as PersistedTimestampColumn, r as RuntimeModuleLoader, ra as QuerySchemaCreateData, ri as RelationFilterSpec, rn as readPersistedColumnMappingsState, rr as loadFactoriesFrom, rs as GeneratedMigrationFile, rt as deriveRelationFieldName, s as PrismaDelegateMap, sa as QuerySchemaRow, si as SoftDeleteQueryMode, sn as resolvePersistedMetadataFeatures, sr as registerFactories, ss as PrismaMigrationWorkflowOptions, st as findModelBlock, t as URLDriver, ta as PrismaTransactionContext, ti as RawQuerySpec, tn as getPersistedTableMetadata, tr as getRegisteredPaths, ts as AppliedMigrationsState, tt as deriveInverseRelationAlias, u as inferDelegateName, ua as QuerySchemaUniqueWhere, ui as UpdateSpec, un as writePersistedColumnMappingsState, ur as registerPaths, us as SchemaColumnType, ut as formatRelationAction, v as getDefaultStubsPath, va as SoftDeleteConfig, vi as CastDefinition, vn as ModelNotFoundException, vo as RelationConstraint, vr as PrismaDatabaseAdapter, vs as SchemaTableDropOperation, vt as runPrismaCommand, w as getRuntimePrismaClient, wa as RelationshipModelStatic, wi as DelegateFindManyArgs, wn as Migration, wo as RelationTableLookupSpec, wr as AdapterCapabilities, wt as toModelName, x as getRuntimeDebugHandler, xa as TransactionContext, xi as CastType, xn as ArkormException, xo as RelationMetadataProvider, xr as createPrismaDatabaseAdapter, xt as supportsDatabaseMigrationExecution, y as getRuntimeAdapter, ya as TransactionCallback, yi as CastHandler, yn as MissingDelegateException, yo as RelationDefaultResolver, yr as PrismaDelegateNameMapping, ys as SchemaUniqueConstraint, yt as stripPrismaSchemaModelsAndEnums, z as applyMigrationRollbackToDatabase, za as ModelDeclaredAttributeKey, zi as PaginationCurrentPageResolver, zn as InitCommand, zo as BelongsToManyRelationMetadata, zr as DatabaseRows, zt as resolveMigrationStateFilePath } from "./index-cQ970J2L.mjs";
|
|
2
2
|
export { AdapterBindableModel, AdapterCapabilities, AdapterCapability, AdapterDatabaseCreationResult, AdapterInspectionRequest, AdapterModelFieldStructure, AdapterModelIntrospectionOptions, AdapterModelStructure, AdapterQueryInspection, AdapterQueryOperation, AdapterTransactionContext, 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, CastDefinition, CastHandler, CastMap, CastType, CliApp, ClientResolver, ColumnMap, DB, DatabaseAdapter, DatabasePrimitive, DatabaseRow, DatabaseRows, DatabaseTableOptions, DatabaseTablePersistedMetadataOptions, DatabaseValue, DelegateCreateData, DelegateFindManyArgs, DelegateForModelSchema, DelegateInclude, DelegateOrderBy, DelegateRow, DelegateRows, DelegateSelect, DelegateUniqueWhere, DelegateUpdateArgs, DelegateUpdateData, DelegateWhere, DeleteManySpec, DeleteSpec, EagerLoadConstraint, EagerLoadMap, EnumBuilder, FactoryAttributeResolver, FactoryAttributes, FactoryCallback, FactoryDefinition, FactoryDefinitionAttributes, FactoryModelConstructor, FactoryRelationshipResolver, FactoryState, ForeignKeyBuilder, GenerateMigrationOptions, GeneratedMigrationFile, GetUserConfig, GlobalScope, HasManyRelationMetadata, HasManyThroughRelationMetadata, HasOneRelationMetadata, HasOneThroughRelationMetadata, InitCommand, InlineFactory, InsertManySpec, InsertSpec, KyselyDatabaseAdapter, LengthAwarePaginator, 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, ModelQuerySchemaLike, ModelRelationshipKey, ModelRelationshipResult, ModelStatic, ModelTableCase, ModelUpdateData, ModelsSyncCommand, MorphManyRelationMetadata, MorphOneRelationMetadata, MorphToManyRelationMetadata, 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, QueryComparisonCondition, QueryComparisonOperator, QueryCondition, QueryConstraintException, QueryExecutionException, QueryExecutionExceptionContext, QueryGroupCondition, QueryLogicalOperator, QueryNotCondition, QueryOrderBy, QueryRawCondition, QuerySchemaCreateData, QuerySchemaFindManyArgs, QuerySchemaForModel, QuerySchemaInclude, QuerySchemaOrderBy, QuerySchemaRow, QuerySchemaRows, QuerySchemaSelect, QuerySchemaUniqueWhere, QuerySchemaUpdateArgs, QuerySchemaUpdateData, QuerySchemaWhere, QuerySelectColumn, QueryTarget, RawQuerySpec, RawSelectInput, RegisteredFactory, RegisteredModel, RelatedModelClass, 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, TransactionCallback, TransactionCapableClient, TransactionContext, TransactionOptions, URLDriver, UniqueConstraintResolutionException, UnsupportedAdapterFeatureException, UpdateManySpec, UpdateSpec, UpsertSpec, applyAlterTableOperation, applyCreateTableOperation, applyDropTableOperation, applyMigrationRollbackToDatabase, applyMigrationRollbackToPrismaSchema, applyMigrationToDatabase, applyMigrationToPrismaSchema, applyOperationsToPersistedColumnMappingsState, applyOperationsToPrismaSchema, bindAdapterToModels, buildEnumBlock, buildFieldLine, buildIndexLine, buildInverseRelationLine, buildMigrationIdentity, buildMigrationRunId, buildMigrationSource, buildModelBlock, buildPrimaryKeyLine, buildRelationLine, buildUniqueConstraintLine, computeMigrationChecksum, configureArkormRuntime, createEmptyAppliedMigrationsState, createEmptyPersistedColumnMappingsState, createKyselyAdapter, createMigrationTimestamp, createPrismaAdapter, createPrismaCompatibilityAdapter, createPrismaDatabaseAdapter, createPrismaDelegateMap, defineConfig, defineFactory, deleteAppliedMigrationsStateFromStore, deletePersistedColumnMappingsState, deriveCollectionFieldName, deriveInverseRelationAlias, deriveRelationAlias, deriveRelationFieldName, deriveSingularFieldName, emitRuntimeDebugEvent, ensureArkormConfigLoading, escapeRegex, findAppliedMigration, findEnumBlock, findModelBlock, formatDefaultValue, formatEnumDefaultValue, formatRelationAction, generateMigrationFile, getActiveTransactionAdapter, getActiveTransactionClient, getDefaultStubsPath, 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, isQuerySchemaLike, isTransactionCapableClient, loadArkormConfig, loadFactoriesFrom, loadMigrationsFrom, loadModelsFrom, loadSeedersFrom, markMigrationApplied, markMigrationRun, pad, readAppliedMigrationsState, readAppliedMigrationsStateFromStore, readPersistedColumnMappingsState, rebuildPersistedColumnMappingsState, registerFactories, registerMigrations, registerModels, registerPaths, registerSeeders, removeAppliedMigration, resetArkormRuntimeForTests, resetPersistedColumnMappingsCache, resetRuntimeRegistryForTests, resolveCast, resolveColumnMappingsFilePath, resolveEnumName, resolveMigrationClassName, resolveMigrationStateFilePath, resolvePersistedMetadataFeatures, resolvePrismaType, resolveRuntimeCompatibilityQuerySchema, resolveRuntimeCompatibilityQuerySchemaOrThrow, runArkormTransaction, runMigrationWithPrisma, runPrismaCommand, stripPrismaSchemaModelsAndEnums, supportsDatabaseCreation, supportsDatabaseMigrationExecution, supportsDatabaseMigrationState, supportsDatabaseReset, syncPersistedColumnMappingsFromState, toMigrationFileSlug, toModelName, validatePersistedMetadataFeaturesForMigrations, writeAppliedMigrationsState, writeAppliedMigrationsStateToStore, writePersistedColumnMappingsState };
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as deletePersistedColumnMappingsState, $t as runPrismaCommand, A as isDelegateLike, An as UnsupportedAdapterFeatureException, At as buildModelBlock, B as getRegisteredSeeders, Bt as escapeRegex, C as getRuntimeAdapter, Cn as readAppliedMigrationsStateFromStore, Ct as applyMigrationToPrismaSchema, D as getRuntimePaginationURLDriverFactory, Dn as writeAppliedMigrationsState, Dt as buildIndexLine, E as getRuntimePaginationCurrentPageResolver, En as supportsDatabaseMigrationState, Et as buildFieldLine, F as runArkormTransaction, Fn as ArkormException, Ft as deriveCollectionFieldName, G as registerFactories, Gt as formatRelationAction, H as loadMigrationsFrom, Ht as findModelBlock, I as getRegisteredFactories, It as deriveInverseRelationAlias, J as registerPaths, Jt as pad, K as registerMigrations, Kt as generateMigrationFile, L as getRegisteredMigrations, Lt as deriveRelationAlias, M as isTransactionCapableClient, Mt as buildRelationLine, N as loadArkormConfig, Nn as RelationResolutionException, Nt as buildUniqueConstraintLine, O as getRuntimePrismaClient, On as writeAppliedMigrationsStateToStore, Ot as buildInverseRelationLine, P as resetArkormRuntimeForTests, Pn as ArkormCollection, Pt as createMigrationTimestamp, Q as createEmptyPersistedColumnMappingsState, Qt as runMigrationWithPrisma, R as getRegisteredModels, Rt as deriveRelationFieldName, S as getDefaultStubsPath, Sn as readAppliedMigrationsState, St as applyMigrationToDatabase, T as getRuntimeDebugHandler, Tn as resolveMigrationStateFilePath, Tt as buildEnumBlock, U as loadModelsFrom, Ut as formatDefaultValue, V as loadFactoriesFrom, Vt as findEnumBlock, W as loadSeedersFrom, Wt as formatEnumDefaultValue, X as resetRuntimeRegistryForTests, Xt as resolveMigrationClassName, Y as registerSeeders, Yt as resolveEnumName, Z as applyOperationsToPersistedColumnMappingsState, Zt as resolvePrismaType, _ as defineConfig, _n as getLastMigrationRun, _t as applyAlterTableOperation, a as HasOneRelation, an as toModelName, at as getPersistedTimestampColumns, b as getActiveTransactionAdapter, bn as markMigrationApplied, bt as applyMigrationRollbackToDatabase, c as BelongsToRelation, cn as TableBuilder, ct as resetPersistedColumnMappingsCache, d as Relation, dn as buildMigrationIdentity, dt as syncPersistedColumnMappingsFromState, en as stripPrismaSchemaModelsAndEnums, et as getPersistedColumnMap, f as LengthAwarePaginator, fn as buildMigrationRunId, ft as validatePersistedMetadataFeaturesForMigrations, g as configureArkormRuntime, gn as findAppliedMigration, gt as PRISMA_MODEL_REGEX, h as bindAdapterToModels, hn as deleteAppliedMigrationsStateFromStore, ht as PRISMA_ENUM_REGEX, i as HasOneThroughRelation, in as toMigrationFileSlug, it as getPersistedTableMetadata, j as isQuerySchemaLike, jn as SetBasedEagerLoader, jt as buildPrimaryKeyLine, k as getUserConfig, kn as RuntimeModuleLoader, kt as buildMigrationSource, ln as
|
|
1
|
+
import { $ as deletePersistedColumnMappingsState, $t as runPrismaCommand, A as isDelegateLike, An as UnsupportedAdapterFeatureException, At as buildModelBlock, B as getRegisteredSeeders, Bt as escapeRegex, C as getRuntimeAdapter, Cn as readAppliedMigrationsStateFromStore, Ct as applyMigrationToPrismaSchema, D as getRuntimePaginationURLDriverFactory, Dn as writeAppliedMigrationsState, Dt as buildIndexLine, E as getRuntimePaginationCurrentPageResolver, En as supportsDatabaseMigrationState, Et as buildFieldLine, F as runArkormTransaction, Fn as ArkormException, Ft as deriveCollectionFieldName, G as registerFactories, Gt as formatRelationAction, H as loadMigrationsFrom, Ht as findModelBlock, I as getRegisteredFactories, It as deriveInverseRelationAlias, J as registerPaths, Jt as pad, K as registerMigrations, Kt as generateMigrationFile, L as getRegisteredMigrations, Lt as deriveRelationAlias, M as isTransactionCapableClient, Mt as buildRelationLine, N as loadArkormConfig, Nn as RelationResolutionException, Nt as buildUniqueConstraintLine, O as getRuntimePrismaClient, On as writeAppliedMigrationsStateToStore, Ot as buildInverseRelationLine, P as resetArkormRuntimeForTests, Pn as ArkormCollection, Pt as createMigrationTimestamp, Q as createEmptyPersistedColumnMappingsState, Qt as runMigrationWithPrisma, R as getRegisteredModels, Rt as deriveRelationFieldName, S as getDefaultStubsPath, Sn as readAppliedMigrationsState, St as applyMigrationToDatabase, T as getRuntimeDebugHandler, Tn as resolveMigrationStateFilePath, Tt as buildEnumBlock, U as loadModelsFrom, Ut as formatDefaultValue, V as loadFactoriesFrom, Vt as findEnumBlock, W as loadSeedersFrom, Wt as formatEnumDefaultValue, X as resetRuntimeRegistryForTests, Xt as resolveMigrationClassName, Y as registerSeeders, Yt as resolveEnumName, Z as applyOperationsToPersistedColumnMappingsState, Zt as resolvePrismaType, _ as defineConfig, _n as getLastMigrationRun, _t as applyAlterTableOperation, a as HasOneRelation, an as toModelName, at as getPersistedTimestampColumns, b as getActiveTransactionAdapter, bn as markMigrationApplied, bt as applyMigrationRollbackToDatabase, c as BelongsToRelation, cn as TableBuilder, ct as resetPersistedColumnMappingsCache, d as Relation, dn as buildMigrationIdentity, dt as syncPersistedColumnMappingsFromState, en as stripPrismaSchemaModelsAndEnums, et as getPersistedColumnMap, f as LengthAwarePaginator, fn as buildMigrationRunId, ft as validatePersistedMetadataFeaturesForMigrations, g as configureArkormRuntime, gn as findAppliedMigration, gt as PRISMA_MODEL_REGEX, h as bindAdapterToModels, hn as deleteAppliedMigrationsStateFromStore, ht as PRISMA_ENUM_REGEX, i as HasOneThroughRelation, in as toMigrationFileSlug, it as getPersistedTableMetadata, j as isQuerySchemaLike, jn as SetBasedEagerLoader, jt as buildPrimaryKeyLine, k as getUserConfig, kn as RuntimeModuleLoader, kt as buildMigrationSource, ln as PrimaryKeyGenerationPlanner, lt as resolveColumnMappingsFilePath, m as URLDriver, mn as createEmptyAppliedMigrationsState, mt as PRISMA_ENUM_MEMBER_REGEX, n as MorphOneRelation, nn as supportsDatabaseMigrationExecution, nt as getPersistedEnumTsType, o as HasManyThroughRelation, on as SchemaBuilder, ot as readPersistedColumnMappingsState, p as Paginator, pn as computeMigrationChecksum, pt as writePersistedColumnMappingsState, q as registerModels, qt as getMigrationPlan, r as MorphManyRelation, rn as supportsDatabaseReset, rt as getPersistedPrimaryKeyGeneration, s as HasManyRelation, sn as EnumBuilder, st as rebuildPersistedColumnMappingsState, t as MorphToManyRelation, tn as supportsDatabaseCreation, tt as getPersistedEnumMap, u as BelongsToManyRelation, un as ForeignKeyBuilder, ut as resolvePersistedMetadataFeatures, v as emitRuntimeDebugEvent, vn as getLatestAppliedMigrations, vt as applyCreateTableOperation, w as getRuntimeClient, wn as removeAppliedMigration, wt as applyOperationsToPrismaSchema, x as getActiveTransactionClient, xn as markMigrationRun, xt as applyMigrationRollbackToPrismaSchema, y as ensureArkormConfigLoading, yn as isMigrationApplied, yt as applyDropTableOperation, z as getRegisteredPaths, zt as deriveSingularFieldName } from "./relationship-DCLZJvww.mjs";
|
|
2
2
|
import { Pool } from "pg";
|
|
3
3
|
import { join, resolve } from "node:path";
|
|
4
4
|
import { createRequire } from "module";
|
|
@@ -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-C_BxiE6O.cjs');
|
|
3
3
|
|
|
4
4
|
exports.BelongsToManyRelation = require_relationship.BelongsToManyRelation;
|
|
5
5
|
exports.BelongsToRelation = require_relationship.BelongsToRelation;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ao as HasOneThroughRelation, co as HasManyRelation, do as BelongsToManyRelation, fo as Relation, io as MorphManyRelation, lo as BelongsToRelation, no as MorphToManyRelation, oo as HasOneRelation, po as RelationTableLoader, ro as MorphOneRelation, so as HasManyThroughRelation, to as SetBasedEagerLoader, uo as SingleResultRelation } from "../index-
|
|
1
|
+
import { ao as HasOneThroughRelation, co as HasManyRelation, do as BelongsToManyRelation, fo as Relation, io as MorphManyRelation, lo as BelongsToRelation, no as MorphToManyRelation, oo as HasOneRelation, po as RelationTableLoader, ro as MorphOneRelation, so as HasManyThroughRelation, to as SetBasedEagerLoader, uo as SingleResultRelation } from "../index-DJ2D553t.cjs";
|
|
2
2
|
export { BelongsToManyRelation, BelongsToRelation, HasManyRelation, HasManyThroughRelation, HasOneRelation, HasOneThroughRelation, MorphManyRelation, MorphOneRelation, MorphToManyRelation, Relation, RelationTableLoader, SetBasedEagerLoader, SingleResultRelation };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ao as HasOneThroughRelation, co as HasManyRelation, do as BelongsToManyRelation, fo as Relation, io as MorphManyRelation, lo as BelongsToRelation, no as MorphToManyRelation, oo as HasOneRelation, po as RelationTableLoader, ro as MorphOneRelation, so as HasManyThroughRelation, to as SetBasedEagerLoader, uo as SingleResultRelation } from "../index-
|
|
1
|
+
import { ao as HasOneThroughRelation, co as HasManyRelation, do as BelongsToManyRelation, fo as Relation, io as MorphManyRelation, lo as BelongsToRelation, no as MorphToManyRelation, oo as HasOneRelation, po as RelationTableLoader, ro as MorphOneRelation, so as HasManyThroughRelation, to as SetBasedEagerLoader, uo as SingleResultRelation } from "../index-cQ970J2L.mjs";
|
|
2
2
|
export { BelongsToManyRelation, BelongsToRelation, HasManyRelation, HasManyThroughRelation, HasOneRelation, HasOneThroughRelation, MorphManyRelation, MorphOneRelation, MorphToManyRelation, Relation, RelationTableLoader, SetBasedEagerLoader, SingleResultRelation };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { Mn as RelationTableLoader, a as HasOneRelation, c as BelongsToRelation, d as Relation, i as HasOneThroughRelation, jn as SetBasedEagerLoader, l as SingleResultRelation, n as MorphOneRelation, o as HasManyThroughRelation, r as MorphManyRelation, s as HasManyRelation, t as MorphToManyRelation, u as BelongsToManyRelation } from "../relationship-
|
|
1
|
+
import { Mn as RelationTableLoader, a as HasOneRelation, c as BelongsToRelation, d as Relation, i as HasOneThroughRelation, jn as SetBasedEagerLoader, l as SingleResultRelation, n as MorphOneRelation, o as HasManyThroughRelation, r as MorphManyRelation, s as HasManyRelation, t as MorphToManyRelation, u as BelongsToManyRelation } from "../relationship-DCLZJvww.mjs";
|
|
2
2
|
|
|
3
3
|
export { BelongsToManyRelation, BelongsToRelation, HasManyRelation, HasManyThroughRelation, HasOneRelation, HasOneThroughRelation, MorphManyRelation, MorphOneRelation, MorphToManyRelation, Relation, RelationTableLoader, SetBasedEagerLoader, SingleResultRelation };
|
|
@@ -855,23 +855,6 @@ const getLatestAppliedMigrations = (state, steps) => {
|
|
|
855
855
|
}).slice(0, Math.max(0, steps)).map((entry) => entry.migration);
|
|
856
856
|
};
|
|
857
857
|
|
|
858
|
-
//#endregion
|
|
859
|
-
//#region src/helpers/PrimaryKeyGenerationPlanner.ts
|
|
860
|
-
var PrimaryKeyGenerationPlanner = class {
|
|
861
|
-
static plan(column) {
|
|
862
|
-
if (!column.primary || column.default !== void 0) return void 0;
|
|
863
|
-
if (column.type === "uuid" || column.type === "string") return {
|
|
864
|
-
strategy: "uuid",
|
|
865
|
-
prismaDefault: "@default(uuid())",
|
|
866
|
-
databaseDefault: column.type === "uuid" ? "gen_random_uuid()" : "gen_random_uuid()::text",
|
|
867
|
-
runtimeFactory: "uuid"
|
|
868
|
-
};
|
|
869
|
-
}
|
|
870
|
-
static generate(generation) {
|
|
871
|
-
if (generation?.runtimeFactory === "uuid") return (0, node_crypto.randomUUID)();
|
|
872
|
-
}
|
|
873
|
-
};
|
|
874
|
-
|
|
875
858
|
//#endregion
|
|
876
859
|
//#region src/database/ForeignKeyBuilder.ts
|
|
877
860
|
/**
|
|
@@ -944,6 +927,23 @@ var ForeignKeyBuilder = class {
|
|
|
944
927
|
}
|
|
945
928
|
};
|
|
946
929
|
|
|
930
|
+
//#endregion
|
|
931
|
+
//#region src/helpers/PrimaryKeyGenerationPlanner.ts
|
|
932
|
+
var PrimaryKeyGenerationPlanner = class {
|
|
933
|
+
static plan(column) {
|
|
934
|
+
if (!column.primary || column.default !== void 0) return void 0;
|
|
935
|
+
if (column.type === "uuid" || column.type === "string") return {
|
|
936
|
+
strategy: "uuid",
|
|
937
|
+
prismaDefault: "@default(uuid())",
|
|
938
|
+
databaseDefault: column.type === "uuid" ? "gen_random_uuid()" : "gen_random_uuid()::text",
|
|
939
|
+
runtimeFactory: "uuid"
|
|
940
|
+
};
|
|
941
|
+
}
|
|
942
|
+
static generate(generation) {
|
|
943
|
+
if (generation?.runtimeFactory === "uuid") return (0, node_crypto.randomUUID)();
|
|
944
|
+
}
|
|
945
|
+
};
|
|
946
|
+
|
|
947
947
|
//#endregion
|
|
948
948
|
//#region src/database/TableBuilder.ts
|
|
949
949
|
const PRISMA_ENUM_MEMBER_REGEX$1 = /^[A-Za-z][A-Za-z0-9_]*$/;
|
|
@@ -1218,6 +1218,17 @@ var TableBuilder = class {
|
|
|
1218
1218
|
return this;
|
|
1219
1219
|
}
|
|
1220
1220
|
/**
|
|
1221
|
+
* Defines columns for a polymorphic relationship in the table with UUID ID.
|
|
1222
|
+
*
|
|
1223
|
+
* @param name The base name for the polymorphic relationship columns.
|
|
1224
|
+
* @returns
|
|
1225
|
+
*/
|
|
1226
|
+
uuidMorphs(name, nullable = false) {
|
|
1227
|
+
this.string(`${name}Type`, { nullable });
|
|
1228
|
+
this.uuid(`${name}Id`, { nullable });
|
|
1229
|
+
return this;
|
|
1230
|
+
}
|
|
1231
|
+
/**
|
|
1221
1232
|
* Defines nullable columns for a polymorphic relationship in the table.
|
|
1222
1233
|
*
|
|
1223
1234
|
* @param name The base name for the polymorphic relationship columns.
|
|
@@ -1227,6 +1238,15 @@ var TableBuilder = class {
|
|
|
1227
1238
|
return this.morphs(name, true);
|
|
1228
1239
|
}
|
|
1229
1240
|
/**
|
|
1241
|
+
* Defines nullable columns for a polymorphic relationship in the table with UUID ID.
|
|
1242
|
+
*
|
|
1243
|
+
* @param name The base name for the polymorphic relationship columns.
|
|
1244
|
+
* @returns
|
|
1245
|
+
*/
|
|
1246
|
+
nullableUuidMorphs(name) {
|
|
1247
|
+
return this.uuidMorphs(name, true);
|
|
1248
|
+
}
|
|
1249
|
+
/**
|
|
1230
1250
|
* Defines a timestamp column in the table.
|
|
1231
1251
|
*
|
|
1232
1252
|
* @param name The name of the timestamp column.
|
|
@@ -827,23 +827,6 @@ const getLatestAppliedMigrations = (state, steps) => {
|
|
|
827
827
|
}).slice(0, Math.max(0, steps)).map((entry) => entry.migration);
|
|
828
828
|
};
|
|
829
829
|
|
|
830
|
-
//#endregion
|
|
831
|
-
//#region src/helpers/PrimaryKeyGenerationPlanner.ts
|
|
832
|
-
var PrimaryKeyGenerationPlanner = class {
|
|
833
|
-
static plan(column) {
|
|
834
|
-
if (!column.primary || column.default !== void 0) return void 0;
|
|
835
|
-
if (column.type === "uuid" || column.type === "string") return {
|
|
836
|
-
strategy: "uuid",
|
|
837
|
-
prismaDefault: "@default(uuid())",
|
|
838
|
-
databaseDefault: column.type === "uuid" ? "gen_random_uuid()" : "gen_random_uuid()::text",
|
|
839
|
-
runtimeFactory: "uuid"
|
|
840
|
-
};
|
|
841
|
-
}
|
|
842
|
-
static generate(generation) {
|
|
843
|
-
if (generation?.runtimeFactory === "uuid") return randomUUID();
|
|
844
|
-
}
|
|
845
|
-
};
|
|
846
|
-
|
|
847
830
|
//#endregion
|
|
848
831
|
//#region src/database/ForeignKeyBuilder.ts
|
|
849
832
|
/**
|
|
@@ -916,6 +899,23 @@ var ForeignKeyBuilder = class {
|
|
|
916
899
|
}
|
|
917
900
|
};
|
|
918
901
|
|
|
902
|
+
//#endregion
|
|
903
|
+
//#region src/helpers/PrimaryKeyGenerationPlanner.ts
|
|
904
|
+
var PrimaryKeyGenerationPlanner = class {
|
|
905
|
+
static plan(column) {
|
|
906
|
+
if (!column.primary || column.default !== void 0) return void 0;
|
|
907
|
+
if (column.type === "uuid" || column.type === "string") return {
|
|
908
|
+
strategy: "uuid",
|
|
909
|
+
prismaDefault: "@default(uuid())",
|
|
910
|
+
databaseDefault: column.type === "uuid" ? "gen_random_uuid()" : "gen_random_uuid()::text",
|
|
911
|
+
runtimeFactory: "uuid"
|
|
912
|
+
};
|
|
913
|
+
}
|
|
914
|
+
static generate(generation) {
|
|
915
|
+
if (generation?.runtimeFactory === "uuid") return randomUUID();
|
|
916
|
+
}
|
|
917
|
+
};
|
|
918
|
+
|
|
919
919
|
//#endregion
|
|
920
920
|
//#region src/database/TableBuilder.ts
|
|
921
921
|
const PRISMA_ENUM_MEMBER_REGEX$1 = /^[A-Za-z][A-Za-z0-9_]*$/;
|
|
@@ -1190,6 +1190,17 @@ var TableBuilder = class {
|
|
|
1190
1190
|
return this;
|
|
1191
1191
|
}
|
|
1192
1192
|
/**
|
|
1193
|
+
* Defines columns for a polymorphic relationship in the table with UUID ID.
|
|
1194
|
+
*
|
|
1195
|
+
* @param name The base name for the polymorphic relationship columns.
|
|
1196
|
+
* @returns
|
|
1197
|
+
*/
|
|
1198
|
+
uuidMorphs(name, nullable = false) {
|
|
1199
|
+
this.string(`${name}Type`, { nullable });
|
|
1200
|
+
this.uuid(`${name}Id`, { nullable });
|
|
1201
|
+
return this;
|
|
1202
|
+
}
|
|
1203
|
+
/**
|
|
1193
1204
|
* Defines nullable columns for a polymorphic relationship in the table.
|
|
1194
1205
|
*
|
|
1195
1206
|
* @param name The base name for the polymorphic relationship columns.
|
|
@@ -1199,6 +1210,15 @@ var TableBuilder = class {
|
|
|
1199
1210
|
return this.morphs(name, true);
|
|
1200
1211
|
}
|
|
1201
1212
|
/**
|
|
1213
|
+
* Defines nullable columns for a polymorphic relationship in the table with UUID ID.
|
|
1214
|
+
*
|
|
1215
|
+
* @param name The base name for the polymorphic relationship columns.
|
|
1216
|
+
* @returns
|
|
1217
|
+
*/
|
|
1218
|
+
nullableUuidMorphs(name) {
|
|
1219
|
+
return this.uuidMorphs(name, true);
|
|
1220
|
+
}
|
|
1221
|
+
/**
|
|
1202
1222
|
* Defines a timestamp column in the table.
|
|
1203
1223
|
*
|
|
1204
1224
|
* @param name The name of the timestamp column.
|
|
@@ -4979,4 +4999,4 @@ var MorphToManyRelation = class extends Relation {
|
|
|
4979
4999
|
};
|
|
4980
5000
|
|
|
4981
5001
|
//#endregion
|
|
4982
|
-
export { deletePersistedColumnMappingsState as $, runPrismaCommand as $t, isDelegateLike as A, UnsupportedAdapterFeatureException as An, buildModelBlock as At, getRegisteredSeeders as B, escapeRegex as Bt, getRuntimeAdapter as C, readAppliedMigrationsStateFromStore as Cn, applyMigrationToPrismaSchema as Ct, getRuntimePaginationURLDriverFactory as D, writeAppliedMigrationsState as Dn, buildIndexLine as Dt, getRuntimePaginationCurrentPageResolver as E, supportsDatabaseMigrationState as En, buildFieldLine as Et, runArkormTransaction as F, ArkormException as Fn, deriveCollectionFieldName as Ft, registerFactories as G, formatRelationAction as Gt, loadMigrationsFrom as H, findModelBlock as Ht, getRegisteredFactories as I, deriveInverseRelationAlias as It, registerPaths as J, pad as Jt, registerMigrations as K, generateMigrationFile as Kt, getRegisteredMigrations as L, deriveRelationAlias as Lt, isTransactionCapableClient as M, RelationTableLoader as Mn, buildRelationLine as Mt, loadArkormConfig as N, RelationResolutionException as Nn, buildUniqueConstraintLine as Nt, getRuntimePrismaClient as O, writeAppliedMigrationsStateToStore as On, buildInverseRelationLine as Ot, resetArkormRuntimeForTests as P, ArkormCollection as Pn, createMigrationTimestamp as Pt, createEmptyPersistedColumnMappingsState as Q, runMigrationWithPrisma as Qt, getRegisteredModels as R, deriveRelationFieldName as Rt, getDefaultStubsPath as S, readAppliedMigrationsState as Sn, applyMigrationToDatabase as St, getRuntimeDebugHandler as T, resolveMigrationStateFilePath as Tn, buildEnumBlock as Tt, loadModelsFrom as U, formatDefaultValue as Ut, loadFactoriesFrom as V, findEnumBlock as Vt, loadSeedersFrom as W, formatEnumDefaultValue as Wt, resetRuntimeRegistryForTests as X, resolveMigrationClassName as Xt, registerSeeders as Y, resolveEnumName as Yt, applyOperationsToPersistedColumnMappingsState as Z, resolvePrismaType as Zt, defineConfig as _, getLastMigrationRun as _n, applyAlterTableOperation as _t, HasOneRelation as a, toModelName as an, getPersistedTimestampColumns as at, getActiveTransactionAdapter as b, markMigrationApplied as bn, applyMigrationRollbackToDatabase as bt, BelongsToRelation as c, TableBuilder as cn, resetPersistedColumnMappingsCache as ct, Relation as d, buildMigrationIdentity as dn, syncPersistedColumnMappingsFromState as dt, stripPrismaSchemaModelsAndEnums as en, getPersistedColumnMap as et, LengthAwarePaginator as f, buildMigrationRunId as fn, validatePersistedMetadataFeaturesForMigrations as ft, configureArkormRuntime as g, findAppliedMigration as gn, PRISMA_MODEL_REGEX as gt, bindAdapterToModels as h, deleteAppliedMigrationsStateFromStore as hn, PRISMA_ENUM_REGEX as ht, HasOneThroughRelation as i, toMigrationFileSlug as in, getPersistedTableMetadata as it, isQuerySchemaLike as j, SetBasedEagerLoader as jn, buildPrimaryKeyLine as jt, getUserConfig as k, RuntimeModuleLoader as kn, buildMigrationSource as kt, SingleResultRelation as l,
|
|
5002
|
+
export { deletePersistedColumnMappingsState as $, runPrismaCommand as $t, isDelegateLike as A, UnsupportedAdapterFeatureException as An, buildModelBlock as At, getRegisteredSeeders as B, escapeRegex as Bt, getRuntimeAdapter as C, readAppliedMigrationsStateFromStore as Cn, applyMigrationToPrismaSchema as Ct, getRuntimePaginationURLDriverFactory as D, writeAppliedMigrationsState as Dn, buildIndexLine as Dt, getRuntimePaginationCurrentPageResolver as E, supportsDatabaseMigrationState as En, buildFieldLine as Et, runArkormTransaction as F, ArkormException as Fn, deriveCollectionFieldName as Ft, registerFactories as G, formatRelationAction as Gt, loadMigrationsFrom as H, findModelBlock as Ht, getRegisteredFactories as I, deriveInverseRelationAlias as It, registerPaths as J, pad as Jt, registerMigrations as K, generateMigrationFile as Kt, getRegisteredMigrations as L, deriveRelationAlias as Lt, isTransactionCapableClient as M, RelationTableLoader as Mn, buildRelationLine as Mt, loadArkormConfig as N, RelationResolutionException as Nn, buildUniqueConstraintLine as Nt, getRuntimePrismaClient as O, writeAppliedMigrationsStateToStore as On, buildInverseRelationLine as Ot, resetArkormRuntimeForTests as P, ArkormCollection as Pn, createMigrationTimestamp as Pt, createEmptyPersistedColumnMappingsState as Q, runMigrationWithPrisma as Qt, getRegisteredModels as R, deriveRelationFieldName as Rt, getDefaultStubsPath as S, readAppliedMigrationsState as Sn, applyMigrationToDatabase as St, getRuntimeDebugHandler as T, resolveMigrationStateFilePath as Tn, buildEnumBlock as Tt, loadModelsFrom as U, formatDefaultValue as Ut, loadFactoriesFrom as V, findEnumBlock as Vt, loadSeedersFrom as W, formatEnumDefaultValue as Wt, resetRuntimeRegistryForTests as X, resolveMigrationClassName as Xt, registerSeeders as Y, resolveEnumName as Yt, applyOperationsToPersistedColumnMappingsState as Z, resolvePrismaType as Zt, defineConfig as _, getLastMigrationRun as _n, applyAlterTableOperation as _t, HasOneRelation as a, toModelName as an, getPersistedTimestampColumns as at, getActiveTransactionAdapter as b, markMigrationApplied as bn, applyMigrationRollbackToDatabase as bt, BelongsToRelation as c, TableBuilder as cn, resetPersistedColumnMappingsCache as ct, Relation as d, buildMigrationIdentity as dn, syncPersistedColumnMappingsFromState as dt, stripPrismaSchemaModelsAndEnums as en, getPersistedColumnMap as et, LengthAwarePaginator as f, buildMigrationRunId as fn, validatePersistedMetadataFeaturesForMigrations as ft, configureArkormRuntime as g, findAppliedMigration as gn, PRISMA_MODEL_REGEX as gt, bindAdapterToModels as h, deleteAppliedMigrationsStateFromStore as hn, PRISMA_ENUM_REGEX as ht, HasOneThroughRelation as i, toMigrationFileSlug as in, getPersistedTableMetadata as it, isQuerySchemaLike as j, SetBasedEagerLoader as jn, buildPrimaryKeyLine as jt, getUserConfig as k, RuntimeModuleLoader as kn, buildMigrationSource as kt, SingleResultRelation as l, PrimaryKeyGenerationPlanner as ln, resolveColumnMappingsFilePath as lt, URLDriver as m, createEmptyAppliedMigrationsState as mn, PRISMA_ENUM_MEMBER_REGEX as mt, MorphOneRelation as n, supportsDatabaseMigrationExecution as nn, getPersistedEnumTsType as nt, HasManyThroughRelation as o, SchemaBuilder as on, readPersistedColumnMappingsState as ot, Paginator as p, computeMigrationChecksum as pn, writePersistedColumnMappingsState as pt, registerModels as q, getMigrationPlan as qt, MorphManyRelation as r, supportsDatabaseReset as rn, getPersistedPrimaryKeyGeneration as rt, HasManyRelation as s, EnumBuilder as sn, rebuildPersistedColumnMappingsState as st, MorphToManyRelation as t, supportsDatabaseCreation as tn, getPersistedEnumMap as tt, BelongsToManyRelation as u, ForeignKeyBuilder as un, resolvePersistedMetadataFeatures as ut, emitRuntimeDebugEvent as v, getLatestAppliedMigrations as vn, applyCreateTableOperation as vt, getRuntimeClient as w, removeAppliedMigration as wn, applyOperationsToPrismaSchema as wt, getActiveTransactionClient as x, markMigrationRun as xn, applyMigrationRollbackToPrismaSchema as xt, ensureArkormConfigLoading as y, isMigrationApplied as yn, applyDropTableOperation as yt, getRegisteredPaths as z, deriveSingularFieldName as zt };
|