@prisma-next/config 0.3.0 → 0.4.0-dev.10
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/README.md +4 -0
- package/dist/{config-types-B_uoLKIE.d.mts → config-types-BqPA4C22.d.mts} +7 -2
- package/dist/config-types-BqPA4C22.d.mts.map +1 -0
- package/dist/config-types.d.mts +1 -1
- package/dist/config-validation.d.mts +1 -1
- package/package.json +4 -4
- package/src/contract-source-types.ts +9 -0
- package/dist/config-types-B_uoLKIE.d.mts.map +0 -1
package/README.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# @prisma-next/config
|
|
2
2
|
|
|
3
|
+
> **Internal package.** This package is an implementation detail of [`prisma-next`](https://www.npmjs.com/package/prisma-next)
|
|
4
|
+
> and is published only to support its runtime. Its API is unstable and may change
|
|
5
|
+
> without notice. Do not depend on this package directly; install `prisma-next` instead.
|
|
6
|
+
|
|
3
7
|
Config authoring types and validation for `prisma-next.config.ts`.
|
|
4
8
|
|
|
5
9
|
## Overview
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { ControlAdapterDescriptor, ControlDriverDescriptor, ControlDriverInstance, ControlExtensionDescriptor, ControlFamilyDescriptor, ControlTargetDescriptor } from "@prisma-next/framework-components/control";
|
|
1
|
+
import { AssembledAuthoringContributions, ControlAdapterDescriptor, ControlDriverDescriptor, ControlDriverInstance, ControlExtensionDescriptor, ControlFamilyDescriptor, ControlMutationDefaults, ControlTargetDescriptor } from "@prisma-next/framework-components/control";
|
|
2
2
|
import { Contract } from "@prisma-next/contract/types";
|
|
3
|
+
import { CodecLookup } from "@prisma-next/framework-components/codec";
|
|
3
4
|
import { Result } from "@prisma-next/utils/result";
|
|
4
5
|
|
|
5
6
|
//#region src/contract-source-types.d.ts
|
|
@@ -31,6 +32,10 @@ interface ContractSourceDiagnostics {
|
|
|
31
32
|
}
|
|
32
33
|
interface ContractSourceContext {
|
|
33
34
|
readonly composedExtensionPacks: readonly string[];
|
|
35
|
+
readonly scalarTypeDescriptors: ReadonlyMap<string, string>;
|
|
36
|
+
readonly authoringContributions: AssembledAuthoringContributions;
|
|
37
|
+
readonly codecLookup: CodecLookup;
|
|
38
|
+
readonly controlMutationDefaults: ControlMutationDefaults;
|
|
34
39
|
}
|
|
35
40
|
type ContractSourceProvider = (context: ContractSourceContext) => Promise<Result<Contract, ContractSourceDiagnostics>>;
|
|
36
41
|
//#endregion
|
|
@@ -109,4 +114,4 @@ interface PrismaNextConfig<TFamilyId extends string = string, TTargetId extends
|
|
|
109
114
|
declare function defineConfig<TFamilyId extends string = string, TTargetId extends string = string>(config: PrismaNextConfig<TFamilyId, TTargetId>): PrismaNextConfig<TFamilyId, TTargetId>;
|
|
110
115
|
//#endregion
|
|
111
116
|
export { ContractSourceDiagnostic as a, ContractSourceDiagnostics as c, ContractSourceContext as i, ContractSourceProvider as l, PrismaNextConfig as n, ContractSourceDiagnosticPosition as o, defineConfig as r, ContractSourceDiagnosticSpan as s, ContractConfig as t };
|
|
112
|
-
//# sourceMappingURL=config-types-
|
|
117
|
+
//# sourceMappingURL=config-types-BqPA4C22.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config-types-BqPA4C22.d.mts","names":[],"sources":["../src/contract-source-types.ts","../src/config-types.ts"],"sourcesContent":[],"mappings":";;;;;;UAQiB,gCAAA;;EAAA,SAAA,IAAA,EAAA,MAAA;EAMA,SAAA,MAAA,EAAA,MAAA;AAKjB;AAIkB,UATD,4BAAA,CASC;EAMS,SAAA,KAAA,EAdT,gCAcS;EAAT,SAAA,GAAA,EAbF,gCAaE;;AAGD,UAbA,wBAAA,CAayB;EAMzB,SAAA,IAAA,EAAA,MAAA;EAEiB,SAAA,OAAA,EAAA,MAAA;EACC,SAAA,QAAA,CAAA,EAAA,MAAA;EACX,SAAA,IAAA,CAAA,EAnBN,4BAmBM;EACY;;AAGpC;;;EAE8B,SAAA,IAAA,CAAA,EAnB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AmBgC,SAAA,UAAA,CAAA,EANV,WAMU;EAkDpB,CAAA;EACW;;;;EACI,SAAA,QAAA,CAAA,EApDT,cAoDS;EAA5B;;;;;;;;;;;;;;;;;;;iBAFa,2FACN,iBAAiB,WAAW,aACnC,iBAAiB,WAAW"}
|
package/dist/config-types.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as ContractSourceDiagnostic, c as ContractSourceDiagnostics, i as ContractSourceContext, l as ContractSourceProvider, n as PrismaNextConfig, o as ContractSourceDiagnosticPosition, r as defineConfig, s as ContractSourceDiagnosticSpan, t as ContractConfig } from "./config-types-
|
|
1
|
+
import { a as ContractSourceDiagnostic, c as ContractSourceDiagnostics, i as ContractSourceContext, l as ContractSourceProvider, n as PrismaNextConfig, o as ContractSourceDiagnosticPosition, r as defineConfig, s as ContractSourceDiagnosticSpan, t as ContractConfig } from "./config-types-BqPA4C22.mjs";
|
|
2
2
|
export { type ContractConfig, type ContractSourceContext, type ContractSourceDiagnostic, type ContractSourceDiagnosticPosition, type ContractSourceDiagnosticSpan, type ContractSourceDiagnostics, type ContractSourceProvider, type PrismaNextConfig, defineConfig };
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma-next/config",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0-dev.10",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"description": "Prisma Next config authoring types and validation",
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"arktype": "^2.1.26",
|
|
9
|
-
"@prisma-next/contract": "0.
|
|
10
|
-
"@prisma-next/framework-components": "0.
|
|
11
|
-
"@prisma-next/utils": "0.
|
|
9
|
+
"@prisma-next/contract": "0.4.0-dev.10",
|
|
10
|
+
"@prisma-next/framework-components": "0.4.0-dev.10",
|
|
11
|
+
"@prisma-next/utils": "0.4.0-dev.10"
|
|
12
12
|
},
|
|
13
13
|
"devDependencies": {
|
|
14
14
|
"tsdown": "0.18.4",
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import type { Contract } from '@prisma-next/contract/types';
|
|
2
|
+
import type { CodecLookup } from '@prisma-next/framework-components/codec';
|
|
3
|
+
import type {
|
|
4
|
+
AssembledAuthoringContributions,
|
|
5
|
+
ControlMutationDefaults,
|
|
6
|
+
} from '@prisma-next/framework-components/control';
|
|
2
7
|
import type { Result } from '@prisma-next/utils/result';
|
|
3
8
|
|
|
4
9
|
export interface ContractSourceDiagnosticPosition {
|
|
@@ -33,6 +38,10 @@ export interface ContractSourceDiagnostics {
|
|
|
33
38
|
|
|
34
39
|
export interface ContractSourceContext {
|
|
35
40
|
readonly composedExtensionPacks: readonly string[];
|
|
41
|
+
readonly scalarTypeDescriptors: ReadonlyMap<string, string>;
|
|
42
|
+
readonly authoringContributions: AssembledAuthoringContributions;
|
|
43
|
+
readonly codecLookup: CodecLookup;
|
|
44
|
+
readonly controlMutationDefaults: ControlMutationDefaults;
|
|
36
45
|
}
|
|
37
46
|
|
|
38
47
|
export type ContractSourceProvider = (
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"config-types-B_uoLKIE.d.mts","names":[],"sources":["../src/contract-source-types.ts","../src/config-types.ts"],"sourcesContent":[],"mappings":";;;;;UAGiB,gCAAA;;;EAAA,SAAA,MAAA,EAAA,MAAA;AAMjB;AAKiB,UALA,4BAAA,CAKwB;EAIvB,SAAA,KAAA,EARA,gCAQA;EAMS,SAAA,GAAA,EAbX,gCAaW;;AAAD,UAVT,wBAAA,CAUS;EAGT,SAAA,IAAA,EAAA,MAAA;EAMA,SAAA,OAAA,EAAA,MAAqB;EAI1B,SAAA,QAAA,CAAA,EAAA,MAAsB;EACvB,SAAA,IAAA,CAAA,EApBO,4BAoBP;EACS;;;;;kBAfF,SAAS;;UAGV,yBAAA;ECPA,SAAA,OAAA,EAAc,MAAA;EAqBd,SAAA,WAAgB,EAAA,SDZA,wBCYA,EAA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