@geekmidas/constructs 10.0.0-alpha.20 → 10.0.0-alpha.22

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.
Files changed (68) hide show
  1. package/README.md +48 -0
  2. package/dist/{Endpoint-BxkRWQ8G.d.mts → Endpoint-Bmi2-PBN.d.mts} +2 -2
  3. package/dist/{Endpoint-BxkRWQ8G.d.mts.map → Endpoint-Bmi2-PBN.d.mts.map} +1 -1
  4. package/dist/{Endpoint-DbYQJgb-.d.cts → Endpoint-CjvraSfp.d.cts} +2 -2
  5. package/dist/{Endpoint-DbYQJgb-.d.cts.map → Endpoint-CjvraSfp.d.cts.map} +1 -1
  6. package/dist/{EndpointFactory-T06kTFHg.d.mts → EndpointFactory-BFfvgko6.d.mts} +2 -2
  7. package/dist/{EndpointFactory-DE6nKtFZ.d.cts.map → EndpointFactory-BFfvgko6.d.mts.map} +1 -1
  8. package/dist/{EndpointFactory-DE6nKtFZ.d.cts → EndpointFactory-vfC3NiJi.d.cts} +2 -2
  9. package/dist/{EndpointFactory-T06kTFHg.d.mts.map → EndpointFactory-vfC3NiJi.d.cts.map} +1 -1
  10. package/dist/Queue-BB2-DgqJ.cjs +123 -0
  11. package/dist/Queue-BB2-DgqJ.cjs.map +1 -0
  12. package/dist/Queue-Dfumm1WR.mjs +118 -0
  13. package/dist/Queue-Dfumm1WR.mjs.map +1 -0
  14. package/dist/Topic-BaNCgP61.cjs +107 -0
  15. package/dist/Topic-BaNCgP61.cjs.map +1 -0
  16. package/dist/Topic-QqnO_6Dl.mjs +102 -0
  17. package/dist/Topic-QqnO_6Dl.mjs.map +1 -0
  18. package/dist/adaptors/aws.d.cts +1 -1
  19. package/dist/adaptors/aws.d.mts +1 -1
  20. package/dist/adaptors/hono.d.cts +1 -1
  21. package/dist/adaptors/hono.d.mts +1 -1
  22. package/dist/adaptors/testing.cjs +315 -9
  23. package/dist/adaptors/testing.cjs.map +1 -1
  24. package/dist/adaptors/testing.d.cts +129 -8
  25. package/dist/adaptors/testing.d.cts.map +1 -1
  26. package/dist/adaptors/testing.d.mts +129 -8
  27. package/dist/adaptors/testing.d.mts.map +1 -1
  28. package/dist/adaptors/testing.mjs +307 -8
  29. package/dist/adaptors/testing.mjs.map +1 -1
  30. package/dist/{auth-BlO8MUkR.d.cts → auth-C_fHD1We.d.cts} +9 -1
  31. package/dist/{auth-BlO8MUkR.d.cts.map → auth-C_fHD1We.d.cts.map} +1 -1
  32. package/dist/{auth-CHWIdcQO.d.mts → auth-D_Ntp1Nj.d.mts} +9 -1
  33. package/dist/{auth-CHWIdcQO.d.mts.map → auth-D_Ntp1Nj.d.mts.map} +1 -1
  34. package/dist/auth.cjs +15 -2
  35. package/dist/auth.cjs.map +1 -1
  36. package/dist/auth.d.cts +1 -1
  37. package/dist/auth.d.mts +1 -1
  38. package/dist/auth.mjs +15 -2
  39. package/dist/auth.mjs.map +1 -1
  40. package/dist/cache-AgQUMma6.d.mts +44 -0
  41. package/dist/cache-AgQUMma6.d.mts.map +1 -0
  42. package/dist/cache-obq0fOIM.d.cts +44 -0
  43. package/dist/cache-obq0fOIM.d.cts.map +1 -0
  44. package/dist/cache.d.cts +2 -43
  45. package/dist/cache.d.mts +2 -43
  46. package/dist/database/kysely.d.cts +2 -149
  47. package/dist/database/kysely.d.mts +2 -149
  48. package/dist/endpoints/index.d.cts +2 -2
  49. package/dist/endpoints/index.d.mts +2 -2
  50. package/dist/kysely-CXi49zc2.d.cts +150 -0
  51. package/dist/kysely-CXi49zc2.d.cts.map +1 -0
  52. package/dist/kysely-D3-G5b0j.d.mts +150 -0
  53. package/dist/kysely-D3-G5b0j.d.mts.map +1 -0
  54. package/dist/queue/index.cjs +3 -116
  55. package/dist/queue/index.cjs.map +1 -1
  56. package/dist/queue/index.mjs +1 -114
  57. package/dist/queue/index.mjs.map +1 -1
  58. package/dist/rest-api.d.cts +2 -2
  59. package/dist/rest-api.d.mts +2 -2
  60. package/dist/topic/index.cjs +3 -100
  61. package/dist/topic/index.cjs.map +1 -1
  62. package/dist/topic/index.mjs +1 -98
  63. package/dist/topic/index.mjs.map +1 -1
  64. package/package.json +44 -40
  65. package/dist/cache.d.cts.map +0 -1
  66. package/dist/cache.d.mts.map +0 -1
  67. package/dist/database/kysely.d.cts.map +0 -1
  68. package/dist/database/kysely.d.mts.map +0 -1
