@prisma/composer-prisma-cloud 0.2.0 → 0.3.0-dev.1
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/dist/buckets-main.mjs +795 -0
- package/dist/buckets-main.mjs.map +1 -0
- package/dist/compute-main.mjs +559 -0
- package/dist/compute-main.mjs.map +1 -0
- package/dist/control.d.mts +34 -5
- package/dist/control.d.mts.map +1 -0
- package/dist/control.mjs +98 -1280
- package/dist/control.mjs.map +1 -1
- package/dist/cron/index.d.mts +54 -4
- package/dist/cron/index.d.mts.map +1 -0
- package/dist/cron/index.mjs +145 -42
- package/dist/cron/index.mjs.map +1 -1
- package/dist/cron/scheduler-entrypoint.mjs +637 -529
- package/dist/cron/scheduler-entrypoint.mjs.map +1 -1
- package/dist/cron/scheduler-service.mjs +145 -42
- package/dist/cron/scheduler-service.mjs.map +1 -1
- package/dist/email/email-entrypoint.mjs +19738 -0
- package/dist/email/email-entrypoint.mjs.map +1 -0
- package/dist/email/email-service.mjs +565 -0
- package/dist/email/email-service.mjs.map +1 -0
- package/dist/email/index.d.mts +282 -0
- package/dist/email/index.d.mts.map +1 -0
- package/dist/email/index.mjs +652 -0
- package/dist/email/index.mjs.map +1 -0
- package/dist/email/testing.d.mts +22 -0
- package/dist/email/testing.d.mts.map +1 -0
- package/dist/email/testing.mjs +1321 -0
- package/dist/email/testing.mjs.map +1 -0
- package/dist/get-port-BYnpbW5H.mjs +111 -0
- package/dist/get-port-BYnpbW5H.mjs.map +1 -0
- package/dist/index.d.mts +37 -6
- package/dist/index.d.mts.map +1 -0
- package/dist/index.mjs +70 -45
- package/dist/index.mjs.map +1 -1
- package/dist/local-target.d.mts +12 -0
- package/dist/local-target.d.mts.map +1 -0
- package/dist/local-target.mjs +6185 -0
- package/dist/local-target.mjs.map +1 -0
- package/dist/param-BTzY0ne5-CW6ojZ3E.mjs +66 -0
- package/dist/param-BTzY0ne5-CW6ojZ3E.mjs.map +1 -0
- package/dist/pg-connection-CadPZuEK-CF3FsSQu.mjs +79 -0
- package/dist/pg-connection-CadPZuEK-CF3FsSQu.mjs.map +1 -0
- package/dist/postgres-main.mjs +602 -0
- package/dist/postgres-main.mjs.map +1 -0
- package/dist/preflight-names-BPL-qsZF-BfoRgbgb.mjs +1252 -0
- package/dist/preflight-names-BPL-qsZF-BfoRgbgb.mjs.map +1 -0
- package/dist/{prisma-next-DlU01kXJ-2sP5mQb6.mjs → prisma-next-BvBwGCIt-DssgnctU.mjs} +21 -80
- package/dist/prisma-next-BvBwGCIt-DssgnctU.mjs.map +1 -0
- package/dist/prisma-next.d.mts +14 -5
- package/dist/prisma-next.d.mts.map +1 -0
- package/dist/prisma-next.mjs +1 -1
- package/dist/provisioned-edges-C1wSO3cx-YC5C19f9.mjs +151 -0
- package/dist/provisioned-edges-C1wSO3cx-YC5C19f9.mjs.map +1 -0
- package/dist/secret-rz_ZqNeq-_xd97Jd9.mjs +47 -0
- package/dist/secret-rz_ZqNeq-_xd97Jd9.mjs.map +1 -0
- package/dist/segments-NpKN-46R-C_LQ2urs.mjs +1454 -0
- package/dist/segments-NpKN-46R-C_LQ2urs.mjs.map +1 -0
- package/dist/{serializer-CX4VYdf_-KKGoAxfx.mjs → serializer-CJiOhF2d-DJUjQj1i.mjs} +34 -44
- package/dist/serializer-CJiOhF2d-DJUjQj1i.mjs.map +1 -0
- package/dist/serializer-Cx5slrV4-xJfH6EWS.d.mts.map +1 -0
- package/dist/storage/index.d.mts +52 -5
- package/dist/storage/index.d.mts.map +1 -0
- package/dist/storage/index.mjs +158 -47
- package/dist/storage/index.mjs.map +1 -1
- package/dist/storage/storage-entrypoint.mjs +370 -271
- package/dist/storage/storage-entrypoint.mjs.map +1 -1
- package/dist/storage/storage-service.mjs +158 -47
- package/dist/storage/storage-service.mjs.map +1 -1
- package/dist/storage/testing.d.mts +7 -6
- package/dist/storage/testing.d.mts.map +1 -0
- package/dist/storage/testing.mjs +4 -21
- package/dist/storage/testing.mjs.map +1 -1
- package/dist/streams/index.d.mts +56 -84
- package/dist/streams/index.d.mts.map +1 -0
- package/dist/streams/index.mjs +158 -47
- package/dist/streams/index.mjs.map +1 -1
- package/dist/streams/streams-entrypoint.mjs +366 -250
- package/dist/streams/streams-entrypoint.mjs.map +1 -1
- package/dist/streams/streams-service.mjs +158 -47
- package/dist/streams/streams-service.mjs.map +1 -1
- package/dist/streams/testing.d.mts.map +1 -0
- package/dist/testing.d.mts.map +1 -0
- package/dist/testing.mjs +1 -1
- package/dist/testing.mjs.map +1 -1
- package/package.json +34 -20
- package/src/exports/control.ts +1 -0
- package/src/exports/cron.ts +1 -0
- package/src/exports/email-testing.ts +1 -0
- package/src/exports/email.ts +1 -0
- package/src/exports/index.ts +1 -0
- package/src/exports/local-target.ts +1 -0
- package/src/exports/prisma-next.ts +1 -0
- package/src/exports/storage-testing.ts +1 -0
- package/src/exports/storage.ts +1 -0
- package/src/exports/streams-testing.ts +1 -0
- package/src/exports/streams.ts +1 -0
- package/src/exports/testing.ts +1 -0
- package/dist/prisma-next-DlU01kXJ-2sP5mQb6.mjs.map +0 -1
- package/dist/provisioned-edges-DIQAR4q4-Bn9op-JG.mjs +0 -151
- package/dist/provisioned-edges-DIQAR4q4-Bn9op-JG.mjs.map +0 -1
- package/dist/serializer-CX4VYdf_-KKGoAxfx.mjs.map +0 -1
package/dist/control.d.mts
CHANGED
|
@@ -42,6 +42,28 @@ interface ProviderParam extends ProviderParamEntry {
|
|
|
42
42
|
*/
|
|
43
43
|
readonly value: (refs: readonly unknown[]) => Output.Output<unknown> | unknown | undefined;
|
|
44
44
|
}
|
|
45
|
+
/**
|
|
46
|
+
* The slice of compute's provisioned handoff a service-derived provider param
|
|
47
|
+
* may read. A minimal structural type, not `ComputeProvisioned` itself:
|
|
48
|
+
* shared.ts sits below `descriptors/compute.ts` in the import graph, so
|
|
49
|
+
* naming the full type here would invert it.
|
|
50
|
+
*/
|
|
51
|
+
interface ServiceProvisionedAttributes {
|
|
52
|
+
readonly endpointDomain: Output.Output<string | undefined>;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* A reserved provider param whose value derives from the provider service's
|
|
56
|
+
* OWN provisioned attributes rather than its inbound edges — the
|
|
57
|
+
* service-derived sibling of `ProviderParam` (e.g. the service's own origin).
|
|
58
|
+
* Asked for EVERY compute service, exposing or not: a service needs no
|
|
59
|
+
* consumers to have an origin, so the descriptor's expose check applies only
|
|
60
|
+
* to edge-derived entries. Like `ProviderParam.value`, the return is encoded
|
|
61
|
+
* through the serializer's normal service-own literal path (JSON) by the
|
|
62
|
+
* descriptor's generic loop, never here.
|
|
63
|
+
*/
|
|
64
|
+
interface ServiceProviderParam extends ProviderParamEntry {
|
|
65
|
+
readonly valueForService: (provisioned: ServiceProvisionedAttributes, address: string) => Output.Output<unknown> | unknown | undefined;
|
|
66
|
+
}
|
|
45
67
|
//#endregion
|
|
46
68
|
//#region src/control/extension.d.ts
|
|
47
69
|
/** The user-facing state descriptor: `state: prismaState()` in `prisma-composer.config.ts` (ADR-0017). */
|
|
@@ -52,19 +74,26 @@ interface PrismaCloudOptions {
|
|
|
52
74
|
/** Defaults to the PRISMA_REGION environment variable when set. */
|
|
53
75
|
region?: ComputeRegion;
|
|
54
76
|
}
|
|
77
|
+
/**
|
|
78
|
+
* One brand's deploy-side value registration: edge-derived (`value(refs)`,
|
|
79
|
+
* fed by the provider's inbound edges) or service-derived
|
|
80
|
+
* (`valueForService(provisioned, address)`, fed by the service's own
|
|
81
|
+
* provisioned attributes).
|
|
82
|
+
*/
|
|
83
|
+
type ProviderParamValue = Pick<ProviderParam, 'value'> | Pick<ServiceProviderParam, 'valueForService'>;
|
|
55
84
|
/**
|
|
56
85
|
* Builds the deploy-side registry from the boot-side list, keyed by brand —
|
|
57
|
-
* throws if a boot-side entry has no registered deploy-side
|
|
58
|
-
* `RESERVED_PROVIDER_PARAMS` stays the single source of which reserved
|
|
86
|
+
* throws if a boot-side entry has no registered deploy-side value function,
|
|
87
|
+
* so `RESERVED_PROVIDER_PARAMS` stays the single source of which reserved
|
|
59
88
|
* provider params exist: deploy can no longer write a row boot never
|
|
60
89
|
* stashes. Exported (rather than inlined into `PROVIDER_PARAMS` below) so
|
|
61
90
|
* `__tests__/provider-params.test.ts` can drive it directly with a
|
|
62
91
|
* deliberately incomplete value map and watch it throw.
|
|
63
92
|
*/
|
|
64
|
-
declare function buildProviderParams(entries: readonly ProviderParamEntry[], values: ReadonlyMap<symbol,
|
|
65
|
-
declare const PROVIDER_PARAMS: ReadonlyMap<symbol, ProviderParam>;
|
|
93
|
+
declare function buildProviderParams(entries: readonly ProviderParamEntry[], values: ReadonlyMap<symbol, ProviderParamValue>): ReadonlyMap<symbol, ProviderParam | ServiceProviderParam>;
|
|
94
|
+
declare const PROVIDER_PARAMS: ReadonlyMap<symbol, ProviderParam | ServiceProviderParam>;
|
|
66
95
|
/** The Prisma Cloud extension descriptor — `prisma-composer.config.ts` lists it under `extensions`. */
|
|
67
96
|
declare const prismaCloud: (opts?: PrismaCloudOptions) => ExtensionDescriptor;
|
|
68
97
|
//#endregion
|
|
69
|
-
export { PROVIDER_PARAMS, PrismaCloudOptions, buildProviderParams, prismaCloud, prismaState };
|
|
98
|
+
export { PROVIDER_PARAMS, PrismaCloudOptions, ProviderParamValue, buildProviderParams, prismaCloud, prismaState };
|
|
70
99
|
//# sourceMappingURL=control.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"control.d.mts","names":[],"sources":["../../../1-prisma-cloud/0-lowering/lowering/dist/compute.d.mts","../../../1-prisma-cloud/1-extensions/target/dist/control.d.mts"],"mappings":";;;;;;;;;;;;;;cAkDc;KACT,wBAAwB;;;;;;;;;;;;;;;;;;;UC/BnB,sBAAsB;;;;;;;;WAQrB,QAAQ,6BAA6B,OAAO;;;;;;;;UAQ7C;WACC,gBAAgB,OAAO;;;;;;;;;;;;UAYxB,6BAA6B;WAC5B,kBAAkB,aAAa,8BAA8B,oBAAoB,OAAO;;;;;cAKrF,mBAAmB;UACvB;;EAER;;EAEA,SAAS;;;;;;;;KAQN,qBAAqB,KAAK,0BAA0B,KAAK;;;;;;;;;;iBAU7C,oBAAoB,kBAAkB,sBAAsB,QAAQ,oBAAoB,sBAAsB,oBAAoB,gBAAgB;cACrJ,iBAAiB,oBAAoB,gBAAgB;;cAErD,cAAc,OAAO,uBAAuB"}
|