@prisma/orm-family-sql 8.0.0-rc.18-dev.21 → 8.0.0-rc.18-dev.22
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/{ast-Dzsat0Zb.d.mts → ast-Cq7uhA86.d.mts} +3 -3
- package/dist/{ast-Dzsat0Zb.d.mts.map → ast-Cq7uhA86.d.mts.map} +1 -1
- package/dist/{attribute-specs-2I2xuKEa.d.mts → attribute-specs-BaasqvID.d.mts} +4 -4
- package/dist/{attribute-specs-2I2xuKEa.d.mts.map → attribute-specs-BaasqvID.d.mts.map} +1 -1
- package/dist/{authoring-entity-types-CZ-vdwYS-BpyuSxbj.d.mts → authoring-entity-types-CZ-vdwYS-CLLXZPhj.d.mts} +2 -2
- package/dist/{authoring-entity-types-CZ-vdwYS-BpyuSxbj.d.mts.map → authoring-entity-types-CZ-vdwYS-CLLXZPhj.d.mts.map} +1 -1
- package/dist/{authoring-type-constructors-0Iv2zdwS-BJjO5EnA.mjs → authoring-type-constructors-0Iv2zdwS-CJbLWgCh.mjs} +2 -2
- package/dist/{authoring-type-constructors-0Iv2zdwS-BJjO5EnA.mjs.map → authoring-type-constructors-0Iv2zdwS-CJbLWgCh.mjs.map} +1 -1
- package/dist/builder.d.mts +3 -3
- package/dist/builder__runtime.d.mts +9 -9
- package/dist/builder__types.d.mts +5 -5
- package/dist/{collection-methods-B-tM7OPZ-v8HK9Txa.d.mts → collection-methods-B-tM7OPZ-DzXedZdV.d.mts} +3 -3
- package/dist/{collection-methods-B-tM7OPZ-v8HK9Txa.d.mts.map → collection-methods-B-tM7OPZ-DzXedZdV.d.mts.map} +1 -1
- package/dist/collection-methods-BNAu8vHk.d.mts +1 -0
- package/dist/{config-types-DopEiXtk.mjs → config-types-BFS-ivzi.mjs} +2 -2
- package/dist/{config-types-DopEiXtk.mjs.map → config-types-BFS-ivzi.mjs.map} +1 -1
- package/dist/{config-types-B47kpY4J.d.mts → config-types-DN0IueHY.d.mts} +3 -3
- package/dist/{config-types-B47kpY4J.d.mts.map → config-types-DN0IueHY.d.mts.map} +1 -1
- package/dist/{contract-builder-C1X8KoEM.mjs → contract-builder-CKO_xspE.mjs} +3 -3
- package/dist/{contract-builder-C1X8KoEM.mjs.map → contract-builder-CKO_xspE.mjs.map} +1 -1
- package/dist/{contract-builder-De_fyZGT.d.mts → contract-builder-DkaXfJoe.d.mts} +9 -10
- package/dist/{contract-builder-De_fyZGT.d.mts.map → contract-builder-DkaXfJoe.d.mts.map} +1 -1
- package/dist/contract-emitter.d.mts +1 -2
- package/dist/contract-emitter.d.mts.map +1 -1
- package/dist/contract-emitter.mjs +1 -1
- package/dist/contract-prisma7__provider.d.mts +1 -1
- package/dist/contract-prisma7__provider.mjs +5 -5
- package/dist/contract-psl.d.mts +2 -2
- package/dist/contract-psl.mjs +1 -1
- package/dist/contract-psl__attribute-specs.d.mts +1 -1
- package/dist/contract-psl__attribute-specs.mjs +1 -1
- package/dist/contract-psl__provider.d.mts +1 -1
- package/dist/contract-psl__provider.mjs +2 -2
- package/dist/contract-ts.d.mts +3 -3
- package/dist/contract-ts.mjs +3 -3
- package/dist/contract-ts__config-types.d.mts +1 -1
- package/dist/contract-ts__config-types.mjs +1 -1
- package/dist/contract-ts__contract-builder.d.mts +2 -2
- package/dist/contract-ts__contract-builder.mjs +2 -2
- package/dist/contract.d.mts +3 -3
- package/dist/contract.mjs +2 -2
- package/dist/contract__data-type.d.mts +1 -1
- package/dist/contract__data-type.mjs +1 -1
- package/dist/contract__types.d.mts +2 -2
- package/dist/contract__validators.mjs +1 -1
- package/dist/{control-BqS5MMDh.d.mts → control-BLC3fSF4.d.mts} +12 -12
- package/dist/{control-BqS5MMDh.d.mts.map → control-BLC3fSF4.d.mts.map} +1 -1
- package/dist/{control-C7MNvu5Q.mjs → control-BTNIQxYM.mjs} +8 -8
- package/dist/{control-C7MNvu5Q.mjs.map → control-BTNIQxYM.mjs.map} +1 -1
- package/dist/{control-adapter-BCopdpsT-Bou0wWLF.d.mts → control-adapter-BCopdpsT-BpC5YbAf.d.mts} +5 -5
- package/dist/{control-adapter-BCopdpsT-Bou0wWLF.d.mts.map → control-adapter-BCopdpsT-BpC5YbAf.d.mts.map} +1 -1
- package/dist/control-adapter-DVjkUph8.d.mts +1 -0
- package/dist/data-type-DKk8Unnz.mjs.map +1 -1
- package/dist/{data-type-DuzmTpzK.d.mts → data-type-pNwyyJpr.d.mts} +2 -2
- package/dist/{data-type-DuzmTpzK.d.mts.map → data-type-pNwyyJpr.d.mts.map} +1 -1
- package/dist/{db-BmrN9nRS-xynLbnAy.d.mts → db-BmrN9nRS-BzK96yVh.d.mts} +11 -11
- package/dist/{db-BmrN9nRS-xynLbnAy.d.mts.map → db-BmrN9nRS-BzK96yVh.d.mts.map} +1 -1
- package/dist/{ddl-types-CoP6yAw9-BDp3W_5g.d.mts → ddl-types-CoP6yAw9-Cxc2zvi3.d.mts} +3 -3
- package/dist/{ddl-types-CoP6yAw9-BDp3W_5g.d.mts.map → ddl-types-CoP6yAw9-Cxc2zvi3.d.mts.map} +1 -1
- package/dist/{derived-checks-DpPkO6Dt-BMXrIjZy.d.mts → derived-checks-DpPkO6Dt-D-vp9vY3.d.mts} +2 -2
- package/dist/{derived-checks-DpPkO6Dt-BMXrIjZy.d.mts.map → derived-checks-DpPkO6Dt-D-vp9vY3.d.mts.map} +1 -1
- package/dist/{derived-checks-sRZp_gTF-UGwFWkVX.mjs → derived-checks-sRZp_gTF-Dvk3wkm9.mjs} +3 -3
- package/dist/{derived-checks-sRZp_gTF-UGwFWkVX.mjs.map → derived-checks-sRZp_gTF-Dvk3wkm9.mjs.map} +1 -1
- package/dist/{diff-D6PbCUWL.d.mts → diff-Czog35Sk.d.mts} +4 -4
- package/dist/{diff-D6PbCUWL.d.mts.map → diff-Czog35Sk.d.mts.map} +1 -1
- package/dist/{dist-DAHIT4AS.mjs → dist-Bxu8hzMC.mjs} +5 -10
- package/dist/dist-Bxu8hzMC.mjs.map +1 -0
- package/dist/{expression-BzrfOiPC-3NqR8UzK.d.mts → expression-BzrfOiPC-CXjjRKqc.d.mts} +5 -5
- package/dist/{expression-BzrfOiPC-3NqR8UzK.d.mts.map → expression-BzrfOiPC-CXjjRKqc.d.mts.map} +1 -1
- package/dist/expression-CIBqCwC1.d.mts +2 -0
- package/dist/{expression-sOY1120I-DOykEQlw.d.mts → expression-sOY1120I-DMTeGMQP.d.mts} +3 -3
- package/dist/{expression-sOY1120I-DOykEQlw.d.mts.map → expression-sOY1120I-DMTeGMQP.d.mts.map} +1 -1
- package/dist/family.d.mts +10 -10
- package/dist/family.mjs +5 -5
- package/dist/family__control-adapter.d.mts +2 -2
- package/dist/family__control.d.mts +3 -3
- package/dist/family__control.mjs +3 -3
- package/dist/family__diff.d.mts +1 -1
- package/dist/family__diff.mjs +1 -1
- package/dist/family__ir.d.mts +1 -1
- package/dist/family__ir.mjs +1 -1
- package/dist/family__migration.d.mts +1 -1
- package/dist/family__pack.d.mts +1 -1
- package/dist/family__pack.mjs +2 -2
- package/dist/family__psl-build.d.mts +1 -1
- package/dist/family__psl-build.mjs +1 -1
- package/dist/{functions-Cp8soSAv.d.mts → functions-LyIMc_v9.d.mts} +5 -5
- package/dist/{functions-Cp8soSAv.d.mts.map → functions-LyIMc_v9.d.mts.map} +1 -1
- package/dist/{index-BxlXOVeT.d.mts → index-B0hZw3uT.d.mts} +19 -19
- package/dist/{index-BxlXOVeT.d.mts.map → index-B0hZw3uT.d.mts.map} +1 -1
- package/dist/{index-BXFiad5j.d.mts → index-BRFLss5v.d.mts} +2 -2
- package/dist/{index-BXFiad5j.d.mts.map → index-BRFLss5v.d.mts.map} +1 -1
- package/dist/index-reference-CsxaNof9.d.mts +1 -0
- package/dist/{index-reference-DJaQLZA3-DxmYkkX-.d.mts → index-reference-DJaQLZA3-DS-GPKXs.d.mts} +3 -3
- package/dist/{index-reference-DJaQLZA3-DxmYkkX-.d.mts.map → index-reference-DJaQLZA3-DS-GPKXs.d.mts.map} +1 -1
- package/dist/{interpreter-B9wNACvu-CjrIm-Jo.mjs → interpreter-B9wNACvu-Bk0vkYDs.mjs} +3 -3
- package/dist/{interpreter-B9wNACvu-CjrIm-Jo.mjs.map → interpreter-B9wNACvu-Bk0vkYDs.mjs.map} +1 -1
- package/dist/{ir-DgNo535E.d.mts → ir-qK4wX3D3.d.mts} +2 -2
- package/dist/{ir-DgNo535E.d.mts.map → ir-qK4wX3D3.d.mts.map} +1 -1
- package/dist/middleware-MgGkjEXt.d.mts +1 -0
- package/dist/{middleware-oCT0RWkt-AFlRNCOD.d.mts → middleware-oCT0RWkt-DGav7C8b.d.mts} +2 -2
- package/dist/{middleware-oCT0RWkt-AFlRNCOD.d.mts.map → middleware-oCT0RWkt-DGav7C8b.d.mts.map} +1 -1
- package/dist/{migration-CJ0xK_7n.d.mts → migration-CFMl5iKv.d.mts} +3 -3
- package/dist/{migration-CJ0xK_7n.d.mts.map → migration-CFMl5iKv.d.mts.map} +1 -1
- package/dist/operations.d.mts +1 -1
- package/dist/orm-client.d.mts +18 -18
- package/dist/{pack-CyjyMUN0.d.mts → pack-mrYskO6T.d.mts} +3 -3
- package/dist/{pack-CyjyMUN0.d.mts.map → pack-mrYskO6T.d.mts.map} +1 -1
- package/dist/plan-BOyVvttx.d.mts +2 -0
- package/dist/{plan-Cbed2eDu-BZM3geSm.d.mts → plan-Cbed2eDu-3c5s1Aq5.d.mts} +3 -3
- package/dist/{plan-Cbed2eDu-BZM3geSm.d.mts.map → plan-Cbed2eDu-3c5s1Aq5.d.mts.map} +1 -1
- package/dist/{psl-build-ClY62mZM.d.mts → psl-build-CTj6JAX3.d.mts} +2 -2
- package/dist/{psl-build-ClY62mZM.d.mts.map → psl-build-CTj6JAX3.d.mts.map} +1 -1
- package/dist/{psl-build-pU0gKdVI.mjs → psl-build-DB-x01oH.mjs} +2 -2
- package/dist/{psl-build-pU0gKdVI.mjs.map → psl-build-DB-x01oH.mjs.map} +1 -1
- package/dist/{psl-column-resolution-BCkhNzOK-mW_8C9vr.d.mts → psl-column-resolution-BCkhNzOK-DOvdhSCj.d.mts} +2 -2
- package/dist/{psl-column-resolution-BCkhNzOK-mW_8C9vr.d.mts.map → psl-column-resolution-BCkhNzOK-DOvdhSCj.d.mts.map} +1 -1
- package/dist/{psl-field-resolution-BOJPyV5I-0zJJ0fOo.mjs → psl-field-resolution-BOJPyV5I-CQ7I2lbC.mjs} +3 -3
- package/dist/{psl-field-resolution-BOJPyV5I-0zJJ0fOo.mjs.map → psl-field-resolution-BOJPyV5I-CQ7I2lbC.mjs.map} +1 -1
- package/dist/{query-lane-context-BLOPW1rQ-Bn3ugl9a.d.mts → query-lane-context-BLOPW1rQ-4vNq0fxJ.d.mts} +6 -6
- package/dist/{query-lane-context-BLOPW1rQ-Bn3ugl9a.d.mts.map → query-lane-context-BLOPW1rQ-4vNq0fxJ.d.mts.map} +1 -1
- package/dist/query-lane-context-BPJrXopg.d.mts +1 -0
- package/dist/relational-core.d.mts +12 -12
- package/dist/relational-core__aggregate-descriptor-registry.d.mts +1 -1
- package/dist/relational-core__ast.d.mts +3 -3
- package/dist/relational-core__codec-descriptor-registry.d.mts +3 -3
- package/dist/relational-core__collection-methods.d.mts +2 -2
- package/dist/relational-core__contract-free.d.mts +3 -3
- package/dist/relational-core__expression.d.mts +3 -3
- package/dist/relational-core__functions.d.mts +1 -1
- package/dist/relational-core__index-reference.d.mts +2 -2
- package/dist/relational-core__middleware.d.mts +2 -2
- package/dist/relational-core__plan.d.mts +3 -3
- package/dist/relational-core__query-lane-context.d.mts +2 -2
- package/dist/relational-core__types.d.mts +2 -2
- package/dist/runtime.d.mts +4 -4
- package/dist/runtime__internal__prepared-query.d.mts +1 -1
- package/dist/{schema-differ-DmP74bB8-GfOUaGGy.d.mts → schema-differ-DmP74bB8-Dn53wZD1.d.mts} +2 -2
- package/dist/{schema-differ-DmP74bB8-GfOUaGGy.d.mts.map → schema-differ-DmP74bB8-Dn53wZD1.d.mts.map} +1 -1
- package/dist/{schema-verify-BwRdzbHb-B9vFrm3T.mjs → schema-verify-BwRdzbHb-CxnJN-Lm.mjs} +2 -2
- package/dist/{schema-verify-BwRdzbHb-B9vFrm3T.mjs.map → schema-verify-BwRdzbHb-CxnJN-Lm.mjs.map} +1 -1
- package/dist/{sql-contract-serializer-sMY3prTx-BKQ4Yh-n.mjs → sql-contract-serializer-sMY3prTx-BDTNHOOy.mjs} +2 -2
- package/dist/{sql-contract-serializer-sMY3prTx-BKQ4Yh-n.mjs.map → sql-contract-serializer-sMY3prTx-BDTNHOOy.mjs.map} +1 -1
- package/dist/{sql-data-type-Dabuwxet-BljsNjBu.mjs → sql-data-type-DwLa_dK9-2eTvrYhA.mjs} +10 -15
- package/dist/sql-data-type-DwLa_dK9-2eTvrYhA.mjs.map +1 -0
- package/dist/{sql-execution-plan-Dam5yMZg-Bc_eneSz.d.mts → sql-execution-plan-Dam5yMZg-bDl_0qHQ.d.mts} +2 -2
- package/dist/{sql-execution-plan-Dam5yMZg-Bc_eneSz.d.mts.map → sql-execution-plan-Dam5yMZg-bDl_0qHQ.d.mts.map} +1 -1
- package/dist/{transaction-state-DR3nKTmH-n_12DsnU.d.mts → transaction-state-DR3nKTmH-DbyhuL-z.d.mts} +9 -9
- package/dist/{transaction-state-DR3nKTmH-n_12DsnU.d.mts.map → transaction-state-DR3nKTmH-DbyhuL-z.d.mts.map} +1 -1
- package/dist/types-B2Dee96w.d.mts +35 -0
- package/dist/types-B2Dee96w.d.mts.map +1 -0
- package/dist/{types-Cv5t6_Ly-CcBWTpfM.d.mts → types-Cv5t6_Ly-BaGc023t.d.mts} +7 -7
- package/dist/{types-Cv5t6_Ly-CcBWTpfM.d.mts.map → types-Cv5t6_Ly-BaGc023t.d.mts.map} +1 -1
- package/dist/{types-DVaVM20q-B-QcMIOa.d.mts → types-DVaVM20q-DrinF7w_.d.mts} +2 -2
- package/dist/{types-DVaVM20q-B-QcMIOa.d.mts.map → types-DVaVM20q-DrinF7w_.d.mts.map} +1 -1
- package/dist/{types-DaYtBAYT-DbsbDMTk.d.mts → types-DaYtBAYT-DFhWS-6u.d.mts} +4 -4
- package/dist/{types-DaYtBAYT-DbsbDMTk.d.mts.map → types-DaYtBAYT-DFhWS-6u.d.mts.map} +1 -1
- package/dist/types-VUCzaDbp.d.mts +1 -0
- package/dist/{validators-V8vN9R85.mjs → validators-Uim8vh59.mjs} +2 -2
- package/dist/{validators-V8vN9R85.mjs.map → validators-Uim8vh59.mjs.map} +1 -1
- package/package.json +18 -18
- package/dist/collection-methods-DQAFcGEB.d.mts +0 -1
- package/dist/control-adapter-CUwBiImd.d.mts +0 -1
- package/dist/dist-DAHIT4AS.mjs.map +0 -1
- package/dist/expression-CeerCjQG.d.mts +0 -2
- package/dist/index-reference-CWppFpUV.d.mts +0 -1
- package/dist/middleware-IqWk9Eff.d.mts +0 -1
- package/dist/plan-BZpZafiQ.d.mts +0 -2
- package/dist/query-lane-context-Dpep1Fzy.d.mts +0 -1
- package/dist/sql-data-type-Dabuwxet-BljsNjBu.mjs.map +0 -1
- package/dist/types-DMfBh16_.d.mts +0 -67
- package/dist/types-DMfBh16_.d.mts.map +0 -1
- package/dist/types-_7TbRpPw.d.mts +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { E as CodecRef$1, Et as ProjectionItem, dt as LockWaitPolicy, h as AnyQueryAst, ht as LoweredStatement, m as AnyParamRef } from "./types-DVaVM20q-
|
|
1
|
+
import { E as CodecRef$1, Et as ProjectionItem, dt as LockWaitPolicy, h as AnyQueryAst, ht as LoweredStatement, m as AnyParamRef } from "./types-DVaVM20q-DrinF7w_.mjs";
|
|
2
2
|
import { c as SqlQueryable } from "./driver-types-DRsYeq3j-X_D6hNMZ.mjs";
|
|
3
|
-
import "./ddl-types-CoP6yAw9-
|
|
3
|
+
import "./ddl-types-CoP6yAw9-Cxc2zvi3.mjs";
|
|
4
4
|
import { StructuredError } from "@prisma/orm-framework/utils/structured-error";
|
|
5
5
|
import { CodecCallContext, CodecDescriptorTemplateImpl, CodecImpl, CodecInstanceContext, CodecLookupWithDescriptors, DataTypeValue } from "@prisma/orm-framework/components/codec";
|
|
6
6
|
import { ColumnDefaultLiteralInputValue, ContractMarkerRecord, JsonValue } from "@prisma/orm-framework/contract/types";
|
|
@@ -262,4 +262,4 @@ declare function collectOrderedParamRefs(ast: AnyQueryAst): ReadonlyArray<AnyPar
|
|
|
262
262
|
declare function isAggregateProjection(item: ProjectionItem): boolean;
|
|
263
263
|
//#endregion
|
|
264
264
|
export { sqlTextDecode as $, collectOrderedParamRefs as A, sqlCharColumn as B, SqlFloatDescriptor as C, SqlTextDescriptor as D, SqlTextCodec as E, lockIncompatible as F, sqlFloatDecode as G, sqlCharDescriptor as H, lockOptionCapabilities as I, sqlIntColumn as J, sqlFloatDescriptor as K, lockStrengthCapabilities as L, encodeListLiteralDefault as M, encodeLiteralDefault as N, SqlVarcharCodec as O, isAggregateProjection as P, sqlTextColumn as Q, lockWaitPolicyOf as R, SqlFloatCodec as S, SqlIntDescriptor as T, sqlCharEncode as U, sqlCharDecode as V, sqlFloatColumn as W, sqlIntDescriptor as X, sqlIntDecode as Y, sqlIntEncode as Z, SQL_INT_CODEC_ID as _, EncodedLiteralDefault as a, sqlVarcharEncode as at, SqlCharCodec as b, LockOptionCapabilities as c, LockWaitRequest as d, sqlTextDescriptor as et, Lowerer as f, SQL_FLOAT_CODEC_ID as g, SQL_CHAR_CODEC_ID as h, CapabilityRequirement as i, sqlVarcharDescriptor as it, compact as j, SqlVarcharDescriptor as k, LockStrengthCapabilities as l, MarkerReadResult as m, AdapterProfile as n, sqlVarcharColumn as nt, LiteralDefaultColumn as o, LowererContext as p, sqlFloatEncode as q, AdapterTarget as r, sqlVarcharDecode as rt, LockConflict as s, Adapter as t, sqlTextEncode as tt, LockWaitOptions as u, SQL_TEXT_CODEC_ID as v, SqlIntCodec as w, SqlCharDescriptor as x, SQL_VARCHAR_CODEC_ID as y, missingCapability as z };
|
|
265
|
-
//# sourceMappingURL=ast-
|
|
265
|
+
//# sourceMappingURL=ast-Cq7uhA86.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ast-
|
|
1
|
+
{"version":3,"file":"ast-Cq7uhA86.d.mts","names":[],"sources":["../../../../2-sql/4-lanes/relational-core/dist/exports/ast.d.mts"],"mappings":";;;;;;;;KAOK;;;;;;;KAOA;WACM;WACA,QAAQ;;WAER;;WAEA;;UAED,eAAe,gBAAgB,gBAAgB;WAC9C;WACA,QAAQ;WACR,cAAc;;;;EAIvB,WAAW,WAAW,eAAe,QAAQ;;UAErC,eAAe;WACd,UAAU;WACV;;KAEN,QAAQ,eAAe,qBAAqB,QAAQ,qBAAqB,KAAK,KAAK,SAAS,eAAe,eAAe;;;;UAIrH,QAAQ,eAAe,qBAAqB,QAAQ;WACnD,SAAS;EAClB,MAAM,KAAK,KAAK,SAAS,eAAe,aAAa;;;;;KAKlD;WACM;;WAEA;WACA;;;UAGD;WACC;WACA;;;;;;;iBAOM,qBAAqB,aAAa,KAAK,8CAA8C,UAAU,YAAU,OAAO,gCAAgC,OAAO,uBAAuB,QAAQ;;;;iBAItL,yBAAyB,aAAa,KAAK,8CAA8C,UAAU,YAAU,mBAAmB,aAAa,OAAO,uBAAuB,iBAAiB;;;;KAIxM;;iBAEY,iBAAiB,UAAU,cAAc,kBAAkB;;KAEvE;YACO;cACE;;;;cAIA;WACH;aACE;eACE;;;WAGJ;aACE;eACE;;;WAGJ;aACE;eACE;;;WAGJ;aACE;eACE;;;;;cAKD;WACH;aACE;eACE;;;WAGJ;aACE;eACE;;;WAGJ;aACE;eACE;;;;KAIV,kCAAkC;KAClC,gCAAgC;;iBAEpB,kBAAkB;YACvB;cACE;;GAEX,aAAa;;KAEX,gBAAgB,iBAAiB,qBAAqB;WAChD;WACA;cACG,qBAAqB;WACxB;WACA;;WAEA;WACA;;;UAGD;WACC;WACA;;;iBAGM,iBAAiB,oBAAoB,SAAS,8BAA8B;;;;;;;;cAQ/E;cACA;cACA;cACA;cACA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B,gBAAgB;;cAEpB,6BAA6B,4BAA4B;WAC5D;WACA;WACA;EACT,QAAQ,SAAS,gBAAgB,KAAK,yBAAyB;;cAEnD,sBAAsB;cACtB,mBAAmB,SAAS,gEAAgE,WAAW,iBAAiB;;;iBAGrH,QAAQ,UAAU,yBAAyB,GAAG,IAAI;;;;;;;;;;;iBAWlD,wBAAwB,KAAK,cAAc,cAAc;;iBAEzD,sBAAsB,MAAM"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import "./types-
|
|
2
|
-
import "./contract-builder-
|
|
3
|
-
import "./psl-column-resolution-BCkhNzOK-
|
|
1
|
+
import "./types-B2Dee96w.mjs";
|
|
2
|
+
import "./contract-builder-DkaXfJoe.mjs";
|
|
3
|
+
import "./psl-column-resolution-BCkhNzOK-DOvdhSCj.mjs";
|
|
4
4
|
import { PslSources } from "@prisma/orm-framework/psl-parser/syntax";
|
|
5
5
|
import { AttributeSpec, AttributeSpecContext, DescribeUnsupportedAttribute, FieldAttributeCtx, FieldAttributeSpecContext, ModelAttributeCtx, ModelSymbol, ParsedWrittenList, ParsedWrittenScalar, PslSpan, TypedFuncCall } from "@prisma/orm-framework/psl-parser";
|
|
6
6
|
import "@prisma/orm-framework/components/control";
|
|
@@ -100,4 +100,4 @@ declare const sqlAttributeSpecs: {
|
|
|
100
100
|
declare function describeUnsupportedSqlAttribute(sources: PslSources): DescribeUnsupportedAttribute;
|
|
101
101
|
//#endregion
|
|
102
102
|
export { ParsedNullLiteral as a, EnumMemberListDefault as i, DefaultFunctionCall as n, sqlAttributeSpecs as o, EnumMemberDefault as r, describeUnsupportedSqlAttribute as t };
|
|
103
|
-
//# sourceMappingURL=attribute-specs-
|
|
103
|
+
//# sourceMappingURL=attribute-specs-BaasqvID.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"attribute-specs-
|
|
1
|
+
{"version":3,"file":"attribute-specs-BaasqvID.d.mts","names":[],"sources":["../../../../2-sql/2-authoring/contract-psl/dist/sql-attribute-specs-DShY0yBj.d.mts","../../../../2-sql/2-authoring/contract-psl/dist/attribute-specs.d.mts"],"mappings":";;;;;;;;;UAMU;WACC;WACA;;;UAGD;WACC;WACA,MAAM;;;UAGP;WACC;WACA,oBAAoB,oBAAoB;;;UAGzC;WACC;WACA,MAAM;;KAEZ,kBAAkB,sBAAsB,oBAAoB,kBAAkB,sBAAsB,qBAAqB,sBAAsB,oBAAoB;iBACvJ,iBAAiB,KAAK,4BAA4B;EACjE,OAAO;GACN;iBACc,eAAe,KAAK,uBAAuB;EAC1D;WACS,4CAA4C;WAC5C,uCAAuC;WACvC;WACA;WACA;WACA;WACA,UAAU;GAClB;iBACc,eAAe,KAAK,uBAAuB;WACjD,2CAA2C;WAC3C;WACA;GACR;;cAEW;WACH;aACE,MAAM,MAAM,yBAAyB;MAC5C;OACC;aACM,KAAK,MAAM,yBAAyB;MAC3C;eACS;OACR;aACM,SAAS,MAAM,yBAAyB;MAC/C;eACS;OACR;aACM,cAAc;aACd,cAAc;aACd,UAAU,MAAM,yBAAyB;MAChD;OACC;aACM,gBAAgB,MAAM,yBAAyB;MACtD;OACC;aACM,OAAO,MAAM,yBAAyB;MAC7C,qCAAqC,wBAAwB;MAC7D;OACC;;WAEI;aACE,MAAM,MAAM,8BAA8B;MACjD;OACC;aACM,KAAK,MAAM,8BAA8B;eACvC;OACR;aACM,SAAS,MAAM,8BAA8B;eAC3C;OACR;aACM,WAAW,MAAM,8BAA8B;MACtD;eACS;eACA;eACA;eACA;eACA;eACA;OACR;aACM,gBAAgB;;;;;;iBC9EZ,gCAAgC,SAAS,aAAa"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./contract-builder-
|
|
1
|
+
import "./contract-builder-DkaXfJoe.mjs";
|
|
2
2
|
import "@prisma/orm-framework/components/authoring";
|
|
3
3
|
import "@prisma/orm-framework/psl-parser";
|
|
4
4
|
//#region ../../../2-sql/9-family/dist/authoring-entity-types-CZ-vdwYS.d.mts
|
|
@@ -6,4 +6,4 @@ import "@prisma/orm-framework/psl-parser";
|
|
|
6
6
|
declare function sqlFamilyEnumSpec(): import("@prisma/orm-framework/psl-parser").MapBlockSpec<Record<string, import("@prisma/orm-framework/contract/types").JsonValue | undefined>>;
|
|
7
7
|
//#endregion
|
|
8
8
|
export { sqlFamilyEnumSpec as t };
|
|
9
|
-
//# sourceMappingURL=authoring-entity-types-CZ-vdwYS-
|
|
9
|
+
//# sourceMappingURL=authoring-entity-types-CZ-vdwYS-CLLXZPhj.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authoring-entity-types-CZ-vdwYS-
|
|
1
|
+
{"version":3,"file":"authoring-entity-types-CZ-vdwYS-CLLXZPhj.d.mts","names":[],"sources":["../../../../2-sql/9-family/dist/authoring-entity-types-CZ-vdwYS.d.mts"],"mappings":";;;;;iBAIiB,oDAAoD,aAAa,kDAAkD"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as enumType } from "./contract-builder-
|
|
1
|
+
import { c as enumType } from "./contract-builder-CKO_xspE.mjs";
|
|
2
2
|
import { readEnumBlockMembers, resolveEnumCodecId } from "@prisma/orm-framework/components/authoring";
|
|
3
3
|
import { enumRefusalOf, requiredParamKeys } from "@prisma/orm-framework/components/codec";
|
|
4
4
|
import { blockAttribute, jsonValue, mapBlock, str } from "@prisma/orm-framework/psl-parser";
|
|
@@ -263,4 +263,4 @@ const sqlFamilyAuthoringTypes = { sql: { String: {
|
|
|
263
263
|
//#endregion
|
|
264
264
|
export { sqlFamilyPslBlockDescriptors as i, sqlFamilyAuthoringTypes as n, sqlFamilyEntityTypes as r, sqlFamilyAuthoringFieldPresets as t };
|
|
265
265
|
|
|
266
|
-
//# sourceMappingURL=authoring-type-constructors-0Iv2zdwS-
|
|
266
|
+
//# sourceMappingURL=authoring-type-constructors-0Iv2zdwS-CJbLWgCh.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authoring-type-constructors-0Iv2zdwS-BJjO5EnA.mjs","names":[],"sources":["../../../../2-sql/9-family/dist/authoring-type-constructors-0Iv2zdwS.mjs"],"sourcesContent":["import { readEnumBlockMembers, resolveEnumCodecId } from \"@internal/framework-components/authoring\";\nimport { enumRefusalOf, requiredParamKeys } from \"@internal/framework-components/codec\";\nimport { blockAttribute, jsonValue, mapBlock, str } from \"@internal/psl-parser\";\nimport { enumType } from \"@internal/sql-contract-ts/contract-builder\";\n//#region src/core/authoring-entity-types.ts\nfunction sqlFamilyEnumSpec() {\n\treturn mapBlock({\n\t\tvalue: {\n\t\t\ttype: jsonValue(),\n\t\t\tdocumentation: \"The stored member value; a bare member stores its own name.\"\n\t\t},\n\t\tallowBare: true\n\t});\n}\nconst sqlFamilyEntityTypes = { enum: {\n\tkind: \"entity\",\n\tdiscriminator: \"enum\",\n\toutput: { factory: (block, ctx) => {\n\t\tconst sourceId = ctx.sourceId ?? \"unknown\";\n\t\tconst diagnostics = ctx.diagnostics;\n\t\tconst resolved = resolveEnumCodecId(block, ctx);\n\t\tif (resolved === void 0) return;\n\t\tconst { codecId, codecSpan } = resolved;\n\t\tconst descriptor = ctx.codecLookup.descriptorFor(codecId);\n\t\tconst codec = ctx.codecLookup.get(codecId);\n\t\tif (descriptor === void 0 || codec === void 0) {\n\t\t\tdiagnostics?.push({\n\t\t\t\tcode: \"PSL_EXTENSION_INVALID_VALUE\",\n\t\t\t\tmessage: `enum \"${block.name}\" @@type references unknown codec \"${codecId}\"`,\n\t\t\t\tsourceId,\n\t\t\t\tspan: codecSpan\n\t\t\t});\n\t\t\treturn;\n\t\t}\n\t\tconst enumRefusal = enumRefusalOf(descriptor);\n\t\tif (enumRefusal !== void 0) {\n\t\t\tdiagnostics?.push({\n\t\t\t\tcode: \"PSL_EXTENSION_INVALID_VALUE\",\n\t\t\t\tmessage: `enum \"${block.name}\" cannot use the codec \"${codecId}\". ${enumRefusal}`,\n\t\t\t\tsourceId,\n\t\t\t\tspan: codecSpan\n\t\t\t});\n\t\t\treturn;\n\t\t}\n\t\tconst dataType = ctx.dataTypeLookup.get(descriptor.dataType);\n\t\tif (dataType === void 0) {\n\t\t\tdiagnostics?.push({\n\t\t\t\tcode: \"PSL_EXTENSION_INVALID_VALUE\",\n\t\t\t\tmessage: `enum \"${block.name}\" @@type codec \"${codecId}\" represents data type \"${descriptor.dataType}\", which no component registers`,\n\t\t\t\tsourceId,\n\t\t\t\tspan: codecSpan\n\t\t\t});\n\t\t\treturn;\n\t\t}\n\t\tconst [requiredParam] = requiredParamKeys(dataType);\n\t\tif (requiredParam !== void 0) {\n\t\t\tdiagnostics?.push({\n\t\t\t\tcode: \"PSL_ENUM_TYPE_NEEDS_PARAMETERS\",\n\t\t\t\tmessage: `enum \"${block.name}\" @@type codec \"${codecId}\" represents data type \"${dataType.id}\", which requires the parameter \"${requiredParam}\"; an enum block gives it none`,\n\t\t\t\tsourceId,\n\t\t\t\tspan: codecSpan\n\t\t\t});\n\t\t\treturn;\n\t\t}\n\t\tconst members = readEnumBlockMembers(block, codecId, codec, ctx);\n\t\tif (members === void 0) return void 0;\n\t\treturn enumType(block.name, { codecId }, ...members);\n\t} }\n} };\nconst enumTypeBlockAttribute = blockAttribute(\"type\", {\n\tdocumentation: \"Selects the storage codec for this enum.\",\n\tpositional: [{\n\t\tkey: \"codecId\",\n\t\ttype: str(),\n\t\tdocumentation: \"The fully qualified codec identifier used to store enum values.\"\n\t}]\n});\nconst sqlFamilyPslBlockDescriptors = { enum: {\n\tkind: \"pslBlock\",\n\tkeyword: \"enum\",\n\tdocumentation: \"Defines an enum with named values and an inferred or explicitly selected storage codec.\",\n\tdiscriminator: \"enum\",\n\tname: { required: true },\n\tspec: sqlFamilyEnumSpec,\n\tattributes: { type: () => enumTypeBlockAttribute }\n} };\n//#endregion\n//#region src/core/authoring-field-presets.ts\n/**\n* Family-level SQL authoring field presets.\n*\n* Only presets whose codec IDs align with the ID generator metadata live here\n* (see `@internal/ids`). These presets are target-agnostic because the\n* generator metadata fixes their codec/native-type to `sql/char@1`\n* (`character`) regardless of target, and the PSL interpreter lets the\n* generator override the scalar descriptor.\n*\n* The `uuidString` / `id.uuidv4String` / `id.uuidv7String` presets store UUID\n* values as `character(36)` — portable across all SQL targets. For a native\n* Postgres `uuid` column use `uuidNative` / `id.uuidv4Native` /\n* `id.uuidv7Native` from `@internal/target-postgres`.\n*\n* Scalar presets that map to target-specific codecs (e.g. `text`, `int`,\n* `boolean`, `dateTime`) are contributed by the target pack (see\n* `postgresAuthoringFieldPresets` in `@internal/target-postgres`) so the\n* TS callback surface and the PSL scalar surface lower to byte-identical\n* contracts for the active target.\n*/\nconst CHARACTER_CODEC_ID = \"sql/char@1\";\nconst nanoidOptionsArgument = {\n\tkind: \"object\",\n\toptional: true,\n\tproperties: { size: {\n\t\tkind: \"number\",\n\t\toptional: true,\n\t\tinteger: true,\n\t\tminimum: 2,\n\t\tmaximum: 255\n\t} }\n};\nconst sqlFamilyAuthoringFieldPresets = {\n\tuuidString: {\n\t\tkind: \"fieldPreset\",\n\t\toutput: {\n\t\t\tcodecId: CHARACTER_CODEC_ID,\n\t\t\ttypeParams: { length: 36 }\n\t\t}\n\t},\n\tulid: {\n\t\tkind: \"fieldPreset\",\n\t\toutput: {\n\t\t\tcodecId: CHARACTER_CODEC_ID,\n\t\t\ttypeParams: { length: 26 }\n\t\t}\n\t},\n\tnanoid: {\n\t\tkind: \"fieldPreset\",\n\t\targs: [nanoidOptionsArgument],\n\t\toutput: {\n\t\t\tcodecId: CHARACTER_CODEC_ID,\n\t\t\ttypeParams: { length: {\n\t\t\t\tkind: \"arg\",\n\t\t\t\tindex: 0,\n\t\t\t\tpath: [\"size\"],\n\t\t\t\tdefault: 21\n\t\t\t} }\n\t\t}\n\t},\n\tcuid2: {\n\t\tkind: \"fieldPreset\",\n\t\toutput: {\n\t\t\tcodecId: CHARACTER_CODEC_ID,\n\t\t\ttypeParams: { length: 24 }\n\t\t}\n\t},\n\tksuid: {\n\t\tkind: \"fieldPreset\",\n\t\toutput: {\n\t\t\tcodecId: CHARACTER_CODEC_ID,\n\t\t\ttypeParams: { length: 27 }\n\t\t}\n\t},\n\tid: {\n\t\tuuidv4String: {\n\t\t\tkind: \"fieldPreset\",\n\t\t\toutput: {\n\t\t\t\tcodecId: CHARACTER_CODEC_ID,\n\t\t\t\ttypeParams: { length: 36 },\n\t\t\t\texecutionDefaults: { onCreate: {\n\t\t\t\t\tkind: \"generator\",\n\t\t\t\t\tid: \"uuidv4\"\n\t\t\t\t} },\n\t\t\t\tid: true\n\t\t\t}\n\t\t},\n\t\tuuidv7String: {\n\t\t\tkind: \"fieldPreset\",\n\t\t\toutput: {\n\t\t\t\tcodecId: CHARACTER_CODEC_ID,\n\t\t\t\ttypeParams: { length: 36 },\n\t\t\t\texecutionDefaults: { onCreate: {\n\t\t\t\t\tkind: \"generator\",\n\t\t\t\t\tid: \"uuidv7\"\n\t\t\t\t} },\n\t\t\t\tid: true\n\t\t\t}\n\t\t},\n\t\tulid: {\n\t\t\tkind: \"fieldPreset\",\n\t\t\toutput: {\n\t\t\t\tcodecId: CHARACTER_CODEC_ID,\n\t\t\t\ttypeParams: { length: 26 },\n\t\t\t\texecutionDefaults: { onCreate: {\n\t\t\t\t\tkind: \"generator\",\n\t\t\t\t\tid: \"ulid\"\n\t\t\t\t} },\n\t\t\t\tid: true\n\t\t\t}\n\t\t},\n\t\tnanoid: {\n\t\t\tkind: \"fieldPreset\",\n\t\t\targs: [nanoidOptionsArgument],\n\t\t\toutput: {\n\t\t\t\tcodecId: CHARACTER_CODEC_ID,\n\t\t\t\ttypeParams: { length: {\n\t\t\t\t\tkind: \"arg\",\n\t\t\t\t\tindex: 0,\n\t\t\t\t\tpath: [\"size\"],\n\t\t\t\t\tdefault: 21\n\t\t\t\t} },\n\t\t\t\texecutionDefaults: { onCreate: {\n\t\t\t\t\tkind: \"generator\",\n\t\t\t\t\tid: \"nanoid\",\n\t\t\t\t\tparams: { size: {\n\t\t\t\t\t\tkind: \"arg\",\n\t\t\t\t\t\tindex: 0,\n\t\t\t\t\t\tpath: [\"size\"]\n\t\t\t\t\t} }\n\t\t\t\t} },\n\t\t\t\tid: true\n\t\t\t}\n\t\t},\n\t\tcuid2: {\n\t\t\tkind: \"fieldPreset\",\n\t\t\toutput: {\n\t\t\t\tcodecId: CHARACTER_CODEC_ID,\n\t\t\t\ttypeParams: { length: 24 },\n\t\t\t\texecutionDefaults: { onCreate: {\n\t\t\t\t\tkind: \"generator\",\n\t\t\t\t\tid: \"cuid2\"\n\t\t\t\t} },\n\t\t\t\tid: true\n\t\t\t}\n\t\t},\n\t\tksuid: {\n\t\t\tkind: \"fieldPreset\",\n\t\t\toutput: {\n\t\t\t\tcodecId: CHARACTER_CODEC_ID,\n\t\t\t\ttypeParams: { length: 27 },\n\t\t\t\texecutionDefaults: { onCreate: {\n\t\t\t\t\tkind: \"generator\",\n\t\t\t\t\tid: \"ksuid\"\n\t\t\t\t} },\n\t\t\t\tid: true\n\t\t\t}\n\t\t}\n\t}\n};\n//#endregion\n//#region src/core/authoring-type-constructors.ts\nconst sqlFamilyAuthoringTypes = { sql: { String: {\n\tkind: \"typeConstructor\",\n\tdocumentation: \"Variable-length text with a required maximum character length.\",\n\targs: [{\n\t\tkind: \"number\",\n\t\tname: \"length\",\n\t\tinteger: true\n\t}],\n\toutput: {\n\t\tcodecId: \"sql/varchar@1\",\n\t\ttypeParams: { length: {\n\t\t\tkind: \"arg\",\n\t\t\tindex: 0\n\t\t} }\n\t}\n} } };\n//#endregion\nexport { sqlFamilyPslBlockDescriptors as i, sqlFamilyAuthoringFieldPresets as n, sqlFamilyEntityTypes as r, sqlFamilyAuthoringTypes as t };\n\n//# sourceMappingURL=authoring-type-constructors-0Iv2zdwS.mjs.map"],"mappings":";;;;;AAKA,SAAS,oBAAoB;CAC5B,OAAO,SAAS;EACf,OAAO;GACN,MAAM,UAAU;GAChB,eAAe;EAChB;EACA,WAAW;CACZ,CAAC;AACF;AACA,MAAM,uBAAuB,EAAE,MAAM;C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],"sources":["../../../../2-sql/9-family/dist/authoring-type-constructors-0Iv2zdwS.mjs"],"sourcesContent":["import { readEnumBlockMembers, resolveEnumCodecId } from \"@internal/framework-components/authoring\";\nimport { enumRefusalOf, requiredParamKeys } from \"@internal/framework-components/codec\";\nimport { blockAttribute, jsonValue, mapBlock, str } from \"@internal/psl-parser\";\nimport { enumType } from \"@internal/sql-contract-ts/contract-builder\";\n//#region src/core/authoring-entity-types.ts\nfunction sqlFamilyEnumSpec() {\n\treturn mapBlock({\n\t\tvalue: {\n\t\t\ttype: jsonValue(),\n\t\t\tdocumentation: \"The stored member value; a bare member stores its own name.\"\n\t\t},\n\t\tallowBare: true\n\t});\n}\nconst sqlFamilyEntityTypes = { enum: {\n\tkind: \"entity\",\n\tdiscriminator: \"enum\",\n\toutput: { factory: (block, ctx) => {\n\t\tconst sourceId = ctx.sourceId ?? \"unknown\";\n\t\tconst diagnostics = ctx.diagnostics;\n\t\tconst resolved = resolveEnumCodecId(block, ctx);\n\t\tif (resolved === void 0) return;\n\t\tconst { codecId, codecSpan } = resolved;\n\t\tconst descriptor = ctx.codecLookup.descriptorFor(codecId);\n\t\tconst codec = ctx.codecLookup.get(codecId);\n\t\tif (descriptor === void 0 || codec === void 0) {\n\t\t\tdiagnostics?.push({\n\t\t\t\tcode: \"PSL_EXTENSION_INVALID_VALUE\",\n\t\t\t\tmessage: `enum \"${block.name}\" @@type references unknown codec \"${codecId}\"`,\n\t\t\t\tsourceId,\n\t\t\t\tspan: codecSpan\n\t\t\t});\n\t\t\treturn;\n\t\t}\n\t\tconst enumRefusal = enumRefusalOf(descriptor);\n\t\tif (enumRefusal !== void 0) {\n\t\t\tdiagnostics?.push({\n\t\t\t\tcode: \"PSL_EXTENSION_INVALID_VALUE\",\n\t\t\t\tmessage: `enum \"${block.name}\" cannot use the codec \"${codecId}\". ${enumRefusal}`,\n\t\t\t\tsourceId,\n\t\t\t\tspan: codecSpan\n\t\t\t});\n\t\t\treturn;\n\t\t}\n\t\tconst dataType = ctx.dataTypeLookup.get(descriptor.dataType);\n\t\tif (dataType === void 0) {\n\t\t\tdiagnostics?.push({\n\t\t\t\tcode: \"PSL_EXTENSION_INVALID_VALUE\",\n\t\t\t\tmessage: `enum \"${block.name}\" @@type codec \"${codecId}\" represents data type \"${descriptor.dataType}\", which no component registers`,\n\t\t\t\tsourceId,\n\t\t\t\tspan: codecSpan\n\t\t\t});\n\t\t\treturn;\n\t\t}\n\t\tconst [requiredParam] = requiredParamKeys(dataType);\n\t\tif (requiredParam !== void 0) {\n\t\t\tdiagnostics?.push({\n\t\t\t\tcode: \"PSL_ENUM_TYPE_NEEDS_PARAMETERS\",\n\t\t\t\tmessage: `enum \"${block.name}\" @@type codec \"${codecId}\" represents data type \"${dataType.id}\", which requires the parameter \"${requiredParam}\"; an enum block gives it none`,\n\t\t\t\tsourceId,\n\t\t\t\tspan: codecSpan\n\t\t\t});\n\t\t\treturn;\n\t\t}\n\t\tconst members = readEnumBlockMembers(block, codecId, codec, ctx);\n\t\tif (members === void 0) return void 0;\n\t\treturn enumType(block.name, { codecId }, ...members);\n\t} }\n} };\nconst enumTypeBlockAttribute = blockAttribute(\"type\", {\n\tdocumentation: \"Selects the storage codec for this enum.\",\n\tpositional: [{\n\t\tkey: \"codecId\",\n\t\ttype: str(),\n\t\tdocumentation: \"The fully qualified codec identifier used to store enum values.\"\n\t}]\n});\nconst sqlFamilyPslBlockDescriptors = { enum: {\n\tkind: \"pslBlock\",\n\tkeyword: \"enum\",\n\tdocumentation: \"Defines an enum with named values and an inferred or explicitly selected storage codec.\",\n\tdiscriminator: \"enum\",\n\tname: { required: true },\n\tspec: sqlFamilyEnumSpec,\n\tattributes: { type: () => enumTypeBlockAttribute }\n} };\n//#endregion\n//#region src/core/authoring-field-presets.ts\n/**\n* Family-level SQL authoring field presets.\n*\n* Only presets whose codec IDs align with the ID generator metadata live here\n* (see `@internal/ids`). These presets are target-agnostic because the\n* generator metadata fixes their codec/native-type to `sql/char@1`\n* (`character`) regardless of target, and the PSL interpreter lets the\n* generator override the scalar descriptor.\n*\n* The `uuidString` / `id.uuidv4String` / `id.uuidv7String` presets store UUID\n* values as `character(36)` — portable across all SQL targets. For a native\n* Postgres `uuid` column use `uuidNative` / `id.uuidv4Native` /\n* `id.uuidv7Native` from `@internal/target-postgres`.\n*\n* Scalar presets that map to target-specific codecs (e.g. `text`, `int`,\n* `boolean`, `dateTime`) are contributed by the target pack (see\n* `postgresAuthoringFieldPresets` in `@internal/target-postgres`) so the\n* TS callback surface and the PSL scalar surface lower to byte-identical\n* contracts for the active target.\n*/\nconst CHARACTER_CODEC_ID = \"sql/char@1\";\nconst nanoidOptionsArgument = {\n\tkind: \"object\",\n\toptional: true,\n\tproperties: { size: {\n\t\tkind: \"number\",\n\t\toptional: true,\n\t\tinteger: true,\n\t\tminimum: 2,\n\t\tmaximum: 255\n\t} }\n};\nconst sqlFamilyAuthoringFieldPresets = {\n\tuuidString: {\n\t\tkind: \"fieldPreset\",\n\t\toutput: {\n\t\t\tcodecId: CHARACTER_CODEC_ID,\n\t\t\ttypeParams: { length: 36 }\n\t\t}\n\t},\n\tulid: {\n\t\tkind: \"fieldPreset\",\n\t\toutput: {\n\t\t\tcodecId: CHARACTER_CODEC_ID,\n\t\t\ttypeParams: { length: 26 }\n\t\t}\n\t},\n\tnanoid: {\n\t\tkind: \"fieldPreset\",\n\t\targs: [nanoidOptionsArgument],\n\t\toutput: {\n\t\t\tcodecId: CHARACTER_CODEC_ID,\n\t\t\ttypeParams: { length: {\n\t\t\t\tkind: \"arg\",\n\t\t\t\tindex: 0,\n\t\t\t\tpath: [\"size\"],\n\t\t\t\tdefault: 21\n\t\t\t} }\n\t\t}\n\t},\n\tcuid2: {\n\t\tkind: \"fieldPreset\",\n\t\toutput: {\n\t\t\tcodecId: CHARACTER_CODEC_ID,\n\t\t\ttypeParams: { length: 24 }\n\t\t}\n\t},\n\tksuid: {\n\t\tkind: \"fieldPreset\",\n\t\toutput: {\n\t\t\tcodecId: CHARACTER_CODEC_ID,\n\t\t\ttypeParams: { length: 27 }\n\t\t}\n\t},\n\tid: {\n\t\tuuidv4String: {\n\t\t\tkind: \"fieldPreset\",\n\t\t\toutput: {\n\t\t\t\tcodecId: CHARACTER_CODEC_ID,\n\t\t\t\ttypeParams: { length: 36 },\n\t\t\t\texecutionDefaults: { onCreate: {\n\t\t\t\t\tkind: \"generator\",\n\t\t\t\t\tid: \"uuidv4\"\n\t\t\t\t} },\n\t\t\t\tid: true\n\t\t\t}\n\t\t},\n\t\tuuidv7String: {\n\t\t\tkind: \"fieldPreset\",\n\t\t\toutput: {\n\t\t\t\tcodecId: CHARACTER_CODEC_ID,\n\t\t\t\ttypeParams: { length: 36 },\n\t\t\t\texecutionDefaults: { onCreate: {\n\t\t\t\t\tkind: \"generator\",\n\t\t\t\t\tid: \"uuidv7\"\n\t\t\t\t} },\n\t\t\t\tid: true\n\t\t\t}\n\t\t},\n\t\tulid: {\n\t\t\tkind: \"fieldPreset\",\n\t\t\toutput: {\n\t\t\t\tcodecId: CHARACTER_CODEC_ID,\n\t\t\t\ttypeParams: { length: 26 },\n\t\t\t\texecutionDefaults: { onCreate: {\n\t\t\t\t\tkind: \"generator\",\n\t\t\t\t\tid: \"ulid\"\n\t\t\t\t} },\n\t\t\t\tid: true\n\t\t\t}\n\t\t},\n\t\tnanoid: {\n\t\t\tkind: \"fieldPreset\",\n\t\t\targs: [nanoidOptionsArgument],\n\t\t\toutput: {\n\t\t\t\tcodecId: CHARACTER_CODEC_ID,\n\t\t\t\ttypeParams: { length: {\n\t\t\t\t\tkind: \"arg\",\n\t\t\t\t\tindex: 0,\n\t\t\t\t\tpath: [\"size\"],\n\t\t\t\t\tdefault: 21\n\t\t\t\t} },\n\t\t\t\texecutionDefaults: { onCreate: {\n\t\t\t\t\tkind: \"generator\",\n\t\t\t\t\tid: \"nanoid\",\n\t\t\t\t\tparams: { size: {\n\t\t\t\t\t\tkind: \"arg\",\n\t\t\t\t\t\tindex: 0,\n\t\t\t\t\t\tpath: [\"size\"]\n\t\t\t\t\t} }\n\t\t\t\t} },\n\t\t\t\tid: true\n\t\t\t}\n\t\t},\n\t\tcuid2: {\n\t\t\tkind: \"fieldPreset\",\n\t\t\toutput: {\n\t\t\t\tcodecId: CHARACTER_CODEC_ID,\n\t\t\t\ttypeParams: { length: 24 },\n\t\t\t\texecutionDefaults: { onCreate: {\n\t\t\t\t\tkind: \"generator\",\n\t\t\t\t\tid: \"cuid2\"\n\t\t\t\t} },\n\t\t\t\tid: true\n\t\t\t}\n\t\t},\n\t\tksuid: {\n\t\t\tkind: \"fieldPreset\",\n\t\t\toutput: {\n\t\t\t\tcodecId: CHARACTER_CODEC_ID,\n\t\t\t\ttypeParams: { length: 27 },\n\t\t\t\texecutionDefaults: { onCreate: {\n\t\t\t\t\tkind: \"generator\",\n\t\t\t\t\tid: \"ksuid\"\n\t\t\t\t} },\n\t\t\t\tid: true\n\t\t\t}\n\t\t}\n\t}\n};\n//#endregion\n//#region src/core/authoring-type-constructors.ts\nconst sqlFamilyAuthoringTypes = { sql: { String: {\n\tkind: \"typeConstructor\",\n\tdocumentation: \"Variable-length text with a required maximum character length.\",\n\targs: [{\n\t\tkind: \"number\",\n\t\tname: \"length\",\n\t\tinteger: true\n\t}],\n\toutput: {\n\t\tcodecId: \"sql/varchar@1\",\n\t\ttypeParams: { length: {\n\t\t\tkind: \"arg\",\n\t\t\tindex: 0\n\t\t} }\n\t}\n} } };\n//#endregion\nexport { sqlFamilyPslBlockDescriptors as i, sqlFamilyAuthoringFieldPresets as n, sqlFamilyEntityTypes as r, sqlFamilyAuthoringTypes as t };\n\n//# sourceMappingURL=authoring-type-constructors-0Iv2zdwS.mjs.map"],"mappings":";;;;;AAKA,SAAS,oBAAoB;CAC5B,OAAO,SAAS;EACf,OAAO;GACN,MAAM,UAAU;GAChB,eAAe;EAChB;EACA,WAAW;CACZ,CAAC;AACF;AACA,MAAM,uBAAuB,EAAE,MAAM;CACpC,MAAM;CACN,eAAe;CACf,QAAQ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AAQ,GAAG;IACzB,mBAAmB,EAAE,UAAU;KAC9B,MAAM;KACN,IAAI;IACL,EAAE;IACF,IAAI;GACL;EACD;EACA,MAAM;GACL,MAAM;GACN,QAAQ;IACP,SAAS;IACT,YAAY,EAAE,QAAQ,GAAG;IACzB,mBAAmB,EAAE,UAAU;KAC9B,MAAM;KACN,IAAI;IACL,EAAE;IACF,IAAI;GACL;EACD;EACA,QAAQ;GACP,MAAM;GACN,MAAM,CAAC,qBAAqB;GAC5B,QAAQ;IACP,SAAS;IACT,YAAY,EAAE,QAAQ;KACrB,MAAM;KACN,OAAO;KACP,MAAM,CAAC,MAAM;KACb,SAAS;IACV,EAAE;IACF,mBAAmB,EAAE,UAAU;KAC9B,MAAM;KACN,IAAI;KACJ,QAAQ,EAAE,MAAM;MACf,MAAM;MACN,OAAO;MACP,MAAM,CAAC,MAAM;KACd,EAAE;IACH,EAAE;IACF,IAAI;GACL;EACD;EACA,OAAO;GACN,MAAM;GACN,QAAQ;IACP,SAAS;IACT,YAAY,EAAE,QAAQ,GAAG;IACzB,mBAAmB,EAAE,UAAU;KAC9B,MAAM;KACN,IAAI;IACL,EAAE;IACF,IAAI;GACL;EACD;EACA,OAAO;GACN,MAAM;GACN,QAAQ;IACP,SAAS;IACT,YAAY,EAAE,QAAQ,GAAG;IACzB,mBAAmB,EAAE,UAAU;KAC9B,MAAM;KACN,IAAI;IACL,EAAE;IACF,IAAI;GACL;EACD;CACD;AACD;AAGA,MAAM,0BAA0B,EAAE,KAAK,EAAE,QAAQ;CAChD,MAAM;CACN,eAAe;CACf,MAAM,CAAC;EACN,MAAM;EACN,MAAM;EACN,SAAS;CACV,CAAC;CACD,QAAQ;EACP,SAAS;EACT,YAAY,EAAE,QAAQ;GACrB,MAAM;GACN,OAAO;EACR,EAAE;CACH;AACD,EAAE,EAAE"}
|
package/dist/builder.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { o as Expression, x as ScopeField } from "./expression-BzrfOiPC-
|
|
2
|
-
import { a as Subquery, r as Functions } from "./functions-
|
|
3
|
-
import { C as WhereFilter, S as UpdateQuery, d as QueryContext, g as SelectQuery, h as Scope, i as DeleteQuery, l as InsertQuery, m as ResolveRow, o as GatedMethod, r as Db, s as GroupedQuery, t as AggregateFunctions, y as TableProxy } from "./db-BmrN9nRS-
|
|
1
|
+
import { o as Expression, x as ScopeField } from "./expression-BzrfOiPC-CXjjRKqc.mjs";
|
|
2
|
+
import { a as Subquery, r as Functions } from "./functions-LyIMc_v9.mjs";
|
|
3
|
+
import { C as WhereFilter, S as UpdateQuery, d as QueryContext, g as SelectQuery, h as Scope, i as DeleteQuery, l as InsertQuery, m as ResolveRow, o as GatedMethod, r as Db, s as GroupedQuery, t as AggregateFunctions, y as TableProxy } from "./db-BmrN9nRS-BzK96yVh.mjs";
|
|
4
4
|
export type { AggregateFunctions, Db, DeleteQuery, Expression, Functions, GatedMethod, GroupedQuery, InsertQuery, QueryContext, ResolveRow, Scope, ScopeField, SelectQuery, Subquery, TableProxy, UpdateQuery, WhereFilter };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { l as SqlStorage } from "./sql-storage-tZhB8nS5-8NSWT0TW.mjs";
|
|
2
|
-
import "./types-
|
|
3
|
-
import { i as SqlOperationEntry } from "./index-
|
|
4
|
-
import { l as RawCodecInferer } from "./expression-BzrfOiPC-
|
|
5
|
-
import { t as ExpressionImpl } from "./expression-sOY1120I-
|
|
6
|
-
import "./expression-
|
|
7
|
-
import { s as createFunctions } from "./functions-
|
|
8
|
-
import { a as FieldProxy, b as TableProxyContract, d as QueryContext, f as RawLane, h as Scope, r as Db, t as AggregateFunctions } from "./db-BmrN9nRS-
|
|
9
|
-
import { a as SqlAggregateDescriptorRegistry, n as ExecutionContext } from "./query-lane-context-BLOPW1rQ-
|
|
10
|
-
import "./query-lane-context-
|
|
2
|
+
import "./types-B2Dee96w.mjs";
|
|
3
|
+
import { i as SqlOperationEntry } from "./index-BRFLss5v.mjs";
|
|
4
|
+
import { l as RawCodecInferer } from "./expression-BzrfOiPC-CXjjRKqc.mjs";
|
|
5
|
+
import { t as ExpressionImpl } from "./expression-sOY1120I-DMTeGMQP.mjs";
|
|
6
|
+
import "./expression-CIBqCwC1.mjs";
|
|
7
|
+
import { s as createFunctions } from "./functions-LyIMc_v9.mjs";
|
|
8
|
+
import { a as FieldProxy, b as TableProxyContract, d as QueryContext, f as RawLane, h as Scope, r as Db, t as AggregateFunctions } from "./db-BmrN9nRS-BzK96yVh.mjs";
|
|
9
|
+
import { a as SqlAggregateDescriptorRegistry, n as ExecutionContext } from "./query-lane-context-BLOPW1rQ-4vNq0fxJ.mjs";
|
|
10
|
+
import "./query-lane-context-BPJrXopg.mjs";
|
|
11
11
|
import { Contract } from "@prisma/orm-framework/contract/types";
|
|
12
12
|
//#region ../../../2-sql/4-lanes/sql-builder/dist/runtime/index.d.mts
|
|
13
13
|
//#region src/runtime/field-proxy.d.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { o as Expression, x as ScopeField } from "./expression-BzrfOiPC-
|
|
2
|
-
import { a as Subquery, r as Functions, t as BooleanCodecType } from "./functions-
|
|
3
|
-
import { t as IndexReference } from "./index-reference-DJaQLZA3-
|
|
4
|
-
import "./index-reference-
|
|
5
|
-
import { C as WhereFilter, S as UpdateQuery, _ as TableInAnyNamespace, b as TableProxyContract, c as IndexReferences, d as QueryContext, f as RawLane, g as SelectQuery, h as Scope, i as DeleteQuery, l as InsertQuery, m as ResolveRow, n as ContractRawTag, o as GatedMethod, p as RawTagFor, r as Db, s as GroupedQuery, t as AggregateFunctions, u as Namespace, v as TableNamesAcrossNamespaces, x as UnboundTables, y as TableProxy } from "./db-BmrN9nRS-
|
|
1
|
+
import { o as Expression, x as ScopeField } from "./expression-BzrfOiPC-CXjjRKqc.mjs";
|
|
2
|
+
import { a as Subquery, r as Functions, t as BooleanCodecType } from "./functions-LyIMc_v9.mjs";
|
|
3
|
+
import { t as IndexReference } from "./index-reference-DJaQLZA3-DS-GPKXs.mjs";
|
|
4
|
+
import "./index-reference-CsxaNof9.mjs";
|
|
5
|
+
import { C as WhereFilter, S as UpdateQuery, _ as TableInAnyNamespace, b as TableProxyContract, c as IndexReferences, d as QueryContext, f as RawLane, g as SelectQuery, h as Scope, i as DeleteQuery, l as InsertQuery, m as ResolveRow, n as ContractRawTag, o as GatedMethod, p as RawTagFor, r as Db, s as GroupedQuery, t as AggregateFunctions, u as Namespace, v as TableNamesAcrossNamespaces, x as UnboundTables, y as TableProxy } from "./db-BmrN9nRS-BzK96yVh.mjs";
|
|
6
6
|
export type { AggregateFunctions, BooleanCodecType, ContractRawTag, Db, DeleteQuery, Expression, Functions, GatedMethod, GroupedQuery, IndexReference, IndexReferences, InsertQuery, Namespace, QueryContext, RawLane, RawTagFor, ResolveRow, Scope, ScopeField, SelectQuery, Subquery, TableInAnyNamespace, TableNamesAcrossNamespaces, TableProxy, TableProxyContract, UnboundTables, UpdateQuery, WhereFilter };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as StorageTable } from "./storage-table-DC9afJhr-CmRU56OS.mjs";
|
|
2
|
-
import "./types-
|
|
3
|
-
import { t as IndexReference } from "./index-reference-DJaQLZA3-
|
|
2
|
+
import "./types-B2Dee96w.mjs";
|
|
3
|
+
import { t as IndexReference } from "./index-reference-DJaQLZA3-DS-GPKXs.mjs";
|
|
4
4
|
import { ContractField, ContractRelation } from "@prisma/orm-framework/contract/types";
|
|
5
5
|
//#region ../../../2-sql/4-lanes/relational-core/dist/collection-methods-B-tM7OPZ.d.mts
|
|
6
6
|
//#region src/collection-methods.d.ts
|
|
@@ -74,4 +74,4 @@ interface CollectionMethodContribution {
|
|
|
74
74
|
}
|
|
75
75
|
//#endregion
|
|
76
76
|
export { CollectionMethodModel as a, CollectionMethodRegistry as c, CollectionMethodContributionType as i, CollectionMethodTools as l, CollectionMethodContribution as n, CollectionMethodModelType as o, CollectionMethodContributionId as r, CollectionMethodReceiver as s, CollectionMethodBody as t, ContributedMethodSignature as u };
|
|
77
|
-
//# sourceMappingURL=collection-methods-B-tM7OPZ-
|
|
77
|
+
//# sourceMappingURL=collection-methods-B-tM7OPZ-DzXedZdV.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collection-methods-B-tM7OPZ-
|
|
1
|
+
{"version":3,"file":"collection-methods-B-tM7OPZ-DzXedZdV.d.mts","names":[],"sources":["../../../../2-sql/4-lanes/relational-core/dist/collection-methods-B-tM7OPZ.d.mts"],"mappings":";;;;;;;;;UAOU;WACC;WACA;WACA;WACA;WACA;aACE;aACA;;;;;;UAMH;WACC;WACA;WACA;;;;;UAKD;WACC,OAAO;WACP;cACG,eAAe;;;;;;UAMnB;;WAEC;;;KAGN,iCAAiC,cAAc;;UAE1C;WACC,KAAK,SAAS,mBAAmB;WACjC,SAAS,SAAS,eAAe;;;;;UAKlC;EACR,MAAM,YAAY,gBAAgB,OAAO,oCAAoC;EAC7E,QAAQ,QAAQ,gBAAgB,OAAO,oCAAoC;;;KAGxE,wBAAwB,YAAY,6BAA6B,kBAAkB;;UAE9E;WACC;WACA;WACA,QAAQ,SAAS,eAAe;WAChC,WAAW,SAAS,eAAe;WACnC,OAAO;;;;;UAKR;WACC;EACT,WAAW,OAAO,wBAAwB,SAAS,eAAe"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./collection-methods-B-tM7OPZ-DzXedZdV.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as buildSqlContractFromDefinition, r as contractError, t as applySqlSpecifierControlPolicy } from "./derived-checks-sRZp_gTF-
|
|
1
|
+
import { n as buildSqlContractFromDefinition, r as contractError, t as applySqlSpecifierControlPolicy } from "./derived-checks-sRZp_gTF-Dvk3wkm9.mjs";
|
|
2
2
|
import { ifDefined } from "@prisma/orm-framework/utils/defined";
|
|
3
3
|
import { createDataTypeLookup, emptyCodecLookup } from "@prisma/orm-framework/components/codec";
|
|
4
4
|
import { InternalError } from "@prisma/orm-framework/utils/internal-error";
|
|
@@ -65,4 +65,4 @@ function typescriptContractFromPath(contractPath, output, options) {
|
|
|
65
65
|
//#endregion
|
|
66
66
|
export { typescriptContract as n, typescriptContractFromPath as r, emptyContract as t };
|
|
67
67
|
|
|
68
|
-
//# sourceMappingURL=config-types-
|
|
68
|
+
//# sourceMappingURL=config-types-BFS-ivzi.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config-types-
|
|
1
|
+
{"version":3,"file":"config-types-BFS-ivzi.mjs","names":[],"sources":["../../../../2-sql/2-authoring/contract-ts/dist/config-types.mjs"],"sourcesContent":["import { n as buildSqlContractFromDefinition, o as contractError, t as applySqlSpecifierControlPolicy } from \"./derived-checks-sRZp_gTF.mjs\";\nimport { ifDefined } from \"@internal/utils/defined\";\nimport { createDataTypeLookup, emptyCodecLookup } from \"@internal/framework-components/codec\";\nimport { InternalError } from \"@internal/utils/internal-error\";\nimport { pathToFileURL } from \"node:url\";\nimport { ok } from \"@internal/utils/result\";\nimport { extname } from \"pathe\";\n//#region src/config-types.ts\n/**\n* Derives the emit output path from the TS contract input so artefacts land\n* colocated with the source (e.g. `prisma/contract.ts` →\n* `prisma/contract.json`). Mirrors the same default-derivation logic in\n* `@internal/sql-contract-psl/provider`.\n*/\nfunction defaultOutputFromContractPath(contractPath) {\n\tconst ext = extname(contractPath);\n\tif (ext.length === 0) return `${contractPath}.json`;\n\treturn `${contractPath.slice(0, -ext.length)}.json`;\n}\nfunction emptyContract(options) {\n\treturn {\n\t\tsource: {\n\t\t\tformat: \"typescript\",\n\t\t\tload: async () => {\n\t\t\t\treturn ok(applySqlSpecifierControlPolicy(buildSqlContractFromDefinition({\n\t\t\t\t\twarnings: void 0,\n\t\t\t\t\ttarget: options.target,\n\t\t\t\t\tcreateNamespace: options.createNamespace,\n\t\t\t\t\tmodels: []\n\t\t\t\t}, {\n\t\t\t\t\t...emptyCodecLookup,\n\t\t\t\t\tdescriptorFor: () => void 0\n\t\t\t\t}, createDataTypeLookup([])), options.defaultControlPolicy, options.createNamespace));\n\t\t\t}\n\t\t},\n\t\t...ifDefined(\"output\", options.output)\n\t};\n}\nfunction typescriptContract(contract, output, options) {\n\treturn {\n\t\tsource: {\n\t\t\tformat: \"typescript\",\n\t\t\tload: async () => ok(options === void 0 ? contract : applySqlSpecifierControlPolicy(contract, options.defaultControlPolicy, options.createNamespace))\n\t\t},\n\t\t...ifDefined(\"output\", output)\n\t};\n}\nfunction typescriptContractFromPath(contractPath, output, options) {\n\treturn {\n\t\tsource: {\n\t\t\tformat: \"typescript\",\n\t\t\tinputs: [contractPath],\n\t\t\tload: async (context) => {\n\t\t\t\tconst [absolutePath] = context.resolvedInputs;\n\t\t\t\tif (absolutePath === void 0) throw new InternalError(\"typescriptContractFromPath: context.resolvedInputs is empty. The CLI config loader should populate it from source.inputs.\");\n\t\t\t\tconst mod = await import(pathToFileURL(absolutePath).href);\n\t\t\t\tconst contract = mod.default ?? mod.contract;\n\t\t\t\tif (contract === void 0) throw contractError(\"CONTRACT.MODULE_EXPORT_MISSING\", `typescriptContractFromPath: module at \"${absolutePath}\" has no \"default\" or \"contract\" export.`, { meta: { path: absolutePath } });\n\t\t\t\treturn ok(options === void 0 ? contract : applySqlSpecifierControlPolicy(contract, options.defaultControlPolicy, options.createNamespace));\n\t\t\t}\n\t\t},\n\t\toutput: output ?? defaultOutputFromContractPath(contractPath)\n\t};\n}\n//#endregion\nexport { emptyContract, typescriptContract, typescriptContractFromPath };\n\n//# sourceMappingURL=config-types.mjs.map"],"mappings":";;;;;;;;;;;;;;AAcA,SAAS,8BAA8B,cAAc;CACpD,MAAM,MAAM,QAAQ,YAAY;CAChC,IAAI,IAAI,WAAW,GAAG,OAAO,GAAG,aAAa;CAC7C,OAAO,GAAG,aAAa,MAAM,GAAG,CAAC,IAAI,MAAM,EAAE;AAC9C;AACA,SAAS,cAAc,SAAS;CAC/B,OAAO;EACN,QAAQ;GACP,QAAQ;GACR,MAAM,YAAY;IAC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NamespaceFactory } from "./derived-checks-DpPkO6Dt-
|
|
2
|
+
import "./types-B2Dee96w.mjs";
|
|
3
|
+
import { t as SqlNamespaceFactory } from "./derived-checks-DpPkO6Dt-D-vp9vY3.mjs";
|
|
4
4
|
import { Contract, ControlPolicy } from "@prisma/orm-framework/contract/types";
|
|
5
5
|
import { TargetPackRef } from "@prisma/orm-framework/components/components";
|
|
6
6
|
import { ContractConfig, ContractConfig as ContractConfig$1 } from "@prisma/orm-framework/config/config-types";
|
|
@@ -25,4 +25,4 @@ declare function typescriptContract(contract: Contract, output?: string, options
|
|
|
25
25
|
declare function typescriptContractFromPath(contractPath: string, output?: string, options?: TypeScriptContractSpecifierOptions): ContractConfig;
|
|
26
26
|
//#endregion
|
|
27
27
|
export { typescriptContractFromPath as i, emptyContract as n, typescriptContract as r, ContractConfig$1 as t };
|
|
28
|
-
//# sourceMappingURL=config-types-
|
|
28
|
+
//# sourceMappingURL=config-types-DN0IueHY.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config-types-
|
|
1
|
+
{"version":3,"file":"config-types-DN0IueHY.d.mts","names":[],"sources":["../../../../2-sql/2-authoring/contract-ts/dist/config-types.d.mts"],"mappings":";;;;;;;;;;;;;UAWU;WACC,sBAAsB;WACtB,iBAAiB;;iBAEX,cAAc;WACpB;WACA,QAAQ;WACR,kBAAkB,OAAO,sBAAsB;WAC/C,uBAAuB;IAC9B;iBACa,mBAAmB,UAAU,UAAU,iBAAiB,UAAU,qCAAqC;iBACvG,2BAA2B,sBAAsB,iBAAiB,UAAU,qCAAqC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as providesEntityHandleLowering } from "./entity-handle-lowering-hook-B3atrRKX.mjs";
|
|
2
2
|
import { a as isSqlExpression, c as requireSqlExpression, r as SqlExpression, s as readSqlExpression } from "./sql-expression-BJCuy-WI.mjs";
|
|
3
3
|
import { t as CODEC_INSTANCE_KIND } from "./types-M_FeBD9w.mjs";
|
|
4
|
-
import { n as checkSqlDefaultText, o as reservedSqlDefaultText } from "./validators-
|
|
5
|
-
import { n as buildSqlContractFromDefinition, o as toOneNullabilityContradictionMessage, r as contractError } from "./derived-checks-sRZp_gTF-
|
|
4
|
+
import { n as checkSqlDefaultText, o as reservedSqlDefaultText } from "./validators-Uim8vh59.mjs";
|
|
5
|
+
import { n as buildSqlContractFromDefinition, o as toOneNullabilityContradictionMessage, r as contractError } from "./derived-checks-sRZp_gTF-Dvk3wkm9.mjs";
|
|
6
6
|
import { isStructuredError } from "@prisma/orm-framework/utils/structured-error";
|
|
7
7
|
import { ifDefined } from "@prisma/orm-framework/utils/defined";
|
|
8
8
|
import { assertNoCrossRegistryCollisions, instantiateAuthoringFieldPreset, instantiateAuthoringTypeConstructor, isAuthoringEntityTypeDescriptor, isAuthoringTypeConstructorDescriptor, validateAuthoringHelperArguments, validateAuthoringTypeParams } from "@prisma/orm-framework/components/authoring";
|
|
@@ -1709,4 +1709,4 @@ function autoincrement() {
|
|
|
1709
1709
|
//#endregion
|
|
1710
1710
|
export { check as a, enumType as c, member as d, model as f, buildContractDefinition as i, extensionModel as l, rel as m, bindEnumType as n, createComposedAuthoringHelpers as o, now as p, buildBoundContract as r, defineContract as s, autoincrement as t, field as u };
|
|
1711
1711
|
|
|
1712
|
-
//# sourceMappingURL=contract-builder-
|
|
1712
|
+
//# sourceMappingURL=contract-builder-CKO_xspE.mjs.map
|