fix: scope page insights to reporting periods

This commit is contained in:
2026-08-22 17:24:37 +08:00
parent 1b6ad4d095
commit 7f9c16be4b
13 changed files with 295 additions and 24 deletions

View File

@@ -647,7 +647,7 @@ paths:
parameters:
- {name: module, in: path, required: true, schema: {$ref: '#/components/schemas/AIInsightModule'}}
- {name: terminalId, in: query, required: false, schema: {type: string, maxLength: 128}}
- {name: periodId, in: query, required: false, description: Used only by the transactions module to match the selected reporting period., schema: {type: string, maxLength: 128}}
- {name: periodId, in: query, required: false, description: Server-offered reporting period used to match the visible analytics run., schema: {type: string, maxLength: 128}}
- $ref: '#/components/parameters/RequestIdHeader'
responses:
'200': {description: Latest ready or deterministic-partial snapshot., content: {application/json: {schema: {$ref: '#/components/schemas/AIInsight'}}}}
@@ -1709,7 +1709,7 @@ components:
additionalProperties: false
properties:
terminalId: {type: string, maxLength: 128}
periodId: {type: string, maxLength: 128, description: Used only by the transactions module.}
periodId: {type: string, maxLength: 128, description: Server-offered reporting period used to match the visible analytics run.}
AIInsightJob:
type: object
additionalProperties: false