@prisma/orm-family-mongo 8.0.0-rc.20-dev.13 → 8.0.0-rc.20-dev.15

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.
Files changed (40) hide show
  1. package/dist/{contract-builder-lqaM5w74.d.mts → contract-builder-DJBw3PtL.d.mts} +7 -43
  2. package/dist/contract-builder-DJBw3PtL.d.mts.map +1 -0
  3. package/dist/{contract-builder-d5cf-u9p.mjs → contract-builder-kcgHgrCG.mjs} +33 -77
  4. package/dist/contract-builder-kcgHgrCG.mjs.map +1 -0
  5. package/dist/contract-prisma6__provider.mjs +3 -3
  6. package/dist/contract-psl.d.mts +3 -4
  7. package/dist/contract-psl.d.mts.map +1 -1
  8. package/dist/contract-psl.mjs +2 -2
  9. package/dist/contract-psl__provider.mjs +2 -7
  10. package/dist/contract-psl__provider.mjs.map +1 -1
  11. package/dist/contract-ts.d.mts +2 -2
  12. package/dist/contract-ts.mjs +1 -1
  13. package/dist/contract-ts__contract-builder.d.mts +2 -2
  14. package/dist/contract-ts__contract-builder.mjs +1 -1
  15. package/dist/{control-DI9S95nl.mjs → control-DLnsROSA.mjs} +3 -3
  16. package/dist/{control-DI9S95nl.mjs.map → control-DLnsROSA.mjs.map} +1 -1
  17. package/dist/{dist-xk_0xOR-.mjs → dist-CjOZcYWO.mjs} +12 -3
  18. package/dist/dist-CjOZcYWO.mjs.map +1 -0
  19. package/dist/family.d.mts +1 -1
  20. package/dist/family.mjs +2 -2
  21. package/dist/family__control.mjs +1 -1
  22. package/dist/family__pack.mjs +1 -1
  23. package/dist/family__runtime.d.mts +1 -1
  24. package/dist/family__runtime.mjs +1 -1
  25. package/dist/{interpreter-DFYQNoyO--j8HG0mg.mjs → interpreter-B2AtwLfF-BpEac0HU.mjs} +32 -185
  26. package/dist/interpreter-B2AtwLfF-BpEac0HU.mjs.map +1 -0
  27. package/dist/orm.d.mts +1 -1
  28. package/dist/orm.mjs +1 -1
  29. package/dist/orm.mjs.map +1 -1
  30. package/dist/{runtime-B1uT8PuG.d.mts → runtime-B-2cvBbT.d.mts} +2 -2
  31. package/dist/runtime-B-2cvBbT.d.mts.map +1 -0
  32. package/dist/{runtime-B5fNQHQZ.mjs → runtime-B1XLwja3.mjs} +2 -2
  33. package/dist/runtime-B1XLwja3.mjs.map +1 -0
  34. package/package.json +20 -20
  35. package/dist/contract-builder-d5cf-u9p.mjs.map +0 -1
  36. package/dist/contract-builder-lqaM5w74.d.mts.map +0 -1
  37. package/dist/dist-xk_0xOR-.mjs.map +0 -1
  38. package/dist/interpreter-DFYQNoyO--j8HG0mg.mjs.map +0 -1
  39. package/dist/runtime-B1uT8PuG.d.mts.map +0 -1
  40. package/dist/runtime-B5fNQHQZ.mjs.map +0 -1
@@ -5,8 +5,8 @@ import { CodecLookupWithDescriptors, DataTypeParamsProblem } from "@prisma/orm-f
5
5
  import { UNBOUND_NAMESPACE_ID } from "@prisma/orm-framework/components/ir";
6
6
  import { ContractExecutionSection, ContractField, ContractFieldType, ControlPolicy, CrossReference, EnumMemberValueType, ExecutionHashBase, ExecutionMutationDefault, ExecutionMutationDefaultPhases, ExecutionMutationDefaultValue, FieldTypesFromDomain, JsonValue, ProfileHashBase, StorageHashBase } from "@prisma/orm-framework/contract/types";
7
7
  import { Result } from "@prisma/orm-framework/utils/result";
