@pattern-stack/codegen 0.14.0 → 0.14.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. package/dist/runtime/subsystems/bridge/bridge-delivery.memory-backend.d.ts +1 -1
  2. package/dist/runtime/subsystems/bridge/bridge-delivery.memory-backend.js +2 -2
  3. package/dist/runtime/subsystems/bridge/bridge-delivery.memory-backend.js.map +1 -1
  4. package/dist/runtime/subsystems/bridge/bridge.module.js +172 -159
  5. package/dist/runtime/subsystems/bridge/bridge.module.js.map +1 -1
  6. package/dist/runtime/subsystems/bridge/index.js +154 -141
  7. package/dist/runtime/subsystems/bridge/index.js.map +1 -1
  8. package/dist/runtime/subsystems/index.js +161 -148
  9. package/dist/runtime/subsystems/index.js.map +1 -1
  10. package/dist/runtime/subsystems/jobs/index.js +128 -115
  11. package/dist/runtime/subsystems/jobs/index.js.map +1 -1
  12. package/dist/runtime/subsystems/jobs/job-orchestrator.memory-backend.js +128 -6
  13. package/dist/runtime/subsystems/jobs/job-orchestrator.memory-backend.js.map +1 -1
  14. package/dist/runtime/subsystems/jobs/job-run-service.memory-backend.js +17 -0
  15. package/dist/runtime/subsystems/jobs/job-run-service.memory-backend.js.map +1 -1
  16. package/dist/runtime/subsystems/jobs/job-step-service.memory-backend.js +25 -2
  17. package/dist/runtime/subsystems/jobs/job-step-service.memory-backend.js.map +1 -1
  18. package/dist/runtime/subsystems/jobs/job-worker.module.d.ts +26 -1
  19. package/dist/runtime/subsystems/jobs/job-worker.module.js +150 -137
  20. package/dist/runtime/subsystems/jobs/job-worker.module.js.map +1 -1
  21. package/dist/runtime/subsystems/jobs/jobs-domain.module.js +133 -124
  22. package/dist/runtime/subsystems/jobs/jobs-domain.module.js.map +1 -1
  23. package/dist/src/cli/index.js +804 -454
  24. package/dist/src/cli/index.js.map +1 -1
  25. package/package.json +1 -1
  26. package/runtime/subsystems/bridge/bridge-delivery.memory-backend.ts +8 -1
  27. package/runtime/subsystems/jobs/job-orchestrator.memory-backend.ts +8 -3
  28. package/runtime/subsystems/jobs/job-run-service.memory-backend.ts +4 -1
  29. package/runtime/subsystems/jobs/job-step-service.memory-backend.ts +7 -2
  30. package/runtime/subsystems/jobs/job-worker.module.ts +13 -1
@@ -2364,8 +2364,113 @@ var MemoryJobStore = class {
2364
2364
  };
2365
2365
 
2366
2366
  // runtime/subsystems/jobs/job-orchestrator.memory-backend.ts
2367
+ import { randomUUID as randomUUID4 } from "crypto";
2368
+ import { Inject as Inject9, Injectable as Injectable9, Logger as Logger5, Optional as Optional3 } from "@nestjs/common";
2369
+ import { ModuleRef } from "@nestjs/core";
2370
+
2371
+ // runtime/subsystems/jobs/job-step-service.memory-backend.ts
2367
2372
  import { randomUUID as randomUUID3 } from "crypto";
