fix: keep growth analysis available per terminal

This commit is contained in:
2026-08-21 02:57:46 +03:30
parent 7951664d08
commit e6afaa7a10
11 changed files with 180 additions and 45 deletions

View File

@@ -1010,7 +1010,7 @@ components:
terminalId: {type: string, minLength: 1, maxLength: 128}
refresh:
type: boolean
description: When omitted, the request reuses the current matching report.
description: When omitted, the request reuses the current matching report. Manual retries remain available until the requested scope has persisted AI copy.
GrowthRange:
type: object
additionalProperties: false
@@ -1037,7 +1037,7 @@ components:
properties:
startDate: {type: string, format: date-time}
horizonDays: {type: integer, enum: [90]}
confidence: {type: string, enum: [HIGH, MEDIUM, INSUFFICIENT_DATA]}
confidence: {type: string, enum: [HIGH, MEDIUM, LOW, INSUFFICIENT_DATA]}
suppressionReason: {type: string}
points: {type: array, maxItems: 90, items: {$ref: '#/components/schemas/GrowthForecastPoint'}}
backtest:
@@ -1167,7 +1167,10 @@ components:
failureCode: {type: string}
cached: {type: boolean}
stale: {type: boolean}
nextRefreshAt: {type: string, format: date-time}
nextRefreshAt:
type: string
format: date-time
description: Current time while no AI summary exists for the scope; otherwise the next refresh boundary for that terminal scope in the Tehran day. The all-terminals selection is a separate scope.
createdAt: {type: string, format: date-time}
updatedAt: {type: string, format: date-time}
eventsUrl: {type: string, format: uri-reference}