@geekmidas/constructs 10.0.0-alpha.126 → 10.0.0-alpha.128
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/adaptors/testing.d.cts +2 -2
- package/dist/adaptors/testing.d.mts +2 -2
- package/dist/credential.d.cts +1 -1
- package/dist/credential.d.mts +1 -1
- package/dist/external-api.d.cts +1 -1
- package/dist/external-api.d.mts +1 -1
- package/dist/{fake-B7rvi4Qp.d.cts → fake-BUgcX2Dk.d.cts} +2 -2
- package/dist/{fake-B7rvi4Qp.d.cts.map → fake-BUgcX2Dk.d.cts.map} +1 -1
- package/dist/{fake-JXbkdao8.d.mts → fake-D472nkKb.d.mts} +2 -2
- package/dist/{fake-JXbkdao8.d.mts.map → fake-D472nkKb.d.mts.map} +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/{stages-BSCF19o2.d.cts → stages-DaTaoQei.d.cts} +18 -1
- package/dist/stages-DaTaoQei.d.cts.map +1 -0
- package/dist/{stages-BSCF19o2.d.mts → stages-DaTaoQei.d.mts} +18 -1
- package/dist/stages-DaTaoQei.d.mts.map +1 -0
- package/dist/websocket-api.cjs +769 -0
- package/dist/websocket-api.cjs.map +1 -0
- package/dist/websocket-api.d.cts +449 -0
- package/dist/websocket-api.d.cts.map +1 -0
- package/dist/websocket-api.d.mts +449 -0
- package/dist/websocket-api.d.mts.map +1 -0
- package/dist/websocket-api.mjs +755 -0
- package/dist/websocket-api.mjs.map +1 -0
- package/package.json +52 -31
- package/dist/stages-BSCF19o2.d.cts.map +0 -1
- package/dist/stages-BSCF19o2.d.mts.map +0 -1
|
@@ -5,8 +5,8 @@ import { c as EndpointSchemas, i as Endpoint } from "../Endpoint-BEh-jW-f.cjs";
|
|
|
5
5
|
import { t as Queue } from "../Queue-C4rijiM7.cjs";
|
|
6
6
|
import { t as Subscriber } from "../Subscriber-BdCtfFXL.cjs";
|
|
7
7
|
import { t as KyselyDatabase } from "../kysely-BHYV-WC-.cjs";
|
|
8
|
-
import { t as Fake } from "../fake-
|
|
9
|
-
import { o as TestStage } from "../stages-
|
|
8
|
+
import { t as Fake } from "../fake-BUgcX2Dk.cjs";
|
|
9
|
+
import { o as TestStage } from "../stages-DaTaoQei.cjs";
|
|
10
10
|
import { Logger } from "@geekmidas/logger";
|
|
11
11
|
import { ComposableStandardSchema, InferComposableStandardSchema, InferStandardSchema } from "@geekmidas/schema";
|
|
12
12
|
import { Service, ServiceDiscovery, ServiceRecord } from "@geekmidas/services";
|
|
@@ -5,8 +5,8 @@ import { c as EndpointSchemas, i as Endpoint } from "../Endpoint-DTXDggNl.mjs";
|
|
|
5
5
|
import { t as Queue } from "../Queue-BnK3UH8r.mjs";
|
|
6
6
|
import { t as Subscriber } from "../Subscriber-DDo4HFNn.mjs";
|
|
7
7
|
import { t as KyselyDatabase } from "../kysely-CAW3QSqp.mjs";
|
|
8
|
-
import { t as Fake } from "../fake-
|
|
9
|
-
import { o as TestStage } from "../stages-
|
|
8
|
+
import { t as Fake } from "../fake-D472nkKb.mjs";
|
|
9
|
+
import { o as TestStage } from "../stages-DaTaoQei.mjs";
|
|
10
10
|
import { EventPublisher, ExtractPublisherMessage } from "@geekmidas/events";
|
|
11
11
|
import { Service, ServiceDiscovery, ServiceRecord } from "@geekmidas/services";
|
|
12
12
|
import { Kysely } from "kysely";
|
package/dist/credential.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { c as Credential, d as decodeCredentials, f as readCredentials, i as isFake, l as CredentialOptions, r as fake, t as Fake, u as MalformedCredential } from "./fake-
|
|
1
|
+
import { c as Credential, d as decodeCredentials, f as readCredentials, i as isFake, l as CredentialOptions, r as fake, t as Fake, u as MalformedCredential } from "./fake-BUgcX2Dk.cjs";
|
|
2
2
|
export { Credential, CredentialOptions, type Fake, MalformedCredential, decodeCredentials, fake, isFake, readCredentials };
|
package/dist/credential.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { c as Credential, d as decodeCredentials, f as readCredentials, i as isFake, l as CredentialOptions, r as fake, t as Fake, u as MalformedCredential } from "./fake-
|
|
1
|
+
import { c as Credential, d as decodeCredentials, f as readCredentials, i as isFake, l as CredentialOptions, r as fake, t as Fake, u as MalformedCredential } from "./fake-D472nkKb.mjs";
|
|
2
2
|
export { Credential, CredentialOptions, type Fake, MalformedCredential, decodeCredentials, fake, isFake, readCredentials };
|
package/dist/external-api.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as ExternalApi, i as isFake, n as FetchHandler, o as ExternalApiOptions, r as fake, s as ExternalApiUrl, t as Fake } from "./fake-
|
|
1
|
+
import { a as ExternalApi, i as isFake, n as FetchHandler, o as ExternalApiOptions, r as fake, s as ExternalApiUrl, t as Fake } from "./fake-BUgcX2Dk.cjs";
|
|
2
2
|
export { ExternalApi, ExternalApiOptions, ExternalApiUrl, type Fake, type FetchHandler, fake, isFake };
|
package/dist/external-api.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as ExternalApi, i as isFake, n as FetchHandler, o as ExternalApiOptions, r as fake, s as ExternalApiUrl, t as Fake } from "./fake-
|
|
1
|
+
import { a as ExternalApi, i as isFake, n as FetchHandler, o as ExternalApiOptions, r as fake, s as ExternalApiUrl, t as Fake } from "./fake-D472nkKb.mjs";
|
|
2
2
|
export { ExternalApi, ExternalApiOptions, ExternalApiUrl, type Fake, type FetchHandler, fake, isFake };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as StandardSchemaV1 } from "./index-DdRjYhiJ.cjs";
|
|
2
2
|
import { r as Consumable } from "./construct-interface-B1AfqRl4.cjs";
|
|
3
|
-
import { n as DeployedStage, r as LocalStage } from "./stages-
|
|
3
|
+
import { n as DeployedStage, r as LocalStage } from "./stages-DaTaoQei.cjs";
|
|
4
4
|
import { Service, ServiceRegisterOptions } from "@geekmidas/services";
|
|
5
5
|
import { ConstructName, Declaration } from "@geekmidas/manifest";
|
|
6
6
|
//#region src/credential.d.ts
|
|
@@ -198,4 +198,4 @@ declare const fake: {
|
|
|
198
198
|
declare function isFake(value: unknown): value is Fake;
|
|
199
199
|
//#endregion
|
|
200
200
|
export { ExternalApi as a, Credential as c, decodeCredentials as d, readCredentials as f, isFake as i, CredentialOptions as l, FetchHandler as n, ExternalApiOptions as o, fake as r, ExternalApiUrl as s, Fake as t, MalformedCredential as u };
|
|
201
|
-
//# sourceMappingURL=fake-
|
|
201
|
+
//# sourceMappingURL=fake-BUgcX2Dk.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fake-
|
|
1
|
+
{"version":3,"file":"fake-BUgcX2Dk.d.cts","names":["Value"],"sources":["../src/credential.ts","../src/external-api.ts","../src/fake.ts"],"mappings":";;;;;;;KAiEKA,QAAM,gBAAgB,oBAC1B,iBAAiB,YAAY;UAEb,kBAAkB,gBAAgB;;;;;;;;EAQlD,QAAQ;;;;;;;;;;EAUR;;cAGY,WACZ,+BACA,gBAAgB,mBAAmB,6BACvB,WAAW,OAAOA,QAAM;mBA6BlB;WApBT,IAAI;WACJ,SAAS,QAAQ,aAAa,QAAQA,QAAM;;;;;mBAMpC;;;;;;;;UAST;EAER,YACC,IAAI,cAAc,QACD,SAAS,kBAAkB;;;;;;;MAoBzC,qBAAqB;EAIzB,WAAW;UAUH;UAQA;;;;;;;;;;;iBAmBa,gBAAgB,gBAAgB,kBACrD,YACA,aACA,QAAQ,SACR,WAAW,sCACT,QAAQA,QAAM;;;;;;;;;;;iBAsBD,kBAAkB;;cAoBrB,4BAA4B;WAE9B;WACA;WACA;EAHV,YACU,YACA,aACA;;;;;KCpLN,MAAM,gBAAgB,oBAC1B,iBAAiB,YAAY;;;;;;;;;KAUlB,0CAEO,aAAa,gBAC3B,SAAS,sCACG,KAAK,aAAa;WACrB;;UAGG,mBAAmB,gBAAgB,kBAAkB;;;;;EAKrE,KAAK;;EAEL,aAAa;;EAEb,SAAS;IACR;IACA,aAAa,MAAM;QACd,UAAU,QAAQ;;cAGZ,YACZ,+BACA,gBAAgB,mBAAmB,kBACnC,8BACY,WAAW,OAAO;mBAeZ;WAXT,IAAI;WACJ,SAAS,QAAQ,aAAa,QAAQ;;mBAG9B;;UAGT;EAER,YACC,IAAI,cAAc,QACD,SAAS,mBAAmB,SAAS;;;;;;;MA0BnD,qBAAqB;EAIzB,WAAW;UAaG;;;;;;;;cCjHT;;UAGW;EAChB,MAAM,SAAS,UAAU,WAAW,QAAQ;;;;;;KAOxC,cAAc,cAClB,mBAAmB,0BAA0B,oBAC1C,iBAAiB,WAAW,WAC5B,mBAAmB,yBAAyB,WAC3C,iBAAiB,WAAW;;;;;;;;KAUrB;YACD;WACD;;WAGE;;WAEA,SAAS;;WAGT;;WAEA;;WAEA;;;WAIA;;;;;;;;cAUC;;EAEZ,IAAI,gBAAc,SACR,cAAY;IACV,aAAa,cAAc;MACpC;;EAUH,MAAM,gBAAc,eACN;IACF;IAAc,aAAa,cAAc;MAClD;;;;;;EAeH,WAAW,uBAAqB,aAClB,cAAc,eACzB;;;iBAMY,OAAO,iBAAiB,SAAS"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as StandardSchemaV1 } from "./index-DdRjYhiJ.mjs";
|
|
2
2
|
import { r as Consumable } from "./construct-interface-ZvYQbivO.mjs";
|
|
3
|
-
import { n as DeployedStage, r as LocalStage } from "./stages-
|
|
3
|
+
import { n as DeployedStage, r as LocalStage } from "./stages-DaTaoQei.mjs";
|
|
4
4
|
import { ConstructName, Declaration } from "@geekmidas/manifest";
|
|
5
5
|
import { Service, ServiceRegisterOptions } from "@geekmidas/services";
|
|
6
6
|
//#region src/credential.d.ts
|
|
@@ -198,4 +198,4 @@ declare const fake: {
|
|
|
198
198
|
declare function isFake(value: unknown): value is Fake;
|
|
199
199
|
//#endregion
|
|
200
200
|
export { ExternalApi as a, Credential as c, decodeCredentials as d, readCredentials as f, isFake as i, CredentialOptions as l, FetchHandler as n, ExternalApiOptions as o, fake as r, ExternalApiUrl as s, Fake as t, MalformedCredential as u };
|
|
201
|
-
//# sourceMappingURL=fake-
|
|
201
|
+
//# sourceMappingURL=fake-D472nkKb.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fake-
|
|
1
|
+
{"version":3,"file":"fake-D472nkKb.d.mts","names":["Value"],"sources":["../src/credential.ts","../src/external-api.ts","../src/fake.ts"],"mappings":";;;;;;;KAiEKA,QAAM,gBAAgB,oBAC1B,iBAAiB,YAAY;UAEb,kBAAkB,gBAAgB;;;;;;;;EAQlD,QAAQ;;;;;;;;;;EAUR;;cAGY,WACZ,+BACA,gBAAgB,mBAAmB,6BACvB,WAAW,OAAOA,QAAM;mBA6BlB;WApBT,IAAI;WACJ,SAAS,QAAQ,aAAa,QAAQA,QAAM;;;;;mBAMpC;;;;;;;;UAST;EAER,YACC,IAAI,cAAc,QACD,SAAS,kBAAkB;;;;;;;MAoBzC,qBAAqB;EAIzB,WAAW;UAUH;UAQA;;;;;;;;;;;iBAmBa,gBAAgB,gBAAgB,kBACrD,YACA,aACA,QAAQ,SACR,WAAW,sCACT,QAAQA,QAAM;;;;;;;;;;;iBAsBD,kBAAkB;;cAoBrB,4BAA4B;WAE9B;WACA;WACA;EAHV,YACU,YACA,aACA;;;;;KCpLN,MAAM,gBAAgB,oBAC1B,iBAAiB,YAAY;;;;;;;;;KAUlB,0CAEO,aAAa,gBAC3B,SAAS,sCACG,KAAK,aAAa;WACrB;;UAGG,mBAAmB,gBAAgB,kBAAkB;;;;;EAKrE,KAAK;;EAEL,aAAa;;EAEb,SAAS;IACR;IACA,aAAa,MAAM;QACd,UAAU,QAAQ;;cAGZ,YACZ,+BACA,gBAAgB,mBAAmB,kBACnC,8BACY,WAAW,OAAO;mBAeZ;WAXT,IAAI;WACJ,SAAS,QAAQ,aAAa,QAAQ;;mBAG9B;;UAGT;EAER,YACC,IAAI,cAAc,QACD,SAAS,mBAAmB,SAAS;;;;;;;MA0BnD,qBAAqB;EAIzB,WAAW;UAaG;;;;;;;;cCjHT;;UAGW;EAChB,MAAM,SAAS,UAAU,WAAW,QAAQ;;;;;;KAOxC,cAAc,cAClB,mBAAmB,0BAA0B,oBAC1C,iBAAiB,WAAW,WAC5B,mBAAmB,yBAAyB,WAC3C,iBAAiB,WAAW;;;;;;;;KAUrB;YACD;WACD;;WAGE;;WAEA,SAAS;;WAGT;;WAEA;;WAEA;;;WAIA;;;;;;;;cAUC;;EAEZ,IAAI,gBAAc,SACR,cAAY;IACV,aAAa,cAAc;MACpC;;EAUH,MAAM,gBAAc,eACN;IACF;IAAc,aAAa,cAAc;MAClD;;;;;;EAeH,WAAW,uBAAqB,aAClB,cAAc,eACzB;;;iBAMY,OAAO,iBAAiB,SAAS"}
|
package/dist/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { i as snifferContext, n as ConstructType, r as sniffService, t as Construct } from "./Construct-127M7yrl.cjs";
|
|
2
2
|
import { n as LowerHttpMethod, r as RemoveUndefined, t as HttpMethod } from "./types-DMuSQeLL.cjs";
|
|
3
3
|
import { i as TelemetryResponse, n as TelemetryContext, r as TelemetryRequest, t as Telemetry } from "./lambdaTelemetry-8vnmVZQ5.cjs";
|
|
4
|
-
import { a as Stages, i as SeedContext, n as DeployedStage, o as TestStage, r as LocalStage, t as AnyStage } from "./stages-
|
|
4
|
+
import { a as Stages, i as SeedContext, n as DeployedStage, o as TestStage, r as LocalStage, t as AnyStage } from "./stages-DaTaoQei.cjs";
|
|
5
5
|
import { Service, ServiceRecord } from "@geekmidas/services";
|
|
6
6
|
//#region src/shutdown.d.ts
|
|
7
7
|
/**
|
package/dist/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { i as snifferContext, n as ConstructType, r as sniffService, t as Construct } from "./Construct-DySlwh8o.mjs";
|
|
2
2
|
import { n as LowerHttpMethod, r as RemoveUndefined, t as HttpMethod } from "./types-DMuSQeLL.mjs";
|
|
3
3
|
import { i as TelemetryResponse, n as TelemetryContext, r as TelemetryRequest, t as Telemetry } from "./lambdaTelemetry-8vnmVZQ5.mjs";
|
|
4
|
-
import { a as Stages, i as SeedContext, n as DeployedStage, o as TestStage, r as LocalStage, t as AnyStage } from "./stages-
|
|
4
|
+
import { a as Stages, i as SeedContext, n as DeployedStage, o as TestStage, r as LocalStage, t as AnyStage } from "./stages-DaTaoQei.mjs";
|
|
5
5
|
import { Service, ServiceRecord } from "@geekmidas/services";
|
|
6
6
|
//#region src/shutdown.d.ts
|
|
7
7
|
/**
|
|
@@ -46,11 +46,28 @@ type AnyStage = LocalStage | TestStage | DeployedStage;
|
|
|
46
46
|
* if (stage === 'dev') await insertDemoTenant(db);
|
|
47
47
|
* }
|
|
48
48
|
* ```
|
|
49
|
+
*
|
|
50
|
+
* A seed reaching a construct's service — a bucket, a cache — builds it from
|
|
51
|
+
* the stage's `env`, as a handler's service is built from its own:
|
|
52
|
+
*
|
|
53
|
+
* ```ts
|
|
54
|
+
* export async function seed(db, { stage, env }: SeedContext) {
|
|
55
|
+
* const bucket = await assets.service.register({
|
|
56
|
+
* envParser: new EnvironmentParser(env),
|
|
57
|
+
* context: serviceContext,
|
|
58
|
+
* });
|
|
59
|
+
* }
|
|
60
|
+
* ```
|
|
49
61
|
*/
|
|
50
62
|
interface SeedContext {
|
|
51
63
|
/** The stage being seeded: the local one, `test`, or a deployed one. */
|
|
52
64
|
stage: AnyStage;
|
|
65
|
+
/**
|
|
66
|
+
* The stage's resolved environment — every construct's URL, as the runner
|
|
67
|
+
* resolved it. Not `process.env`, which a seed run never populates.
|
|
68
|
+
*/
|
|
69
|
+
env: Readonly<Record<string, string | undefined>>;
|
|
53
70
|
}
|
|
54
71
|
//#endregion
|
|
55
72
|
export { Stages as a, SeedContext as i, DeployedStage as n, TestStage as o, LocalStage as r, AnyStage as t };
|
|
56
|
-
//# sourceMappingURL=stages-
|
|
73
|
+
//# sourceMappingURL=stages-DaTaoQei.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stages-DaTaoQei.d.cts","names":[],"sources":["../src/stages.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;UAuBiB;;KAGZ,SAAS,uBAAuB,kBACnC,KAAK,aAAa,2BAEjB;;KAIS,aAAa;;KAGb,gBAAgB;;KAGhB;;KAGA,WAAW,aAAa,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;UA6B/B;;EAEhB,OAAO;;;;;EAKP,KAAK,SAAS"}
|
|
@@ -46,11 +46,28 @@ type AnyStage = LocalStage | TestStage | DeployedStage;
|
|
|
46
46
|
* if (stage === 'dev') await insertDemoTenant(db);
|
|
47
47
|
* }
|
|
48
48
|
* ```
|
|
49
|
+
*
|
|
50
|
+
* A seed reaching a construct's service — a bucket, a cache — builds it from
|
|
51
|
+
* the stage's `env`, as a handler's service is built from its own:
|
|
52
|
+
*
|
|
53
|
+
* ```ts
|
|
54
|
+
* export async function seed(db, { stage, env }: SeedContext) {
|
|
55
|
+
* const bucket = await assets.service.register({
|
|
56
|
+
* envParser: new EnvironmentParser(env),
|
|
57
|
+
* context: serviceContext,
|
|
58
|
+
* });
|
|
59
|
+
* }
|
|
60
|
+
* ```
|
|
49
61
|
*/
|
|
50
62
|
interface SeedContext {
|
|
51
63
|
/** The stage being seeded: the local one, `test`, or a deployed one. */
|
|
52
64
|
stage: AnyStage;
|
|
65
|
+
/**
|
|
66
|
+
* The stage's resolved environment — every construct's URL, as the runner
|
|
67
|
+
* resolved it. Not `process.env`, which a seed run never populates.
|
|
68
|
+
*/
|
|
69
|
+
env: Readonly<Record<string, string | undefined>>;
|
|
53
70
|
}
|
|
54
71
|
//#endregion
|
|
55
72
|
export { Stages as a, SeedContext as i, DeployedStage as n, TestStage as o, LocalStage as r, AnyStage as t };
|
|
56
|
-
//# sourceMappingURL=stages-
|
|
73
|
+
//# sourceMappingURL=stages-DaTaoQei.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stages-DaTaoQei.d.mts","names":[],"sources":["../src/stages.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;UAuBiB;;KAGZ,SAAS,uBAAuB,kBACnC,KAAK,aAAa,2BAEjB;;KAIS,aAAa;;KAGb,gBAAgB;;KAGhB;;KAGA,WAAW,aAAa,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;UA6B/B;;EAEhB,OAAO;;;;;EAKP,KAAK,SAAS"}
|