@@ -1,103 +1,6 @@
1
- import { t as Construct } from "../Construct-Detz65RA.mjs";
2
1
  import { t as cloneWith } from "../clone-EKNovYHu.mjs";
3
- import { canonicalId, provideKey, serviceKey } from "@geekmidas/manifest";
2
+ import { t as Topic } from "../Topic-QqnO_6Dl.mjs";
4
3
  import { DEFAULT_LOGGER } from "@geekmidas/logger/console";
5
- import { Publisher } from "@geekmidas/events";
6
- //#region src/topic/Topic.ts
7
- /**
8
- * A topic — pub/sub fan-out. Unlike a `Queue` (point-to-point, one consumer), a
9
- * topic is a *resource* owned by no single handler: it declares the event
10
- * contract, derives a typed producer (`topic.publisher`), and any number of
11
- * subscribers (`s.topic(topic)`) bind to it. `gkm build` discovers it into the
12
- * manifest's `topics` field; infra provisions an SNS topic.
13
- *
14
- * This replaces hand-writing a publisher `Service`: the publisher is *derived*
15
- * from the declared event contract, the same way `Queue` derives its publisher.
16
- */
17
- var Topic = class extends Construct {
18
- name;
19
- eventSchemas;
20
- __IS_TOPIC__ = true;
21
- static isTopic(obj) {
22
- return Boolean(obj && obj.__IS_TOPIC__ === true && obj.type === "dev.geekmidas.resource.topic");
23
- }
24
- /**
25
- * The canonical id this topic is declared under.
26
- *
27
- * Derived from the name, so `users` and `Users` are one topic. The name is
28
- * left alone: subscribers bind to it and it is what the broker routes on.
29
- */
30
- id;
31
- /**
32
- * The producer's env key, read by both {@link declare} and
33
- * {@link publisher} so the two cannot drift.
34
- */
35
- connectionKey;
36
- constructor(name, eventSchemas, logger = DEFAULT_LOGGER) {
37
- super("dev.geekmidas.resource.topic", logger, [], []);
38
- this.name = name;
39
- this.eventSchemas = eventSchemas;
40
- this.id = canonicalId(name);
41
- this.connectionKey = provideKey(this.id, "publisherConnectionString");
42
- }
43
- /**
44
- * What this topic is in the manifest.
45
- *
46
- * Only the producer's key: a subscriber is *bound* to a topic rather than
47
- * depending on it, so the binding is an edge the deploy target reads and not
48
- * an env key anyone can hold. Locally both sides meet on the same broker.
49
- */
50
- declare() {
51
- return [{
52
- kind: "topic",
53
- id: this.id,
54
- provides: [this.connectionKey],
55
- events: this.eventTypes,
56
- subscribers: []
57
- }];
58
- }
59
- /** The event type names this topic carries. */
60
- get eventTypes() {
61
- return Object.keys(this.eventSchemas);
62
- }
63
- /**
64
- * The producer side — a `Service` exposing an `EventPublisher` typed to the
65
- * union of this topic's events. Inject via `.publisher(topic.publisher)` (for
66
- * declarative `.event(...)`) or `.services([topic.publisher])` (to publish
67
- * imperatively). Reads `<NAME>_PUBLISHER_CONNECTION_STRING` and selects the
68
- * transport from the URL protocol — `pgboss://` locally, `sns://` deployed.
69
- *
70
- * Because it's a `Service`, the connection-string requirement is sniffed into
71
- * the manifest of whatever construct injects it (least-privilege linking).
72
- */
73
- /**
74
- * The topic as a dependency — what `.dependsOn([users])` dissolves into,
75
- * reachable as `services.users`.
76
- *
77
- * It is the producer, because publishing is the only thing depending on a
78
- * topic can mean: a subscriber *binds* with `s.topic(…)` instead, and is
79
- * deliberately never handed this. {@link publisher} is the same service
80
- * under its older `<name>Publisher` key.
81
- */
82
- get service() {
83
- const { register } = this.publisher;
84
- return {
85
- serviceName: serviceKey(this.id),
86
- register
87
- };
88
- }
89
- get publisher() {
90
- const envVar = this.connectionKey;
91
- return {
92
- serviceName: `${this.name}Publisher`,
93
- async register({ envParser }) {
94
- const { connectionString } = envParser.create((get) => ({ connectionString: get(envVar).string() })).parse();
95
- return Publisher.fromConnectionString(connectionString);
96
- }
97
- };
98
- }
99
- };
100
- //#endregion
101
4
  //#region src/topic/TopicBuilder.ts