2368
- import { Inject as Inject8, Injectable as Injectable8, Logger as Logger5, Optional as Optional3 } from "@nestjs/common";
2373
+ import { Inject as Inject8, Injectable as Injectable8 } from "@nestjs/common";
2374
+ var MemoryJobStepService = class {
2375
+ // ADR-037 (package-mode DI): explicit `@Inject(MemoryJobStore)` — the
2376
+ // published bundle carries no `design:paramtypes`, so a by-type inject
2377
+ // would resolve to `undefined` in package mode.
2378
+ constructor(store) {
2379
+ this.store = store;
2380
+ }
2381
+ store;
2382
+ async findStep(runId, stepId) {
2383
+ const rows = this.store.steps.get(runId);
2384
+ if (!rows) return null;
2385
+ const match = rows.find(
2386
+ (r) => r.stepId === stepId && r.status === "completed"
2387
+ );
2388
+ return match ?? null;
2389
+ }
2390
+ async recordStep(input) {
2391
+ const rows = this.getOrCreateRows(input.jobRunId);
2392
+ const existingIdx = rows.findIndex((r) => r.stepId === input.stepId);
2393
+ const normalisedInput = input.input ?? null;
2394
+ const normalisedOutput = input.output ?? null;
2395
+ if (existingIdx >= 0) {
2396
+ const prev = rows[existingIdx];
2397
+ const next = {
2398
+ ...prev,
2399
+ status: input.status,
2400
+ input: normalisedInput ?? prev.input,
2401
+ output: normalisedOutput ?? prev.output,
2402
+ error: input.error ?? prev.error,
2403
+ attempts: input.attempts ?? prev.attempts,
2404
+ startedAt: input.startedAt ?? prev.startedAt,
2405
+ finishedAt: input.finishedAt ?? prev.finishedAt
2406
+ };
2407
+ rows[existingIdx] = next;
2408
+ return next;
2409
+ }
2410
+ const seq = input.seq ?? this.nextSeq(rows);
2411
+ const row = {
2412
+ id: randomUUID3(),
2413
+ jobRunId: input.jobRunId,
2414
+ stepId: input.stepId,
2415
+ kind: input.kind,
2416
+ seq,
2417
+ status: input.status,
2418
+ input: normalisedInput,
2419
+ output: normalisedOutput,
2420
+ error: input.error ?? null,
2421
+ attempts: input.attempts ?? 0,
2422
+ startedAt: input.startedAt ?? null,
2423
+ finishedAt: input.finishedAt ?? null
2424
+ };
2425
+ rows.push(row);
2426
+ return row;
2427
+ }
2428
+ /**
2429
+ * Replay helper — wipe every step row for a run. Mirrors the `scratch`
2430
+ * replay mode of the Drizzle backend (`DELETE FROM job_step WHERE job_run_id = …`).
2431
+ */
2432
+ clearStepsForRun(runId) {
2433
+ this.store.steps.delete(runId);
2434
+ }
2435
+ /**
2436
+ * Remove every non-`completed` row for the run. Memoized (`completed`)
2437
+ * rows are preserved — this is the `last_checkpoint` / `last_step`
2438
+ * semantics the Drizzle backend implements via
2439
+ * `DELETE … WHERE status != 'completed'`. Both replay modes route here
2440
+ * (Phase 1 collapses `last_step` onto this behaviour; see JOB-3 notes).
2441
+ */
2442
+ clearIncompleteSteps(runId) {
2443
+ const rows = this.store.steps.get(runId);
2444
+ if (!rows) return;
2445
+ const kept = rows.filter((r) => r.status === "completed");
2446
+ if (kept.length === 0) {
2447
+ this.store.steps.delete(runId);
2448
+ } else {
2449
+ this.store.steps.set(runId, kept);
2450
+ }
2451
+ }
2452
+ getOrCreateRows(runId) {
2453
+ let rows = this.store.steps.get(runId);
2454
+ if (!rows) {
2455
+ rows = [];
2456
+ this.store.steps.set(runId, rows);
2457
+ }
2458
+ return rows;
2459
+ }
2460
+ nextSeq(rows) {
2461
+ let max = 0;
2462
+ for (const r of rows) {
2463
+ if (r.seq > max) max = r.seq;
2464
+ }
2465
+ return max + 1;
2466
+ }
2467
+ };
2468
+ MemoryJobStepService = __decorateClass([
2469
+ Injectable8(),
2470
+ __decorateParam(0, Inject8(MemoryJobStore))
2471
+ ], MemoryJobStepService);
2472
+
2473
+ // runtime/subsystems/jobs/job-orchestrator.memory-backend.ts
2369
2474
  var QUEUED_RUN_AT = /* @__PURE__ */ new Date(864e13);
2370
2475
  var TERMINAL_STATUSES2 = [
2371
2476
  "completed",
@@ -2536,7 +2641,7 @@ var MemoryJobOrchestrator = class {
2536
2641
  }
2537
2642
  }
2538
2643
  }
2539
- const newId = randomUUID3();
2644
+ const newId = randomUUID4();
2540
2645
  let rootRunId = newId;
