@prisma-next/contract 0.3.0-dev.1 → 0.3.0-dev.100

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.
@@ -24,10 +24,15 @@
24
24
  "enum": ["document"],
25
25
  "description": "Target family classification"
26
26
  },
27
- "coreHash": {
27
+ "storageHash": {
28
28
  "type": "string",
29
29
  "pattern": "^sha256:[a-f0-9]{64}$",
30
- "description": "SHA-256 hash of the core schema structure (models, fields, relations, storage layout)"
30
+ "description": "SHA-256 hash of the storage section (DB-satisfied expectations)"
31
+ },
32
+ "executionHash": {
33
+ "type": "string",
34
+ "pattern": "^sha256:[a-f0-9]{64}$",
35
+ "description": "SHA-256 hash of the execution section (client-side behavior)"
31
36
  },
32
37
  "profileHash": {
33
38
  "type": "string",
@@ -85,7 +90,7 @@
85
90
  "required": ["document"]
86
91
  }
87
92
  },
88
- "required": ["schemaVersion", "target", "targetFamily", "coreHash", "storage"],
93
+ "required": ["schemaVersion", "target", "targetFamily", "storageHash", "storage"],
89
94
  "$defs": {
90
95
  "DocCollection": {
91
96
  "type": "object",
@@ -103,7 +108,7 @@
103
108
  "properties": {
104
109
  "strategy": {
105
110
  "type": "string",
106
- "enum": ["auto", "client", "uuid", "cuid", "objectId"],
111
+ "enum": ["auto", "client", "uuid", "objectId"],
107
112
  "description": "ID generation strategy"
108
113
  }
109
114
  }
@@ -0,0 +1,35 @@
1
+ export type {
2
+ // Descriptors
3
+ AdapterDescriptor,
4
+ // Instances
5
+ AdapterInstance,
6
+ AdapterPackRef,
7
+ ComponentDescriptor,
8
+ ComponentMetadata,
9
+ ContractComponentRequirementsCheckInput,
10
+ ContractComponentRequirementsCheckResult,
11
+ DriverDescriptor,
12
+ DriverInstance,
13
+ DriverPackRef,
14
+ ExtensionDescriptor,
15
+ ExtensionInstance,
16
+ ExtensionPackRef,
17
+ FamilyDescriptor,
18
+ FamilyInstance,
19
+ // Type renderers for parameterized codec emission
20
+ NormalizedTypeRenderer,
21
+ PackRefBase,
22
+ TargetBoundComponentDescriptor,
23
+ TargetDescriptor,
24
+ TargetInstance,
25
+ TargetPackRef,
26
+ TypeRenderer,
27
+ TypeRendererFunction,
28
+ TypeRendererTemplate,
29
+ } from '../framework-components';
30
+
31
+ export {
32
+ checkContractComponentRequirements,
33
+ interpolateTypeTemplate,
34
+ normalizeRenderer,
35
+ } from '../framework-components';
@@ -0,0 +1 @@
1
+ export * from '../ir';
@@ -0,0 +1,50 @@
1
+ export type {
2
+ $,
3
+ Brand,
4
+ ColumnDefault,
5
+ ColumnDefaultLiteralInputValue,
6
+ ColumnDefaultLiteralValue,
7
+ ContractBase,
8
+ ContractMarkerRecord,
9
+ DocCollection,
10
+ DocIndex,
11
+ DocumentContract,
12
+ DocumentStorage,
13
+ ExecutionHashBase,
14
+ ExecutionMutationDefault,
15
+ ExecutionMutationDefaultValue,
16
+ ExecutionPlan,
17
+ ExecutionSection,
18
+ Expr,
19
+ FieldType,
20
+ GenerateContractTypesOptions,
21
+ GeneratedValueSpec,
22
+ JsonPrimitive,
23
+ JsonValue,
24
+ ParamDescriptor,
25
+ ParameterizedCodecDescriptor,
26
+ PlanMeta,
27
+ PlanRefs,
28
+ ProfileHashBase,
29
+ RenderTypeContext,
30
+ ResultType,
31
+ Source,
32
+ StorageHashBase,
33
+ TaggedBigInt,
34
+ TaggedLiteralValue,
35
+ TaggedRaw,
36
+ TargetFamilyHook,
37
+ TypeRenderContext,
38
+ TypeRenderEntry,
39
+ TypeRenderer,
40
+ TypesImportSpec,
41
+ ValidationContext,
42
+ } from '../types';
43
+ export {
44
+ bigintJsonReplacer,
45
+ coreHash,
46
+ isDocumentContract,
47
+ isTaggedBigInt,
48
+ isTaggedRaw,
49
+ profileHash,
50
+ } from '../types';