@pipeline-builder/pipeline-data 3.4.97 → 3.4.99

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.
@@ -314,8 +314,13 @@ export declare class ReportingService {
314
314
  getStageBottlenecks(orgId: string, from: string, to: string, orgIds?: string[]): Promise<StageBottleneck[]>;
315
315
  /** 1.7 Action failure rate — which plugin steps fail most. */
316
316
  getActionFailures(orgId: string, from: string, to: string, orgIds?: string[]): Promise<ActionFailure[]>;
317
- /** 1.8 Error categorization — group failure messages. */
318
- getErrors(orgId: string, from: string, to: string, limit?: number): Promise<ErrorEntry[]>;
317
+ /**
318
+ * 1.8 Error categorization group failure messages. Execution report, so
319
+ * rollup-aware exactly like the sibling execution reports: with `orgIds`
320
+ * (the org→team subtree) the org gate becomes an `IN (...)` and the read runs
321
+ * fresh under sysadmin via `runReport`; single-org reads keep the per-org cache.
322
+ */
323
+ getErrors(orgId: string, from: string, to: string, limit?: number, orgIds?: string[]): Promise<ErrorEntry[]>;
319
324
  /**
320
325
  * 1.9 DORA metrics over [from,to] (started_at range), org-scoped + rollup-aware.
321
326
  *
@@ -354,11 +359,18 @@ export declare class ReportingService {
354
359
  * and lead time are intentionally omitted (too heavy to bucket meaningfully).
355
360
  */
356
361
  getDoraTrend(orgId: string, interval: string, from: string, to: string, orgIds?: string[], opts?: DoraOptions): Promise<DoraTrendPoint[]>;
357
- /** 2.1 Plugin summary — counts and breakdowns. */
362
+ /** 2.1 Plugin summary — counts and breakdowns.
363
+ * INTENTIONALLY SINGLE-ORG (no rollup): plugin inventory is an org-owned
364
+ * asset count, not an execution/build activity report, so a parent's view is
365
+ * its own plugins — teams manage their own inventory. Single `= $org` scope. */
358
366
  getPluginSummary(orgId: string): Promise<PluginSummary>;
359
- /** 2.2 Type & compute distribution. */
367
+ /** 2.2 Type & compute distribution.
368
+ * INTENTIONALLY SINGLE-ORG (no rollup): plugin inventory is per-org (see
369
+ * getPluginSummary). Single `= $org` scope. */
360
370
  getPluginDistribution(orgId: string): Promise<TypeComputeDistribution[]>;
361
- /** 2.3 Version counts per plugin name. */
371
+ /** 2.3 Version counts per plugin name.
372
+ * INTENTIONALLY SINGLE-ORG (no rollup): plugin inventory is per-org (see
373
+ * getPluginSummary). Single `= $org` scope. */
362
374
  getPluginVersions(orgId: string): Promise<VersionCount[]>;
363
375
  /**
364
376
  * 2.4 Build success rate over time.
@@ -374,11 +386,11 @@ export declare class ReportingService {
374
386
  * SHOULD enum these per-eventSource so we catch drift at ingest rather
375
387
  * than silently producing zero rows here. See findings N71.
376
388
  */
377
- getBuildSuccessRate(orgId: string, interval: string, from: string, to: string): Promise<BuildTimeSeriesEntry[]>;
378
- /** 2.5 Build duration per plugin. */
379
- getBuildDuration(orgId: string, from: string, to: string): Promise<BuildDuration[]>;
380
- /** 2.6 Build failures — top error messages. */
381
- getBuildFailures(orgId: string, from: string, to: string, limit?: number): Promise<BuildFailure[]>;
389
+ getBuildSuccessRate(orgId: string, interval: string, from: string, to: string, orgIds?: string[]): Promise<BuildTimeSeriesEntry[]>;
390
+ /** 2.5 Build duration per plugin. Build activity report — rollup-aware. */
391
+ getBuildDuration(orgId: string, from: string, to: string, orgIds?: string[]): Promise<BuildDuration[]>;
392
+ /** 2.6 Build failures — top error messages. Build activity report — rollup-aware. */
393
+ getBuildFailures(orgId: string, from: string, to: string, limit?: number, orgIds?: string[]): Promise<BuildFailure[]>;
382
394
  }
383
395
  export declare const reportingService: ReportingService;
384
396
  export {};