🚀. Socket Launch Week Day 3:Socket Firewall Now Blocks Malicious VS Code and Open VSX Extensions.Learn more
Sign In

@prisma-next/framework-components

Package Overview
Dependencies
Maintainers
3
Versions
408
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@prisma-next/framework-components - npm Package Compare versions

Comparing version
0.13.0-dev.32
to
0.13.0-dev.33
+38
dist/emission-types-C561PwcN.d.mts
import { t as TypesImportSpec } from "./types-import-spec-DRKzrJ20.mjs";
import { Contract, ContractModelBase } from "@prisma-next/contract/types";
//#region src/control/emission-types.d.ts
interface GenerateContractTypesOptions {
readonly queryOperationTypeImports?: ReadonlyArray<TypesImportSpec>;
}
interface ValidationContext {
readonly codecTypeImports?: ReadonlyArray<TypesImportSpec>;
readonly extensionIds?: ReadonlyArray<string>;
}
interface EmissionSpi {
readonly id: string;
generateStorageType(contract: Contract, storageHashTypeName: string): string;
generateModelStorageType(modelName: string, model: ContractModelBase): string;
getFamilyImports(): string[];
getFamilyTypeAliases(options?: GenerateContractTypesOptions): string;
getTypeMapsExpression(): string;
getContractWrapper(contractBaseName: string, typeMapsName: string): string;
/**
* Per-family resolver for typeParams that don't live inline on the
* framework-domain `ContractField`. Some families (notably SQL) let columns
* reference a named entry in `storage.types` via `typeRef`; the typeParams
* live on that named entry rather than on the domain field. The framework
* emit path consults this hook so the codec's `renderOutputType` can run
* for typeRef-shaped columns.
*
* Inline `field.type.typeParams` always takes precedence; the hook is only
* consulted when the domain field has no typeParams. Families without
* named storage types (e.g. mongo) don't implement this hook.
*
* Returns `undefined` when the field has no resolvable typeParams.
*/
resolveFieldTypeParams?(modelName: string, fieldName: string, model: ContractModelBase, contract: Contract): Record<string, unknown> | undefined;
}
//#endregion
export { GenerateContractTypesOptions as n, ValidationContext as r, EmissionSpi as t };
//# sourceMappingURL=emission-types-C561PwcN.d.mts.map
{"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
-1

@@ -5,3 +5,3 @@ import { o as CodecRegistry } from "./codec-types-yY3eSmi0.mjs";

import { t as TypesImportSpec } from "./types-import-spec-DRKzrJ20.mjs";
import { t as EmissionSpi } from "./emission-types-vfpSTe63.mjs";
import { t as EmissionSpi } from "./emission-types-C561PwcN.mjs";
import { m as PslDocumentAst } from "./psl-ast-D5WPsvPp.mjs";

@@ -8,0 +8,0 @@ import { Contract, ContractMarkerRecord, ControlPolicy, LedgerEntryRecord } from "@prisma-next/contract/types";

import { t as TypesImportSpec } from "./types-import-spec-DRKzrJ20.mjs";
import { n as GenerateContractTypesOptions, r as ValidationContext, t as EmissionSpi } from "./emission-types-vfpSTe63.mjs";
import { n as GenerateContractTypesOptions, r as ValidationContext, t as EmissionSpi } from "./emission-types-C561PwcN.mjs";
export type { EmissionSpi, GenerateContractTypesOptions, TypesImportSpec, ValidationContext };
{
"name": "@prisma-next/framework-components",
"version": "0.13.0-dev.32",
"version": "0.13.0-dev.33",
"license": "Apache-2.0",

@@ -9,6 +9,6 @@ "type": "module",

"dependencies": {
"@prisma-next/contract": "0.13.0-dev.32",
"@prisma-next/operations": "0.13.0-dev.32",
"@prisma-next/ts-render": "0.13.0-dev.32",
"@prisma-next/utils": "0.13.0-dev.32",
"@prisma-next/contract": "0.13.0-dev.33",
"@prisma-next/operations": "0.13.0-dev.33",
"@prisma-next/ts-render": "0.13.0-dev.33",
"@prisma-next/utils": "0.13.0-dev.33",
"@standard-schema/spec": "^1.1.0",

@@ -18,4 +18,4 @@ "arktype": "^2.2.0"

"devDependencies": {
"@prisma-next/tsconfig": "0.13.0-dev.32",
"@prisma-next/tsdown": "0.13.0-dev.32",
"@prisma-next/tsconfig": "0.13.0-dev.33",
"@prisma-next/tsdown": "0.13.0-dev.33",
"tsdown": "0.22.1",

@@ -22,0 +22,0 @@ "typescript": "5.9.3",

@@ -1,2 +0,2 @@

import type { Contract, ContractModel } from '@prisma-next/contract/types';
import type { Contract, ContractModelBase } from '@prisma-next/contract/types';
import type { TypesImportSpec } from '../shared/types-import-spec';

@@ -18,3 +18,3 @@

generateModelStorageType(modelName: string, model: ContractModel): string;
generateModelStorageType(modelName: string, model: ContractModelBase): string;

@@ -46,5 +46,5 @@ getFamilyImports(): string[];

fieldName: string,
model: ContractModel,
model: ContractModelBase,
contract: Contract,
): Record<string, unknown> | undefined;
}
import { t as TypesImportSpec } from "./types-import-spec-DRKzrJ20.mjs";
import { Contract, ContractModel } from "@prisma-next/contract/types";
//#region src/control/emission-types.d.ts
interface GenerateContractTypesOptions {
readonly queryOperationTypeImports?: ReadonlyArray<TypesImportSpec>;
}
interface ValidationContext {
readonly codecTypeImports?: ReadonlyArray<TypesImportSpec>;
readonly extensionIds?: ReadonlyArray<string>;
}
interface EmissionSpi {
readonly id: string;
generateStorageType(contract: Contract, storageHashTypeName: string): string;
generateModelStorageType(modelName: string, model: ContractModel): string;
getFamilyImports(): string[];
getFamilyTypeAliases(options?: GenerateContractTypesOptions): string;
getTypeMapsExpression(): string;
getContractWrapper(contractBaseName: string, typeMapsName: string): string;
/**
* Per-family resolver for typeParams that don't live inline on the
* framework-domain `ContractField`. Some families (notably SQL) let columns
* reference a named entry in `storage.types` via `typeRef`; the typeParams
* live on that named entry rather than on the domain field. The framework
* emit path consults this hook so the codec's `renderOutputType` can run
* for typeRef-shaped columns.
*
* Inline `field.type.typeParams` always takes precedence; the hook is only
* consulted when the domain field has no typeParams. Families without
* named storage types (e.g. mongo) don't implement this hook.
*
* Returns `undefined` when the field has no resolvable typeParams.
*/
resolveFieldTypeParams?(modelName: string, fieldName: string, model: ContractModel, contract: Contract): Record<string, unknown> | undefined;
}
//#endregion
export { GenerateContractTypesOptions as n, ValidationContext as r, EmissionSpi as t };
//# sourceMappingURL=emission-types-vfpSTe63.d.mts.map
{"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"}