102
5
  /**
103
6
  * Builds a {@link Topic} — `t.topic('users').events({ 'user.created': schema, … })`.
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","names":[],"sources":["../../src/topic/Topic.ts","../../src/topic/TopicBuilder.ts","../../src/topic/index.ts"],"sourcesContent":["import {\n\ttype EventPublisher,\n\ttype EventPublisherConnectionString,\n\ttype PublishableMessage,\n\tPublisher,\n} from '@geekmidas/events';\nimport type { Logger } from '@geekmidas/logger';\nimport { DEFAULT_LOGGER } from '@geekmidas/logger/console';\nimport {\n\tcanonicalId,\n\ttype Declaration,\n\tprovideKey,\n\tserviceKey,\n} from '@geekmidas/manifest';\nimport type { InferStandardSchema } from '@geekmidas/schema';\nimport type { Service } from '@geekmidas/services';\nimport type { StandardSchemaV1 } from '@standard-schema/spec';\nimport { Construct, ConstructType } from '../Construct';\n\n/** A topic's event contract — a map of event type → payload schema. */\nexport type TopicEvents = Record<string, StandardSchemaV1>;\n\n/**\n * The union of wire messages a topic carries, derived from its event map:\n * `{ type: 'user.created'; payload: … } | { type: 'user.updated'; payload: … }`.\n */\nexport type TopicMessage<TEvents extends TopicEvents> = {\n\t[K in keyof TEvents & string]: PublishableMessage<\n\t\tK,\n\t\tInferStandardSchema<TEvents[K]>\n\t>;\n}[keyof TEvents & string];\n\n/**\n * A topic — pub/sub fan-out. Unlike a `Queue` (point-to-point, one consumer), a\n * topic is a *resource* owned by no single handler: it declares the event\n * contract, derives a typed producer (`topic.publisher`), and any number of\n * subscribers (`s.topic(topic)`) bind to it. `gkm build` discovers it into the\n * manifest's `topics` field; infra provisions an SNS topic.\n *\n * This replaces hand-writing a publisher `Service`: the publisher is *derived*\n * from the declared event contract, the same way `Queue` derives its publisher.\n */\nexport class Topic<\n\tTName extends string = string,\n\tTEvents extends TopicEvents = TopicEvents,\n> extends Construct {\n\t__IS_TOPIC__ = true;\n\n\tstatic isTopic(obj: unknown): obj is Topic<string, TopicEvents> {\n\t\treturn Boolean(\n\t\t\tobj &&\n\t\t\t\t(obj as { __IS_TOPIC__?: boolean }).__IS_TOPIC__ === true &&\n\t\t\t\t(obj as Construct).type === ConstructType.Topic,\n\t\t);\n\t}\n\n\t/**\n\t * The canonical id this topic is declared under.\n\t *\n\t * Derived from the name, so `users` and `Users` are one topic. The name is\n\t * left alone: subscribers bind to it and it is what the broker routes on.\n\t */\n\treadonly id: string;\n\n\t/**\n\t * The producer's env key, read by both {@link declare} and\n\t * {@link publisher} so the two cannot drift.\n\t */\n\tprivate readonly connectionKey: string;\n\n\tconstructor(\n\t\tpublic readonly name: TName,\n\t\t/**\n\t\t * The event contract — a map of event type → payload schema. Named\n\t\t * `eventSchemas` (not `events`) to avoid clashing with `Construct.events`,\n\t\t * which is the array of `MappedEvent`s a construct *publishes*.\n\t\t */\n\t\tpublic readonly eventSchemas: TEvents,\n\t\tlogger: Logger = DEFAULT_LOGGER,\n\t) {\n\t\tsuper(ConstructType.Topic, logger, [], []);\n\n\t\tthis.id = canonicalId(name);\n\t\tthis.connectionKey = provideKey(this.id, 'publisherConnectionString');\n\t}\n\n\t/**\n\t * What this topic is in the manifest.\n\t *\n\t * Only the producer's key: a subscriber is *bound* to a topic rather than\n\t * depending on it, so the binding is an edge the deploy target reads and not\n\t * an env key anyone can hold. Locally both sides meet on the same broker.\n\t */\n\tdeclare(): Declaration[] {\n\t\treturn [\n\t\t\t{\n\t\t\t\tkind: 'topic',\n\t\t\t\tid: this.id,\n\t\t\t\tprovides: [this.connectionKey],\n\t\t\t\t// The contract this topic carries. Structural: which events exist\n\t\t\t\t// is a fact about the application, and a subscriber binding to one\n\t\t\t\t// that does not is a mistake worth catching at build.\n\t\t\t\tevents: this.eventTypes,\n\t\t\t\t// Bound rather than declared here — a subscriber names the topic,\n\t\t\t\t// not the other way round — so the build fills these from what it\n\t\t\t\t// found. Nested when it does, because position is the trigger.\n\t\t\t\tsubscribers: [],\n\t\t\t},\n\t\t];\n\t}\n\n\t/** The event type names this topic carries. */\n\tget eventTypes(): (keyof TEvents & string)[] {\n\t\treturn Object.keys(this.eventSchemas) as (keyof TEvents & string)[];\n\t}\n\n\t/**\n\t * The producer side — a `Service` exposing an `EventPublisher` typed to the\n\t * union of this topic's events. Inject via `.publisher(topic.publisher)` (for\n\t * declarative `.event(...)`) or `.services([topic.publisher])` (to publish\n\t * imperatively). Reads `<NAME>_PUBLISHER_CONNECTION_STRING` and selects the\n\t * transport from the URL protocol — `pgboss://` locally, `sns://` deployed.\n\t *\n\t * Because it's a `Service`, the connection-string requirement is sniffed into\n\t * the manifest of whatever construct injects it (least-privilege linking).\n\t */\n\t/**\n\t * The topic as a dependency — what `.dependsOn([users])` dissolves into,\n\t * reachable as `services.users`.\n\t *\n\t * It is the producer, because publishing is the only thing depending on a\n\t * topic can mean: a subscriber *binds* with `s.topic(…)` instead, and is\n\t * deliberately never handed this. {@link publisher} is the same service\n\t * under its older `<name>Publisher` key.\n\t */\n\tget service(): Service<\n\t\tUncapitalize<TName>,\n\t\tEventPublisher<TopicMessage<TEvents>>\n\t> {\n\t\tconst { register } = this.publisher;\n\n\t\treturn {\n\t\t\tserviceName: serviceKey(this.id) as Uncapitalize<TName>,\n\t\t\tregister,\n\t\t};\n\t}\n\n\tget publisher(): Service<\n\t\t`${TName}Publisher`,\n\t\tEventPublisher<TopicMessage<TEvents>>\n\t> {\n\t\tconst envVar = this.connectionKey;\n\t\treturn {\n\t\t\tserviceName: `${this.name}Publisher`,\n\t\t\tasync register({ envParser }) {\n\t\t\t\tconst { connectionString } = envParser\n\t\t\t\t\t.create((get) => ({\n\t\t\t\t\t\tconnectionString: get(envVar).string(),\n\t\t\t\t\t}))\n\t\t\t\t\t.parse();\n\n\t\t\t\treturn Publisher.fromConnectionString<TopicMessage<TEvents>>(\n\t\t\t\t\tconnectionString as EventPublisherConnectionString,\n\t\t\t\t);\n\t\t\t},\n\t\t};\n\t}\n}\n","import type { Logger } from '@geekmidas/logger';\nimport { DEFAULT_LOGGER } from '@geekmidas/logger/console';\nimport { cloneWith } from '../clone';\nimport { Topic, type TopicEvents } from './Topic';\n\n/**\n * Builds a {@link Topic} — `t.topic('users').events({ 'user.created': schema, … })`.\n * The event map is the topic's contract: it types the derived `topic.publisher`\n * and the subscribers that bind via `s.topic(topic)`.\n */\nexport class TopicBuilder<\n\tTName extends string = string,\n\tTEvents extends TopicEvents = TopicEvents,\n> {\n\tprivate _name?: string;\n\tprivate _logger: Logger = DEFAULT_LOGGER;\n\n\t/** The topic name — drives the infra topic and its `<NAME>_*` env vars. */\n\ttopic<T extends string>(name: T): TopicBuilder<T, TEvents> {\n\t\treturn cloneWith(this, { _name: name }) as unknown as TopicBuilder<\n\t\t\tT,\n\t\t\tTEvents\n\t\t>;\n\t}\n\n\tlogger(logger: Logger): this {\n\t\treturn cloneWith(this, { _logger: logger });\n\t}\n\n\t/**\n\t * The event contract — a map of event type → payload schema. Building the\n\t * topic requires this; it's what types the publisher and subscribers.\n\t */\n\tevents<T extends TopicEvents>(events: T): Topic<TName, T> {\n\t\tif (!this._name) {\n\t\t\tthrow new Error(\n\t\t\t\t'Topic requires a name — call .topic(name) before .events().',\n\t\t\t);\n\t\t}\n\n\t\tconst topic = new Topic<TName, T>(\n\t\t\tthis._name as TName,\n\t\t\tevents,\n\t\t\tthis._logger,\n\t\t);\n\n\t\t// No reset. `.events()` reads this builder and leaves it alone, so a\n\t\t// configured base stays usable for the next topic — and two chains off one\n\t\t// base cannot feed each other.\n\t\treturn topic;\n\t}\n}\n","export {\n\tTopic,\n\ttype TopicEvents,\n\ttype TopicMessage,\n} from './Topic';\n\nimport { TopicBuilder } from './TopicBuilder';\n\nexport { TopicBuilder } from './TopicBuilder';\n\nexport const t = new TopicBuilder();\n"],"mappings":";;;;;;;;;;;;;;;;AA2CA,IAAa,QAAb,cAGU,UAAU;CA0BF;CAMA;CA/BjB,eAAe;CAEf,OAAO,QAAQ,KAAiD;EAC/D,OAAO,QACN,OACE,IAAmC,iBAAiB,QACpD,IAAkB,SAAA,8BACrB;CACD;;;;;;;CAQA;;;;;CAMA;CAEA,YACC,MAMA,cACA,SAAiB,gBAChB;EACD,MAAA,gCAA2B,QAAQ,CAAC,GAAG,CAAC,CAAC;EATzB,KAAA,OAAA;EAMA,KAAA,eAAA;EAKhB,KAAK,KAAK,YAAY,IAAI;EAC1B,KAAK,gBAAgB,WAAW,KAAK,IAAI,2BAA2B;CACrE;;;;;;;;CASA,UAAyB;EACxB,OAAO,CACN;GACC,MAAM;GACN,IAAI,KAAK;GACT,UAAU,CAAC,KAAK,aAAa;GAI7B,QAAQ,KAAK;GAIb,aAAa,CAAC;EACf,CACD;CACD;;CAGA,IAAI,aAAyC;EAC5C,OAAO,OAAO,KAAK,KAAK,YAAY;CACrC;;;;;;;;;;;;;;;;;;;;CAqBA,IAAI,UAGF;EACD,MAAM,EAAE,aAAa,KAAK;EAE1B,OAAO;GACN,aAAa,WAAW,KAAK,EAAE;GAC/B;EACD;CACD;CAEA,IAAI,YAGF;EACD,MAAM,SAAS,KAAK;EACpB,OAAO;GACN,aAAa,GAAG,KAAK,KAAK;GAC1B,MAAM,SAAS,EAAE,aAAa;IAC7B,MAAM,EAAE,qBAAqB,UAC3B,QAAQ,SAAS,EACjB,kBAAkB,IAAI,MAAM,CAAC,CAAC,OAAO,EACtC,EAAE,CAAC,CACF,MAAM;IAER,OAAO,UAAU,qBAChB,gBACD;GACD;EACD;CACD;AACD;;;;;;;;AC9JA,IAAa,eAAb,MAGE;CACD;CACA,UAA0B;;CAG1B,MAAwB,MAAmC;EAC1D,OAAO,UAAU,MAAM,EAAE,OAAO,KAAK,CAAC;CAIvC;CAEA,OAAO,QAAsB;EAC5B,OAAO,UAAU,MAAM,EAAE,SAAS,OAAO,CAAC;CAC3C;;;;;CAMA,OAA8B,QAA4B;EACzD,IAAI,CAAC,KAAK,OACT,MAAM,IAAI,MACT,6DACD;EAYD,OAAO,IATW,MACjB,KAAK,OACL,QACA,KAAK,OAMK;CACZ;AACD;;;ACzCA,MAAa,IAAI,IAAI,aAAa"}
1
+ {"version":3,"file":"index.mjs","names":[],"sources":["../../src/topic/TopicBuilder.ts","../../src/topic/index.ts"],"sourcesContent":["import type { Logger } from '@geekmidas/logger';\nimport { DEFAULT_LOGGER } from '@geekmidas/logger/console';\nimport { cloneWith } from '../clone';\nimport { Topic, type TopicEvents } from './Topic';\n\n/**\n * Builds a {@link Topic} — `t.topic('users').events({ 'user.created': schema, … })`.\n * The event map is the topic's contract: it types the derived `topic.publisher`\n * and the subscribers that bind via `s.topic(topic)`.\n */\nexport class TopicBuilder<\n\tTName extends string = string,\n\tTEvents extends TopicEvents = TopicEvents,\n> {\n\tprivate _name?: string;\n\tprivate _logger: Logger = DEFAULT_LOGGER;\n\n\t/** The topic name — drives the infra topic and its `<NAME>_*` env vars. */\n\ttopic<T extends string>(name: T): TopicBuilder<T, TEvents> {\n\t\treturn cloneWith(this, { _name: name }) as unknown as TopicBuilder<\n\t\t\tT,\n\t\t\tTEvents\n\t\t>;\n\t}\n\n\tlogger(logger: Logger): this {\n\t\treturn cloneWith(this, { _logger: logger });\n\t}\n\n\t/**\n\t * The event contract — a map of event type → payload schema. Building the\n\t * topic requires this; it's what types the publisher and subscribers.\n\t */\n\tevents<T extends TopicEvents>(events: T): Topic<TName, T> {\n\t\tif (!this._name) {\n\t\t\tthrow new Error(\n\t\t\t\t'Topic requires a name — call .topic(name) before .events().',\n\t\t\t);\n\t\t}\n\n\t\tconst topic = new Topic<TName, T>(\n\t\t\tthis._name as TName,\n\t\t\tevents,\n\t\t\tthis._logger,\n\t\t);\n\n\t\t// No reset. `.events()` reads this builder and leaves it alone, so a\n\t\t// configured base stays usable for the next topic — and two chains off one\n\t\t// base cannot feed each other.\n\t\treturn topic;\n\t}\n}\n","export {\n\tTopic,\n\ttype TopicEvents,\n\ttype TopicMessage,\n} from './Topic';\n\nimport { TopicBuilder } from './TopicBuilder';\n\nexport { TopicBuilder } from './TopicBuilder';\n\nexport const t = new TopicBuilder();\n"],"mappings":";;;;;;;;;AAUA,IAAa,eAAb,MAGE;CACD;CACA,UAA0B;;CAG1B,MAAwB,MAAmC;EAC1D,OAAO,UAAU,MAAM,EAAE,OAAO,KAAK,CAAC;CAIvC;CAEA,OAAO,QAAsB;EAC5B,OAAO,UAAU,MAAM,EAAE,SAAS,OAAO,CAAC;CAC3C;;;;;CAMA,OAA8B,QAA4B;EACzD,IAAI,CAAC,KAAK,OACT,MAAM,IAAI,MACT,6DACD;EAYD,OAAO,IATW,MACjB,KAAK,OACL,QACA,KAAK,OAMK;CACZ;AACD;;;ACzCA,MAAa,IAAI,IAAI,aAAa"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@geekmidas/constructs",
3
- "version": "10.0.0-alpha.20",
3
+ "version": "10.0.0-alpha.22",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "exports": {
@@ -245,13 +245,13 @@
245
245
  "lodash.uniqby": "~4.7.0",
246
246
  "openapi-types": "~12.1.3",
247
247
  "qs": "~6.16.0",
248
- "@geekmidas/envkit": "^10.0.0-alpha.20",
249
- "@geekmidas/errors": "^10.0.0-alpha.20",
250
- "@geekmidas/events": "^10.0.0-alpha.20",
251
- "@geekmidas/logger": "^10.0.0-alpha.20",
252
- "@geekmidas/manifest": "^10.0.0-alpha.20",
253
- "@geekmidas/schema": "^10.0.0-alpha.20",
254
- "@geekmidas/services": "^10.0.0-alpha.20"
248
+ "@geekmidas/envkit": "^10.0.0-alpha.22",
249
+ "@geekmidas/errors": "^10.0.0-alpha.22",
250
+ "@geekmidas/events": "^10.0.0-alpha.22",
251
+ "@geekmidas/logger": "^10.0.0-alpha.22",
252
+ "@geekmidas/manifest": "^10.0.0-alpha.22",
253
+ "@geekmidas/schema": "^10.0.0-alpha.22",
254
+ "@geekmidas/services": "^10.0.0-alpha.22"
255
255
  },
256
256
  "devDependencies": {
257
257
  "@types/lodash.compact": "~3.0.9",
@@ -266,20 +266,20 @@
266
266
  "msw": "~2.15.0",
267
267
  "pg": "~8.23.0",
268
268
  "zod": "~4.6.5",
269
- "@geekmidas/audit": "^10.0.0-alpha.20",
270
- "@geekmidas/auth": "10.0.0-alpha.20",
271
- "@geekmidas/cache": "^10.0.0-alpha.20",
272
- "@geekmidas/db": "^10.0.0-alpha.20",
273
- "@geekmidas/emailkit": "^10.0.0-alpha.20",
274
- "@geekmidas/envkit": "^10.0.0-alpha.20",
275
- "@geekmidas/errors": "^10.0.0-alpha.20",
276
- "@geekmidas/events": "^10.0.0-alpha.20",
277
- "@geekmidas/logger": "^10.0.0-alpha.20",
278
- "@geekmidas/rate-limit": "^10.0.0-alpha.20",
279
- "@geekmidas/schema": "^10.0.0-alpha.20",
280
- "@geekmidas/services": "^10.0.0-alpha.20",
281
- "@geekmidas/telescope": "10.0.0-alpha.20",
282
- "@geekmidas/testkit": "^10.0.0-alpha.20"
269
+ "@geekmidas/audit": "^10.0.0-alpha.22",
270
+ "@geekmidas/auth": "10.0.0-alpha.22",
271
+ "@geekmidas/cache": "^10.0.0-alpha.22",
272
+ "@geekmidas/db": "^10.0.0-alpha.22",
273
+ "@geekmidas/emailkit": "^10.0.0-alpha.22",
274
+ "@geekmidas/envkit": "^10.0.0-alpha.22",
275
+ "@geekmidas/errors": "^10.0.0-alpha.22",
276
+ "@geekmidas/events": "^10.0.0-alpha.22",
277
+ "@geekmidas/logger": "^10.0.0-alpha.22",
278
+ "@geekmidas/rate-limit": "^10.0.0-alpha.22",
279
+ "@geekmidas/schema": "^10.0.0-alpha.22",
280
+ "@geekmidas/services": "^10.0.0-alpha.22",
281
+ "@geekmidas/telescope": "10.0.0-alpha.22",
282
+ "@geekmidas/testkit": "^10.0.0-alpha.22"
283
283
  },
284
284
  "peerDependencies": {
285
285
  "@middy/core": ">=7.9.2",
@@ -289,14 +289,15 @@
289
289
  "kysely": "~0.29.6",
290
290
  "msw": ">=2.15.0",
291
291
  "pg": ">=8.23.0",
292
- "@geekmidas/audit": "^10.0.0-alpha.20",
293
- "@geekmidas/auth": "10.0.0-alpha.20",
294
- "@geekmidas/cache": "^10.0.0-alpha.20",
295
- "@geekmidas/db": "^10.0.0-alpha.20",
296
- "@geekmidas/emailkit": "^10.0.0-alpha.20",
297
- "@geekmidas/rate-limit": "^10.0.0-alpha.20",
298
- "@geekmidas/storage": "^10.0.0-alpha.20",
299
- "@geekmidas/telescope": "10.0.0-alpha.20"
292
+ "@geekmidas/audit": "^10.0.0-alpha.22",
293
+ "@geekmidas/auth": "10.0.0-alpha.22",
294
+ "@geekmidas/cache": "^10.0.0-alpha.22",
295
+ "@geekmidas/db": "^10.0.0-alpha.22",
296
+ "@geekmidas/emailkit": "^10.0.0-alpha.22",
297
+ "@geekmidas/rate-limit": "^10.0.0-alpha.22",
298
+ "@geekmidas/storage": "^10.0.0-alpha.22",
299
+ "@geekmidas/telescope": "10.0.0-alpha.22",
300
+ "@geekmidas/testkit": "^10.0.0-alpha.22"
300
301
  },
301
302
  "peerDependenciesMeta": {
302
303
  "@geekmidas/audit": {
@@ -308,37 +309,40 @@
308
309
  "@geekmidas/db": {
309
310
  "optional": true
310
311
  },
312
+ "@geekmidas/emailkit": {
313
+ "optional": true
314
+ },
311
315
  "@geekmidas/rate-limit": {
312
316
  "optional": true
313
317
  },
314
- "@middy/core": {
318
+ "@geekmidas/storage": {
315
319
  "optional": true
316
320
  },
317
- "@types/aws-lambda": {
321
+ "@geekmidas/telescope": {
318
322
  "optional": true
319
323
  },
320
- "hono": {
324
+ "@geekmidas/testkit": {
321
325
  "optional": true
322
326
  },
323
- "msw": {
327
+ "@middy/core": {
324
328
  "optional": true
325
329
  },
326
- "@geekmidas/storage": {
330
+ "@types/aws-lambda": {
327
331
  "optional": true
328
332
  },
329
- "kysely": {
333
+ "better-auth": {
330
334
  "optional": true
331
335
  },
332
- "pg": {
336
+ "hono": {
333
337
  "optional": true
334
338
  },
335
- "@geekmidas/emailkit": {
339
+ "kysely": {
336
340
  "optional": true
337
341
  },
338
- "better-auth": {
342
+ "msw": {
339
343
  "optional": true
340
344
  },
341
- "@geekmidas/telescope": {
345
+ "pg": {
342
346
  "optional": true
343
347
  }
344
348
  },
@@ -1 +0,0 @@
1
- {"version":3,"file":"cache.d.cts","names":["CacheClient"],"sources":["../src/cache.ts"],"mappings":";;;;;iBA6BiB;;;;;;;;EAQhB;;EAEA;;qBAGY,MAAM,0CACP,UAAU,OAAOA;mBAaV;WAXT,IAAI;WACJ,SAAS,QAAQ,aAAa,QAAQA;;;;;mBAM9B;EAEjB,YACC,IAAI,cAAc,QACD,UAAS;EAc3B,WAAW;;;;;;;;;;;;UAuBG"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"cache.d.mts","names":["CacheClient"],"sources":["../src/cache.ts"],"mappings":";;;;;iBA6BiB;;;;;;;;EAQhB;;EAEA;;qBAGY,MAAM,0CACP,UAAU,OAAOA;mBAaV;WAXT,IAAI;WACJ,SAAS,QAAQ,aAAa,QAAQA;;;;;mBAM9B;EAEjB,YACC,IAAI,cAAc,QACD,UAAS;EAc3B,WAAW;;;;;;;;;;;;UAuBG"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"kysely.d.cts","names":[],"sources":["../../src/database/kysely.ts"],"mappings":";;;;;;;;;;;;;;;iBAwCiB,8BAA8B,KAAK;;;;;;;;EAQnD;;;;;;;;EAQA;;;;;;;;;;;EAWA,UAAU;;;UAID;EACT;EACA;EACA;;;;;;;;;qBAUY,eAAe,cAAc,0CAC9B,UAAU,OAAO,OAAO;mBAiBjB;WAfT,IAAI;WACJ,SAAS,QAAQ,aAAa,QAAQ,OAAO;;;;;mBAMrC;mBACA;mBACA;mBACA;mBACA;EAEjB,YACC,IAAI,cAAc,QACD,UAAS,uBAC1B,cAAc;EAyBf,WAAW;;;;;;;;;;;;;EAqDX,UAAU,iBAAiB,OAAO;;;;;;;;;;;;;;;;;;EAyBlC,MAAM,2BAA2B,cAChC,KAAI,cAAc,SAClB;IAAW;MACT,MAAM;;;;;;;;;EAeT,OAAO,UAAU,wBAChB,IAAI,cAAc,UAClB,UAAS,wBACP,eAAe,UAAU;;;;;;;;;;;;;MAoBxB,SAAS,WAAW,aAAa,eAAe,OAAO;UAQ7C;;;;;;;;;;;;;;;;;;;YAkEH,iBAAiB,IAAI,wBAAwB,KACxD,eAAe,IAAI"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"kysely.d.mts","names":[],"sources":["../../src/database/kysely.ts"],"mappings":";;;;;;;;;;;;;;;iBAwCiB,8BAA8B,KAAK;;;;;;;;EAQnD;;;;;;;;EAQA;;;;;;;;;;;EAWA,UAAU;;;UAID;EACT;EACA;EACA;;;;;;;;;qBAUY,eAAe,cAAc,0CAC9B,UAAU,OAAO,OAAO;mBAiBjB;WAfT,IAAI;WACJ,SAAS,QAAQ,aAAa,QAAQ,OAAO;;;;;mBAMrC;mBACA;mBACA;mBACA;mBACA;EAEjB,YACC,IAAI,cAAc,QACD,UAAS,uBAC1B,cAAc;EAyBf,WAAW;;;;;;;;;;;;;EAqDX,UAAU,iBAAiB,OAAO;;;;;;;;;;;;;;;;;;EAyBlC,MAAM,2BAA2B,cAChC,KAAI,cAAc,SAClB;IAAW;MACT,MAAM;;;;;;;;;EAeT,OAAO,UAAU,wBAChB,IAAI,cAAc,UAClB,UAAS,wBACP,eAAe,UAAU;;;;;;;;;;;;;MAoBxB,SAAS,WAAW,aAAa,eAAe,OAAO;UAQ7C;;;;;;;;;;;;;;;;;;;YAkEH,iBAAiB,IAAI,wBAAwB,KACxD,eAAe,IAAI"}