@geekmidas/constructs 10.0.0-alpha.1 → 10.0.0-alpha.100
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 +223 -158
- package/dist/{Construct-CdhThxDI.mjs → Construct-B1vGBPme.mjs} +45 -33
- package/dist/Construct-B1vGBPme.mjs.map +1 -0
- package/dist/Construct-BQALFCh2.d.cts +230 -0
- package/dist/Construct-BQALFCh2.d.cts.map +1 -0
- package/dist/{Construct-roId57cU.cjs → Construct-DUSXuTHP.cjs} +65 -47
- package/dist/Construct-DUSXuTHP.cjs.map +1 -0
- package/dist/Construct-QXnl3VqT.d.mts +230 -0
- package/dist/Construct-QXnl3VqT.d.mts.map +1 -0
- package/dist/Cron-DI3nKoic.d.cts +45 -0
- package/dist/Cron-DI3nKoic.d.cts.map +1 -0
- package/dist/Cron-uYAHPnp7.d.mts +45 -0
- package/dist/Cron-uYAHPnp7.d.mts.map +1 -0
- package/dist/CronBuilder-C0Ek1-RA.cjs +121 -0
- package/dist/CronBuilder-C0Ek1-RA.cjs.map +1 -0
- package/dist/CronBuilder-DaSUm2Na.d.mts +47 -0
- package/dist/CronBuilder-DaSUm2Na.d.mts.map +1 -0
- package/dist/CronBuilder-Dmix_Pen.mjs +109 -0
- package/dist/CronBuilder-Dmix_Pen.mjs.map +1 -0
- package/dist/CronBuilder-g1lZLWyG.d.cts +47 -0
- package/dist/CronBuilder-g1lZLWyG.d.cts.map +1 -0
- package/dist/{Endpoint-BTj58Gob.mjs → Endpoint-BG4UJ9oA.mjs} +146 -109
- package/dist/Endpoint-BG4UJ9oA.mjs.map +1 -0
- package/dist/{Endpoint-BBkV6l0k.cjs → Endpoint-BoUg8ocM.cjs} +174 -131
- package/dist/Endpoint-BoUg8ocM.cjs.map +1 -0
- package/dist/{Endpoint-BKR5QH6O.d.mts → Endpoint-Du-NwPX2.d.mts} +83 -91
- package/dist/Endpoint-Du-NwPX2.d.mts.map +1 -0
- package/dist/{Endpoint-BQ9O0P1w.d.cts → Endpoint-aCvBMPoH.d.cts} +82 -90
- package/dist/Endpoint-aCvBMPoH.d.cts.map +1 -0
- package/dist/{EndpointFactory-BejSTzbB.mjs → EndpointFactory-BDtsrEvJ.mjs} +60 -77
- package/dist/EndpointFactory-BDtsrEvJ.mjs.map +1 -0
- package/dist/{EndpointFactory-DYoGLaIT.cjs → EndpointFactory-DJ7gXLpR.cjs} +96 -113
- package/dist/EndpointFactory-DJ7gXLpR.cjs.map +1 -0
- package/dist/{index-D5zqAJ2e.d.cts → EndpointFactory-DMYdJCOj.d.mts} +78 -134
- package/dist/EndpointFactory-DMYdJCOj.d.mts.map +1 -0
- package/dist/{index-Cvz551AO.d.mts → EndpointFactory-I7s1co3Y.d.cts} +79 -135
- package/dist/EndpointFactory-I7s1co3Y.d.cts.map +1 -0
- package/dist/Function-DuqGcbOI.d.mts +76 -0
- package/dist/Function-DuqGcbOI.d.mts.map +1 -0
- package/dist/Function-Pu-1kKZz.d.cts +76 -0
- package/dist/Function-Pu-1kKZz.d.cts.map +1 -0
- package/dist/{HonoEndpointAdaptor-7aYNdqJq.mjs → HonoEndpointAdaptor-PtPlbeKY.mjs} +75 -57
- package/dist/HonoEndpointAdaptor-PtPlbeKY.mjs.map +1 -0
- package/dist/{HonoEndpointAdaptor-wMsCyMgt.cjs → HonoEndpointAdaptor-zVzVLJEO.cjs} +83 -62
- package/dist/HonoEndpointAdaptor-zVzVLJEO.cjs.map +1 -0
- package/dist/Queue-A3wfD0it.cjs +109 -0
- package/dist/Queue-A3wfD0it.cjs.map +1 -0
- package/dist/Queue-D6USGS4q.mjs +104 -0
- package/dist/Queue-D6USGS4q.mjs.map +1 -0
- package/dist/{Queue-D6WeziRD.d.cts → Queue-DlsHRzUp.d.mts} +48 -48
- package/dist/Queue-DlsHRzUp.d.mts.map +1 -0
- package/dist/{Queue-DpUeqdC8.d.mts → Queue-HPyi0e1i.d.cts} +49 -49
- package/dist/Queue-HPyi0e1i.d.cts.map +1 -0
- package/dist/QueueBuilder-BjuF0UBl.cjs +135 -0
- package/dist/QueueBuilder-BjuF0UBl.cjs.map +1 -0
- package/dist/QueueBuilder-Cue73M4t.mjs +118 -0
- package/dist/QueueBuilder-Cue73M4t.mjs.map +1 -0
- package/dist/QueueBuilder-OSi6LkV9.d.cts +75 -0
- package/dist/QueueBuilder-OSi6LkV9.d.cts.map +1 -0
- package/dist/QueueBuilder-QHsnVt1P.d.mts +75 -0
- package/dist/QueueBuilder-QHsnVt1P.d.mts.map +1 -0
- package/dist/{Subscriber-4rBJgDKI.d.mts → Subscriber-Bpp02cGr.d.cts} +30 -21
- package/dist/Subscriber-Bpp02cGr.d.cts.map +1 -0
- package/dist/{Subscriber-DVQowdyj.d.cts → Subscriber-CtN9R48-.d.mts} +29 -20
- package/dist/Subscriber-CtN9R48-.d.mts.map +1 -0
- package/dist/SubscriberBuilder-CDy4nHCz.mjs +134 -0
- package/dist/SubscriberBuilder-CDy4nHCz.mjs.map +1 -0
- package/dist/SubscriberBuilder-CuCMFpYW.d.mts +67 -0
- package/dist/SubscriberBuilder-CuCMFpYW.d.mts.map +1 -0
- package/dist/SubscriberBuilder-D_owVoHo.cjs +145 -0
- package/dist/SubscriberBuilder-D_owVoHo.cjs.map +1 -0
- package/dist/SubscriberBuilder-g3fAVWgs.d.cts +67 -0
- package/dist/SubscriberBuilder-g3fAVWgs.d.cts.map +1 -0
- package/dist/Topic-D74b5cgs.mjs +99 -0
- package/dist/Topic-D74b5cgs.mjs.map +1 -0
- package/dist/Topic-GHxcU8AG.cjs +104 -0
- package/dist/Topic-GHxcU8AG.cjs.map +1 -0
- package/dist/adaptors/aws.cjs +332 -188
- package/dist/adaptors/aws.cjs.map +1 -1
- package/dist/adaptors/aws.d.cts +114 -44
- package/dist/adaptors/aws.d.cts.map +1 -1
- package/dist/adaptors/aws.d.mts +114 -44
- package/dist/adaptors/aws.d.mts.map +1 -1
- package/dist/adaptors/aws.mjs +308 -166
- package/dist/adaptors/aws.mjs.map +1 -1
- package/dist/adaptors/hono.cjs +3 -11
- package/dist/adaptors/hono.d.cts +7 -16
- package/dist/adaptors/hono.d.cts.map +1 -1
- package/dist/adaptors/hono.d.mts +8 -17
- package/dist/adaptors/hono.d.mts.map +1 -1
- package/dist/adaptors/hono.mjs +2 -11
- package/dist/adaptors/testing.cjs +743 -90
- package/dist/adaptors/testing.cjs.map +1 -1
- package/dist/adaptors/testing.d.cts +351 -54
- package/dist/adaptors/testing.d.cts.map +1 -1
- package/dist/adaptors/testing.d.mts +351 -54
- package/dist/adaptors/testing.d.mts.map +1 -1
- package/dist/adaptors/testing.mjs +706 -71
- package/dist/adaptors/testing.mjs.map +1 -1
- package/dist/auth-BMCJN30Y.d.cts +268 -0
- package/dist/auth-BMCJN30Y.d.cts.map +1 -0
- package/dist/auth-CcuceLYo.d.mts +268 -0
- package/dist/auth-CcuceLYo.d.mts.map +1 -0
- package/dist/auth.cjs +302 -34
- package/dist/auth.cjs.map +1 -1
- package/dist/auth.d.cts +2 -108
- package/dist/auth.d.mts +2 -108
- package/dist/auth.mjs +290 -28
- package/dist/auth.mjs.map +1 -1
- package/dist/{cache-CdQ7OLpR.d.cts → cache-CXh6GIgb.d.mts} +4 -7
- package/dist/cache-CXh6GIgb.d.mts.map +1 -0
- package/dist/{cache-DYoJFcfd.d.mts → cache-DnGDGly3.d.cts} +4 -7
- package/dist/cache-DnGDGly3.d.cts.map +1 -0
- package/dist/cache.cjs +68 -2
- package/dist/cache.cjs.map +1 -0
- package/dist/cache.d.cts +1 -2
- package/dist/cache.d.mts +1 -2
- package/dist/cache.mjs +67 -2
- package/dist/cache.mjs.map +1 -0
- package/dist/cipher-C1lEFX63.mjs +225 -0
- package/dist/cipher-C1lEFX63.mjs.map +1 -0
- package/dist/cipher-CVxfwLjk.cjs +332 -0
- package/dist/cipher-CVxfwLjk.cjs.map +1 -0
- package/dist/{clone-DblgEZZa.mjs → clone-EKNovYHu.mjs} +3 -3
- package/dist/clone-EKNovYHu.mjs.map +1 -0
- package/dist/{clone-Dy0cR2SZ.cjs → clone-UGJpvQnL.cjs} +7 -8
- package/dist/clone-UGJpvQnL.cjs.map +1 -0
- package/dist/{construct-interface-BqwRNYA2.d.mts → construct-interface-B1AfqRl4.d.cts} +43 -12
- package/dist/construct-interface-B1AfqRl4.d.cts.map +1 -0
- package/dist/{construct-interface-D2nNkHUN.d.cts → construct-interface-DluK3_da.d.mts} +43 -12
- package/dist/construct-interface-DluK3_da.d.mts.map +1 -0
- package/dist/construct-interface.cjs +113 -7
- package/dist/construct-interface.cjs.map +1 -0
- package/dist/construct-interface.d.cts +2 -2
- package/dist/construct-interface.d.mts +2 -2
- package/dist/construct-interface.mjs +106 -2
- package/dist/construct-interface.mjs.map +1 -0
- package/dist/credential.cjs +77 -17
- package/dist/credential.cjs.map +1 -1
- package/dist/credential.d.cts +34 -9
- package/dist/credential.d.cts.map +1 -1
- package/dist/credential.d.mts +34 -9
- package/dist/credential.d.mts.map +1 -1
- package/dist/credential.mjs +71 -13
- package/dist/credential.mjs.map +1 -1
- package/dist/crons/index.cjs +189 -85
- package/dist/crons/index.cjs.map +1 -1
- package/dist/crons/index.d.cts +70 -48
- package/dist/crons/index.d.cts.map +1 -1
- package/dist/crons/index.d.mts +70 -48
- package/dist/crons/index.d.mts.map +1 -1
- package/dist/crons/index.mjs +183 -81
- package/dist/crons/index.mjs.map +1 -1
- package/dist/database/kysely.cjs +4 -181
- package/dist/database/kysely.d.cts +2 -152
- package/dist/database/kysely.d.mts +2 -152
- package/dist/database/kysely.mjs +2 -180
- package/dist/email.cjs +25 -12
- package/dist/email.cjs.map +1 -1
- package/dist/email.d.cts +3 -7
- package/dist/email.d.cts.map +1 -1
- package/dist/email.d.mts +3 -7
- package/dist/email.d.mts.map +1 -1
- package/dist/email.mjs +16 -3
- package/dist/email.mjs.map +1 -1
- package/dist/encryption.cjs +96 -0
- package/dist/encryption.cjs.map +1 -0
- package/dist/encryption.d.cts +117 -0
- package/dist/encryption.d.cts.map +1 -0
- package/dist/encryption.d.mts +117 -0
- package/dist/encryption.d.mts.map +1 -0
- package/dist/encryption.mjs +83 -0
- package/dist/encryption.mjs.map +1 -0
- package/dist/endpoints/index.cjs +8 -11
- package/dist/endpoints/index.d.cts +51 -7
- package/dist/endpoints/index.d.cts.map +1 -0
- package/dist/endpoints/index.d.mts +51 -7
- package/dist/endpoints/index.d.mts.map +1 -0
- package/dist/endpoints/index.mjs +6 -11
- package/dist/external-api-MJ8id87V.d.mts +105 -0
- package/dist/external-api-MJ8id87V.d.mts.map +1 -0
- package/dist/external-api-O107yzZJ.d.cts +105 -0
- package/dist/external-api-O107yzZJ.d.cts.map +1 -0
- package/dist/external-api.cjs +142 -0
- package/dist/external-api.cjs.map +1 -0
- package/dist/external-api.d.cts +2 -0
- package/dist/external-api.d.mts +2 -0
- package/dist/external-api.mjs +139 -0
- package/dist/external-api.mjs.map +1 -0
- package/dist/file-server.cjs +42 -10
- package/dist/file-server.cjs.map +1 -1
- package/dist/file-server.d.cts +6 -10
- package/dist/file-server.d.cts.map +1 -1
- package/dist/file-server.d.mts +6 -10
- package/dist/file-server.d.mts.map +1 -1
- package/dist/file-server.mjs +34 -2
- package/dist/file-server.mjs.map +1 -1
- package/dist/functions/index.cjs +2 -6
- package/dist/functions/index.d.cts +3 -4
- package/dist/functions/index.d.mts +3 -4
- package/dist/functions/index.mjs +2 -6
- package/dist/{functions-Cpff1uZH.mjs → functions-BFizikJU.mjs} +394 -243
- package/dist/functions-BFizikJU.mjs.map +1 -0
- package/dist/{functions-DukjG8ov.cjs → functions-CfzJG9hK.cjs} +432 -275
- package/dist/functions-CfzJG9hK.cjs.map +1 -0
- package/dist/index-BuzRvKOQ.d.cts +115 -0
- package/dist/index-BuzRvKOQ.d.cts.map +1 -0
- package/dist/index-CTkKOer4.d.mts +115 -0
- package/dist/index-CTkKOer4.d.mts.map +1 -0
- package/dist/index-CeEtxDmK.d.cts +79 -0
- package/dist/index-CeEtxDmK.d.cts.map +1 -0
- package/dist/index-CeEtxDmK.d.mts +79 -0
- package/dist/index-CeEtxDmK.d.mts.map +1 -0
- package/dist/index.cjs +6 -3
- package/dist/index.d.cts +27 -4
- package/dist/index.d.cts.map +1 -0
- package/dist/index.d.mts +27 -4
- package/dist/index.d.mts.map +1 -0
- package/dist/index.mjs +3 -3
- package/dist/kms-B-Hm3d5r.cjs +85 -0
- package/dist/kms-B-Hm3d5r.cjs.map +1 -0
- package/dist/kms-BdUlMJEZ.mjs +85 -0
- package/dist/kms-BdUlMJEZ.mjs.map +1 -0
- package/dist/kysely-Bii4l6eP.mjs +370 -0
- package/dist/kysely-Bii4l6eP.mjs.map +1 -0
- package/dist/kysely-CO_Dk43W.cjs +383 -0
- package/dist/kysely-CO_Dk43W.cjs.map +1 -0
- package/dist/kysely-D0bpzgPs.d.cts +175 -0
- package/dist/kysely-D0bpzgPs.d.cts.map +1 -0
- package/dist/kysely-DUqC3Ie0.d.mts +175 -0
- package/dist/kysely-DUqC3Ie0.d.mts.map +1 -0
- package/dist/{telemetry-C3L0iS28.d.cts → lambdaTelemetry-8vnmVZQ5.d.cts} +3 -6
- package/dist/lambdaTelemetry-8vnmVZQ5.d.cts.map +1 -0
- package/dist/{telemetry-D7bVFLGi.d.mts → lambdaTelemetry-8vnmVZQ5.d.mts} +3 -6
- package/dist/lambdaTelemetry-8vnmVZQ5.d.mts.map +1 -0
- package/dist/{lazyAccessors-DM6HcXQk.mjs → lazyAccessors-CFanua0O.mjs} +20 -21
- package/dist/lazyAccessors-CFanua0O.mjs.map +1 -0
- package/dist/{lazyAccessors-DrJj8NpA.cjs → lazyAccessors-hJKGv8Ay.cjs} +60 -62
- package/dist/lazyAccessors-hJKGv8Ay.cjs.map +1 -0
- package/dist/mobile-app.cjs +73 -0
- package/dist/mobile-app.cjs.map +1 -0
- package/dist/mobile-app.d.cts +61 -0
- package/dist/mobile-app.d.cts.map +1 -0
- package/dist/mobile-app.d.mts +61 -0
- package/dist/mobile-app.d.mts.map +1 -0
- package/dist/mobile-app.mjs +72 -0
- package/dist/mobile-app.mjs.map +1 -0
- package/dist/object-storage.cjs +18 -10
- package/dist/object-storage.cjs.map +1 -1
- package/dist/object-storage.d.cts +3 -7
- package/dist/object-storage.d.cts.map +1 -1
- package/dist/object-storage.d.mts +3 -7
- package/dist/object-storage.d.mts.map +1 -1
- package/dist/object-storage.mjs +11 -3
- package/dist/object-storage.mjs.map +1 -1
- package/dist/processAudits-BRRVVHUB.mjs +131 -0
- package/dist/processAudits-BRRVVHUB.mjs.map +1 -0
- package/dist/processAudits-DasOZjPl.cjs +154 -0
- package/dist/processAudits-DasOZjPl.cjs.map +1 -0
- package/dist/queue/index.cjs +6 -189
- package/dist/queue/index.d.cts +3 -60
- package/dist/queue/index.d.mts +3 -60
- package/dist/queue/index.mjs +3 -186
- package/dist/rest-api.cjs +92 -63
- package/dist/rest-api.cjs.map +1 -1
- package/dist/rest-api.d.cts +81 -61
- package/dist/rest-api.d.cts.map +1 -1
- package/dist/rest-api.d.mts +81 -61
- package/dist/rest-api.d.mts.map +1 -1
- package/dist/rest-api.mjs +84 -55
- package/dist/rest-api.mjs.map +1 -1
- package/dist/{chunk-DWy1uDak.cjs → rolldown-runtime-y5ARvAq5.cjs} +14 -18
- package/dist/runSubscriber-BHvJ8POr.mjs +109 -0
- package/dist/runSubscriber-BHvJ8POr.mjs.map +1 -0
- package/dist/runSubscriber-D8nLXIv1.cjs +126 -0
- package/dist/runSubscriber-D8nLXIv1.cjs.map +1 -0
- package/dist/shutdown-BMJmAhSt.cjs +38 -0
- package/dist/shutdown-BMJmAhSt.cjs.map +1 -0
- package/dist/shutdown-C7xa8x9S.mjs +27 -0
- package/dist/shutdown-C7xa8x9S.mjs.map +1 -0
- package/dist/site.cjs +35 -9
- package/dist/site.cjs.map +1 -1
- package/dist/site.d.cts +25 -22
- package/dist/site.d.cts.map +1 -1
- package/dist/site.d.mts +25 -22
- package/dist/site.d.mts.map +1 -1
- package/dist/site.mjs +31 -5
- package/dist/site.mjs.map +1 -1
- package/dist/stages-BSCF19o2.d.cts +56 -0
- package/dist/stages-BSCF19o2.d.cts.map +1 -0
- package/dist/stages-BSCF19o2.d.mts +56 -0
- package/dist/stages-BSCF19o2.d.mts.map +1 -0
- package/dist/subscribers/index.cjs +111 -101
- package/dist/subscribers/index.cjs.map +1 -1
- package/dist/subscribers/index.d.cts +44 -56
- package/dist/subscribers/index.d.cts.map +1 -1
- package/dist/subscribers/index.d.mts +44 -56
- package/dist/subscribers/index.d.mts.map +1 -1
- package/dist/subscribers/index.mjs +108 -98
- package/dist/subscribers/index.mjs.map +1 -1
- package/dist/surfaceEnv-CNimK76p.cjs +56 -0
- package/dist/surfaceEnv-CNimK76p.cjs.map +1 -0
- package/dist/surfaceEnv-wMT5QzgZ.mjs +45 -0
- package/dist/surfaceEnv-wMT5QzgZ.mjs.map +1 -0
- package/dist/telemetry-B48RLjyk.d.cts +40 -0
- package/dist/telemetry-B48RLjyk.d.cts.map +1 -0
- package/dist/telemetry-DRtT1_0A.d.mts +40 -0
- package/dist/telemetry-DRtT1_0A.d.mts.map +1 -0
- package/dist/telemetry.cjs +56 -0
- package/dist/telemetry.cjs.map +1 -0
- package/dist/telemetry.d.cts +2 -0
- package/dist/telemetry.d.mts +2 -0
- package/dist/telemetry.mjs +55 -0
- package/dist/telemetry.mjs.map +1 -0
- package/dist/topic/index.cjs +3 -137
- package/dist/topic/index.d.cts +2 -32
- package/dist/topic/index.d.mts +2 -32
- package/dist/topic/index.mjs +2 -134
- package/dist/tracing-CxaZ98IB.mjs +110 -0
- package/dist/tracing-CxaZ98IB.mjs.map +1 -0
- package/dist/tracing-DPMidF_r.cjs +127 -0
- package/dist/tracing-DPMidF_r.cjs.map +1 -0
- package/dist/{types-BlAkSuGI.d.cts → types-DMuSQeLL.d.cts} +3 -5
- package/dist/types-DMuSQeLL.d.cts.map +1 -0
- package/dist/{types-aKksMEWL.d.mts → types-DMuSQeLL.d.mts} +3 -5
- package/dist/types-DMuSQeLL.d.mts.map +1 -0
- package/dist/types.d.cts +1 -1
- package/dist/types.d.mts +1 -1
- package/dist/types.mjs +1 -0
- package/dist/worker.cjs +191 -0
- package/dist/worker.cjs.map +1 -0
- package/dist/worker.d.cts +171 -0
- package/dist/worker.d.cts.map +1 -0
- package/dist/worker.d.mts +171 -0
- package/dist/worker.d.mts.map +1 -0
- package/dist/worker.mjs +190 -0
- package/dist/worker.mjs.map +1 -0
- package/package.json +116 -70
- package/dist/AWSScheduledFunction-9bJS4WdJ.d.cts +0 -122
- package/dist/AWSScheduledFunction-9bJS4WdJ.d.cts.map +0 -1
- package/dist/AWSScheduledFunction-BJjj8B5V.mjs +0 -243
- package/dist/AWSScheduledFunction-BJjj8B5V.mjs.map +0 -1
- package/dist/AWSScheduledFunction-BO5iEMSh.d.mts +0 -122
- package/dist/AWSScheduledFunction-BO5iEMSh.d.mts.map +0 -1
- package/dist/AWSScheduledFunction-qu4ieRZR.cjs +0 -255
- package/dist/AWSScheduledFunction-qu4ieRZR.cjs.map +0 -1
- package/dist/Construct-B-xc0SE9.d.mts +0 -104
- package/dist/Construct-B-xc0SE9.d.mts.map +0 -1
- package/dist/Construct-CdhThxDI.mjs.map +0 -1
- package/dist/Construct-WhCXIOPV.d.cts +0 -104
- package/dist/Construct-WhCXIOPV.d.cts.map +0 -1
- package/dist/Construct-roId57cU.cjs.map +0 -1
- package/dist/Endpoint-BBkV6l0k.cjs.map +0 -1
- package/dist/Endpoint-BKR5QH6O.d.mts.map +0 -1
- package/dist/Endpoint-BQ9O0P1w.d.cts.map +0 -1
- package/dist/Endpoint-BTj58Gob.mjs.map +0 -1
- package/dist/EndpointFactory-BejSTzbB.mjs.map +0 -1
- package/dist/EndpointFactory-DYoGLaIT.cjs.map +0 -1
- package/dist/HonoEndpointAdaptor-7aYNdqJq.mjs.map +0 -1
- package/dist/HonoEndpointAdaptor-wMsCyMgt.cjs.map +0 -1
- package/dist/Queue-D6WeziRD.d.cts.map +0 -1
- package/dist/Queue-DpUeqdC8.d.mts.map +0 -1
- package/dist/Subscriber-4rBJgDKI.d.mts.map +0 -1
- package/dist/Subscriber-DVQowdyj.d.cts.map +0 -1
- package/dist/Topic-Ohx9dvWr.d.cts +0 -91
- package/dist/Topic-Ohx9dvWr.d.cts.map +0 -1
- package/dist/Topic-cmy2jOUy.d.mts +0 -91
- package/dist/Topic-cmy2jOUy.d.mts.map +0 -1
- package/dist/auth.d.cts.map +0 -1
- package/dist/auth.d.mts.map +0 -1
- package/dist/cache-0ANvRQnD.mjs +0 -51
- package/dist/cache-0ANvRQnD.mjs.map +0 -1
- package/dist/cache-3WSvAulx.cjs +0 -57
- package/dist/cache-3WSvAulx.cjs.map +0 -1
- package/dist/cache-CdQ7OLpR.d.cts.map +0 -1
- package/dist/cache-DYoJFcfd.d.mts.map +0 -1
- package/dist/clone-DblgEZZa.mjs.map +0 -1
- package/dist/clone-Dy0cR2SZ.cjs.map +0 -1
- package/dist/construct-interface-BfjcOD_E.cjs +0 -117
- package/dist/construct-interface-BfjcOD_E.cjs.map +0 -1
- package/dist/construct-interface-BqwRNYA2.d.mts.map +0 -1
- package/dist/construct-interface-D2nNkHUN.d.cts.map +0 -1
- package/dist/construct-interface-Z4CpS8tK.mjs +0 -81
- package/dist/construct-interface-Z4CpS8tK.mjs.map +0 -1
- package/dist/database/kysely.cjs.map +0 -1
- package/dist/database/kysely.d.cts.map +0 -1
- package/dist/database/kysely.d.mts.map +0 -1
- package/dist/database/kysely.mjs.map +0 -1
- package/dist/functions-Cpff1uZH.mjs.map +0 -1
- package/dist/functions-DukjG8ov.cjs.map +0 -1
- package/dist/index-BTvozlUD.d.cts +0 -163
- package/dist/index-BTvozlUD.d.cts.map +0 -1
- package/dist/index-Cvz551AO.d.mts.map +0 -1
- package/dist/index-D5zqAJ2e.d.cts.map +0 -1
- package/dist/index-L7pz0R0T.d.mts +0 -162
- package/dist/index-L7pz0R0T.d.mts.map +0 -1
- package/dist/lazyAccessors-DM6HcXQk.mjs.map +0 -1
- package/dist/lazyAccessors-DrJj8NpA.cjs.map +0 -1
- package/dist/processAudits-Bc8rz6Ev.cjs +0 -92
- package/dist/processAudits-Bc8rz6Ev.cjs.map +0 -1
- package/dist/processAudits-D89tICM4.mjs +0 -80
- package/dist/processAudits-D89tICM4.mjs.map +0 -1
- package/dist/publisher-CGEo8UKD.mjs +0 -41
- package/dist/publisher-CGEo8UKD.mjs.map +0 -1
- package/dist/publisher-CqGsXB2X.cjs +0 -53
- package/dist/publisher-CqGsXB2X.cjs.map +0 -1
- package/dist/queue/index.cjs.map +0 -1
- package/dist/queue/index.d.cts.map +0 -1
- package/dist/queue/index.d.mts.map +0 -1
- package/dist/queue/index.mjs.map +0 -1
- package/dist/surfaceEnv-BFXEms2f.cjs +0 -39
- package/dist/surfaceEnv-BFXEms2f.cjs.map +0 -1
- package/dist/surfaceEnv-C3Ktahea.mjs +0 -27
- package/dist/surfaceEnv-C3Ktahea.mjs.map +0 -1
- package/dist/telemetry-C3L0iS28.d.cts.map +0 -1
- package/dist/telemetry-D7bVFLGi.d.mts.map +0 -1
- package/dist/topic/index.cjs.map +0 -1
- package/dist/topic/index.d.cts.map +0 -1
- package/dist/topic/index.d.mts.map +0 -1
- package/dist/topic/index.mjs.map +0 -1
- package/dist/types-BlAkSuGI.d.cts.map +0 -1
- package/dist/types-aKksMEWL.d.mts.map +0 -1
package/dist/worker.mjs
ADDED
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
import { edgeTo } from "./construct-interface.mjs";
|
|
2
|
+
import { t as FunctionBuilder } from "./functions-BFizikJU.mjs";
|
|
3
|
+
import { n as envParserFor } from "./surfaceEnv-wMT5QzgZ.mjs";
|
|
4
|
+
import { t as CronBuilder } from "./CronBuilder-Dmix_Pen.mjs";
|
|
5
|
+
import { t as QueueBuilder } from "./QueueBuilder-Cue73M4t.mjs";
|
|
6
|
+
import { t as SubscriberBuilder } from "./SubscriberBuilder-CDy4nHCz.mjs";
|
|
7
|
+
import { canonicalId } from "@geekmidas/manifest";
|
|
8
|
+
import { DEFAULT_LOGGER } from "@geekmidas/logger/console";
|
|
9
|
+
//#region src/worker.ts
|
|
10
|
+
var Worker = class Worker {
|
|
11
|
+
config;
|
|
12
|
+
dependencies;
|
|
13
|
+
id;
|
|
14
|
+
/** Always defined — the worker's own, or the console logger. */
|
|
15
|
+
logger;
|
|
16
|
+
/** Always defined, and normally the default. */
|
|
17
|
+
envParser;
|
|
18
|
+
/**
|
|
19
|
+
* Where this worker's schedules live, when it has crons and a server runs
|
|
20
|
+
* them — and the database everything built from it receives as `db`.
|
|
21
|
+
* `undefined` until `.database(…)` says.
|
|
22
|
+
*/
|
|
23
|
+
scheduleStore;
|
|
24
|
+
constructor(id, config = {}, dependencies = [], scheduleStore) {
|
|
25
|
+
this.config = config;
|
|
26
|
+
this.dependencies = dependencies;
|
|
27
|
+
const canonical = canonicalId(id);
|
|
28
|
+
this.id = canonical;
|
|
29
|
+
this.logger = config.logger ?? DEFAULT_LOGGER;
|
|
30
|
+
this.envParser = envParserFor(config.envParser ? {
|
|
31
|
+
id: canonical,
|
|
32
|
+
envParser: config.envParser
|
|
33
|
+
} : void 0);
|
|
34
|
+
this.scheduleStore = scheduleStore;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* The database this worker keeps its schedules in, and the one everything
|
|
38
|
+
* built from it — crons, queues, subscribers, functions — receives as `db`.
|
|
39
|
+
* One of them that works against another database names it with its own
|
|
40
|
+
* `.database(other)`, which replaces this one for that runnable alone.
|
|
41
|
+
*
|
|
42
|
+
* Only a server target uses it. On AWS a cron is an EventBridge rule
|
|
43
|
+
* invoking a Lambda and nothing here is consulted — but a server has nothing
|
|
44
|
+
* firing its crons except itself, and a process that schedules in memory
|
|
45
|
+
* fires every job once per replica while reporting that all is well.
|
|
46
|
+
*
|
|
47
|
+
* So the store is declared rather than discovered. It could have been
|
|
48
|
+
* inferred — from a database the app happens to declare, or from the events
|
|
49
|
+
* backend when that backend is pg-boss — and both would work until an app
|
|
50
|
+
* had two databases, or moved its events to SNS, at which point the
|
|
51
|
+
* schedules would quietly move or stop. Naming it is one line and cannot
|
|
52
|
+
* drift.
|
|
53
|
+
*
|
|
54
|
+
* @example
|
|
55
|
+
* ```ts
|
|
56
|
+
* export const jobs = new Worker('Jobs', { logger }).database(database);
|
|
57
|
+
*
|
|
58
|
+
* export const sweep = jobs
|
|
59
|
+
* .cron('rate(1 hour)')
|
|
60
|
+
* .handle(async ({ db }) => db.deleteFrom('sessions').execute());
|
|
61
|
+
* ```
|
|
62
|
+
*/
|
|
63
|
+
database(source) {
|
|
64
|
+
return new Worker(this.id, this.config, [...this.dependencies, edgeTo(source)], source);
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* A scheduled runnable.
|
|
68
|
+
*
|
|
69
|
+
* @example `worker.cron('rate(1 day)').handle(async ({ logger }) => { … })`
|
|
70
|
+
*/
|
|
71
|
+
cron(schedule) {
|
|
72
|
+
return this.own(new CronBuilder().logger(this.logger)).schedule(schedule);
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* A queue and its one consumer, run by this worker.
|
|
76
|
+
*
|
|
77
|
+
* One construct, because a queue has exactly one consumer: nothing else can
|
|
78
|
+
* attach a second, or forget to attach the first. Producers send to it by
|
|
79
|
+
* depending on it — `.dependsOn([emails])` makes `services.emails` the
|
|
80
|
+
* publisher.
|
|
81
|
+
*
|
|
82
|
+
* @example
|
|
83
|
+
* ```ts
|
|
84
|
+
* export const emails = worker
|
|
85
|
+
* .queue('Emails')
|
|
86
|
+
* .message(z.object({ userId: z.uuid(), template: z.string() }))
|
|
87
|
+
* .handle(async ({ messages, services }) => { … });
|
|
88
|
+
* ```
|
|
89
|
+
*/
|
|
90
|
+
queue(name) {
|
|
91
|
+
return this.own(new QueueBuilder().logger(this.logger)).queue(name);
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* A runnable that consumes a topic.
|
|
95
|
+
*
|
|
96
|
+
* Binding is not publishing: a consumer is handed the topic's event types
|
|
97
|
+
* and no connection string it could publish with. A handler that emits
|
|
98
|
+
* follow-up events depends on the topic it emits to —
|
|
99
|
+
* `.dependsOn([orders])` — which is the only reason it would need one.
|
|
100
|
+
*
|
|
101
|
+
* @example `worker.topic(users).subscribe(['user.created']).handle(…)`
|
|
102
|
+
*/
|
|
103
|
+
topic(topic) {
|
|
104
|
+
return this.own(new SubscriberBuilder().logger(this.logger)).topic(topic);
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* Everything below builds a function — the runnable with no schedule and no
|
|
108
|
+
* topic, invoked by something else.
|
|
109
|
+
*
|
|
110
|
+
* These sit on the worker rather than behind a `functions` namespace because
|
|
111
|
+
* the namespace was a hop that said nothing: `worker.functions.input(…)`
|
|
112
|
+
* names a collection to reach one member of it. What kind of runnable is
|
|
113
|
+
* being built is decided by which of these is called first — a schedule
|
|
114
|
+
* makes a cron, a topic makes a subscriber, and anything else makes a
|
|
115
|
+
* function.
|
|
116
|
+
*/
|
|
117
|
+
input(schema) {
|
|
118
|
+
return this.functions.input(schema);
|
|
119
|
+
}
|
|
120
|
+
output(schema) {
|
|
121
|
+
return this.functions.output(schema);
|
|
122
|
+
}
|
|
123
|
+
timeout(ms) {
|
|
124
|
+
return this.functions.timeout(ms);
|
|
125
|
+
}
|
|
126
|
+
memorySize(mb) {
|
|
127
|
+
return this.functions.memorySize(mb);
|
|
128
|
+
}
|
|
129
|
+
dependsOn(constructs) {
|
|
130
|
+
return this.functions.dependsOn(constructs);
|
|
131
|
+
}
|
|
132
|
+
services(services) {
|
|
133
|
+
return this.functions.services(services);
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* A function with no input schema — the shortest runnable there is.
|
|
137
|
+
*
|
|
138
|
+
* @example `worker.handle(async ({ logger }) => { … })`
|
|
139
|
+
*/
|
|
140
|
+
handle(...args) {
|
|
141
|
+
return this.schemalessFunction().handle(...args);
|
|
142
|
+
}
|
|
143
|
+
/** The builder `handle` delegates to, named so its type can be referred to. */
|
|
144
|
+
schemalessFunction() {
|
|
145
|
+
return this.functions;
|
|
146
|
+
}
|
|
147
|
+
/** The function builder the delegating methods above are built on. */
|
|
148
|
+
get functions() {
|
|
149
|
+
return this.own(new FunctionBuilder().logger(this.logger));
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* Resources and surfaces this worker calls.
|
|
153
|
+
*
|
|
154
|
+
* Not `.dependsOn()`: this records the edge that derives the worker's
|
|
155
|
+
* environment and its access, the same distinction `RestApi.calls()` draws.
|
|
156
|
+
*/
|
|
157
|
+
calls(constructs) {
|
|
158
|
+
return new Worker(this.id, this.config, [...this.dependencies, ...constructs.map(edgeTo)], this.scheduleStore);
|
|
159
|
+
}
|
|
160
|
+
/**
|
|
161
|
+
* Stamps this worker's id onto a builder, so everything built from it says
|
|
162
|
+
* which process runs it — and hands it the worker's database.
|
|
163
|
+
*
|
|
164
|
+
* The database goes through the builder's own `.database()` rather than
|
|
165
|
+
* being written into its fields, so the default is recorded exactly as an
|
|
166
|
+
* explicit one would be: the client the handler gets, and the edge the
|
|
167
|
+
* manifest reads. That is also what lets a later `.database(other)` replace
|
|
168
|
+
* it outright. The builder arrives already typed with this worker's
|
|
169
|
+
* database; this is the runtime half of that.
|
|
170
|
+
*/
|
|
171
|
+
own(builder) {
|
|
172
|
+
const owned = this.scheduleStore ? builder.database(this.scheduleStore) : builder;
|
|
173
|
+
owned._owner = this.id;
|
|
174
|
+
owned._scheduleStore = this.scheduleStore;
|
|
175
|
+
return owned;
|
|
176
|
+
}
|
|
177
|
+
declare() {
|
|
178
|
+
return [{
|
|
179
|
+
kind: "worker",
|
|
180
|
+
id: this.id,
|
|
181
|
+
...this.dependencies.length ? { dependencies: this.dependencies } : {},
|
|
182
|
+
...this.config.telemetry ? { telemetry: this.config.telemetry.id } : {},
|
|
183
|
+
provides: []
|
|
184
|
+
}];
|
|
185
|
+
}
|
|
186
|
+
};
|
|
187
|
+
//#endregion
|
|
188
|
+
export { Worker };
|
|
189
|
+
|
|
190
|
+
//# sourceMappingURL=worker.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"worker.mjs","names":[],"sources":["../src/worker.ts"],"sourcesContent":["/**\n * A process with no port.\n *\n * `RestApi` is the process that answers HTTP. This is the one that does not —\n * the thing that runs a schedule, drains a queue, consumes a topic. Until it\n * existed, those had nowhere to say they belonged: a cron declared a schedule\n * and nothing else, and which container ran it was decided by the directory the\n * file sat in. A glob owned it.\n *\n * The cost of that shows up in the scaffolds. `gkm init --template worker` —\n * a project that is background jobs and nothing else — declared\n * `new RestApi('Api', { defaultAuthorizer: 'none', logger })`: an HTTP surface\n * with no HTTP on it, written because it was the only construct that made an\n * app exist and the only way to get a logger into the generated runtime.\n *\n * It takes no authorizer, and that is the tell that these are two constructs\n * rather than one with a flag: a `RestApi` needs one because an HTTP surface\n * can ship open by omission, and nothing reaches a worker from outside.\n *\n * ## Crons on a server target need a database\n *\n * A cron becomes an EventBridge rule on AWS and nothing here is consulted. A\n * server has nothing firing its crons but itself, and a process that schedules\n * in memory fires every job once per replica while reporting success — so the\n * schedule is kept in Postgres, and the worker says which one with\n * `.database(db)`.\n *\n * A worker with crons and no `.database(…)` schedules nothing on a server\n * target and says so at startup. That is a limitation of workers today rather\n * than a design: the store could be a cache, or something the target\n * provisions, and Postgres is what exists.\n *\n * ## The database is everything's default\n *\n * The same `.database(db)` is the database every cron, queue, subscriber and\n * function built from the worker receives as `db`. The work a worker groups is\n * usually work against one database, and naming it per handler was a line\n * repeated in every file that could drift in any one of them. A runnable that\n * works against another names its own with `.database(other)`, which replaces\n * the worker's — client and manifest edge both — rather than adding to it.\n *\n * It is not an app: it declares no path, and its code lives in an app's\n * directory. But it is a process of its own. On a server target each worker\n * with work to do is built — from the app that holds that work — into an image\n * that runs its crons, consumers and subscribers and answers only a health\n * check, so a slow queue never shares a process with the requests an API\n * serves. `gkm dev` still runs everything in one process. Declare as many as\n * the shape of the work wants: each is one container.\n *\n * @example\n * ```ts\n * // constructs/worker.ts\n * import { Worker } from '@geekmidas/constructs/worker';\n * import { logger } from './logger.js';\n *\n * export const worker = new Worker('Worker', { logger }).database(database);\n *\n * // crons/cleanup.ts\n * import { worker } from '@acme/constructs/worker.js';\n *\n * export const cleanup = worker\n * .cron('rate(1 day)')\n * .handle(async ({ db, logger }) => { … });\n *\n * // queues/reports.ts — against another database than the worker's\n * export const reports = worker\n * .queue('Reports')\n * .database(analytics)\n * .message(z.object({ id: z.uuid() }))\n * .handle(async ({ messages, db }) => { … });\n * ```\n */\n\nimport type { EnvironmentParser } from '@geekmidas/envkit';\nimport type { EventPublisher } from '@geekmidas/events';\nimport type { Logger } from '@geekmidas/logger';\nimport { DEFAULT_LOGGER } from '@geekmidas/logger/console';\nimport {\n\ttype ConstructName,\n\tcanonicalId,\n\ttype Declaration,\n\ttype Dependency,\n} from '@geekmidas/manifest';\nimport type { ComposableStandardSchema } from '@geekmidas/schema';\nimport type { Service } from '@geekmidas/services';\nimport type { StandardSchemaV1 } from '@standard-schema/spec';\nimport {\n\ttype Consumable,\n\ttype Declarable,\n\tedgeTo,\n} from './construct-interface';\nimport type { ScheduleExpression } from './crons/Cron';\nimport { CronBuilder } from './crons/CronBuilder';\nimport { envParserFor } from './endpoints/surfaceEnv';\nimport { FunctionBuilder } from './functions/FunctionBuilder';\nimport { QueueBuilder } from './queue/QueueBuilder';\nimport { SubscriberBuilder } from './subscribers/SubscriberBuilder';\nimport type { Telemetry } from './telemetry';\nimport type { Topic, TopicEvents } from './topic/Topic';\n\nexport interface WorkerConfig {\n\t/**\n\t * The logger everything built from this worker runs with.\n\t *\n\t * The actual logger, not a path to one — the same reason `RestApi` takes\n\t * one. Every cron and subscriber in a scaffolded project used to open with\n\t * `import { logger } from '…/constructs/logger.js'`, which is the line this\n\t * removes.\n\t */\n\tlogger?: Logger;\n\t/**\n\t * The environment parser everything built from this worker runs with.\n\t *\n\t * Defaults to `process.env` merged with the credentials `gkm dev` injected,\n\t * which is what an application's own `config/env.ts` always was.\n\t */\n\tenvParser?: EnvironmentParser<{}>;\n\t/**\n\t * What the worker's process emits — the `Telemetry` construct, passed like\n\t * the logger. An edge to the node: the deploy hands the process the\n\t * `OTEL_*` keys its stage resolves.\n\t */\n\ttelemetry?: Telemetry;\n}\n\nexport class Worker<\n\tTName extends string = string,\n\tTDatabase = undefined,\n\tTDatabaseServiceName extends string = string,\n> implements Declarable<TName>\n{\n\treadonly id: TName;\n\n\t/** Always defined — the worker's own, or the console logger. */\n\treadonly logger: Logger;\n\n\t/** Always defined, and normally the default. */\n\treadonly envParser: EnvironmentParser<{}>;\n\n\t/**\n\t * Where this worker's schedules live, when it has crons and a server runs\n\t * them — and the database everything built from it receives as `db`.\n\t * `undefined` until `.database(…)` says.\n\t */\n\treadonly scheduleStore?: Consumable<string, unknown>;\n\n\tconstructor(\n\t\tid: ConstructName<TName>,\n\t\tprivate readonly config: WorkerConfig = {},\n\t\t/** Internal: how `.calls()` carries edges into the copy it returns. */\n\t\tprivate readonly dependencies: readonly Dependency[] = [],\n\t\tscheduleStore?: Consumable<string, unknown>,\n\t) {\n\t\tconst canonical = canonicalId(id as string);\n\n\t\tthis.id = canonical as TName;\n\t\tthis.logger = config.logger ?? DEFAULT_LOGGER;\n\t\tthis.envParser = envParserFor(\n\t\t\tconfig.envParser\n\t\t\t\t? { id: canonical, envParser: config.envParser }\n\t\t\t\t: undefined,\n\t\t);\n\t\tthis.scheduleStore = scheduleStore;\n\t}\n\n\t/**\n\t * The database this worker keeps its schedules in, and the one everything\n\t * built from it — crons, queues, subscribers, functions — receives as `db`.\n\t * One of them that works against another database names it with its own\n\t * `.database(other)`, which replaces this one for that runnable alone.\n\t *\n\t * Only a server target uses it. On AWS a cron is an EventBridge rule\n\t * invoking a Lambda and nothing here is consulted — but a server has nothing\n\t * firing its crons except itself, and a process that schedules in memory\n\t * fires every job once per replica while reporting that all is well.\n\t *\n\t * So the store is declared rather than discovered. It could have been\n\t * inferred — from a database the app happens to declare, or from the events\n\t * backend when that backend is pg-boss — and both would work until an app\n\t * had two databases, or moved its events to SNS, at which point the\n\t * schedules would quietly move or stop. Naming it is one line and cannot\n\t * drift.\n\t *\n\t * @example\n\t * ```ts\n\t * export const jobs = new Worker('Jobs', { logger }).database(database);\n\t *\n\t * export const sweep = jobs\n\t * .cron('rate(1 hour)')\n\t * .handle(async ({ db }) => db.deleteFrom('sessions').execute());\n\t * ```\n\t */\n\tdatabase<T, TDbName extends string>(\n\t\tsource: Consumable<TDbName, T>,\n\t): Worker<TName, T, TDbName> {\n\t\treturn new Worker<TName, T, TDbName>(\n\t\t\tthis.id as ConstructName<TName>,\n\t\t\tthis.config,\n\t\t\t[...this.dependencies, edgeTo(source)],\n\t\t\tsource as unknown as Consumable<string, unknown>,\n\t\t);\n\t}\n\n\t/**\n\t * A scheduled runnable.\n\t *\n\t * @example `worker.cron('rate(1 day)').handle(async ({ logger }) => { … })`\n\t */\n\tcron(schedule: ScheduleExpression) {\n\t\treturn this.own(\n\t\t\tnew CronBuilder<\n\t\t\t\tComposableStandardSchema,\n\t\t\t\tService[],\n\t\t\t\tLogger,\n\t\t\t\tundefined,\n\t\t\t\tTDatabase,\n\t\t\t\tTDatabaseServiceName\n\t\t\t>().logger(this.logger),\n\t\t).schedule(schedule);\n\t}\n\n\t/**\n\t * A queue and its one consumer, run by this worker.\n\t *\n\t * One construct, because a queue has exactly one consumer: nothing else can\n\t * attach a second, or forget to attach the first. Producers send to it by\n\t * depending on it — `.dependsOn([emails])` makes `services.emails` the\n\t * publisher.\n\t *\n\t * @example\n\t * ```ts\n\t * export const emails = worker\n\t * .queue('Emails')\n\t * .message(z.object({ userId: z.uuid(), template: z.string() }))\n\t * .handle(async ({ messages, services }) => { … });\n\t * ```\n\t */\n\tqueue<TQueueName extends string>(name: TQueueName) {\n\t\treturn this.own(\n\t\t\tnew QueueBuilder<\n\t\t\t\tstring,\n\t\t\t\tundefined,\n\t\t\t\t[],\n\t\t\t\tLogger,\n\t\t\t\tTDatabase,\n\t\t\t\tTDatabaseServiceName\n\t\t\t>().logger(this.logger),\n\t\t).queue(name);\n\t}\n\n\t/**\n\t * A runnable that consumes a topic.\n\t *\n\t * Binding is not publishing: a consumer is handed the topic's event types\n\t * and no connection string it could publish with. A handler that emits\n\t * follow-up events depends on the topic it emits to —\n\t * `.dependsOn([orders])` — which is the only reason it would need one.\n\t *\n\t * @example `worker.topic(users).subscribe(['user.created']).handle(…)`\n\t */\n\ttopic<TTopicName extends string, TEvents extends TopicEvents>(\n\t\ttopic: Topic<TTopicName, TEvents>,\n\t) {\n\t\treturn this.own(\n\t\t\tnew SubscriberBuilder<\n\t\t\t\t[],\n\t\t\t\tLogger,\n\t\t\t\tundefined,\n\t\t\t\tundefined,\n\t\t\t\t[],\n\t\t\t\tTDatabase,\n\t\t\t\tTDatabaseServiceName\n\t\t\t>().logger(this.logger),\n\t\t).topic(topic);\n\t}\n\n\t/**\n\t * Everything below builds a function — the runnable with no schedule and no\n\t * topic, invoked by something else.\n\t *\n\t * These sit on the worker rather than behind a `functions` namespace because\n\t * the namespace was a hop that said nothing: `worker.functions.input(…)`\n\t * names a collection to reach one member of it. What kind of runnable is\n\t * being built is decided by which of these is called first — a schedule\n\t * makes a cron, a topic makes a subscriber, and anything else makes a\n\t * function.\n\t */\n\tinput<T extends ComposableStandardSchema>(schema: T) {\n\t\treturn this.functions.input(schema);\n\t}\n\n\toutput<T extends StandardSchemaV1>(schema: T) {\n\t\treturn this.functions.output(schema);\n\t}\n\n\ttimeout(ms: number) {\n\t\treturn this.functions.timeout(ms);\n\t}\n\n\tmemorySize(mb: number) {\n\t\treturn this.functions.memorySize(mb);\n\t}\n\n\tdependsOn<const T extends readonly Consumable[]>(constructs: T) {\n\t\treturn this.functions.dependsOn(constructs);\n\t}\n\n\tservices<T extends Service[]>(services: T) {\n\t\treturn this.functions.services(services);\n\t}\n\n\t/**\n\t * A function with no input schema — the shortest runnable there is.\n\t *\n\t * @example `worker.handle(async ({ logger }) => { … })`\n\t */\n\thandle(\n\t\t...args: Parameters<\n\t\t\tReturnType<\n\t\t\t\tWorker<TName, TDatabase, TDatabaseServiceName>['schemalessFunction']\n\t\t\t>['handle']\n\t\t>\n\t) {\n\t\treturn this.schemalessFunction().handle(...args);\n\t}\n\n\t/** The builder `handle` delegates to, named so its type can be referred to. */\n\tprivate schemalessFunction() {\n\t\treturn this.functions;\n\t}\n\n\t/** The function builder the delegating methods above are built on. */\n\tprivate get functions() {\n\t\treturn this.own(\n\t\t\tnew FunctionBuilder<\n\t\t\t\tany,\n\t\t\t\tundefined,\n\t\t\t\t[],\n\t\t\t\tLogger,\n\t\t\t\tundefined,\n\t\t\t\tstring,\n\t\t\t\tTDatabase,\n\t\t\t\tTDatabaseServiceName\n\t\t\t>().logger(this.logger),\n\t\t);\n\t}\n\n\t/**\n\t * Resources and surfaces this worker calls.\n\t *\n\t * Not `.dependsOn()`: this records the edge that derives the worker's\n\t * environment and its access, the same distinction `RestApi.calls()` draws.\n\t */\n\tcalls(\n\t\tconstructs: readonly Declarable[],\n\t): Worker<TName, TDatabase, TDatabaseServiceName> {\n\t\treturn new Worker<TName, TDatabase, TDatabaseServiceName>(\n\t\t\tthis.id as ConstructName<TName>,\n\t\t\tthis.config,\n\t\t\t[...this.dependencies, ...constructs.map(edgeTo)],\n\t\t\tthis.scheduleStore,\n\t\t);\n\t}\n\n\t/**\n\t * Stamps this worker's id onto a builder, so everything built from it says\n\t * which process runs it — and hands it the worker's database.\n\t *\n\t * The database goes through the builder's own `.database()` rather than\n\t * being written into its fields, so the default is recorded exactly as an\n\t * explicit one would be: the client the handler gets, and the edge the\n\t * manifest reads. That is also what lets a later `.database(other)` replace\n\t * it outright. The builder arrives already typed with this worker's\n\t * database; this is the runtime half of that.\n\t */\n\tprivate own<\n\t\tT extends {\n\t\t\t_owner?: string;\n\t\t\t_scheduleStore?: unknown;\n\t\t\tdatabase(source: Consumable<string, unknown>): unknown;\n\t\t},\n\t>(builder: T): T {\n\t\tconst owned = this.scheduleStore\n\t\t\t? (builder.database(this.scheduleStore) as T)\n\t\t\t: builder;\n\n\t\towned._owner = this.id;\n\t\towned._scheduleStore = this.scheduleStore;\n\n\t\treturn owned;\n\t}\n\n\tdeclare(): Declaration[] {\n\t\treturn [\n\t\t\t{\n\t\t\t\tkind: 'worker',\n\t\t\t\tid: this.id,\n\t\t\t\t...(this.dependencies.length\n\t\t\t\t\t? { dependencies: this.dependencies }\n\t\t\t\t\t: {}),\n\t\t\t\t...(this.config.telemetry\n\t\t\t\t\t? { telemetry: this.config.telemetry.id }\n\t\t\t\t\t: {}),\n\t\t\t\t// Nothing calls a worker, so it publishes no address.\n\t\t\t\tprovides: [],\n\t\t\t},\n\t\t];\n\t}\n}\n"],"mappings":";;;;;;;;;AA6HA,IAAa,SAAb,MAAa,OAKb;CAkBmB;CAEA;CAnBlB;;CAGA;;CAGA;;;;;;CAOA;CAEA,YACC,IACA,SAAwC,CAAC,GAEzC,eAAuD,CAAC,GACxD,eACC;EAJgB,KAAA,SAAA;EAEA,KAAA,eAAA;EAGjB,MAAM,YAAY,YAAY,EAAY;EAE1C,KAAK,KAAK;EACV,KAAK,SAAS,OAAO,UAAU;EAC/B,KAAK,YAAY,aAChB,OAAO,YACJ;GAAE,IAAI;GAAW,WAAW,OAAO;EAAU,IAC7C,KAAA,CACJ;EACA,KAAK,gBAAgB;CACtB;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6BA,SACC,QAC4B;EAC5B,OAAO,IAAI,OACV,KAAK,IACL,KAAK,QACL,CAAC,GAAG,KAAK,cAAc,OAAO,MAAM,CAAC,GACrC,MACD;CACD;;;;;;CAOA,KAAK,UAA8B;EAClC,OAAO,KAAK,IACX,IAAI,YAOF,CAAC,CAAC,OAAO,KAAK,MAAM,CACvB,CAAC,CAAC,SAAS,QAAQ;CACpB;;;;;;;;;;;;;;;;;CAkBA,MAAiC,MAAkB;EAClD,OAAO,KAAK,IACX,IAAI,aAOF,CAAC,CAAC,OAAO,KAAK,MAAM,CACvB,CAAC,CAAC,MAAM,IAAI;CAC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AG,IACtC,CAAC;GAEJ,UAAU,CAAC;EACZ,CACD;CACD;AACD"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@geekmidas/constructs",
|
|
3
|
-
"version": "10.0.0-alpha.
|
|
3
|
+
"version": "10.0.0-alpha.100",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -164,6 +164,16 @@
|
|
|
164
164
|
"default": "./dist/cache.cjs"
|
|
165
165
|
}
|
|
166
166
|
},
|
|
167
|
+
"./encryption": {
|
|
168
|
+
"import": {
|
|
169
|
+
"types": "./dist/encryption.d.mts",
|
|
170
|
+
"default": "./dist/encryption.mjs"
|
|
171
|
+
},
|
|
172
|
+
"require": {
|
|
173
|
+
"types": "./dist/encryption.d.cts",
|
|
174
|
+
"default": "./dist/encryption.cjs"
|
|
175
|
+
}
|
|
176
|
+
},
|
|
167
177
|
"./credential": {
|
|
168
178
|
"import": {
|
|
169
179
|
"types": "./dist/credential.d.mts",
|
|
@@ -174,6 +184,16 @@
|
|
|
174
184
|
"default": "./dist/credential.cjs"
|
|
175
185
|
}
|
|
176
186
|
},
|
|
187
|
+
"./external-api": {
|
|
188
|
+
"import": {
|
|
189
|
+
"types": "./dist/external-api.d.mts",
|
|
190
|
+
"default": "./dist/external-api.mjs"
|
|
191
|
+
},
|
|
192
|
+
"require": {
|
|
193
|
+
"types": "./dist/external-api.d.cts",
|
|
194
|
+
"default": "./dist/external-api.cjs"
|
|
195
|
+
}
|
|
196
|
+
},
|
|
177
197
|
"./auth": {
|
|
178
198
|
"import": {
|
|
179
199
|
"types": "./dist/auth.d.mts",
|
|
@@ -204,6 +224,36 @@
|
|
|
204
224
|
"default": "./dist/site.cjs"
|
|
205
225
|
}
|
|
206
226
|
},
|
|
227
|
+
"./mobile-app": {
|
|
228
|
+
"import": {
|
|
229
|
+
"types": "./dist/mobile-app.d.mts",
|
|
230
|
+
"default": "./dist/mobile-app.mjs"
|
|
231
|
+
},
|
|
232
|
+
"require": {
|
|
233
|
+
"types": "./dist/mobile-app.d.cts",
|
|
234
|
+
"default": "./dist/mobile-app.cjs"
|
|
235
|
+
}
|
|
236
|
+
},
|
|
237
|
+
"./worker": {
|
|
238
|
+
"import": {
|
|
239
|
+
"types": "./dist/worker.d.mts",
|
|
240
|
+
"default": "./dist/worker.mjs"
|
|
241
|
+
},
|
|
242
|
+
"require": {
|
|
243
|
+
"types": "./dist/worker.d.cts",
|
|
244
|
+
"default": "./dist/worker.cjs"
|
|
245
|
+
}
|
|
246
|
+
},
|
|
247
|
+
"./telemetry": {
|
|
248
|
+
"import": {
|
|
249
|
+
"types": "./dist/telemetry.d.mts",
|
|
250
|
+
"default": "./dist/telemetry.mjs"
|
|
251
|
+
},
|
|
252
|
+
"require": {
|
|
253
|
+
"types": "./dist/telemetry.d.cts",
|
|
254
|
+
"default": "./dist/telemetry.cjs"
|
|
255
|
+
}
|
|
256
|
+
},
|
|
207
257
|
"./database/kysely": {
|
|
208
258
|
"import": {
|
|
209
259
|
"types": "./dist/database/kysely.d.mts",
|
|
@@ -227,6 +277,8 @@
|
|
|
227
277
|
"access": "public"
|
|
228
278
|
},
|
|
229
279
|
"dependencies": {
|
|
280
|
+
"@opentelemetry/api": "~1.9.1",
|
|
281
|
+
"cron-parser": "~5.10.1",
|
|
230
282
|
"fast-glob": "~3.3.3",
|
|
231
283
|
"lodash.compact": "~3.0.1",
|
|
232
284
|
"lodash.get": "~4.4.2",
|
|
@@ -234,61 +286,69 @@
|
|
|
234
286
|
"lodash.set": "~4.3.2",
|
|
235
287
|
"lodash.uniqby": "~4.7.0",
|
|
236
288
|
"openapi-types": "~12.1.3",
|
|
237
|
-
"qs": "~6.
|
|
289
|
+
"qs": "~6.16.0",
|
|
290
|
+
"@geekmidas/envkit": "^10.0.0-alpha.100",
|
|
291
|
+
"@geekmidas/errors": "^10.0.0-alpha.100",
|
|
292
|
+
"@geekmidas/events": "^10.0.0-alpha.100",
|
|
293
|
+
"@geekmidas/logger": "^10.0.0-alpha.100",
|
|
294
|
+
"@geekmidas/manifest": "^10.0.0-alpha.100",
|
|
295
|
+
"@geekmidas/schema": "^10.0.0-alpha.100",
|
|
296
|
+
"@geekmidas/services": "^10.0.0-alpha.100"
|
|
238
297
|
},
|
|
239
298
|
"devDependencies": {
|
|
299
|
+
"@aws-sdk/client-kms": "~3.1136.0",
|
|
300
|
+
"@better-auth/expo": "~1.7.6",
|
|
301
|
+
"@opentelemetry/sdk-trace-node": "~2.11.0",
|
|
240
302
|
"@types/lodash.compact": "~3.0.9",
|
|
241
303
|
"@types/lodash.get": "~4.4.9",
|
|
242
304
|
"@types/lodash.pick": "~4.4.9",
|
|
243
305
|
"@types/lodash.set": "~4.3.9",
|
|
244
306
|
"@types/lodash.uniqby": "~4.7.9",
|
|
245
|
-
"@types/pg": "~8.
|
|
246
|
-
"@types/qs": "~6.15.
|
|
247
|
-
"better-auth": "~1.
|
|
248
|
-
"kysely": "~0.29.
|
|
249
|
-
"msw": "~2.
|
|
250
|
-
"pg": "~8.
|
|
251
|
-
"zod": "~4.
|
|
252
|
-
"@geekmidas/audit": "^10.0.0-alpha.
|
|
253
|
-
"@geekmidas/auth": "10.0.0-alpha.
|
|
254
|
-
"@geekmidas/cache": "^10.0.0-alpha.
|
|
255
|
-
"@geekmidas/db": "^10.0.0-alpha.
|
|
256
|
-
"@geekmidas/emailkit": "^10.0.0-alpha.
|
|
257
|
-
"@geekmidas/envkit": "^10.0.0-alpha.
|
|
258
|
-
"@geekmidas/errors": "^10.0.0-alpha.
|
|
259
|
-
"@geekmidas/events": "^10.0.0-alpha.
|
|
260
|
-
"@geekmidas/logger": "^10.0.0-alpha.
|
|
261
|
-
"@geekmidas/rate-limit": "^10.0.0-alpha.
|
|
262
|
-
"@geekmidas/schema": "^10.0.0-alpha.
|
|
263
|
-
"@geekmidas/services": "^10.0.0-alpha.
|
|
264
|
-
"@geekmidas/telescope": "10.0.0-alpha.
|
|
265
|
-
"@geekmidas/testkit": "^10.0.0-alpha.
|
|
307
|
+
"@types/pg": "~8.23.1",
|
|
308
|
+
"@types/qs": "~6.15.1",
|
|
309
|
+
"better-auth": "~1.7.6",
|
|
310
|
+
"kysely": "~0.29.6",
|
|
311
|
+
"msw": "~2.15.0",
|
|
312
|
+
"pg": "~8.23.0",
|
|
313
|
+
"zod": "~4.6.5",
|
|
314
|
+
"@geekmidas/audit": "^10.0.0-alpha.100",
|
|
315
|
+
"@geekmidas/auth": "10.0.0-alpha.100",
|
|
316
|
+
"@geekmidas/cache": "^10.0.0-alpha.100",
|
|
317
|
+
"@geekmidas/db": "^10.0.0-alpha.100",
|
|
318
|
+
"@geekmidas/emailkit": "^10.0.0-alpha.100",
|
|
319
|
+
"@geekmidas/envkit": "^10.0.0-alpha.100",
|
|
320
|
+
"@geekmidas/errors": "^10.0.0-alpha.100",
|
|
321
|
+
"@geekmidas/events": "^10.0.0-alpha.100",
|
|
322
|
+
"@geekmidas/logger": "^10.0.0-alpha.100",
|
|
323
|
+
"@geekmidas/rate-limit": "^10.0.0-alpha.100",
|
|
324
|
+
"@geekmidas/schema": "^10.0.0-alpha.100",
|
|
325
|
+
"@geekmidas/services": "^10.0.0-alpha.100",
|
|
326
|
+
"@geekmidas/telescope": "10.0.0-alpha.100",
|
|
327
|
+
"@geekmidas/testkit": "^10.0.0-alpha.100"
|
|
266
328
|
},
|
|
267
329
|
"peerDependencies": {
|
|
268
|
-
"@
|
|
269
|
-
"@
|
|
270
|
-
"
|
|
271
|
-
"
|
|
272
|
-
"
|
|
273
|
-
"
|
|
274
|
-
"
|
|
275
|
-
"
|
|
276
|
-
"@geekmidas/
|
|
277
|
-
"@geekmidas/
|
|
278
|
-
"@geekmidas/
|
|
279
|
-
"@geekmidas/
|
|
280
|
-
"@geekmidas/
|
|
281
|
-
"@geekmidas/
|
|
282
|
-
"@geekmidas/
|
|
283
|
-
"@geekmidas/
|
|
284
|
-
"@geekmidas/
|
|
285
|
-
"@geekmidas/rate-limit": "^10.0.0-alpha.1",
|
|
286
|
-
"@geekmidas/schema": "^10.0.0-alpha.1",
|
|
287
|
-
"@geekmidas/services": "^10.0.0-alpha.1",
|
|
288
|
-
"@geekmidas/storage": "^10.0.0-alpha.1",
|
|
289
|
-
"@geekmidas/telescope": "10.0.0-alpha.1"
|
|
330
|
+
"@aws-sdk/client-kms": ">=3.1136.0",
|
|
331
|
+
"@middy/core": ">=7.9.2",
|
|
332
|
+
"@types/aws-lambda": ">=8.10.163",
|
|
333
|
+
"better-auth": ">=1.7.5",
|
|
334
|
+
"hono": ">=4.13.8",
|
|
335
|
+
"kysely": "~0.29.6",
|
|
336
|
+
"msw": ">=2.15.0",
|
|
337
|
+
"pg": ">=8.23.0",
|
|
338
|
+
"@geekmidas/audit": "^10.0.0-alpha.100",
|
|
339
|
+
"@geekmidas/auth": "10.0.0-alpha.100",
|
|
340
|
+
"@geekmidas/cache": "^10.0.0-alpha.100",
|
|
341
|
+
"@geekmidas/db": "^10.0.0-alpha.100",
|
|
342
|
+
"@geekmidas/emailkit": "^10.0.0-alpha.100",
|
|
343
|
+
"@geekmidas/rate-limit": "^10.0.0-alpha.100",
|
|
344
|
+
"@geekmidas/storage": "^10.0.0-alpha.100",
|
|
345
|
+
"@geekmidas/telescope": "10.0.0-alpha.100",
|
|
346
|
+
"@geekmidas/testkit": "^10.0.0-alpha.100"
|
|
290
347
|
},
|
|
291
348
|
"peerDependenciesMeta": {
|
|
349
|
+
"@aws-sdk/client-kms": {
|
|
350
|
+
"optional": true
|
|
351
|
+
},
|
|
292
352
|
"@geekmidas/audit": {
|
|
293
353
|
"optional": true
|
|
294
354
|
},
|
|
@@ -298,25 +358,19 @@
|
|
|
298
358
|
"@geekmidas/db": {
|
|
299
359
|
"optional": true
|
|
300
360
|
},
|
|
301
|
-
"@geekmidas/
|
|
302
|
-
"optional": true
|
|
303
|
-
},
|
|
304
|
-
"@geekmidas/errors": {
|
|
305
|
-
"optional": true
|
|
306
|
-
},
|
|
307
|
-
"@geekmidas/events": {
|
|
361
|
+
"@geekmidas/emailkit": {
|
|
308
362
|
"optional": true
|
|
309
363
|
},
|
|
310
|
-
"@geekmidas/
|
|
364
|
+
"@geekmidas/rate-limit": {
|
|
311
365
|
"optional": true
|
|
312
366
|
},
|
|
313
|
-
"@geekmidas/
|
|
367
|
+
"@geekmidas/storage": {
|
|
314
368
|
"optional": true
|
|
315
369
|
},
|
|
316
|
-
"@geekmidas/
|
|
370
|
+
"@geekmidas/telescope": {
|
|
317
371
|
"optional": true
|
|
318
372
|
},
|
|
319
|
-
"@geekmidas/
|
|
373
|
+
"@geekmidas/testkit": {
|
|
320
374
|
"optional": true
|
|
321
375
|
},
|
|
322
376
|
"@middy/core": {
|
|
@@ -325,32 +379,24 @@
|
|
|
325
379
|
"@types/aws-lambda": {
|
|
326
380
|
"optional": true
|
|
327
381
|
},
|
|
328
|
-
"
|
|
329
|
-
"optional": true
|
|
330
|
-
},
|
|
331
|
-
"msw": {
|
|
332
|
-
"optional": true
|
|
333
|
-
},
|
|
334
|
-
"@geekmidas/manifest": {
|
|
382
|
+
"better-auth": {
|
|
335
383
|
"optional": true
|
|
336
384
|
},
|
|
337
|
-
"
|
|
385
|
+
"hono": {
|
|
338
386
|
"optional": true
|
|
339
387
|
},
|
|
340
388
|
"kysely": {
|
|
341
389
|
"optional": true
|
|
342
390
|
},
|
|
343
|
-
"
|
|
344
|
-
"optional": true
|
|
345
|
-
},
|
|
346
|
-
"@geekmidas/emailkit": {
|
|
391
|
+
"msw": {
|
|
347
392
|
"optional": true
|
|
348
393
|
},
|
|
349
|
-
"
|
|
394
|
+
"pg": {
|
|
350
395
|
"optional": true
|
|
351
396
|
}
|
|
352
397
|
},
|
|
353
398
|
"scripts": {
|
|
354
|
-
"ts": "tsc --noEmit --skipLibCheck src/**/*.ts"
|
|
399
|
+
"ts": "tsc --noEmit --skipLibCheck src/**/*.ts",
|
|
400
|
+
"build": "tsdown --config ../../tsdown.config.ts --filter ."
|
|
355
401
|
}
|
|
356
402
|
}
|
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
import { Function, FunctionHandler } from "./index-BTvozlUD.cjs";
|
|
2
|
-
import { EnvironmentParser } from "@geekmidas/envkit";
|
|
3
|
-
import { EventPublisher } from "@geekmidas/events";
|
|
4
|
-
import { Logger } from "@geekmidas/logger";
|
|
5
|
-
import { ComposableStandardSchema, InferComposableStandardSchema, InferStandardSchema } from "@geekmidas/schema";
|
|
6
|
-
import { Service, ServiceDiscovery, ServiceRecord } from "@geekmidas/services";
|
|
7
|
-
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
8
|
-
import { AuditStorage, AuditableAction, Auditor } from "@geekmidas/audit";
|
|
9
|
-
import { Handler } from "aws-lambda";
|
|
10
|
-
|
|
11
|
-
//#region src/functions/FunctionExecutionWrapper.d.ts
|
|
12
|
-
declare abstract class FunctionExecutionWrapper<TInput extends ComposableStandardSchema | undefined = undefined, TOutSchema extends StandardSchemaV1 | undefined = undefined, TServices extends Service[] = [], TLogger extends Logger = Logger, TEventPublisher extends EventPublisher<any> | undefined = undefined, TEventPublisherServiceName extends string = string, TAuditStorage extends AuditStorage | undefined = undefined, TAuditStorageServiceName extends string = string, TDatabase = undefined, TDatabaseServiceName extends string = string, TAuditAction extends AuditableAction<string, unknown> = AuditableAction<string, unknown>> {
|
|
13
|
-
protected envParser: EnvironmentParser<{}>;
|
|
14
|
-
protected readonly fn: Function<TInput, TServices, TLogger, TOutSchema, TEventPublisher, TEventPublisherServiceName, TAuditStorage, TAuditStorageServiceName, TDatabase, TDatabaseServiceName, TAuditAction, FunctionHandler<TInput, TServices, TLogger, TOutSchema, TDatabase, TAuditStorage, TAuditAction>>;
|
|
15
|
-
constructor(envParser: EnvironmentParser<{}>, fn: Function<TInput, TServices, TLogger, TOutSchema, TEventPublisher, TEventPublisherServiceName, TAuditStorage, TAuditStorageServiceName, TDatabase, TDatabaseServiceName, TAuditAction, FunctionHandler<TInput, TServices, TLogger, TOutSchema, TDatabase, TAuditStorage, TAuditAction>>);
|
|
16
|
-
protected _logger?: TLogger;
|
|
17
|
-
get logger(): TLogger;
|
|
18
|
-
get serviceDiscovery(): ServiceDiscovery<ServiceRecord<TServices>>;
|
|
19
|
-
getServices(): Promise<ServiceRecord<TServices>>;
|
|
20
|
-
getDatabase(): Promise<TDatabase | undefined>;
|
|
21
|
-
/**
|
|
22
|
-
* Get the audit storage service if configured.
|
|
23
|
-
* Returns undefined if no auditor storage is configured.
|
|
24
|
-
*/
|
|
25
|
-
getAuditStorage(): Promise<TAuditStorage | undefined>;
|
|
26
|
-
/**
|
|
27
|
-
* Create an auditor instance for the function.
|
|
28
|
-
* Returns undefined if no auditor storage is configured.
|
|
29
|
-
*/
|
|
30
|
-
createAuditor(): Promise<Auditor<TAuditAction> | undefined>;
|
|
31
|
-
/**
|
|
32
|
-
* Execute handler with audit transaction support.
|
|
33
|
-
* If the audit storage has a database (via getDatabase()), wraps execution
|
|
34
|
-
* in a transaction so audits are atomic with handler's database operations.
|
|
35
|
-
*
|
|
36
|
-
* @param handler - The handler function to execute (receives auditor and db)
|
|
37
|
-
* @returns The handler result
|
|
38
|
-
*/
|
|
39
|
-
executeWithAudit<T>(handler: (ctx: {
|
|
40
|
-
auditor?: Auditor<TAuditAction>;
|
|
41
|
-
db?: TDatabase;
|
|
42
|
-
}) => Promise<T>): Promise<T>;
|
|
43
|
-
getFunctionInput<TEvent>(event: TEvent): Promise<InferComposableStandardSchema<TInput>>;
|
|
44
|
-
publishEvents(response: InferStandardSchema<TOutSchema>): Promise<void>;
|
|
45
|
-
parseComposableStandardSchema<T extends ComposableStandardSchema>(data: unknown, schema: T): Promise<InferComposableStandardSchema<T>>;
|
|
46
|
-
}
|
|
47
|
-
//# sourceMappingURL=FunctionExecutionWrapper.d.ts.map
|
|
48
|
-
//#endregion
|
|
49
|
-
//#region src/functions/AWSLambdaFunction.d.ts
|
|
50
|
-
type AWSLambdaHandler<TEvent = any, TResult = any> = Handler<TEvent, TResult>;
|
|
51
|
-
declare class AWSLambdaFunction<TInput extends ComposableStandardSchema | undefined = undefined, TOutSchema extends StandardSchemaV1 | undefined = undefined, TServices extends Service[] = [], TLogger extends Logger = Logger, TEventPublisher extends EventPublisher<any> | undefined = undefined, TEventPublisherServiceName extends string = string, TAuditStorage extends AuditStorage | undefined = undefined, TAuditStorageServiceName extends string = string, TDatabase = undefined, TDatabaseServiceName extends string = string, TAuditAction extends AuditableAction<string, unknown> = AuditableAction<string, unknown>> extends FunctionExecutionWrapper<TInput, TOutSchema, TServices, TLogger, TEventPublisher, TEventPublisherServiceName, TAuditStorage, TAuditStorageServiceName, TDatabase, TDatabaseServiceName, TAuditAction> {
|
|
52
|
-
readonly fn: Function<TInput, TServices, TLogger, TOutSchema, TEventPublisher, TEventPublisherServiceName, TAuditStorage, TAuditStorageServiceName, TDatabase, TDatabaseServiceName, TAuditAction, FunctionHandler<TInput, TServices, TLogger, TOutSchema, TDatabase, TAuditStorage, TAuditAction>>;
|
|
53
|
-
constructor(envParser: EnvironmentParser<{}>, fn: Function<TInput, TServices, TLogger, TOutSchema, TEventPublisher, TEventPublisherServiceName, TAuditStorage, TAuditStorageServiceName, TDatabase, TDatabaseServiceName, TAuditAction, FunctionHandler<TInput, TServices, TLogger, TOutSchema, TDatabase, TAuditStorage, TAuditAction>>);
|
|
54
|
-
private error;
|
|
55
|
-
private baseInput;
|
|
56
|
-
private input;
|
|
57
|
-
private loggerMiddleware;
|
|
58
|
-
private services;
|
|
59
|
-
private database;
|
|
60
|
-
private auditor;
|
|
61
|
-
private events;
|
|
62
|
-
private _handler;
|
|
63
|
-
get handler(): AWSLambdaHandler;
|
|
64
|
-
}
|
|
65
|
-
//# sourceMappingURL=AWSLambdaFunction.d.ts.map
|
|
66
|
-
//#endregion
|
|
67
|
-
//#region src/crons/Cron.d.ts
|
|
68
|
-
declare class Cron<TInput extends ComposableStandardSchema | undefined = undefined, TServices extends Service[] = [], TLogger extends Logger = Logger, OutSchema extends StandardSchemaV1 | undefined = undefined, TEventPublisher extends EventPublisher<any> | undefined = undefined, TEventPublisherServiceName extends string = string, TDatabase = undefined, TDatabaseServiceName extends string = string> extends Function<TInput, TServices, TLogger, OutSchema, TEventPublisher, TEventPublisherServiceName, undefined, string, TDatabase, TDatabaseServiceName, AuditableAction<string, unknown>, FunctionHandler<TInput, TServices, TLogger, OutSchema, TDatabase>> {
|
|
69
|
-
protected _schedule?: ScheduleExpression | undefined;
|
|
70
|
-
static isCron(obj: any): obj is Cron<any, any, any, any>;
|
|
71
|
-
constructor(fn: FunctionHandler<TInput, TServices, TLogger, OutSchema, TDatabase>, timeout?: number, _schedule?: ScheduleExpression | undefined, input?: TInput, outputSchema?: OutSchema, services?: TServices, logger?: TLogger, publisherService?: Service<TEventPublisherServiceName, TEventPublisher>, events?: any[], memorySize?: number, databaseService?: Service<TDatabaseServiceName, TDatabase>,
|
|
72
|
-
/**
|
|
73
|
-
* The construct ids `.dependsOn()` named — last, so no existing positional
|
|
74
|
-
* argument moves.
|
|
75
|
-
*/
|
|
76
|
-
constructs?: string[]);
|
|
77
|
-
get schedule(): ScheduleExpression | undefined;
|
|
78
|
-
}
|
|
79
|
-
type RateExpression = `rate(${string})`;
|
|
80
|
-
type CronMinute = '*' | number | `${number}` | `${number}-${number}` | `${number}/${number}` | `*/${number}` | `${number},${number}` | string;
|
|
81
|
-
type CronHour = '*' | number | `${number}` | `${number}-${number}` | `${number}/${number}` | `*/${number}` | `${number},${number}` | string;
|
|
82
|
-
type CronDay = '*' | number | `${number}` | `${number}-${number}` | `${number}/${number}` | `*/${number}` | `${number},${number}` | string;
|
|
83
|
-
type CronMonth = '*' | number | `${number}` | `${number}-${number}` | `${number}/${number}` | `*/${number}` | 'JAN' | 'FEB' | 'MAR' | 'APR' | 'MAY' | 'JUN' | 'JUL' | 'AUG' | 'SEP' | 'OCT' | 'NOV' | 'DEC' | string;
|
|
84
|
-
type CronWeekday = '*' | number | `${number}` | `${number}-${number}` | `${number}/${number}` | `*/${number}` | 'SUN' | 'MON' | 'TUE' | 'WED' | 'THU' | 'FRI' | 'SAT' | `${string}-${string}` | string;
|
|
85
|
-
type CronExpression = `cron(${CronMinute} ${CronHour} ${CronDay} ${CronMonth} ${CronWeekday})`;
|
|
86
|
-
type ScheduleExpression = RateExpression | CronExpression;
|
|
87
|
-
//#endregion
|
|
88
|
-
//#region src/crons/AWSScheduledFunction.d.ts
|
|
89
|
-
/**
|
|
90
|
-
* AWS Lambda adaptor for {@link Cron} constructs.
|
|
91
|
-
*
|
|
92
|
-
* A `Cron` is a {@link import('../functions').Function} that is invoked on a
|
|
93
|
-
* schedule (an EventBridge rule) rather than by an API request. Because of
|
|
94
|
-
* that, the runtime execution pipeline is identical to a regular Lambda
|
|
95
|
-
* function: input parsing, service/database/auditor wiring, event publishing,
|
|
96
|
-
* error handling, and the `runWithRequestContext` wrapper that powers
|
|
97
|
-
* request-scoped logging via `serviceContext.getLogger()`.
|
|
98
|
-
*
|
|
99
|
-
* This adaptor therefore reuses {@link AWSLambdaFunction} wholesale and only
|
|
100
|
-
* narrows the constructor to accept a `Cron`. The schedule expression itself
|
|
101
|
-
* (`cron.schedule`) is **deploy-time** infrastructure consumed by the CLI to
|
|
102
|
-
* provision the EventBridge rule — it is not needed at runtime.
|
|
103
|
-
*
|
|
104
|
-
* @example
|
|
105
|
-
* ```typescript
|
|
106
|
-
* import { AWSScheduledFunction } from '@geekmidas/constructs/crons';
|
|
107
|
-
* import { cancelPastBookings } from '../../../src/crons/cancelPastBookings.js';
|
|
108
|
-
* import { envParser } from '../../../src/env';
|
|
109
|
-
*
|
|
110
|
-
* const adapter = new AWSScheduledFunction(envParser, cancelPastBookings);
|
|
111
|
-
*
|
|
112
|
-
* export const handler = adapter.handler;
|
|
113
|
-
* ```
|
|
114
|
-
*/
|
|
115
|
-
declare class AWSScheduledFunction<TInput extends ComposableStandardSchema | undefined = undefined, TServices extends Service[] = [], TLogger extends Logger = Logger, TOutSchema extends StandardSchemaV1 | undefined = undefined, TEventPublisher extends EventPublisher<any> | undefined = undefined, TEventPublisherServiceName extends string = string, TDatabase = undefined, TDatabaseServiceName extends string = string> extends AWSLambdaFunction<TInput, TOutSchema, TServices, TLogger, TEventPublisher, TEventPublisherServiceName, undefined, string, TDatabase, TDatabaseServiceName> {
|
|
116
|
-
constructor(envParser: EnvironmentParser<{}>, cron: Cron<TInput, TServices, TLogger, TOutSchema, TEventPublisher, TEventPublisherServiceName, TDatabase, TDatabaseServiceName>);
|
|
117
|
-
}
|
|
118
|
-
//# sourceMappingURL=AWSScheduledFunction.d.ts.map
|
|
119
|
-
|
|
120
|
-
//#endregion
|
|
121
|
-
export { AWSLambdaFunction, AWSScheduledFunction, Cron, CronExpression, RateExpression, ScheduleExpression };
|
|
122
|
-
//# sourceMappingURL=AWSScheduledFunction-9bJS4WdJ.d.cts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AWSScheduledFunction-9bJS4WdJ.d.cts","names":[],"sources":["../src/functions/FunctionExecutionWrapper.ts","../src/functions/AWSLambdaFunction.ts","../src/crons/Cron.ts","../src/crons/AWSScheduledFunction.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;;uBAqBsB,wCACN,qEACI,4DACD,gCACF,SAAS,gCACD,uHAEF,kLAID,mCAAmC;uBAMlC;yBACE,SACtB,QACA,WACA,SACA,YACA,iBACA,4BACA,eACA,0BACA,WACA,sBACA,cACA,gBACC,QACA,WACA,SACA,YACA,WACA,eACA;EArCkB,WAAA,CAAA,SAAA,EAiBC,iBAjBuB,CAAA,CAAA,CAAA,CAAA,EAAA,EAAA,EAkBrB,QAlBqB,CAmB3C,MAnB2C,EAoB3C,SApB2C,EAqB3C,OArB2C,EAsB3C,UAtB2C,EAuB3C,eAvB2C,EAwB3C,0BAxB2C,EAyB3C,aAzB2C,EA0B3C,wBA1B2C,EA2B3C,SA3B2C,EA4B3C,oBA5B2C,EA6B3C,YA7B2C,EA8B3C,eA9B2C,CA+B1C,MA/B0C,EAgC1C,S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