8
- import { BoundEnumType, CodecTypeMap, EntityHelpersFromNamespace, EnumMember, EnumTypeHandle, ExtractAuthoringNamespaceFromPack, ExtractParameterizedOutputTypesFromPack, MergeExtensionAuthoringNamespaces, ResolveTemplateValue, TupleFromArgumentDescriptors, bindEnumType, enumType as enumType$1, isEnumTypeHandle, member } from "@prisma/orm-framework/contract-authoring";
9
- import { AuthoringArgumentDescriptor, AuthoringFieldPresetDescriptor, AuthoringWarning, DataTypeSupport, DiscriminatorFieldRefusal, DiscriminatorVariantRefusal, EnumMemberProblem, WrittenValue } from "@prisma/orm-framework/components/authoring";
8
+ import { BoundEnumType, CodecTypeMap, EntityHelpersFromNamespace, EnumMember, EnumTypeHandle, ExtractAuthoringNamespaceFromPack, ExtractParameterizedOutputTypesFromPack, MergeExtensionAuthoringNamespaces, bindEnumType, enumType as enumType$1, isEnumTypeHandle, member } from "@prisma/orm-framework/contract-authoring";
9
+ import { AuthoringWarning, DataTypeSupport, DiscriminatorFieldRefusal, DiscriminatorVariantRefusal, EnumMemberProblem, WrittenValue } from "@prisma/orm-framework/components/authoring";
10
10
  import { ExtensionPackRef, ExtensionPackValues, FamilyPackRef, GeneratorFunctionCall, GeneratorHelpersOf, GeneratorPhase, TargetPackRef } from "@prisma/orm-framework/components/components";
11
11
  //#region ../../../2-mongo-family/2-authoring/contract-ts/dist/contract-builder.d.mts
12
12
  //#region src/build-refusals.d.ts
@@ -269,11 +269,6 @@ type BuildRefusal = {
269
269
  };
270
270
  /** Something the builder accepts but the author probably did not mean, or a warning the source collected. */
271
271
  type BuildWarning = {
272
- readonly kind: 'presetWithoutEffect';
273
- readonly key: FieldKey;
274
- readonly preset: string;
275
- readonly codecId: string;
276
- } | {
277
272
  readonly kind: 'source';
278
273
  readonly warning: AuthoringWarning;
279
274
  };
@@ -284,12 +279,6 @@ interface GeneratorCallsNode {
284
279
  readonly onCreate?: GeneratorFunctionCall;
285
280
  readonly onUpdate?: GeneratorFunctionCall;
286
281
  }