2541
2646
  if (opts.parentRunId) {
2542
2647
  const parent = this.store.runs.get(opts.parentRunId);
@@ -2934,9 +3039,12 @@ var MemoryJobOrchestrator = class {
2934
3039
  }
2935
3040
  };
2936
3041
  MemoryJobOrchestrator = __decorateClass([
2937
- Injectable8(),
2938
- __decorateParam(2, Inject8(JOBS_MULTI_TENANT)),
2939
- __decorateParam(3, Optional3())
3042
+ Injectable9(),
3043
+ __decorateParam(0, Inject9(MemoryJobStore)),
3044
+ __decorateParam(1, Inject9(MemoryJobStepService)),
3045
+ __decorateParam(2, Inject9(JOBS_MULTI_TENANT)),
3046
+ __decorateParam(3, Optional3()),
3047
+ __decorateParam(3, Inject9(ModuleRef))
2940
3048
  ], MemoryJobOrchestrator);
2941
3049
  function classifyError2(err, policy, currentAttempts) {
2942
3050
  if (!policy) return "fail";
@@ -2970,7 +3078,7 @@ function serialiseError2(err, attempt, retryable) {
2970
3078
  }
2971
3079
 
2972
3080
  // runtime/subsystems/jobs/job-run-service.memory-backend.ts
2973
- import { Inject as Inject9, Injectable as Injectable9 } from "@nestjs/common";
3081
+ import { Inject as Inject10, Injectable as Injectable10 } from "@nestjs/common";
2974
3082
  var NON_TERMINAL_STATUSES2 = [
2975
3083
  "pending",
2976
3084
  "running",
@@ -3137,9 +3245,10 @@ var MemoryJobRunService = class {
3137
3245
  }
3138
3246
  };
3139
3247
  MemoryJobRunService = __decorateClass([
3140
- Injectable9(),
3141
- __decorateParam(1, Inject9(JOB_ORCHESTRATOR)),
3142
- __decorateParam(2, Inject9(JOBS_MULTI_TENANT))
3248
+ Injectable10(),
3249
+ __decorateParam(0, Inject10(MemoryJobStore)),
3250
+ __decorateParam(1, Inject10(JOB_ORCHESTRATOR)),
3251
+ __decorateParam(2, Inject10(JOBS_MULTI_TENANT))
3143
3252
  ], MemoryJobRunService);
3144
3253
  function compareBy(a, b, order) {
3145
3254
  switch (order) {
@@ -3155,104 +3264,6 @@ function compareBy(a, b, order) {
3155
3264
  }
3156
3265
  }
3157
3266
 
3158
- // runtime/subsystems/jobs/job-step-service.memory-backend.ts
3159
- import { randomUUID as randomUUID4 } from "crypto";
3160
- import { Injectable as Injectable10 } from "@nestjs/common";
3161
- var MemoryJobStepService = class {
3162
- constructor(store) {
3163
- this.store = store;
3164
- }
3165
- store;
3166
- async findStep(runId, stepId) {
3167
- const rows = this.store.steps.get(runId);
3168
- if (!rows) return null;
3169
- const match = rows.find(
3170
- (r) => r.stepId === stepId && r.status === "completed"
3171
- );
3172
- return match ?? null;
3173
- }
3174
- async recordStep(input) {
3175
- const rows = this.getOrCreateRows(input.jobRunId);
3176
- const existingIdx = rows.findIndex((r) => r.stepId === input.stepId);
3177
- const normalisedInput = input.input ?? null;
3178
- const normalisedOutput = input.output ?? null;
3179
- if (existingIdx >= 0) {
3180
- const prev = rows[existingIdx];
3181
- const next = {
3182
- ...prev,
3183
- status: input.status,
3184
- input: normalisedInput ?? prev.input,
3185
- output: normalisedOutput ?? prev.output,
3186
- error: input.error ?? prev.error,
3187
- attempts: input.attempts ?? prev.attempts,
3188
- startedAt: input.startedAt ?? prev.startedAt,
3189
- finishedAt: input.finishedAt ?? prev.finishedAt
3190
- };
3191
- rows[existingIdx] = next;
3192
- return next;
3193
- }
3194
- const seq = input.seq ?? this.nextSeq(rows);
3195
- const row = {
3196
- id: randomUUID4(),
3197
- jobRunId: input.jobRunId,
3198
- stepId: input.stepId,
3199
- kind: input.kind,
3200
- seq,
3201
- status: input.status,
3202
- input: normalisedInput,
3203
- output: normalisedOutput,
3204
- error: input.error ?? null,
3205
- attempts: input.attempts ?? 0,
3206
- startedAt: input.startedAt ?? null,
3207
- finishedAt: input.finishedAt ?? null
3208
- };
3209
- rows.push(row);
3210
- return row;
3211
- }
3212
- /**
3213
- * Replay helper — wipe every step row for a run. Mirrors the `scratch`
3214
- * replay mode of the Drizzle backend (`DELETE FROM job_step WHERE job_run_id = …`).
3215
- */
3216
- clearStepsForRun(runId) {
3217
- this.store.steps.delete(runId);
3218
- }
3219
- /**
3220
- * Remove every non-`completed` row for the run. Memoized (`completed`)
3221
- * rows are preserved — this is the `last_checkpoint` / `last_step`
3222
- * semantics the Drizzle backend implements via
3223
- * `DELETE … WHERE status != 'completed'`. Both replay modes route here
3224
- * (Phase 1 collapses `last_step` onto this behaviour; see JOB-3 notes).
3225
- */
3226
- clearIncompleteSteps(runId) {
3227
- const rows = this.store.steps.get(runId);
3228
- if (!rows) return;
3229
- const kept = rows.filter((r) => r.status === "completed");
3230
- if (kept.length === 0) {
3231
- this.store.steps.delete(runId);
3232
- } else {
3233
- this.store.steps.set(runId, kept);
3234
- }
3235
- }
3236
- getOrCreateRows(runId) {
3237
- let rows = this.store.steps.get(runId);
3238
- if (!rows) {
3239
- rows = [];
3240
- this.store.steps.set(runId, rows);
3241
- }
3242
- return rows;
3243
- }
3244
- nextSeq(rows) {
3245
- let max = 0;
3246
- for (const r of rows) {
3247
- if (r.seq > max) max = r.seq;
3248
- }
3249
- return max + 1;
3250
- }
3251
- };
3252
- MemoryJobStepService = __decorateClass([
3253
- Injectable10()
3254
- ], MemoryJobStepService);
3255
-
3256
3267
  // runtime/subsystems/jobs/jobs-domain.module.ts
3257
3268
  import { Module as Module2 } from "@nestjs/common";
3258
3269
  var JobsDomainModule = class {
@@ -3323,12 +3334,13 @@ JobsDomainModule = __decorateClass([
3323
3334
 
3324
3335
  // runtime/subsystems/jobs/job-worker.module.ts
3325
3336
  import {
3326
- Inject as Inject10,
3337
+ Inject as Inject11,
3327
3338
  Injectable as Injectable11,
3328
3339
  Logger as Logger6,
3329
3340
  Module as Module3,
3330
3341
  Optional as Optional4
3331
3342
  } from "@nestjs/common";
3343
+ import { ModuleRef as ModuleRef2 } from "@nestjs/core";
3332
3344
  var DEFAULT_SHUTDOWN_TIMEOUT_MS2 = 3e4;
3333
3345
  var JOB_WORKER_MODULE_OPTIONS = Symbol.for(tokenKey("jobs", "worker-module-options"));
3334
3346
  var JobWorkerOrchestrator = class {
@@ -3523,16 +3535,17 @@ var JobWorkerOrchestrator = class {
3523
3535
  };
3524
3536
  JobWorkerOrchestrator = __decorateClass([
3525
3537
  Injectable11(),
3526
- __decorateParam(0, Inject10(JOB_ORCHESTRATOR)),
3527
- __decorateParam(1, Inject10(JOB_RUN_SERVICE)),
3528
- __decorateParam(2, Inject10(JOB_STEP_SERVICE)),
3529
- __decorateParam(3, Inject10(JOB_WORKER_MODULE_OPTIONS)),
3538
+ __decorateParam(0, Inject11(JOB_ORCHESTRATOR)),
3539
+ __decorateParam(1, Inject11(JOB_RUN_SERVICE)),
3540
+ __decorateParam(2, Inject11(JOB_STEP_SERVICE)),
3541
+ __decorateParam(3, Inject11(JOB_WORKER_MODULE_OPTIONS)),
3530
3542
  __decorateParam(4, Optional4()),
3531
- __decorateParam(4, Inject10(DRIZZLE)),
3543
+ __decorateParam(4, Inject11(DRIZZLE)),
3544
+ __decorateParam(5, Inject11(ModuleRef2)),
3532
3545
  __decorateParam(6, Optional4()),
3533
- __decorateParam(6, Inject10(BULLMQ_CONNECTION)),
3546
+ __decorateParam(6, Inject11(BULLMQ_CONNECTION)),
3534
3547
  __decorateParam(7, Optional4()),
3535
- __decorateParam(7, Inject10(BULLMQ_RESOLVED_CONFIG))
3548
+ __decorateParam(7, Inject11(BULLMQ_RESOLVED_CONFIG))
3536
3549
  ], JobWorkerOrchestrator);
3537
3550
  var JobWorkerModule = class {
3538
3551
  static forRoot(opts) {
@@ -3572,7 +3585,7 @@ var CACHE_DEFAULT_TTL = Symbol.for(tokenKey("cache", "default-ttl"));
3572
3585
  import { Module as Module4 } from "@nestjs/common";
3573
3586
 
3574
3587
  // runtime/subsystems/cache/cache.drizzle-backend.ts
3575
- import { Injectable as Injectable12, Inject as Inject11, Optional as Optional5 } from "@nestjs/common";
3588
+ import { Injectable as Injectable12, Inject as Inject12, Optional as Optional5 } from "@nestjs/common";
3576
3589
  import { gt as gt2, or as or3, like, sql as sql7, eq as eq6 } from "drizzle-orm";
3577
3590
 
3578
3591
  // runtime/subsystems/cache/cache.schema.ts
@@ -3677,13 +3690,13 @@ var DrizzleCacheService = class {
3677
3690
  };
3678
3691
  DrizzleCacheService = __decorateClass([
3679
3692
  Injectable12(),
3680
- __decorateParam(0, Inject11(DRIZZLE)),
3693
+ __decorateParam(0, Inject12(DRIZZLE)),
3681
3694
  __decorateParam(1, Optional5()),
3682
- __decorateParam(1, Inject11(CACHE_DEFAULT_TTL))
3695
+ __decorateParam(1, Inject12(CACHE_DEFAULT_TTL))
3683
3696
  ], DrizzleCacheService);
3684
3697
 
3685
3698
  // runtime/subsystems/cache/cache.memory-backend.ts
3686
- import { Injectable as Injectable13, Inject as Inject12, Optional as Optional6 } from "@nestjs/common";
3699
+ import { Injectable as Injectable13, Inject as Inject13, Optional as Optional6 } from "@nestjs/common";
3687
3700
  var MemoryCacheService = class {
3688
3701
  constructor(defaultTtl = null) {
3689
3702
  this.defaultTtl = defaultTtl;
@@ -3759,7 +3772,7 @@ var MemoryCacheService = class {
3759
3772
  MemoryCacheService = __decorateClass([
3760
3773
  Injectable13(),
3761
3774
  __decorateParam(0, Optional6()),
3762
- __decorateParam(0, Inject12(CACHE_DEFAULT_TTL))
3775
+ __decorateParam(0, Inject13(CACHE_DEFAULT_TTL))
3763
3776
  ], MemoryCacheService);
3764
3777
 
3765
3778
  // runtime/subsystems/cache/cache.module.ts
@@ -4019,7 +4032,7 @@ var OBSERVABILITY_MODULE_OPTIONS = "OBSERVABILITY_MODULE_OPTIONS";
4019
4032
  import { Module as Module6 } from "@nestjs/common";
4020
4033
 
4021
4034
  // runtime/subsystems/observability/observability.service.ts
4022
- import { Inject as Inject13, Injectable as Injectable14, Optional as Optional7 } from "@nestjs/common";
4035
+ import { Inject as Inject14, Injectable as Injectable14, Optional as Optional7 } from "@nestjs/common";
4023
4036
 
4024
4037
  // runtime/subsystems/integration/integration.tokens.ts
4025
4038
  var INTEGRATION_CHANGE_SOURCE = "INTEGRATION_CHANGE_SOURCE";
@@ -4180,20 +4193,20 @@ __publicField(ObservabilityService, "EMPTY_EVENT_PAGE", {
4180
4193
  ObservabilityService = __decorateClass([
4181
4194
  Injectable14(),
4182
4195
  __decorateParam(0, Optional7()),
4183
- __decorateParam(0, Inject13(JOB_RUN_SERVICE)),
4196
+ __decorateParam(0, Inject14(JOB_RUN_SERVICE)),
4184
4197
  __decorateParam(1, Optional7()),
4185
- __decorateParam(1, Inject13(BRIDGE_DELIVERY_REPO)),
4198
+ __decorateParam(1, Inject14(BRIDGE_DELIVERY_REPO)),
4186
4199
  __decorateParam(2, Optional7()),
4187
- __decorateParam(2, Inject13(INTEGRATION_RUN_RECORDER)),
4200
+ __decorateParam(2, Inject14(INTEGRATION_RUN_RECORDER)),
4188
4201
  __decorateParam(3, Optional7()),
4189
- __decorateParam(3, Inject13(INTEGRATION_CURSOR_STORE)),
4202
+ __decorateParam(3, Inject14(INTEGRATION_CURSOR_STORE)),
4190
4203
  __decorateParam(4, Optional7()),
4191
- __decorateParam(4, Inject13(EVENT_READ_PORT))
4204
+ __decorateParam(4, Inject14(EVENT_READ_PORT))
4192
4205
  ], ObservabilityService);
4193
4206
 
4194
4207
  // runtime/subsystems/observability/reporters/bridge-metrics.reporter.ts
4195
4208
  import {
4196
- Inject as Inject14,
4209
+ Inject as Inject15,
4197
4210
  Injectable as Injectable15,
4198
4211
  Logger as Logger7
4199
4212
  } from "@nestjs/common";
@@ -4255,8 +4268,8 @@ var BridgeMetricsReporter = class {
4255
4268
  };
4256
4269
  BridgeMetricsReporter = __decorateClass([
4257
4270
  Injectable15(),
4258
- __decorateParam(0, Inject14(OBSERVABILITY)),
4259
- __decorateParam(1, Inject14(OBSERVABILITY_MODULE_OPTIONS))
4271
+ __decorateParam(0, Inject15(OBSERVABILITY)),
4272
+ __decorateParam(1, Inject15(OBSERVABILITY_MODULE_OPTIONS))
4260
4273
  ], BridgeMetricsReporter);
4261
4274
 
4262
4275
  // runtime/subsystems/observability/observability.module.ts
@@ -4994,7 +5007,7 @@ function deepEqualObject(a, b) {
4994
5007
  }
4995
5008
 
4996
5009
  // runtime/subsystems/integration/execute-integration.use-case.ts
4997
- import { Inject as Inject15, Injectable as Injectable19, Logger as Logger8, Optional as Optional8 } from "@nestjs/common";
5010
+ import { Inject as Inject16, Injectable as Injectable19, Logger as Logger8, Optional as Optional8 } from "@nestjs/common";
4998
5011
  var ExecuteIntegrationUseCase = class {
4999
5012
  constructor(source, cursors, differ, sink, recorder, multiTenant = false) {
5000
5013
  this.source = source;
@@ -5186,17 +5199,17 @@ var ExecuteIntegrationUseCase = class {
5186
5199
  };
5187
5200
  ExecuteIntegrationUseCase = __decorateClass([
5188
5201
  Injectable19(),
5189
- __decorateParam(0, Inject15(INTEGRATION_CHANGE_SOURCE)),
5190
- __decorateParam(1, Inject15(INTEGRATION_CURSOR_STORE)),
5191
- __decorateParam(2, Inject15(INTEGRATION_FIELD_DIFFER)),
5192
- __decorateParam(3, Inject15(INTEGRATION_SINK)),
5193
- __decorateParam(4, Inject15(INTEGRATION_RUN_RECORDER)),
5202
+ __decorateParam(0, Inject16(INTEGRATION_CHANGE_SOURCE)),
5203
+ __decorateParam(1, Inject16(INTEGRATION_CURSOR_STORE)),
5204
+ __decorateParam(2, Inject16(INTEGRATION_FIELD_DIFFER)),
5205
+ __decorateParam(3, Inject16(INTEGRATION_SINK)),
5206
+ __decorateParam(4, Inject16(INTEGRATION_RUN_RECORDER)),
5194
5207
  __decorateParam(5, Optional8()),
5195
- __decorateParam(5, Inject15(INTEGRATION_MULTI_TENANT))
5208
+ __decorateParam(5, Inject16(INTEGRATION_MULTI_TENANT))
5196
5209
  ], ExecuteIntegrationUseCase);
5197
5210
 
5198
5211
  // runtime/subsystems/integration/integration-cursor-store.drizzle-backend.ts
5199
- import { Inject as Inject16, Injectable as Injectable20, Optional as Optional9 } from "@nestjs/common";
5212
+ import { Inject as Inject17, Injectable as Injectable20, Optional as Optional9 } from "@nestjs/common";
5200
5213
  import { and as and6, desc as desc5, eq as eq7 } from "drizzle-orm";
5201
5214
  var PostgresCursorStore = class {
5202
5215
  constructor(db, multiTenant) {
@@ -5269,13 +5282,13 @@ var PostgresCursorStore = class {
5269
5282
  };
5270
5283
  PostgresCursorStore = __decorateClass([
5271
5284
  Injectable20(),
5272
- __decorateParam(0, Inject16(DRIZZLE)),
5285
+ __decorateParam(0, Inject17(DRIZZLE)),
5273
5286
  __decorateParam(1, Optional9()),
5274
- __decorateParam(1, Inject16(INTEGRATION_MULTI_TENANT))
5287
+ __decorateParam(1, Inject17(INTEGRATION_MULTI_TENANT))
5275
5288
  ], PostgresCursorStore);
5276
5289
 
5277
5290
  // runtime/subsystems/integration/integration-run-recorder.drizzle-backend.ts
5278
- import { Inject as Inject17, Injectable as Injectable21, Optional as Optional10 } from "@nestjs/common";
5291
+ import { Inject as Inject18, Injectable as Injectable21, Optional as Optional10 } from "@nestjs/common";
5279
5292
  import { and as and7, desc as desc6, eq as eq8 } from "drizzle-orm";
5280
5293
  var DrizzleIntegrationRunRecorder = class {
5281
5294
  constructor(db, multiTenant) {
@@ -5373,9 +5386,9 @@ var DrizzleIntegrationRunRecorder = class {
5373
5386
  };
5374
5387
  DrizzleIntegrationRunRecorder = __decorateClass([
5375
5388
  Injectable21(),
5376
- __decorateParam(0, Inject17(DRIZZLE)),
5389
+ __decorateParam(0, Inject18(DRIZZLE)),
5377
5390
  __decorateParam(1, Optional10()),
5378
- __decorateParam(1, Inject17(INTEGRATION_MULTI_TENANT))
5391
+ __decorateParam(1, Inject18(INTEGRATION_MULTI_TENANT))
5379
5392
  ], DrizzleIntegrationRunRecorder);
5380
5393
 
5381
5394
  // runtime/subsystems/integration/integration.module.ts
@@ -5727,7 +5740,7 @@ var DrizzleOAuthStateStore = class {
5727
5740
  import {
5728
5741
  Controller,
5729
5742
  Get,
5730
- Inject as Inject18,
5743
+ Inject as Inject19,
5731
5744
  Param,
5732
5745
  Query,
5733
5746
  Req,
@@ -5829,11 +5842,11 @@ __decorateClass([
5829
5842
  ], AuthController.prototype, "callback", 1);
5830
5843
  AuthController = __decorateClass([
5831
5844
  Controller("auth"),
5832
- __decorateParam(0, Inject18(STRATEGY_REGISTRY)),
5833
- __decorateParam(1, Inject18(AUTH_USER_CONTEXT)),
5834
- __decorateParam(2, Inject18(OAUTH_STATE_STORE)),
5835
- __decorateParam(3, Inject18(AUTH_CONNECTION_GRANT_SINK)),
5836
- __decorateParam(4, Inject18(AUTH_OPTIONS))
5845
+ __decorateParam(0, Inject19(STRATEGY_REGISTRY)),
5846
+ __decorateParam(1, Inject19(AUTH_USER_CONTEXT)),
5847
+ __decorateParam(2, Inject19(OAUTH_STATE_STORE)),
5848
+ __decorateParam(3, Inject19(AUTH_CONNECTION_GRANT_SINK)),
5849
+ __decorateParam(4, Inject19(AUTH_OPTIONS))
5837
5850
  ], AuthController);
5838
5851
 
5839
5852
  // runtime/base-classes/tenant-context.ts