@robosystems/client 0.3.29 → 0.3.31
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.
- package/artifacts/LedgerClient.d.ts +25 -1
- package/artifacts/LedgerClient.js +37 -0
- package/artifacts/LedgerClient.ts +59 -0
- package/artifacts/graphql/generated/graphql.d.ts +67 -2
- package/artifacts/graphql/generated/graphql.js +58 -0
- package/artifacts/graphql/generated/graphql.ts +127 -2
- package/artifacts/graphql/queries/ledger/informationBlock.js +30 -0
- package/artifacts/graphql/queries/ledger/informationBlock.ts +30 -0
- package/index.ts +1 -1
- package/package.json +1 -1
- package/sdk/index.d.ts +1 -1
- package/sdk/index.ts +1 -1
- package/sdk/types.gen.d.ts +106 -13
- package/sdk/types.gen.ts +108 -13
- package/types.gen.d.ts +106 -13
- package/types.gen.ts +108 -13
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AssociationResponse, AutoMapElementsOperation, CreateAgentRequest, CreateEventBlockRequest, CreateEventHandlerRequest, CreateMappingAssociationOperation, CreateTaxonomyBlockRequest, CreateViewRequest, DeleteInformationBlockResponse, DeleteMappingAssociationOperation, DeleteResult, DeleteTaxonomyBlockRequest, DeleteTaxonomyBlockResponse, EntityTaxonomyResponse, EvaluateRulesRequest, EvaluateRulesResponse, EventBlockEnvelope, EventHandlerResponse, FinancialStatementAnalysisRequest, InformationBlockEnvelope, JournalEntryResponse, LedgerAgentResponse, LinkEntityTaxonomyRequest, LiveFinancialStatementRequest, OperationEnvelope, PreviewEventBlockResponse, PublishListMemberResponse, PublishListResponse, ReportResponse, ShareReportResponse, TaxonomyBlockEnvelope, UpdateAgentRequest, UpdateEntityRequest, UpdateEventBlockRequest, UpdateEventHandlerRequest, UpdateJournalEntryRequest, UpdateTaxonomyBlockRequest } from '../types.gen';
|
|
1
|
+
import type { AssociationResponse, AutoMapElementsOperation, CreateAgentRequest, CreateEventBlockRequest, CreateEventHandlerRequest, CreateInformationBlockRequest, CreateMappingAssociationOperation, CreateTaxonomyBlockRequest, CreateViewRequest, DeleteInformationBlockRequest, DeleteInformationBlockResponse, DeleteMappingAssociationOperation, DeleteResult, DeleteTaxonomyBlockRequest, DeleteTaxonomyBlockResponse, EntityTaxonomyResponse, EvaluateRulesRequest, EvaluateRulesResponse, EventBlockEnvelope, EventHandlerResponse, FinancialStatementAnalysisRequest, InformationBlockEnvelope, JournalEntryResponse, LedgerAgentResponse, LinkEntityTaxonomyRequest, LiveFinancialStatementRequest, OperationEnvelope, PreviewEventBlockResponse, PublishListMemberResponse, PublishListResponse, ReportResponse, ShareReportResponse, TaxonomyBlockEnvelope, UpdateAgentRequest, UpdateEntityRequest, UpdateEventBlockRequest, UpdateEventHandlerRequest, UpdateInformationBlockRequest, UpdateJournalEntryRequest, UpdateTaxonomyBlockRequest } from '../types.gen';
|
|
2
2
|
import type { TokenProvider } from './graphql/client';
|
|
3
3
|
import { type GetInformationBlockQuery, type GetLedgerAccountRollupsQuery, type GetLedgerAccountTreeQuery, type GetLedgerAgentQuery, type GetLedgerClosingBookStructuresQuery, type GetLedgerEntityQuery, type GetLedgerEventBlockQuery, type GetLedgerFiscalCalendarQuery, type GetLedgerMappedTrialBalanceQuery, type GetLedgerMappingCoverageQuery, type GetLedgerMappingQuery, type GetLedgerPeriodCloseStatusQuery, type GetLedgerPeriodDraftsQuery, type GetLedgerPublishListQuery, type GetLedgerReportingTaxonomyQuery, type GetLedgerReportPackageQuery, type GetLedgerReportQuery, type GetLedgerStatementQuery, type GetLedgerSummaryQuery, type GetLedgerTransactionQuery, type GetLedgerTrialBalanceQuery, type ListInformationBlocksQuery, type ListLedgerAccountsQuery, type ListLedgerAgentsQuery, type ListLedgerElementsQuery, type ListLedgerEntitiesQuery, type ListLedgerEventBlocksQuery, type ListLedgerMappingsQuery, type ListLedgerPublishListsQuery, type ListLedgerReportsQuery, type ListLedgerStructuresQuery, type ListLedgerTaxonomiesQuery, type ListLedgerTransactionsQuery, type ListLedgerUnmappedElementsQuery } from './graphql/generated/graphql';
|
|
4
4
|
export type LedgerEntity = NonNullable<GetLedgerEntityQuery['entity']>;
|
|
@@ -345,6 +345,30 @@ export declare class LedgerClient {
|
|
|
345
345
|
offset?: number;
|
|
346
346
|
}): Promise<InformationBlockList>;
|
|
347
347
|
/** Create a new schedule with pre-generated monthly facts. */
|
|
348
|
+
/**
|
|
349
|
+
* Create an Information Block of any registered block_type.
|
|
350
|
+
*
|
|
351
|
+
* Generic wrapper over `create-information-block`. Pass a typed
|
|
352
|
+
* `CreateInformationBlockRequest` body — the discriminator routes
|
|
353
|
+
* server-side to the correct dispatch handler. Convenience methods
|
|
354
|
+
* exist for specific block types (e.g. `createSchedule`); for
|
|
355
|
+
* block types without one (currently `rollforward`), use this
|
|
356
|
+
* generic entry.
|
|
357
|
+
*/
|
|
358
|
+
createInformationBlock(graphId: string, body: CreateInformationBlockRequest, options?: {
|
|
359
|
+
idempotencyKey?: string;
|
|
360
|
+
}): Promise<InformationBlockEnvelope>;
|
|
361
|
+
/**
|
|
362
|
+
* Update an Information Block in place. Generic wrapper over
|
|
363
|
+
* `update-information-block`.
|
|
364
|
+
*/
|
|
365
|
+
updateInformationBlock(graphId: string, body: UpdateInformationBlockRequest): Promise<InformationBlockEnvelope>;
|
|
366
|
+
/**
|
|
367
|
+
* Delete an Information Block. Generic wrapper over
|
|
368
|
+
* `delete-information-block`. Cascades through any facts /
|
|
369
|
+
* associations tied to the block.
|
|
370
|
+
*/
|
|
371
|
+
deleteInformationBlock(graphId: string, body: DeleteInformationBlockRequest): Promise<DeleteInformationBlockResponse>;
|
|
348
372
|
createSchedule(graphId: string, options: CreateScheduleOptions): Promise<ScheduleCreated>;
|
|
349
373
|
/** Update mutable fields on a schedule (name, entry_template, metadata). */
|
|
350
374
|
updateSchedule(graphId: string, structureId: string, options: {
|
|
@@ -254,6 +254,43 @@ class LedgerClient {
|
|
|
254
254
|
}
|
|
255
255
|
// ── Schedules ──────────────────────────────────────────────────────
|
|
256
256
|
/** Create a new schedule with pre-generated monthly facts. */
|
|
257
|
+
/**
|
|
258
|
+
* Create an Information Block of any registered block_type.
|
|
259
|
+
*
|
|
260
|
+
* Generic wrapper over `create-information-block`. Pass a typed
|
|
261
|
+
* `CreateInformationBlockRequest` body — the discriminator routes
|
|
262
|
+
* server-side to the correct dispatch handler. Convenience methods
|
|
263
|
+
* exist for specific block types (e.g. `createSchedule`); for
|
|
264
|
+
* block types without one (currently `rollforward`), use this
|
|
265
|
+
* generic entry.
|
|
266
|
+
*/
|
|
267
|
+
async createInformationBlock(graphId, body, options) {
|
|
268
|
+
const envelope = await this.callOperation('Create information block', (0, sdk_gen_1.opCreateInformationBlock)({
|
|
269
|
+
path: { graph_id: graphId },
|
|
270
|
+
body,
|
|
271
|
+
headers: options?.idempotencyKey
|
|
272
|
+
? { 'Idempotency-Key': options.idempotencyKey }
|
|
273
|
+
: undefined,
|
|
274
|
+
}));
|
|
275
|
+
return this.requireResult('Create information block', envelope.result);
|
|
276
|
+
}
|
|
277
|
+
/**
|
|
278
|
+
* Update an Information Block in place. Generic wrapper over
|
|
279
|
+
* `update-information-block`.
|
|
280
|
+
*/
|
|
281
|
+
async updateInformationBlock(graphId, body) {
|
|
282
|
+
const envelope = await this.callOperation('Update information block', (0, sdk_gen_1.opUpdateInformationBlock)({ path: { graph_id: graphId }, body }));
|
|
283
|
+
return this.requireResult('Update information block', envelope.result);
|
|
284
|
+
}
|
|
285
|
+
/**
|
|
286
|
+
* Delete an Information Block. Generic wrapper over
|
|
287
|
+
* `delete-information-block`. Cascades through any facts /
|
|
288
|
+
* associations tied to the block.
|
|
289
|
+
*/
|
|
290
|
+
async deleteInformationBlock(graphId, body) {
|
|
291
|
+
const envelope = await this.callOperation('Delete information block', (0, sdk_gen_1.opDeleteInformationBlock)({ path: { graph_id: graphId }, body }));
|
|
292
|
+
return (envelope.result ?? { deleted: true });
|
|
293
|
+
}
|
|
257
294
|
async createSchedule(graphId, options) {
|
|
258
295
|
const body = {
|
|
259
296
|
block_type: 'schedule',
|
|
@@ -1050,6 +1050,65 @@ export class LedgerClient {
|
|
|
1050
1050
|
// ── Schedules ──────────────────────────────────────────────────────
|
|
1051
1051
|
|
|
1052
1052
|
/** Create a new schedule with pre-generated monthly facts. */
|
|
1053
|
+
/**
|
|
1054
|
+
* Create an Information Block of any registered block_type.
|
|
1055
|
+
*
|
|
1056
|
+
* Generic wrapper over `create-information-block`. Pass a typed
|
|
1057
|
+
* `CreateInformationBlockRequest` body — the discriminator routes
|
|
1058
|
+
* server-side to the correct dispatch handler. Convenience methods
|
|
1059
|
+
* exist for specific block types (e.g. `createSchedule`); for
|
|
1060
|
+
* block types without one (currently `rollforward`), use this
|
|
1061
|
+
* generic entry.
|
|
1062
|
+
*/
|
|
1063
|
+
async createInformationBlock(
|
|
1064
|
+
graphId: string,
|
|
1065
|
+
body: CreateInformationBlockRequest,
|
|
1066
|
+
options?: { idempotencyKey?: string }
|
|
1067
|
+
): Promise<InformationBlockEnvelope> {
|
|
1068
|
+
const envelope = await this.callOperation(
|
|
1069
|
+
'Create information block',
|
|
1070
|
+
opCreateInformationBlock({
|
|
1071
|
+
path: { graph_id: graphId },
|
|
1072
|
+
body,
|
|
1073
|
+
headers: options?.idempotencyKey
|
|
1074
|
+
? { 'Idempotency-Key': options.idempotencyKey }
|
|
1075
|
+
: undefined,
|
|
1076
|
+
})
|
|
1077
|
+
)
|
|
1078
|
+
return this.requireResult('Create information block', envelope.result)
|
|
1079
|
+
}
|
|
1080
|
+
|
|
1081
|
+
/**
|
|
1082
|
+
* Update an Information Block in place. Generic wrapper over
|
|
1083
|
+
* `update-information-block`.
|
|
1084
|
+
*/
|
|
1085
|
+
async updateInformationBlock(
|
|
1086
|
+
graphId: string,
|
|
1087
|
+
body: UpdateInformationBlockRequest
|
|
1088
|
+
): Promise<InformationBlockEnvelope> {
|
|
1089
|
+
const envelope = await this.callOperation(
|
|
1090
|
+
'Update information block',
|
|
1091
|
+
opUpdateInformationBlock({ path: { graph_id: graphId }, body })
|
|
1092
|
+
)
|
|
1093
|
+
return this.requireResult('Update information block', envelope.result)
|
|
1094
|
+
}
|
|
1095
|
+
|
|
1096
|
+
/**
|
|
1097
|
+
* Delete an Information Block. Generic wrapper over
|
|
1098
|
+
* `delete-information-block`. Cascades through any facts /
|
|
1099
|
+
* associations tied to the block.
|
|
1100
|
+
*/
|
|
1101
|
+
async deleteInformationBlock(
|
|
1102
|
+
graphId: string,
|
|
1103
|
+
body: DeleteInformationBlockRequest
|
|
1104
|
+
): Promise<DeleteInformationBlockResponse> {
|
|
1105
|
+
const envelope = await this.callOperation(
|
|
1106
|
+
'Delete information block',
|
|
1107
|
+
opDeleteInformationBlock({ path: { graph_id: graphId }, body })
|
|
1108
|
+
)
|
|
1109
|
+
return (envelope.result ?? { deleted: true }) as DeleteInformationBlockResponse
|
|
1110
|
+
}
|
|
1111
|
+
|
|
1053
1112
|
async createSchedule(graphId: string, options: CreateScheduleOptions): Promise<ScheduleCreated> {
|
|
1054
1113
|
const body: CreateInformationBlockRequest = {
|
|
1055
1114
|
block_type: 'schedule',
|
|
@@ -458,6 +458,7 @@ export type InformationBlock = {
|
|
|
458
458
|
taxonomyId: Maybe<Scalars['String']['output']>;
|
|
459
459
|
taxonomyName: Maybe<Scalars['String']['output']>;
|
|
460
460
|
verificationResults: Array<InformationBlockVerificationResult>;
|
|
461
|
+
verificationSummary: Maybe<InformationBlockVerificationSummary>;
|
|
461
462
|
view: InformationBlockViewProjections;
|
|
462
463
|
};
|
|
463
464
|
/**
|
|
@@ -484,7 +485,7 @@ export type InformationBlockClassification = {
|
|
|
484
485
|
identifier: Scalars['String']['output'];
|
|
485
486
|
/** Whether this is the canonical classification for the (association|element, category) pair. Non-primary rows capture alternates / AI suggestions alongside the chosen primary. */
|
|
486
487
|
isPrimary: Scalars['Boolean']['output'];
|
|
487
|
-
/** Provenance — 'arcrole_analysis', 'disclosure_mechanics', '
|
|
488
|
+
/** Provenance — 'arcrole_analysis', 'disclosure_mechanics', 'fac-traits', adapter name, etc. */
|
|
488
489
|
source: Maybe<Scalars['String']['output']>;
|
|
489
490
|
};
|
|
490
491
|
/**
|
|
@@ -654,6 +655,23 @@ export type InformationBlockValidation = {
|
|
|
654
655
|
passed: Scalars['Boolean']['output'];
|
|
655
656
|
warnings: Array<Scalars['String']['output']>;
|
|
656
657
|
};
|
|
658
|
+
/**
|
|
659
|
+
* Pass/fail/skip counts for one ``rule_category`` within a block's
|
|
660
|
+
* verification results.
|
|
661
|
+
*
|
|
662
|
+
* Drives the per-category accordions in the Verification Results panel
|
|
663
|
+
* (financial-viewer §7.12). ``category`` is the rule's ``rule_category``
|
|
664
|
+
* (one of the cm:VerificationRule subclasses), resolved by joining each
|
|
665
|
+
* result to its Rule.
|
|
666
|
+
*/
|
|
667
|
+
export type InformationBlockVerificationCategorySummary = {
|
|
668
|
+
category: Scalars['String']['output'];
|
|
669
|
+
errored: Scalars['Int']['output'];
|
|
670
|
+
failed: Scalars['Int']['output'];
|
|
671
|
+
passed: Scalars['Int']['output'];
|
|
672
|
+
skipped: Scalars['Int']['output'];
|
|
673
|
+
total: Scalars['Int']['output'];
|
|
674
|
+
};
|
|
657
675
|
/**
|
|
658
676
|
* Persisted outcome of one Rule evaluation.
|
|
659
677
|
*
|
|
@@ -674,6 +692,23 @@ export type InformationBlockVerificationResult = {
|
|
|
674
692
|
status: Scalars['String']['output'];
|
|
675
693
|
structureId: Maybe<Scalars['String']['output']>;
|
|
676
694
|
};
|
|
695
|
+
/**
|
|
696
|
+
* Server-computed aggregate of a block's ``verification_results``.
|
|
697
|
+
*
|
|
698
|
+
* Overall counts plus a per-``rule_category`` breakdown, so the viewer
|
|
699
|
+
* renders the grouped Verification Results panel (financial-viewer §7.12)
|
|
700
|
+
* without a client-side results→rules join. Status closure is
|
|
701
|
+
* ``pass | fail | error | skipped`` (the ``public.verification_results``
|
|
702
|
+
* CHECK); ``total`` is their sum.
|
|
703
|
+
*/
|
|
704
|
+
export type InformationBlockVerificationSummary = {
|
|
705
|
+
byCategory: Array<InformationBlockVerificationCategorySummary>;
|
|
706
|
+
errored: Scalars['Int']['output'];
|
|
707
|
+
failed: Scalars['Int']['output'];
|
|
708
|
+
passed: Scalars['Int']['output'];
|
|
709
|
+
skipped: Scalars['Int']['output'];
|
|
710
|
+
total: Scalars['Int']['output'];
|
|
711
|
+
};
|
|
677
712
|
/**
|
|
678
713
|
* Charlie's six ``type-of View`` arms, surfaced at the envelope boundary.
|
|
679
714
|
*
|
|
@@ -918,7 +953,7 @@ export type LibraryElement = {
|
|
|
918
953
|
*
|
|
919
954
|
* Scoped to arcs whose structure belongs to a `taxonomy_type='mapping'`
|
|
920
955
|
* taxonomy — the cross-taxonomy bridges (equivalence, general-special,
|
|
921
|
-
* type-subtype). Hierarchical arcs inside a single reporting taxonomy
|
|
956
|
+
* rs-gaap-type-subtype). Hierarchical arcs inside a single reporting taxonomy
|
|
922
957
|
* are out of scope.
|
|
923
958
|
*/
|
|
924
959
|
export type LibraryElementArc = {
|
|
@@ -2705,6 +2740,21 @@ export type GetInformationBlockQuery = {
|
|
|
2705
2740
|
periodEnd: any | null;
|
|
2706
2741
|
evaluatedAt: any | null;
|
|
2707
2742
|
}>;
|
|
2743
|
+
verificationSummary: {
|
|
2744
|
+
total: number;
|
|
2745
|
+
passed: number;
|
|
2746
|
+
failed: number;
|
|
2747
|
+
errored: number;
|
|
2748
|
+
skipped: number;
|
|
2749
|
+
byCategory: Array<{
|
|
2750
|
+
category: string;
|
|
2751
|
+
total: number;
|
|
2752
|
+
passed: number;
|
|
2753
|
+
failed: number;
|
|
2754
|
+
errored: number;
|
|
2755
|
+
skipped: number;
|
|
2756
|
+
}>;
|
|
2757
|
+
} | null;
|
|
2708
2758
|
view: {
|
|
2709
2759
|
rendering: {
|
|
2710
2760
|
unmappedCount: number;
|
|
@@ -2827,6 +2877,21 @@ export type ListInformationBlocksQuery = {
|
|
|
2827
2877
|
periodEnd: any | null;
|
|
2828
2878
|
evaluatedAt: any | null;
|
|
2829
2879
|
}>;
|
|
2880
|
+
verificationSummary: {
|
|
2881
|
+
total: number;
|
|
2882
|
+
passed: number;
|
|
2883
|
+
failed: number;
|
|
2884
|
+
errored: number;
|
|
2885
|
+
skipped: number;
|
|
2886
|
+
byCategory: Array<{
|
|
2887
|
+
category: string;
|
|
2888
|
+
total: number;
|
|
2889
|
+
passed: number;
|
|
2890
|
+
failed: number;
|
|
2891
|
+
errored: number;
|
|
2892
|
+
skipped: number;
|
|
2893
|
+
}>;
|
|
2894
|
+
} | null;
|
|
2830
2895
|
view: {
|
|
2831
2896
|
rendering: {
|
|
2832
2897
|
unmappedCount: number;
|
|
@@ -1833,6 +1833,35 @@ exports.GetInformationBlockDocument = {
|
|
|
1833
1833
|
],
|
|
1834
1834
|
},
|
|
1835
1835
|
},
|
|
1836
|
+
{
|
|
1837
|
+
kind: 'Field',
|
|
1838
|
+
name: { kind: 'Name', value: 'verificationSummary' },
|
|
1839
|
+
selectionSet: {
|
|
1840
|
+
kind: 'SelectionSet',
|
|
1841
|
+
selections: [
|
|
1842
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'total' } },
|
|
1843
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'passed' } },
|
|
1844
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'failed' } },
|
|
1845
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'errored' } },
|
|
1846
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'skipped' } },
|
|
1847
|
+
{
|
|
1848
|
+
kind: 'Field',
|
|
1849
|
+
name: { kind: 'Name', value: 'byCategory' },
|
|
1850
|
+
selectionSet: {
|
|
1851
|
+
kind: 'SelectionSet',
|
|
1852
|
+
selections: [
|
|
1853
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'category' } },
|
|
1854
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'total' } },
|
|
1855
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'passed' } },
|
|
1856
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'failed' } },
|
|
1857
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'errored' } },
|
|
1858
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'skipped' } },
|
|
1859
|
+
],
|
|
1860
|
+
},
|
|
1861
|
+
},
|
|
1862
|
+
],
|
|
1863
|
+
},
|
|
1864
|
+
},
|
|
1836
1865
|
{
|
|
1837
1866
|
kind: 'Field',
|
|
1838
1867
|
name: { kind: 'Name', value: 'view' },
|
|
@@ -2121,6 +2150,35 @@ exports.ListInformationBlocksDocument = {
|
|
|
2121
2150
|
],
|
|
2122
2151
|
},
|
|
2123
2152
|
},
|
|
2153
|
+
{
|
|
2154
|
+
kind: 'Field',
|
|
2155
|
+
name: { kind: 'Name', value: 'verificationSummary' },
|
|
2156
|
+
selectionSet: {
|
|
2157
|
+
kind: 'SelectionSet',
|
|
2158
|
+
selections: [
|
|
2159
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'total' } },
|
|
2160
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'passed' } },
|
|
2161
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'failed' } },
|
|
2162
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'errored' } },
|
|
2163
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'skipped' } },
|
|
2164
|
+
{
|
|
2165
|
+
kind: 'Field',
|
|
2166
|
+
name: { kind: 'Name', value: 'byCategory' },
|
|
2167
|
+
selectionSet: {
|
|
2168
|
+
kind: 'SelectionSet',
|
|
2169
|
+
selections: [
|
|
2170
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'category' } },
|
|
2171
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'total' } },
|
|
2172
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'passed' } },
|
|
2173
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'failed' } },
|
|
2174
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'errored' } },
|
|
2175
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'skipped' } },
|
|
2176
|
+
],
|
|
2177
|
+
},
|
|
2178
|
+
},
|
|
2179
|
+
],
|
|
2180
|
+
},
|
|
2181
|
+
},
|
|
2124
2182
|
{
|
|
2125
2183
|
kind: 'Field',
|
|
2126
2184
|
name: { kind: 'Name', value: 'view' },
|
|
@@ -450,6 +450,7 @@ export type InformationBlock = {
|
|
|
450
450
|
taxonomyId: Maybe<Scalars['String']['output']>
|
|
451
451
|
taxonomyName: Maybe<Scalars['String']['output']>
|
|
452
452
|
verificationResults: Array<InformationBlockVerificationResult>
|
|
453
|
+
verificationSummary: Maybe<InformationBlockVerificationSummary>
|
|
453
454
|
view: InformationBlockViewProjections
|
|
454
455
|
}
|
|
455
456
|
|
|
@@ -477,7 +478,7 @@ export type InformationBlockClassification = {
|
|
|
477
478
|
identifier: Scalars['String']['output']
|
|
478
479
|
/** Whether this is the canonical classification for the (association|element, category) pair. Non-primary rows capture alternates / AI suggestions alongside the chosen primary. */
|
|
479
480
|
isPrimary: Scalars['Boolean']['output']
|
|
480
|
-
/** Provenance — 'arcrole_analysis', 'disclosure_mechanics', '
|
|
481
|
+
/** Provenance — 'arcrole_analysis', 'disclosure_mechanics', 'fac-traits', adapter name, etc. */
|
|
481
482
|
source: Maybe<Scalars['String']['output']>
|
|
482
483
|
}
|
|
483
484
|
|
|
@@ -659,6 +660,24 @@ export type InformationBlockValidation = {
|
|
|
659
660
|
warnings: Array<Scalars['String']['output']>
|
|
660
661
|
}
|
|
661
662
|
|
|
663
|
+
/**
|
|
664
|
+
* Pass/fail/skip counts for one ``rule_category`` within a block's
|
|
665
|
+
* verification results.
|
|
666
|
+
*
|
|
667
|
+
* Drives the per-category accordions in the Verification Results panel
|
|
668
|
+
* (financial-viewer §7.12). ``category`` is the rule's ``rule_category``
|
|
669
|
+
* (one of the cm:VerificationRule subclasses), resolved by joining each
|
|
670
|
+
* result to its Rule.
|
|
671
|
+
*/
|
|
672
|
+
export type InformationBlockVerificationCategorySummary = {
|
|
673
|
+
category: Scalars['String']['output']
|
|
674
|
+
errored: Scalars['Int']['output']
|
|
675
|
+
failed: Scalars['Int']['output']
|
|
676
|
+
passed: Scalars['Int']['output']
|
|
677
|
+
skipped: Scalars['Int']['output']
|
|
678
|
+
total: Scalars['Int']['output']
|
|
679
|
+
}
|
|
680
|
+
|
|
662
681
|
/**
|
|
663
682
|
* Persisted outcome of one Rule evaluation.
|
|
664
683
|
*
|
|
@@ -680,6 +699,24 @@ export type InformationBlockVerificationResult = {
|
|
|
680
699
|
structureId: Maybe<Scalars['String']['output']>
|
|
681
700
|
}
|
|
682
701
|
|
|
702
|
+
/**
|
|
703
|
+
* Server-computed aggregate of a block's ``verification_results``.
|
|
704
|
+
*
|
|
705
|
+
* Overall counts plus a per-``rule_category`` breakdown, so the viewer
|
|
706
|
+
* renders the grouped Verification Results panel (financial-viewer §7.12)
|
|
707
|
+
* without a client-side results→rules join. Status closure is
|
|
708
|
+
* ``pass | fail | error | skipped`` (the ``public.verification_results``
|
|
709
|
+
* CHECK); ``total`` is their sum.
|
|
710
|
+
*/
|
|
711
|
+
export type InformationBlockVerificationSummary = {
|
|
712
|
+
byCategory: Array<InformationBlockVerificationCategorySummary>
|
|
713
|
+
errored: Scalars['Int']['output']
|
|
714
|
+
failed: Scalars['Int']['output']
|
|
715
|
+
passed: Scalars['Int']['output']
|
|
716
|
+
skipped: Scalars['Int']['output']
|
|
717
|
+
total: Scalars['Int']['output']
|
|
718
|
+
}
|
|
719
|
+
|
|
683
720
|
/**
|
|
684
721
|
* Charlie's six ``type-of View`` arms, surfaced at the envelope boundary.
|
|
685
722
|
*
|
|
@@ -935,7 +972,7 @@ export type LibraryElement = {
|
|
|
935
972
|
*
|
|
936
973
|
* Scoped to arcs whose structure belongs to a `taxonomy_type='mapping'`
|
|
937
974
|
* taxonomy — the cross-taxonomy bridges (equivalence, general-special,
|
|
938
|
-
* type-subtype). Hierarchical arcs inside a single reporting taxonomy
|
|
975
|
+
* rs-gaap-type-subtype). Hierarchical arcs inside a single reporting taxonomy
|
|
939
976
|
* are out of scope.
|
|
940
977
|
*/
|
|
941
978
|
export type LibraryElementArc = {
|
|
@@ -2815,6 +2852,21 @@ export type GetInformationBlockQuery = {
|
|
|
2815
2852
|
periodEnd: any | null
|
|
2816
2853
|
evaluatedAt: any | null
|
|
2817
2854
|
}>
|
|
2855
|
+
verificationSummary: {
|
|
2856
|
+
total: number
|
|
2857
|
+
passed: number
|
|
2858
|
+
failed: number
|
|
2859
|
+
errored: number
|
|
2860
|
+
skipped: number
|
|
2861
|
+
byCategory: Array<{
|
|
2862
|
+
category: string
|
|
2863
|
+
total: number
|
|
2864
|
+
passed: number
|
|
2865
|
+
failed: number
|
|
2866
|
+
errored: number
|
|
2867
|
+
skipped: number
|
|
2868
|
+
}>
|
|
2869
|
+
} | null
|
|
2818
2870
|
view: {
|
|
2819
2871
|
rendering: {
|
|
2820
2872
|
unmappedCount: number
|
|
@@ -2926,6 +2978,21 @@ export type ListInformationBlocksQuery = {
|
|
|
2926
2978
|
periodEnd: any | null
|
|
2927
2979
|
evaluatedAt: any | null
|
|
2928
2980
|
}>
|
|
2981
|
+
verificationSummary: {
|
|
2982
|
+
total: number
|
|
2983
|
+
passed: number
|
|
2984
|
+
failed: number
|
|
2985
|
+
errored: number
|
|
2986
|
+
skipped: number
|
|
2987
|
+
byCategory: Array<{
|
|
2988
|
+
category: string
|
|
2989
|
+
total: number
|
|
2990
|
+
passed: number
|
|
2991
|
+
failed: number
|
|
2992
|
+
errored: number
|
|
2993
|
+
skipped: number
|
|
2994
|
+
}>
|
|
2995
|
+
} | null
|
|
2929
2996
|
view: {
|
|
2930
2997
|
rendering: {
|
|
2931
2998
|
unmappedCount: number
|
|
@@ -5593,6 +5660,35 @@ export const GetInformationBlockDocument = {
|
|
|
5593
5660
|
],
|
|
5594
5661
|
},
|
|
5595
5662
|
},
|
|
5663
|
+
{
|
|
5664
|
+
kind: 'Field',
|
|
5665
|
+
name: { kind: 'Name', value: 'verificationSummary' },
|
|
5666
|
+
selectionSet: {
|
|
5667
|
+
kind: 'SelectionSet',
|
|
5668
|
+
selections: [
|
|
5669
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'total' } },
|
|
5670
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'passed' } },
|
|
5671
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'failed' } },
|
|
5672
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'errored' } },
|
|
5673
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'skipped' } },
|
|
5674
|
+
{
|
|
5675
|
+
kind: 'Field',
|
|
5676
|
+
name: { kind: 'Name', value: 'byCategory' },
|
|
5677
|
+
selectionSet: {
|
|
5678
|
+
kind: 'SelectionSet',
|
|
5679
|
+
selections: [
|
|
5680
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'category' } },
|
|
5681
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'total' } },
|
|
5682
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'passed' } },
|
|
5683
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'failed' } },
|
|
5684
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'errored' } },
|
|
5685
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'skipped' } },
|
|
5686
|
+
],
|
|
5687
|
+
},
|
|
5688
|
+
},
|
|
5689
|
+
],
|
|
5690
|
+
},
|
|
5691
|
+
},
|
|
5596
5692
|
{
|
|
5597
5693
|
kind: 'Field',
|
|
5598
5694
|
name: { kind: 'Name', value: 'view' },
|
|
@@ -5881,6 +5977,35 @@ export const ListInformationBlocksDocument = {
|
|
|
5881
5977
|
],
|
|
5882
5978
|
},
|
|
5883
5979
|
},
|
|
5980
|
+
{
|
|
5981
|
+
kind: 'Field',
|
|
5982
|
+
name: { kind: 'Name', value: 'verificationSummary' },
|
|
5983
|
+
selectionSet: {
|
|
5984
|
+
kind: 'SelectionSet',
|
|
5985
|
+
selections: [
|
|
5986
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'total' } },
|
|
5987
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'passed' } },
|
|
5988
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'failed' } },
|
|
5989
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'errored' } },
|
|
5990
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'skipped' } },
|
|
5991
|
+
{
|
|
5992
|
+
kind: 'Field',
|
|
5993
|
+
name: { kind: 'Name', value: 'byCategory' },
|
|
5994
|
+
selectionSet: {
|
|
5995
|
+
kind: 'SelectionSet',
|
|
5996
|
+
selections: [
|
|
5997
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'category' } },
|
|
5998
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'total' } },
|
|
5999
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'passed' } },
|
|
6000
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'failed' } },
|
|
6001
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'errored' } },
|
|
6002
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'skipped' } },
|
|
6003
|
+
],
|
|
6004
|
+
},
|
|
6005
|
+
},
|
|
6006
|
+
],
|
|
6007
|
+
},
|
|
6008
|
+
},
|
|
5884
6009
|
{
|
|
5885
6010
|
kind: 'Field',
|
|
5886
6011
|
name: { kind: 'Name', value: 'view' },
|
|
@@ -98,6 +98,21 @@ exports.GET_INFORMATION_BLOCK = (0, graphql_request_1.gql) `
|
|
|
98
98
|
periodEnd
|
|
99
99
|
evaluatedAt
|
|
100
100
|
}
|
|
101
|
+
verificationSummary {
|
|
102
|
+
total
|
|
103
|
+
passed
|
|
104
|
+
failed
|
|
105
|
+
errored
|
|
106
|
+
skipped
|
|
107
|
+
byCategory {
|
|
108
|
+
category
|
|
109
|
+
total
|
|
110
|
+
passed
|
|
111
|
+
failed
|
|
112
|
+
errored
|
|
113
|
+
skipped
|
|
114
|
+
}
|
|
115
|
+
}
|
|
101
116
|
view {
|
|
102
117
|
rendering {
|
|
103
118
|
rows {
|
|
@@ -222,6 +237,21 @@ exports.LIST_INFORMATION_BLOCKS = (0, graphql_request_1.gql) `
|
|
|
222
237
|
periodEnd
|
|
223
238
|
evaluatedAt
|
|
224
239
|
}
|
|
240
|
+
verificationSummary {
|
|
241
|
+
total
|
|
242
|
+
passed
|
|
243
|
+
failed
|
|
244
|
+
errored
|
|
245
|
+
skipped
|
|
246
|
+
byCategory {
|
|
247
|
+
category
|
|
248
|
+
total
|
|
249
|
+
passed
|
|
250
|
+
failed
|
|
251
|
+
errored
|
|
252
|
+
skipped
|
|
253
|
+
}
|
|
254
|
+
}
|
|
225
255
|
view {
|
|
226
256
|
rendering {
|
|
227
257
|
rows {
|
|
@@ -96,6 +96,21 @@ export const GET_INFORMATION_BLOCK = gql`
|
|
|
96
96
|
periodEnd
|
|
97
97
|
evaluatedAt
|
|
98
98
|
}
|
|
99
|
+
verificationSummary {
|
|
100
|
+
total
|
|
101
|
+
passed
|
|
102
|
+
failed
|
|
103
|
+
errored
|
|
104
|
+
skipped
|
|
105
|
+
byCategory {
|
|
106
|
+
category
|
|
107
|
+
total
|
|
108
|
+
passed
|
|
109
|
+
failed
|
|
110
|
+
errored
|
|
111
|
+
skipped
|
|
112
|
+
}
|
|
113
|
+
}
|
|
99
114
|
view {
|
|
100
115
|
rendering {
|
|
101
116
|
rows {
|
|
@@ -221,6 +236,21 @@ export const LIST_INFORMATION_BLOCKS = gql`
|
|
|
221
236
|
periodEnd
|
|
222
237
|
evaluatedAt
|
|
223
238
|
}
|
|
239
|
+
verificationSummary {
|
|
240
|
+
total
|
|
241
|
+
passed
|
|
242
|
+
failed
|
|
243
|
+
errored
|
|
244
|
+
skipped
|
|
245
|
+
byCategory {
|
|
246
|
+
category
|
|
247
|
+
total
|
|
248
|
+
passed
|
|
249
|
+
failed
|
|
250
|
+
errored
|
|
251
|
+
skipped
|
|
252
|
+
}
|
|
253
|
+
}
|
|
224
254
|
view {
|
|
225
255
|
rendering {
|
|
226
256
|
rows {
|