287
- /** What a field preset contributed to a field. */
288
- interface PresetContributionNode {
289
- /** The preset's helper path, as in `temporal.createdAt`. */
290
- readonly preset: string;
291
- readonly executionDefaults: ExecutionMutationDefaultPhases | undefined;
292
- }
293
282
  interface FieldNode {
294
283
  readonly fieldName: string;
295
284
  /** The name documents store the field under, when the source gives one other than the field's own. */
@@ -299,13 +288,11 @@ interface FieldNode {
299
288
  readonly many: NonNullable<ContractField['many']>;
300
289
  /** The name of the enum that types the field. */
301
290
  readonly enumName?: string;
302
- /** Defaults the field generates, already resolved from presets and type aliases. */
291
+ /** Defaults the field generates, already resolved from type aliases. */
303
292
  readonly executionDefaults?: ExecutionMutationDefaultPhases;
304
293
  readonly generatorCalls?: GeneratorCallsNode;
305
294
  /** Generators the field's own attributes set, which the source has already resolved for the field's codec. */
306
295
  readonly generatedValues?: ExecutionMutationDefaultPhases;
307
- /** Present when a field preset made the field. */
308
- readonly presetContribution?: PresetContributionNode;
309
296
  }
310
297
  /** An index as the source wrote it. */
311
298
  interface IndexNode {
@@ -419,8 +406,6 @@ interface FieldBuilder<Type extends ContractFieldType = ContractFieldType, Nulla
419
406
  readonly __storedName: StoredName;
420
407
  /** The generator function calls `.onCreate(...)` and `.onUpdate(...)` give, resolved by the field's codec when the contract is built. */
421
408
  readonly __generatorCalls?: FieldGeneratorCalls;
422
- /** What the field preset that made the field contributed. */
423
- readonly __presetContribution?: PresetContributionNode;
424
409
  /** Generates the field's value in the client when a document is created without one, with a call from `gen`, such as `gen.now()`. */
425
410
  onCreate(call: GeneratorFunctionCall): FieldBuilder<Type, Nullable, Many, Handle, WithGeneratedPhase<ExecutionDefaults, 'onCreate'>, StoredName>;
426
411
  /** Generates the field's value in the client every time a document is updated, with a call from `gen`, such as `gen.now()`. */
@@ -452,7 +437,7 @@ type FieldGeneratorCalls = {
452
437
  };
453
438
  type WithGeneratedPhase<ExecutionDefaults extends ExecutionMutationDefaultPhases | undefined, Phase extends GeneratorPhase> = (ExecutionDefaults extends undefined ? unknown : ExecutionDefaults) & { readonly [Key in Phase]: ExecutionMutationDefaultValue; };
454
439
  /**
455
- * Whether a preset such as `temporal.createdAt()` fills the field on write. Distributes over a union, so the widest `FieldBuilder` constraint keeps both signatures and every field builder satisfies it.
440
+ * Whether a generator call such as `.onCreate(gen.now())` fills the field on write. Distributes over a union, so the widest `FieldBuilder` constraint keeps both signatures and every field builder satisfies it.
456
441
  */
457
442
  type FilledOnWrite<ExecutionDefaults> = ExecutionDefaults extends undefined ? false : [keyof ExecutionDefaults] extends [never] ? false : true;
458
443
  interface ValueObjectBuilder<Name extends string = string, Fields extends Record<string, AnyFieldBuilder> = Record<string, AnyFieldBuilder>> {
@@ -798,29 +783,8 @@ type FieldTypesFromDefinition<Definition, Side extends 'output' | 'input'> = Fie
798
783
  type MongoContractResult<Definition> = MongoContractWithTypeMaps<MongoContractBaseFromDefinition<Definition>, MongoTypeMaps<CodecTypesFromDefinition<Definition>, FieldTypesFromDefinition<Definition, 'output'>, FieldTypesFromDefinition<Definition, 'input'>>>;
799
784
  type ExtractEntitiesNamespaceFromPack<Pack> = ExtractAuthoringNamespaceFromPack<Pack, 'entityTypes', Record<never, never>>;
800
785
  type MergeExtensionEntityNamespaces<Extensions> = MergeExtensionAuthoringNamespaces<Extensions, 'entityTypes'>;
801
- type ExtractFieldNamespaceFromPack<Pack> = ExtractAuthoringNamespaceFromPack<Pack, 'field', Record<never, never>>;
802
- type MergeExtensionFieldNamespaces<Extensions> = MergeExtensionAuthoringNamespaces<Extensions, 'field'>;
803
- type FieldBuilderFromPresetDescriptor<Descriptor extends AuthoringFieldPresetDescriptor, Args extends readonly unknown[]> = FieldBuilder<{
804
- readonly kind: 'scalar';
805
- readonly codecId: ResolveTemplateValue<Descriptor['output']['codecId'], Args> extends string ? ResolveTemplateValue<Descriptor['output']['codecId'], Args> : string;
806
- }, ResolveTemplateValue<Descriptor['output']['nullable'], Args> extends true ? true : false, false, EnumTypeHandle | undefined, PresetExecutionDefaults<Descriptor, Args>>;
807
- /**
808
- * A phase template is either a generator value or a `select` over one option argument, which yields no phase when the argument is absent or names no case. An argument typed "the option or undefined", such as a variable of type `'now' | undefined`, gives "the phase or undefined"; such a phase becomes an optional key.
809
- */
810
- type ResolvePhaseTemplate<Template, Args extends readonly unknown[]> = Template extends {
811
- readonly kind: 'select';
812
- readonly index: infer Index extends number;
813
- readonly cases: infer Cases;
814
- } ? Args[Index] extends (infer Arg) ? Arg extends keyof Cases ? Cases[Arg] : undefined : never : Template;
815
- type PresetExecutionDefaults<Descriptor extends AuthoringFieldPresetDescriptor, Args extends readonly unknown[]> = Descriptor['output'] extends {
816
- readonly executionDefaults: infer Phases;
817
- } ? Flatten<{ readonly [Phase in keyof Phases as undefined extends ResolvePhaseTemplate<Phases[Phase], Args> ? never : Phase]: ResolvePhaseTemplate<Phases[Phase], Args>; } & { readonly [Phase in keyof Phases as ResolvePhaseTemplate<Phases[Phase], Args> extends undefined ? never : undefined extends ResolvePhaseTemplate<Phases[Phase], Args> ? Phase : never]?: Exclude<ResolvePhaseTemplate<Phases[Phase], Args>, undefined>; }> : undefined;
818
- type FieldPresetHelper<Descriptor extends AuthoringFieldPresetDescriptor> = Descriptor extends {
819
- readonly args: infer Args extends readonly AuthoringArgumentDescriptor[];
820
- } ? <const Params extends TupleFromArgumentDescriptors<Args>>(...args: Params) => FieldBuilderFromPresetDescriptor<Descriptor, Params> : () => FieldBuilderFromPresetDescriptor<Descriptor, readonly []>;
821
- type FieldPresetHelpersFromNamespace<Namespace> = { readonly [K in keyof Namespace]: Namespace[K] extends AuthoringFieldPresetDescriptor ? FieldPresetHelper<Namespace[K]> : Namespace[K] extends Record<string, unknown> ? FieldPresetHelpersFromNamespace<Namespace[K]> : never; };
822
786
  type ContractAuthoringHelpers<Family extends FamilyPackRef<string> = FamilyPackRef<string>, Target extends TargetPackRef<string, string> = TargetPackRef<string, string>, Extensions extends Record<string, ExtensionPackRef<string, string>> | undefined = undefined> = EntityHelpersFromNamespace<ExtractEntitiesNamespaceFromPack<Family> & ExtractEntitiesNamespaceFromPack<Target> & MergeExtensionEntityNamespaces<Extensions>> & {
823
- readonly field: typeof field & FieldPresetHelpersFromNamespace<ExtractFieldNamespaceFromPack<Family> & ExtractFieldNamespaceFromPack<Target> & MergeExtensionFieldNamespaces<Extensions>>;
787
+ readonly field: typeof field;
824
788
  readonly index: typeof index;
825
789
  readonly model: typeof model;
826
790
  readonly rel: typeof rel;
@@ -1018,5 +982,5 @@ declare function defineContract<const Definition extends ContractScaffold<Family
1018
982
  readonly roots?: Record<string, ModelNameInput> | undefined;
1019
983
  }>(definition: Definition, factory: (helpers: ContractAuthoringHelpers<Definition['family'], Definition['target'], ScaffoldExtensions<Definition>>) => Built): MongoContractResult<Definition & Built>;
1020
984
  //#endregion
1021
- export { RelationNode as A, field as B, ModelBuilder as C, ReferenceRelationNode as D, PresetContributionNode as E, bindEnumType as F, rel as G, isEnumTypeHandle as H, buildBoundContract as I, valueObject as K, buildMongoContractFromDefinition as L, ValueObjectBuilder as M, ValueObjectNode as N, RefusalKey as O, VariantBaseNode as P, defineContract as R, IndexShapeRule as S, MongoContractResult as T, member as U, index as V, model as W, FieldBuilder as _, BuiltContract as a, FieldReference as b, ContractDefinition as c, ContractScaffold as d, DiscriminatorNode as f, ExtractCodecTypesFromPack as g, EnumTypeHandle as h, BuildWarning as i, RestatedFieldDifference as j, RelationBuilder as k, ContractFactory as l, EnumMember as m, BuildFailure as n, CodecTypeMap as o, EmbedRelationNode as p, BuildRefusal as r, ContractAuthoringHelpers as s, BoundEnumType as t, ContractInput as u, FieldKey as v, ModelNode as w, IndexNode as x, FieldNode as y, enumType$1 as z };
1022
- //# sourceMappingURL=contract-builder-lqaM5w74.d.mts.map
985
+ export { RestatedFieldDifference as A, index as B, ModelBuilder as C, RefusalKey as D, ReferenceRelationNode as E, buildBoundContract as F, valueObject as G, member as H, buildMongoContractFromDefinition as I, defineContract as L, ValueObjectNode as M, VariantBaseNode as N, RelationBuilder as O, bindEnumType as P, enumType$1 as R, IndexShapeRule as S, MongoContractResult as T, model as U, isEnumTypeHandle as V, rel as W, FieldBuilder as _, BuiltContract as a, FieldReference as b, ContractDefinition as c, ContractScaffold as d, DiscriminatorNode as f, ExtractCodecTypesFromPack as g, EnumTypeHandle as h, BuildWarning as i, ValueObjectBuilder as j, RelationNode as k, ContractFactory as l, EnumMember as m, BuildFailure as n, CodecTypeMap as o, EmbedRelationNode as p, BuildRefusal as r, ContractAuthoringHelpers as s, BoundEnumType as t, ContractInput as u, FieldKey as v, ModelNode as w, IndexNode as x, FieldNode as y, field as z };
986
+ //# sourceMappingURL=contract-builder-DJBw3PtL.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contract-builder-DJBw3PtL.d.mts","names":[],"sources":["../../../../2-mongo-family/2-authoring/contract-ts/dist/contract-builder.d.mts"],"mappings":";;;;;;;;;;;;;KAWK;WACM;WACA;;WAEA;WACA;;WAEA;WACA,OAAO;WACP;;WAEA;WACA;;WAEA;WACA;WACA;;;;WAIA;WACA;WACA;;WAEA;WACA;WACA;;;;WAIA;WACA;;;;WAIA;WACA;;;;WAIA;WACA;;KAEN,aAAa,QAAQ;WACf;;KAEN,iBAAiB,QAAQ;WACnB;;KAEN,WAAW,QAAQ;WACb;;KAEN,UAAU,QAAQ;WACZ;;KAEN,WAAW,QAAQ;WACb;;KAEN,cAAc,QAAQ;WAChB;;KAEN,mBAAmB,QAAQ;WACrB;;KAEN,UAAU,QAAQ;WACZ;;KAEN,wBAAwB,QAAQ;WAC1B;;;KAGN;KACA;KACA;;KAEA;WACM;WACA,KAAK;;WAEL;WACA,KAAK;;WAEL;WACA,KAAK;WACL;;WAEA;WACA,KAAK;WACL;WACA;;WAEA;WACA,KAAK;WACL;WACA;WACA;;WAEA;WACA,KAAK;WACL;WACA,sBAAsB;;WAEtB;WACA,KAAK;;WAEL;WACA,KAAK;WACL;;WAEA;WACA,KAAK;WACL;WACA;;WAEA;WACA,KAAK;WACL,SAAS;;WAET;WACA,KAAK;WACL,SAAS,QAAQ;WACjB;;WAEA;WACA,KAAK;WACL;WACA;WACA;;WAEA;WACA,KAAK;WACL;WACA;;WAEA;WACA,KAAK;WACL,MAAM;WACN;;WAEA;WACA,KAAK;WACL;WACA;;WAEA;WACA,KAAK;WACL;WACA;WACA;;WAEA;WACA,KAAK;;WAEL;WACA,KAAK;WACL,OAAO;WACP;WACA;;WAEA;WACA,KAAK;WACL,OAAO;WACP;WACA;;WAEA;;WAEA;WACA,KAAK;WACL,OAAO;;WAEP;WACA,KAAK;;WAEL;WACA,KAAK;WACL;WACA;;WAEA;WACA,KAAK;;WAEL;WACA,KAAK;WACL;WACA;WACA;;WAEA;WACA,KAAK;WACL,S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BAAmB,qBAAqB,eAAe,kBAAkB,eAAe,wBAAwB,eAAe,+CAA+C,eAAe,oCAAoC;WACtV,SAAS,eAAe;WACxB,eAAe,eAAe;WAC9B,QAAQ,eAAe;GAC/B,QAAQ,GAAG,QAAQ,GAAG,YAAY,YAAY,UAAU,SAAS,yBAAyB,GAAG,GAAG,YAAY,+BAA+B,QAAQ,oBAAoB,iBAAiB,aAAa,OAAO,GAAG;iBACjM,qBAAqB,mBAAmB,cAAc,uBAAuB,+BAA+B,eAAe,kBAAkB,eAAe,wBAAwB,eAAe,+CAA+C,eAAe,8BAA8B,YAAY,aAAa,oBAAoB;iBAC5U,qBAAqB,mBAAmB,iBAAiB,uBAAuB,+BAA+B,eAAe,+CAA+C,eAAe,oCAAoC;WACtO,SAAS,eAAe;WACxB,eAAe,eAAe;WAC9B,QAAQ,eAAe;GAC/B,YAAY,YAAY,UAAU,SAAS,yBAAyB,sBAAsB,sBAAsB,mBAAmB,iBAAiB,QAAQ,oBAAoB,aAAa"}
@@ -8,8 +8,8 @@ import { crossRef } from "@prisma/orm-framework/contract/types";
8
8
  import { buildExecutionSection, computeProfileHash } from "@prisma/orm-framework/contract/hashing";
9
9
  import { assertDefined } from "@prisma/orm-framework/utils/assertions";
10
10
  import { notOk, ok } from "@prisma/orm-framework/utils/result";
11
- import { bindEnumType, composePackAuthoringNamespace, createEntityHelpersFromNamespace, createFieldHelpersFromNamespace, enumMemberError, enumType as enumType$1, isEnumTypeHandle, member, resolveToOneRelationNullable } from "@prisma/orm-framework/contract-authoring";
12
- import { applyDiscriminatorRule, assembleDataTypeSupport, assertNoCrossRegistryCollisions, assertTypeAliasesValid, encodeEnumMembers, flushAuthoringWarnings, instantiateAuthoringFieldPreset, validateAuthoringHelperArguments } from "@prisma/orm-framework/components/authoring";
11
+ import { answerMissingPropertyReads, bindEnumType, composePackAuthoringNamespace, createEntityHelpersFromNamespace, enumMemberError, enumType as enumType$1, isEnumTypeHandle, member, resolveToOneRelationNullable } from "@prisma/orm-framework/contract-authoring";
12
+ import { applyDiscriminatorRule, assembleDataTypeSupport, assertNoCrossRegistryCollisions, assertTypeAliasesValid, encodeEnumMembers, flushAuthoringWarnings } from "@prisma/orm-framework/components/authoring";
13
13
  import { assembleGeneratorFunctions, createGeneratorHelpers } from "@prisma/orm-framework/components/components";
14
14
  import { ifDefined } from "@prisma/orm-framework/utils/defined";
15
15
  import { canonicalStringify } from "@prisma/orm-framework/utils/canonical-stringify";
@@ -682,12 +682,6 @@ function buildExecutionDefaults(input) {
682
682
  }
683
683
  return defaults;
684
684
  }
685
- function generatesNothing(field) {
686
- const contributed = field.presetContribution?.executionDefaults;
687
- const calls = field.generatorCalls;
688
- const values = field.generatedValues;
689
- return values?.onCreate === void 0 && values?.onUpdate === void 0 && contributed?.onCreate === void 0 && contributed?.onUpdate === void 0 && calls?.onCreate === void 0 && calls?.onUpdate === void 0;
690
- }
691
685
  function checkField(field, key, input) {
692
686
  const { type } = field;
693
687
  if (field.enumName !== void 0 && !input.declaredEnums.has(field.enumName)) input.refusals.push({
@@ -703,15 +697,9 @@ function checkField(field, key, input) {
703
697
  problem
704
698
  });
705
699
  }
706
- if (field.presetContribution !== void 0 && type.kind === "scalar" && generatesNothing(field)) input.warnings.push({
707
- kind: "presetWithoutEffect",
708
- key,
709
- preset: field.presetContribution.preset,
710
- codecId: type.codecId
711
- });
712
700
  }
713
701
  /**
714
- * Checks each field of the models and value objects on its own: its enum is declared, its data type accepts its type parameters, and a preset that made it generates a value.
702
+ * Checks each field of the models and value objects on its own: its enum is declared, and its data type accepts its type parameters.
715
703
  */
716
704
  function checkFields(input) {
717
705
  for (const model of input.models) for (const field of model.fields) checkField(field, modelFieldKey(model.modelName, field.fieldName), input);
@@ -1052,8 +1040,7 @@ function fieldNodes(fields) {
1052
1040
  many: builder.__many,
1053
1041
  ...ifDefined("enumName", builder.__enumHandle?.enumName),
1054
1042
  ...ifDefined("executionDefaults", builder.__executionDefaults),
1055
- ...ifDefined("generatorCalls", builder.__generatorCalls),
1056
- ...ifDefined("presetContribution", builder.__presetContribution)
1043
+ ...ifDefined("generatorCalls", builder.__generatorCalls)
1057
1044
  }));
1058
1045
  }
