@prisma-next/framework-components 0.13.0-dev.32 → 0.13.0-dev.34

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.
@@ -2,7 +2,7 @@ import { o as CodecRegistry } from "./codec-types-yY3eSmi0.mjs";
2
2
  import { d as AuthoringFieldNamespace, h as AuthoringPslBlockDescriptorNamespace, i as AuthoringContributions, l as AuthoringEntityTypeNamespace, y as AuthoringTypeNamespace } from "./framework-authoring-C0UK0DAr.mjs";
3
3
  import { A as LoweredDefaultResult, C as ControlMutationDefaultEntry, D as DefaultFunctionLoweringHandler, E as DefaultFunctionLoweringContext, F as SourceSpan, M as MutationDefaultGeneratorDescriptor, N as ParsedDefaultFunctionCall, O as DefaultFunctionRegistry, P as SourceDiagnostic, T as ControlMutationDefaults, a as ComponentMetadata, b as TargetInstance, c as DriverDescriptor, d as ExtensionDescriptor, f as ExtensionInstance, h as FamilyInstance, j as LoweredDefaultValue, k as DefaultFunctionRegistryEntry, l as DriverInstance, m as FamilyDescriptor, n as AdapterInstance, t as AdapterDescriptor, v as TargetBoundComponentDescriptor, w as ControlMutationDefaultRegistry, y as TargetDescriptor } from "./framework-components-qbWtCu6G.mjs";
4
4
  import { t as TypesImportSpec } from "./types-import-spec-DRKzrJ20.mjs";
5
- import { t as EmissionSpi } from "./emission-types-vfpSTe63.mjs";
5
+ import { t as EmissionSpi } from "./emission-types-C561PwcN.mjs";
6
6
  import { m as PslDocumentAst } from "./psl-ast-D5WPsvPp.mjs";
7
7
  import { Contract, ContractMarkerRecord, ControlPolicy, LedgerEntryRecord } from "@prisma-next/contract/types";
8
8
  import { ImportRequirement, ImportRequirement as ImportRequirement$1 } from "@prisma-next/ts-render";
@@ -1,5 +1,5 @@
1
1
  import { t as TypesImportSpec } from "./types-import-spec-DRKzrJ20.mjs";
2
- import { Contract, ContractModel } from "@prisma-next/contract/types";
2
+ import { Contract, ContractModelBase } from "@prisma-next/contract/types";
3
3
 
4
4
  //#region src/control/emission-types.d.ts
