diff --git a/clients/LedgerClient.ts b/clients/LedgerClient.ts index 4c66bac..ef24697 100644 --- a/clients/LedgerClient.ts +++ b/clients/LedgerClient.ts @@ -360,6 +360,13 @@ export type LedgerReconciliationComponent = LedgerReconciliation['components'][n export type Report = NonNullable export type ReportPackage = NonNullable export type ReportPackageItem = ReportPackage['items'][number] +// A report's block renders through the same viewers as a read block, so its +// selection must keep pace with the information-block documents. +type AssertTrue = T +// eslint-disable-next-line @typescript-eslint/no-unused-vars +type ReportBlockIsInformationBlock = AssertTrue< + ReportPackageItem['block'] extends InformationBlock ? true : false +> export type ReportListItem = NonNullable['reports'][number] export type StatementData = NonNullable export type StatementPeriod = StatementData['periods'][number] diff --git a/clients/graphql/generated/graphql.ts b/clients/graphql/generated/graphql.ts index 10fad54..8b1da89 100644 --- a/clients/graphql/generated/graphql.ts +++ b/clients/graphql/generated/graphql.ts @@ -1545,6 +1545,7 @@ export type GetLedgerReportPackageQuery = { category: string taxonomyId: string | null taxonomyName: string | null + entityId: string | null informationModel: { conceptArrangement: string | null; memberArrangement: string | null } artifact: { topic: string | null @@ -6480,6 +6481,7 @@ export const GetLedgerReportPackageDocument = { { kind: 'Field', name: { kind: 'Name', value: 'category' } }, { kind: 'Field', name: { kind: 'Name', value: 'taxonomyId' } }, { kind: 'Field', name: { kind: 'Name', value: 'taxonomyName' } }, + { kind: 'Field', name: { kind: 'Name', value: 'entityId' } }, { kind: 'Field', name: { kind: 'Name', value: 'informationModel' }, diff --git a/clients/graphql/queries/ledger/reportPackage.ts b/clients/graphql/queries/ledger/reportPackage.ts index 7f2a135..bef251c 100644 --- a/clients/graphql/queries/ledger/reportPackage.ts +++ b/clients/graphql/queries/ledger/reportPackage.ts @@ -46,6 +46,7 @@ export const GET_REPORT_PACKAGE = gql` category taxonomyId taxonomyName + entityId informationModel { conceptArrangement memberArrangement