1059
1046
  function relationNodes(builder) {
@@ -1358,7 +1345,7 @@ function refusalError(refusal) {
1358
1345
  reason: "generator-not-applicable"
1359
1346
  } });
1360
1347
  }
1361
- case "generatorPhaseSetTwice": return contractError("CONTRACT.DEFAULT_INVALID", `.${refusal.phase}() is called on a field that already generates a value ${refusal.phase === "onCreate" ? "on create" : "on update"}. Set each phase once, and do not combine .${refusal.phase}() with a field preset, type alias or alias constant that sets it.`, { meta: {
1348
+ case "generatorPhaseSetTwice": return contractError("CONTRACT.DEFAULT_INVALID", `.${refusal.phase}() is called on a field that already generates a value ${refusal.phase === "onCreate" ? "on create" : "on update"}. Set each phase once, and do not combine .${refusal.phase}() with a type alias or alias constant that sets it.`, { meta: {
1362
1349
  modelName: refusal.key.owner.name,
1363
1350
  fieldName: refusal.key.field,
1364
1351
  reason: "generator-phase-set-twice",
@@ -1447,14 +1434,7 @@ function refusalError(refusal) {
1447
1434
  }
1448
1435
  /** A builder warning as `defineContract` reports it. */
1449
1436
  function authoringWarningOf(warning) {
1450
- if (warning.kind === "source") return warning.warning;
1451
- const item = `field "${warning.key.owner.name}.${warning.key.field}"`;
1452
- return {
1453
- code: "PN_PRESET_WITHOUT_EFFECT",
1454
- message: `Field "${warning.key.owner.name}.${warning.key.field}" uses ${warning.preset}(), which generates no value, so the field is stored like any field of codec "${warning.codecId}".`,
1455
- item,
1456
- summary: "fields use a preset that generates no value"
1457
- };
1437
+ return warning.warning;
1458
1438
  }
1459
1439
  function differenceWording(difference) {
1460
1440
  switch (difference) {
@@ -1464,6 +1444,22 @@ function differenceWording(difference) {
1464
1444
  case "many": return "list shape";
1465
1445
  }
1466
1446
  }
1447
+ const GUIDE = "The upgrade guide \"Field presets are removed\" lists every rewrite.";
1448
+ const TEMPORAL_REWRITES = {
1449
+ createdAt: "field.date().onCreate(gen.now())",
1450
+ updatedAt: "field.date().onCreate(gen.now()).onUpdate(gen.now())",
1451
+ timestamp: "field.date(), with .onCreate(gen.now()) and .onUpdate(gen.now()) for the phases the preset set"
1452
+ };
1453
+ function refuse(preset) {
1454
+ const helper = `field.temporal.${preset}`;
1455
+ throw contractError("CONTRACT.FIELD_HELPER_UNKNOWN", `${helper} was a field preset, and Prisma 8 removed field presets. Write ${TEMPORAL_REWRITES[preset]}. ${GUIDE}`, { meta: { helper } });
1456
+ }
1457
+ /**
1458
+ * The MongoDB `field` helpers, where `field.temporal`, which held the removed field presets, gives an object whose read of a preset throws `CONTRACT.FIELD_HELPER_UNKNOWN` with its rewrite, so a JavaScript caller, or a contract emitted before it is type-checked, learns what to write instead. Every other read behaves as on `helpers`.
1459
+ */
1460
+ function refusingRemovedFieldPresets(helpers) {
1461
+ return answerMissingPropertyReads(helpers, /* @__PURE__ */ new Set(["temporal"]), () => answerMissingPropertyReads({}, new Set(Object.keys(TEMPORAL_REWRITES)), refuse));
1462
+ }
1467
1463
  const MONGO_RESERVED_HELPER_KEYS = [
1468
1464
  "field",
1469
1465
  "gen",
@@ -1472,44 +1468,6 @@ const MONGO_RESERVED_HELPER_KEYS = [
1472
1468
  "rel",
1473
1469
  "valueObject"
1474
1470
  ];
1475
- function buildFieldPreset(helperPath, descriptor, args) {
1476
- validateAuthoringHelperArguments(helperPath, descriptor.args, args);
1477
- const preset = instantiateAuthoringFieldPreset(descriptor, args);
1478
- const unsupported = [
1479
- ...preset.default !== void 0 ? ["default"] : [],
1480
- ...preset.id ? ["id"] : [],
1481
- ...preset.unique ? ["unique"] : []
1482
- ];
1483
- if (unsupported.length > 0) throw contractError("CONTRACT.PACK_CONTRIBUTION_INVALID", `Field preset "${helperPath}" contributes ${unsupported.join(", ")}, which Mongo does not support. Mongo supports presets that set a codec and execution defaults only.`, { meta: {
1484
- helperPath,
1485
- reason: "preset-contribution-unsupported",
1486
- contribution: unsupported
1487
- } });
1488
- return createFieldBuilder({
1489
- type: {
1490
- kind: "scalar",
1491
- codecId: preset.descriptor.codecId,
1492
- ...normalizeOptionalTypeParams(preset.descriptor.typeParams)
1493
- },
1494
- nullable: preset.nullable,
1495
- many: false
1496
- }, void 0, preset.executionDefaults, void 0, void 0, {
1497
- preset: helperPath,
1498
- executionDefaults: preset.executionDefaults
1499
- });
1500
- }
1501
- function composeMongoFieldHelpers(fieldNamespace) {
1502
- const presetHelpers = createFieldHelpersFromNamespace(fieldNamespace, ({ helperPath, descriptor }) => (...args) => buildFieldPreset(helperPath, descriptor, args));
1503
- const collisions = Object.keys(presetHelpers).filter((name) => Object.hasOwn(field, name));
1504
- if (collisions.length > 0) throw contractError("CONTRACT.PACK_CONTRIBUTION_INVALID", `Pack-contributed field preset(s) ${collisions.map((c) => `"${c}"`).join(", ")} collide with the built-in Mongo field helper(s) of the same name.`, { meta: {
1505
- reason: "core-field-helper-collision",
1506
- contribution: collisions
1507
- } });
1508
- return {
1509
- ...field,
1510
- ...presetHelpers
1511
- };
1512
- }
1513
1471
  function stackLookupsOf(components) {
1514
1472
  const codecLookup = extractCodecLookup(components);
1515
1473
  assertTypeAliasesValid(composePackAuthoringNamespace(components, "type"), {
@@ -1530,8 +1488,7 @@ function composeMongoAuthoringHelpers(family, target, extensions, lookups) {
1530
1488
  ...Object.values(extensions ?? {})
1531
1489
  ];
1532
1490
  const entityNamespace = composePackAuthoringNamespace(components, "entityTypes");
1533
- const fieldNamespace = composePackAuthoringNamespace(components, "field");
1534
- assertNoCrossRegistryCollisions({}, fieldNamespace, entityNamespace);
1491
+ assertNoCrossRegistryCollisions(composePackAuthoringNamespace(components, "type"), entityNamespace);
1535
1492
  const collisions = Object.keys(entityNamespace).filter((name) => MONGO_RESERVED_HELPER_KEYS.includes(name));
1536
1493
  if (collisions.length > 0) throw contractError("CONTRACT.PACK_CONTRIBUTION_INVALID", `Pack-contributed entity type(s) ${collisions.map((c) => `"${c}"`).join(", ")} collide with the reserved built-in helper key(s) on the Mongo composed helpers surface. Reserved keys: ${MONGO_RESERVED_HELPER_KEYS.map((k) => `"${k}"`).join(", ")}.`, { meta: {
1537
1494
  reason: "reserved-helper-key-collision",
@@ -1544,7 +1501,7 @@ function composeMongoAuthoringHelpers(family, target, extensions, lookups) {
1544
1501
  codecLookup: lookups.codecLookup,
1545
1502
  dataTypes: lookups.dataTypes
1546
1503
  } }),
1547
- field: composeMongoFieldHelpers(fieldNamespace),
1504
+ field,
1548
1505
  gen: createGeneratorHelpers(components),
1549
1506
  index,
1550
1507
  model,
@@ -1552,29 +1509,28 @@ function composeMongoAuthoringHelpers(family, target, extensions, lookups) {
1552
1509
  valueObject
1553
1510
  });
1554
1511
  }
1555
- function createFieldBuilder(spec, enumHandle, executionDefaults, storedName, generatorCalls, presetContribution) {
1512
+ function createFieldBuilder(spec, enumHandle, executionDefaults, storedName, generatorCalls) {
1556
1513
  function many(options) {
1557
1514
  return createFieldBuilder({
1558
1515
  type: spec.type,
1559
1516
  nullable: spec.nullable,
1560
1517
  many: { elementNullable: options?.elementsNullable ?? false }
1561
- }, enumHandle, executionDefaults, storedName, generatorCalls, presetContribution);
1518
+ }, enumHandle, executionDefaults, storedName, generatorCalls);
1562
1519
  }
1563
1520
  function withGeneratorCall(phase, call) {
1564
- if (generatorCalls?.[phase] !== void 0 || executionDefaults?.[phase] !== void 0) throw contractError("CONTRACT.DEFAULT_INVALID", `.${phase}() is called on a field that already generates a value ${phase === "onCreate" ? "on create" : "on update"}. Set each phase once, and do not combine .${phase}() with a field preset, type alias or alias constant that sets it.`, { meta: {
1521
+ if (generatorCalls?.[phase] !== void 0 || executionDefaults?.[phase] !== void 0) throw contractError("CONTRACT.DEFAULT_INVALID", `.${phase}() is called on a field that already generates a value ${phase === "onCreate" ? "on create" : "on update"}. Set each phase once, and do not combine .${phase}() with a type alias or alias constant that sets it.`, { meta: {
1565
1522
  reason: "generator-phase-set-twice",
1566
1523
  phase
1567
1524
  } });
1568
1525
  return createFieldBuilder(spec, enumHandle, blindCast(executionDefaults), storedName, {
1569
1526
  ...generatorCalls,
1570
1527
  [phase]: call
1571
- }, presetContribution);
1528
+ });
1572
1529
  }
1573
1530
  return {
1574
1531
  __kind: "field",
1575
1532
  ...ifDefined("__executionDefaults", executionDefaults),
1576
1533
  ...ifDefined("__generatorCalls", generatorCalls),
1577
- ...ifDefined("__presetContribution", presetContribution),
1578
1534
  onCreate: (call) => withGeneratorCall("onCreate", call),
1579
1535
  onUpdate: (call) => withGeneratorCall("onUpdate", call),
1580
1536
  __type: spec.type,
@@ -1586,9 +1542,9 @@ function createFieldBuilder(spec, enumHandle, executionDefaults, storedName, gen
1586
1542
  type: spec.type,
1587
1543
  nullable: true,
1588
1544
  many: spec.many
1589
- }, enumHandle, executionDefaults, storedName, generatorCalls, presetContribution),
1545
+ }, enumHandle, executionDefaults, storedName, generatorCalls),
1590
1546
  many: blindCast(many),
1591
- mongo: ({ field }) => createFieldBuilder(spec, enumHandle, executionDefaults, field, generatorCalls, presetContribution)
1547
+ mongo: ({ field }) => createFieldBuilder(spec, enumHandle, executionDefaults, field, generatorCalls)
1592
1548
  };
1593
1549
  }
1594
1550
  function normalizeOptionalTypeParams(typeParams) {
@@ -1609,7 +1565,7 @@ function createScalarFieldBuilder(codecId, options) {
1609
1565
  function vectorField(options) {
1610
1566
  return createScalarFieldBuilder("mongo/vector@1", options);
1611
1567
  }
1612
- const field = {
1568
+ const field = refusingRemovedFieldPresets({
1613
1569
  scalar: createScalarFieldBuilder,
1614
1570
  objectId() {
1615
1571
  return createScalarFieldBuilder("mongo/objectId@1");
@@ -1668,7 +1624,7 @@ const field = {
1668
1624
  many: false
1669
1625
  }, handle);
1670
1626
  }
1671
- };
1627
+ });
1672
1628
  function index(fields, options) {
1673
1629
  return {
1674
1630
  fields,
@@ -1829,4 +1785,4 @@ function defineContract(definition, factory) {
1829
1785
  //#endregion
1830
1786
  export { enumType$1 as a, isEnumTypeHandle as c, rel as d, valueObject as f, defineContract as i, member as l, buildBoundContract as n, field as o, buildMongoContractFromDefinition as r, index as s, bindEnumType as t, model as u };
1831
1787
 
1832
- //# sourceMappingURL=contract-builder-d5cf-u9p.mjs.map
1788
+ //# sourceMappingURL=contract-builder-kcgHgrCG.mjs.map