5
5
  interface GenerateContractTypesOptions {
@@ -12,7 +12,7 @@ interface ValidationContext {
12
12
  interface EmissionSpi {
13
13
  readonly id: string;
14
14
  generateStorageType(contract: Contract, storageHashTypeName: string): string;
15
- generateModelStorageType(modelName: string, model: ContractModel): string;
15
+ generateModelStorageType(modelName: string, model: ContractModelBase): string;
16
16
  getFamilyImports(): string[];
17
17
  getFamilyTypeAliases(options?: GenerateContractTypesOptions): string;
18
18
  getTypeMapsExpression(): string;
@@ -31,8 +31,8 @@ interface EmissionSpi {
31
31
  *
32
32
  * Returns `undefined` when the field has no resolvable typeParams.
33
33
  */
34
- resolveFieldTypeParams?(modelName: string, fieldName: string, model: ContractModel, contract: Contract): Record<string, unknown> | undefined;
34
+ resolveFieldTypeParams?(modelName: string, fieldName: string, model: ContractModelBase, contract: Contract): Record<string, unknown> | undefined;
35
35
  }
36
36
  //#endregion
37
37
  export { GenerateContractTypesOptions as n, ValidationContext as r, EmissionSpi as t };
38
- //# sourceMappingURL=emission-types-vfpSTe63.d.mts.map
38
+ //# sourceMappingURL=emission-types-C561PwcN.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"emission-types-C561PwcN.d.mts","names":[],"sources":["../src/control/emission-types.ts"],"mappings":";;;;UAGiB,4BAAA;EAAA,SACN,yBAAA,GAA4B,aAAa,CAAC,eAAA;AAAA;AAAA,UAGpC,iBAAA;EAAA,SACN,gBAAA,GAAmB,aAAA,CAAc,eAAA;EAAA,SACjC,YAAA,GAAe,aAAA;AAAA;AAAA,UAGT,WAAA;EAAA,SACN,EAAA;EAET,mBAAA,CAAoB,QAAA,EAAU,QAAA,EAAU,mBAAA;EAExC,wBAAA,CAAyB,SAAA,UAAmB,KAAA,EAAO,iBAAA;EAEnD,gBAAA;EAEA,oBAAA,CAAqB,OAAA,GAAU,4BAAA;EAE/B,qBAAA;EAEA,kBAAA,CAAmB,gBAAA,UAA0B,YAAA;EAjBjB;;;;;;;;;;AACS;AAGvC;;;EA6BE,sBAAA,EACE,SAAA,UACA,SAAA,UACA,KAAA,EAAO,iBAAA,EACP,QAAA,EAAU,QAAA,GACT,MAAA;AAAA"}
@@ -1,3 +1,3 @@
1
1
  import { t as TypesImportSpec } from "./types-import-spec-DRKzrJ20.mjs";
2
- import { n as GenerateContractTypesOptions, r as ValidationContext, t as EmissionSpi } from "./emission-types-vfpSTe63.mjs";
2
+ import { n as GenerateContractTypesOptions, r as ValidationContext, t as EmissionSpi } from "./emission-types-C561PwcN.mjs";
3
3
  export type { EmissionSpi, GenerateContractTypesOptions, TypesImportSpec, ValidationContext };
package/package.json CHANGED
@@ -1,21 +1,21 @@
1
1
  {
2
2
  "name": "@prisma-next/framework-components",
3
- "version": "0.13.0-dev.32",
3
+ "version": "0.13.0-dev.34",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "sideEffects": false,
7
7
  "description": "Framework component types, assembly logic, and stack creation for Prisma Next",
8
8
  "dependencies": {
9
- "@prisma-next/contract": "0.13.0-dev.32",
10
- "@prisma-next/operations": "0.13.0-dev.32",
11
- "@prisma-next/ts-render": "0.13.0-dev.32",
12
- "@prisma-next/utils": "0.13.0-dev.32",
9
+ "@prisma-next/contract": "0.13.0-dev.34",
10
+ "@prisma-next/operations": "0.13.0-dev.34",
11
+ "@prisma-next/ts-render": "0.13.0-dev.34",
12
+ "@prisma-next/utils": "0.13.0-dev.34",
13
13
  "@standard-schema/spec": "^1.1.0",
14
14
  "arktype": "^2.2.0"
15
15
  },
16
16
  "devDependencies": {
17
- "@prisma-next/tsconfig": "0.13.0-dev.32",
18
- "@prisma-next/tsdown": "0.13.0-dev.32",
17
+ "@prisma-next/tsconfig": "0.13.0-dev.34",
18
+ "@prisma-next/tsdown": "0.13.0-dev.34",
19
19
  "tsdown": "0.22.1",
20
20
  "typescript": "5.9.3",
21
21
  "vitest": "4.1.8"
@@ -1,4 +1,4 @@
1
- import type { Contract, ContractModel } from '@prisma-next/contract/types';
1
+ import type { Contract, ContractModelBase } from '@prisma-next/contract/types';
2
2
  import type { TypesImportSpec } from '../shared/types-import-spec';
3
3
 
4
4
  export interface GenerateContractTypesOptions {
@@ -15,7 +15,7 @@ export interface EmissionSpi {
15
15
 
16
16
  generateStorageType(contract: Contract, storageHashTypeName: string): string;
17
17
 
18
- generateModelStorageType(modelName: string, model: ContractModel): string;
18
+ generateModelStorageType(modelName: string, model: ContractModelBase): string;
19
19
 
20
20
  getFamilyImports(): string[];
21
21
 
@@ -42,7 +42,7 @@ export interface EmissionSpi {
42
42
  resolveFieldTypeParams?(
43
43
  modelName: string,
44
44
  fieldName: string,
45
- model: ContractModel,
45
+ model: ContractModelBase,
46
46
  contract: Contract,
47
47
  ): Record<string, unknown> | undefined;
48
48
  }
@@ -1 +0,0 @@
1
- {"version":3,"file":"emission-types-vfpSTe63.d.mts","names":[],"sources":["../src/control/emission-types.ts"],"mappings":";;;;UAGiB,4BAAA;EAAA,SACN,yBAAA,GAA4B,aAAa,CAAC,eAAA;AAAA;AAAA,UAGpC,iBAAA;EAAA,SACN,gBAAA,GAAmB,aAAA,CAAc,eAAA;EAAA,SACjC,YAAA,GAAe,aAAA;AAAA;AAAA,UAGT,WAAA;EAAA,SACN,EAAA;EAET,mBAAA,CAAoB,QAAA,EAAU,QAAA,EAAU,mBAAA;EAExC,wBAAA,CAAyB,SAAA,UAAmB,KAAA,EAAO,aAAA;EAEnD,gBAAA;EAEA,oBAAA,CAAqB,OAAA,GAAU,4BAAA;EAE/B,qBAAA;EAEA,kBAAA,CAAmB,gBAAA,UAA0B,YAAA;EAjBjB;;;;;;;;;;AACS;AAGvC;;;EA6BE,sBAAA,EACE,SAAA,UACA,SAAA,UACA,KAAA,EAAO,aAAA,EACP,QAAA,EAAU,QAAA,GACT,MAAA;AAAA"}