@robosystems/client 0.3.32 → 0.3.34

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.
@@ -1,6 +1,6 @@
1
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
- 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';
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, type MappingCandidatesQuery } from './graphql/generated/graphql';
4
4
  export type LedgerEntity = NonNullable<GetLedgerEntityQuery['entity']>;
5
5
  export type LedgerEntitySummary = ListLedgerEntitiesQuery['entities'][number];
6
6
  export type LedgerSummary = NonNullable<GetLedgerSummaryQuery['summary']>;
@@ -22,6 +22,7 @@ export type LedgerTaxonomyList = NonNullable<ListLedgerTaxonomiesQuery['taxonomi
22
22
  export type LedgerTaxonomy = LedgerTaxonomyList['taxonomies'][number];
23
23
  export type LedgerElementList = NonNullable<ListLedgerElementsQuery['elements']>;
24
24
  export type LedgerElement = LedgerElementList['elements'][number];
25
+ export type LedgerMappingCandidate = MappingCandidatesQuery['mappingCandidates'][number];
25
26
  export type LedgerUnmappedElement = ListLedgerUnmappedElementsQuery['unmappedElements'][number];
26
27
  export type LedgerStructureList = NonNullable<ListLedgerStructuresQuery['structures']>;
27
28
  export type LedgerStructure = LedgerStructureList['structures'][number];
@@ -299,6 +300,14 @@ export declare class LedgerClient {
299
300
  limit?: number;
300
301
  offset?: number;
301
302
  }): Promise<LedgerElementList | null>;
303
+ /**
304
+ * rs-gaap concepts a CoA element of the given EFS `classification`
305
+ * (asset / liability / equity / revenue / expense) may map to — limited
306
+ * to concepts that render under the graph's active Reporting Style, with
307
+ * statement-level subtotals excluded. Use this to populate the mapping
308
+ * picker so it never offers an unreachable target.
309
+ */
310
+ getMappingCandidates(graphId: string, classification: string): Promise<LedgerMappingCandidate[]>;
302
311
  /** CoA elements not yet mapped to a reporting concept. */
303
312
  listUnmappedElements(graphId: string, options?: {
304
313
  mappingId?: string;
@@ -182,6 +182,16 @@ class LedgerClient {
182
182
  offset: options?.offset ?? 0,
183
183
  }, 'List elements', (data) => data.elements);
184
184
  }
185
+ /**
186
+ * rs-gaap concepts a CoA element of the given EFS `classification`
187
+ * (asset / liability / equity / revenue / expense) may map to — limited
188
+ * to concepts that render under the graph's active Reporting Style, with
189
+ * statement-level subtotals excluded. Use this to populate the mapping
190
+ * picker so it never offers an unreachable target.
191
+ */
192
+ async getMappingCandidates(graphId, classification) {
193
+ return this.gqlQuery(graphId, graphql_1.MappingCandidatesDocument, { classification }, 'Mapping candidates', (data) => data.mappingCandidates);
194
+ }
185
195
  /** CoA elements not yet mapped to a reporting concept. */
186
196
  async listUnmappedElements(graphId, options) {
187
197
  return this.gqlQuery(graphId, graphql_1.ListLedgerUnmappedElementsDocument, { mappingId: options?.mappingId ?? null }, 'List unmapped elements', (data) => data.unmappedElements);
@@ -687,7 +697,7 @@ class LedgerClient {
687
697
  mapping_id: options.mappingId,
688
698
  period_start: options.periodStart,
689
699
  period_end: options.periodEnd,
690
- taxonomy_id: options.taxonomyId ?? 'tax_usgaap_reporting',
700
+ taxonomy_id: options.taxonomyId ?? 'rs-gaap',
691
701
  period_type: options.periodType ?? 'quarterly',
692
702
  comparative: options.comparative ?? true,
693
703
  };
@@ -155,6 +155,7 @@ import {
155
155
  ListLedgerTaxonomiesDocument,
156
156
  ListLedgerTransactionsDocument,
157
157
  ListLedgerUnmappedElementsDocument,
158
+ MappingCandidatesDocument,
158
159
  type GetInformationBlockQuery,
159
160
  type GetLedgerAccountRollupsQuery,
160
161
  type GetLedgerAccountTreeQuery,
@@ -189,6 +190,7 @@ import {
189
190
  type ListLedgerTaxonomiesQuery,
190
191
  type ListLedgerTransactionsQuery,
191
192
  type ListLedgerUnmappedElementsQuery,
193
+ type MappingCandidatesQuery,
192
194
  } from './graphql/generated/graphql'
193
195
 
194
196
  // ── Friendly types derived from GraphQL codegen ────────────────────────
@@ -231,6 +233,7 @@ export type LedgerTaxonomy = LedgerTaxonomyList['taxonomies'][number]
231
233
 
232
234
  export type LedgerElementList = NonNullable<ListLedgerElementsQuery['elements']>
233
235
  export type LedgerElement = LedgerElementList['elements'][number]
236
+ export type LedgerMappingCandidate = MappingCandidatesQuery['mappingCandidates'][number]
234
237
  export type LedgerUnmappedElement = ListLedgerUnmappedElementsQuery['unmappedElements'][number]
235
238
 
236
239
  export type LedgerStructureList = NonNullable<ListLedgerStructuresQuery['structures']>
@@ -887,6 +890,26 @@ export class LedgerClient {
887
890
  )
888
891
  }
889
892
 
893
+ /**
894
+ * rs-gaap concepts a CoA element of the given EFS `classification`
895
+ * (asset / liability / equity / revenue / expense) may map to — limited
896
+ * to concepts that render under the graph's active Reporting Style, with
897
+ * statement-level subtotals excluded. Use this to populate the mapping
898
+ * picker so it never offers an unreachable target.
899
+ */
900
+ async getMappingCandidates(
901
+ graphId: string,
902
+ classification: string
903
+ ): Promise<LedgerMappingCandidate[]> {
904
+ return this.gqlQuery(
905
+ graphId,
906
+ MappingCandidatesDocument,
907
+ { classification },
908
+ 'Mapping candidates',
909
+ (data) => data.mappingCandidates
910
+ )
911
+ }
912
+
890
913
  /** CoA elements not yet mapped to a reporting concept. */
891
914
  async listUnmappedElements(
892
915
  graphId: string,
@@ -1730,7 +1753,7 @@ export class LedgerClient {
1730
1753
  mapping_id: options.mappingId,
1731
1754
  period_start: options.periodStart,
1732
1755
  period_end: options.periodEnd,
1733
- taxonomy_id: options.taxonomyId ?? 'tax_usgaap_reporting',
1756
+ taxonomy_id: options.taxonomyId ?? 'rs-gaap',
1734
1757
  period_type: options.periodType ?? 'quarterly',
1735
1758
  comparative: options.comparative ?? true,
1736
1759
  }
@@ -1451,6 +1451,7 @@ export type Query = {
1451
1451
  libraryTaxonomyArcs: Array<LibraryAssociation>;
1452
1452
  mappedTrialBalance: Maybe<MappedTrialBalance>;
1453
1453
  mapping: Maybe<MappingDetail>;
1454
+ mappingCandidates: Array<Element>;
1454
1455
  mappingCoverage: Maybe<MappingCoverage>;
1455
1456
  mappings: Maybe<StructureList>;
1456
1457
  openPayables: OpenBalanceAggregate;
@@ -1609,6 +1610,9 @@ export type QueryMappedTrialBalanceArgs = {
1609
1610
  export type QueryMappingArgs = {
1610
1611
  mappingId: Scalars['String']['input'];
1611
1612
  };
1613
+ export type QueryMappingCandidatesArgs = {
1614
+ classification: Scalars['String']['input'];
1615
+ };
1612
1616
  export type QueryMappingCoverageArgs = {
1613
1617
  mappingId: Scalars['String']['input'];
1614
1618
  };
@@ -2474,6 +2478,7 @@ export type ListLedgerElementsQuery = {
2474
2478
  description: string | null;
2475
2479
  qname: string | null;
2476
2480
  namespace: string | null;
2481
+ trait: string | null;
2477
2482
  subClassification: string | null;
2478
2483
  balanceType: string;
2479
2484
  periodType: string;
@@ -2968,6 +2973,17 @@ export type GetLedgerMappingQuery = {
2968
2973
  }>;
2969
2974
  } | null;
2970
2975
  };
2976
+ export type MappingCandidatesQueryVariables = Exact<{
2977
+ classification: Scalars['String']['input'];
2978
+ }>;
2979
+ export type MappingCandidatesQuery = {
2980
+ mappingCandidates: Array<{
2981
+ id: string;
2982
+ name: string;
2983
+ qname: string | null;
2984
+ trait: string | null;
2985
+ }>;
2986
+ };
2971
2987
  export type GetLedgerMappingCoverageQueryVariables = Exact<{
2972
2988
  mappingId: Scalars['String']['input'];
2973
2989
  }>;
@@ -3250,6 +3266,21 @@ export type GetLedgerReportPackageQuery = {
3250
3266
  periodEnd: any | null;
3251
3267
  evaluatedAt: any | null;
3252
3268
  }>;
3269
+ verificationSummary: {
3270
+ total: number;
3271
+ passed: number;
3272
+ failed: number;
3273
+ errored: number;
3274
+ skipped: number;
3275
+ byCategory: Array<{
3276
+ category: string;
3277
+ total: number;
3278
+ passed: number;
3279
+ failed: number;
3280
+ errored: number;
3281
+ skipped: number;
3282
+ }>;
3283
+ } | null;
3253
3284
  view: {
3254
3285
  rendering: {
3255
3286
  unmappedCount: number;
@@ -3776,6 +3807,7 @@ export declare const GetInformationBlockDocument: DocumentNode<GetInformationBlo
3776
3807
  export declare const ListInformationBlocksDocument: DocumentNode<ListInformationBlocksQuery, ListInformationBlocksQueryVariables>;
3777
3808
  export declare const GetLedgerMappedTrialBalanceDocument: DocumentNode<GetLedgerMappedTrialBalanceQuery, GetLedgerMappedTrialBalanceQueryVariables>;
3778
3809
  export declare const GetLedgerMappingDocument: DocumentNode<GetLedgerMappingQuery, GetLedgerMappingQueryVariables>;
3810
+ export declare const MappingCandidatesDocument: DocumentNode<MappingCandidatesQuery, MappingCandidatesQueryVariables>;
3779
3811
  export declare const GetLedgerMappingCoverageDocument: DocumentNode<GetLedgerMappingCoverageQuery, GetLedgerMappingCoverageQueryVariables>;
3780
3812
  export declare const ListLedgerMappingsDocument: DocumentNode<ListLedgerMappingsQuery, ListLedgerMappingsQueryVariables>;
3781
3813
  export declare const GetLedgerPeriodCloseStatusDocument: DocumentNode<GetLedgerPeriodCloseStatusQuery, GetLedgerPeriodCloseStatusQueryVariables>;
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GetLibraryTaxonomyDocument = exports.ListLibraryTaxonomiesDocument = exports.GetLibraryElementDocument = exports.SearchLibraryElementsDocument = exports.ListLibraryElementsDocument = exports.GetLibraryElementEquivalentsDocument = exports.GetLibraryElementClassificationsDocument = exports.GetLibraryElementArcsDocument = exports.ListLibraryTaxonomyArcsDocument = exports.ListLedgerUnmappedElementsDocument = exports.GetLedgerTrialBalanceDocument = exports.ListLedgerTransactionsDocument = exports.GetLedgerTransactionDocument = exports.ListLedgerTaxonomiesDocument = exports.GetLedgerSummaryDocument = exports.ListLedgerStructuresDocument = exports.GetLedgerStatementDocument = exports.ListLedgerReportsDocument = exports.GetLedgerReportingTaxonomyDocument = exports.GetLedgerReportPackageDocument = exports.GetLedgerReportDocument = exports.ListLedgerPublishListsDocument = exports.GetLedgerPublishListDocument = exports.GetLedgerPeriodDraftsDocument = exports.GetLedgerPeriodCloseStatusDocument = exports.ListLedgerMappingsDocument = exports.GetLedgerMappingCoverageDocument = exports.GetLedgerMappingDocument = exports.GetLedgerMappedTrialBalanceDocument = exports.ListInformationBlocksDocument = exports.GetInformationBlockDocument = exports.GetLedgerFiscalCalendarDocument = exports.ListLedgerEventBlocksDocument = exports.GetLedgerEventBlockDocument = exports.GetLedgerEntityDocument = exports.ListLedgerEntitiesDocument = exports.ListLedgerElementsDocument = exports.GetLedgerClosingBookStructuresDocument = exports.ListLedgerAgentsDocument = exports.GetLedgerAgentDocument = exports.ListLedgerAccountsDocument = exports.GetLedgerAccountTreeDocument = exports.GetLedgerAccountRollupsDocument = exports.GetInvestorSecurityDocument = exports.ListInvestorSecuritiesDocument = exports.ListInvestorPositionsDocument = exports.GetInvestorPositionDocument = exports.ListInvestorPortfoliosDocument = exports.GetInvestorPortfolioBlockDocument = exports.GetInvestorHoldingsDocument = void 0;
3
+ exports.ListLibraryTaxonomiesDocument = exports.GetLibraryElementDocument = exports.SearchLibraryElementsDocument = exports.ListLibraryElementsDocument = exports.GetLibraryElementEquivalentsDocument = exports.GetLibraryElementClassificationsDocument = exports.GetLibraryElementArcsDocument = exports.ListLibraryTaxonomyArcsDocument = exports.ListLedgerUnmappedElementsDocument = exports.GetLedgerTrialBalanceDocument = exports.ListLedgerTransactionsDocument = exports.GetLedgerTransactionDocument = exports.ListLedgerTaxonomiesDocument = exports.GetLedgerSummaryDocument = exports.ListLedgerStructuresDocument = exports.GetLedgerStatementDocument = exports.ListLedgerReportsDocument = exports.GetLedgerReportingTaxonomyDocument = exports.GetLedgerReportPackageDocument = exports.GetLedgerReportDocument = exports.ListLedgerPublishListsDocument = exports.GetLedgerPublishListDocument = exports.GetLedgerPeriodDraftsDocument = exports.GetLedgerPeriodCloseStatusDocument = exports.ListLedgerMappingsDocument = exports.GetLedgerMappingCoverageDocument = exports.MappingCandidatesDocument = exports.GetLedgerMappingDocument = exports.GetLedgerMappedTrialBalanceDocument = exports.ListInformationBlocksDocument = exports.GetInformationBlockDocument = exports.GetLedgerFiscalCalendarDocument = exports.ListLedgerEventBlocksDocument = exports.GetLedgerEventBlockDocument = exports.GetLedgerEntityDocument = exports.ListLedgerEntitiesDocument = exports.ListLedgerElementsDocument = exports.GetLedgerClosingBookStructuresDocument = exports.ListLedgerAgentsDocument = exports.GetLedgerAgentDocument = exports.ListLedgerAccountsDocument = exports.GetLedgerAccountTreeDocument = exports.GetLedgerAccountRollupsDocument = exports.GetInvestorSecurityDocument = exports.ListInvestorSecuritiesDocument = exports.ListInvestorPositionsDocument = exports.GetInvestorPositionDocument = exports.ListInvestorPortfoliosDocument = exports.GetInvestorPortfolioBlockDocument = exports.GetInvestorHoldingsDocument = void 0;
4
+ exports.GetLibraryTaxonomyDocument = void 0;
4
5
  exports.GetInvestorHoldingsDocument = {
5
6
  kind: 'Document',
6
7
  definitions: [
@@ -1255,6 +1256,7 @@ exports.ListLedgerElementsDocument = {
1255
1256
  { kind: 'Field', name: { kind: 'Name', value: 'description' } },
1256
1257
  { kind: 'Field', name: { kind: 'Name', value: 'qname' } },
1257
1258
  { kind: 'Field', name: { kind: 'Name', value: 'namespace' } },
1259
+ { kind: 'Field', name: { kind: 'Name', value: 'trait' } },
1258
1260
  { kind: 'Field', name: { kind: 'Name', value: 'subClassification' } },
1259
1261
  { kind: 'Field', name: { kind: 'Name', value: 'balanceType' } },
1260
1262
  { kind: 'Field', name: { kind: 'Name', value: 'periodType' } },
@@ -2399,6 +2401,51 @@ exports.GetLedgerMappingDocument = {
2399
2401
  },
2400
2402
  ],
2401
2403
  };
2404
+ exports.MappingCandidatesDocument = {
2405
+ kind: 'Document',
2406
+ definitions: [
2407
+ {
2408
+ kind: 'OperationDefinition',
2409
+ operation: 'query',
2410
+ name: { kind: 'Name', value: 'MappingCandidates' },
2411
+ variableDefinitions: [
2412
+ {
2413
+ kind: 'VariableDefinition',
2414
+ variable: { kind: 'Variable', name: { kind: 'Name', value: 'classification' } },
2415
+ type: {
2416
+ kind: 'NonNullType',
2417
+ type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } },
2418
+ },
2419
+ },
2420
+ ],
2421
+ selectionSet: {
2422
+ kind: 'SelectionSet',
2423
+ selections: [
2424
+ {
2425
+ kind: 'Field',
2426
+ name: { kind: 'Name', value: 'mappingCandidates' },
2427
+ arguments: [
2428
+ {
2429
+ kind: 'Argument',
2430
+ name: { kind: 'Name', value: 'classification' },
2431
+ value: { kind: 'Variable', name: { kind: 'Name', value: 'classification' } },
2432
+ },
2433
+ ],
2434
+ selectionSet: {
2435
+ kind: 'SelectionSet',
2436
+ selections: [
2437
+ { kind: 'Field', name: { kind: 'Name', value: 'id' } },
2438
+ { kind: 'Field', name: { kind: 'Name', value: 'name' } },
2439
+ { kind: 'Field', name: { kind: 'Name', value: 'qname' } },
2440
+ { kind: 'Field', name: { kind: 'Name', value: 'trait' } },
2441
+ ],
2442
+ },
2443
+ },
2444
+ ],
2445
+ },
2446
+ },
2447
+ ],
2448
+ };
2402
2449
  exports.GetLedgerMappingCoverageDocument = {
2403
2450
  kind: 'Document',
2404
2451
  definitions: [
@@ -3123,6 +3170,38 @@ exports.GetLedgerReportPackageDocument = {
3123
3170
  ],
3124
3171
  },
3125
3172
  },
3173
+ {
3174
+ kind: 'Field',
3175
+ name: { kind: 'Name', value: 'verificationSummary' },
3176
+ selectionSet: {
3177
+ kind: 'SelectionSet',
3178
+ selections: [
3179
+ { kind: 'Field', name: { kind: 'Name', value: 'total' } },
3180
+ { kind: 'Field', name: { kind: 'Name', value: 'passed' } },
3181
+ { kind: 'Field', name: { kind: 'Name', value: 'failed' } },
3182
+ { kind: 'Field', name: { kind: 'Name', value: 'errored' } },
3183
+ { kind: 'Field', name: { kind: 'Name', value: 'skipped' } },
3184
+ {
3185
+ kind: 'Field',
3186
+ name: { kind: 'Name', value: 'byCategory' },
3187
+ selectionSet: {
3188
+ kind: 'SelectionSet',
3189
+ selections: [
3190
+ {
3191
+ kind: 'Field',
3192
+ name: { kind: 'Name', value: 'category' },
3193
+ },
3194
+ { kind: 'Field', name: { kind: 'Name', value: 'total' } },
3195
+ { kind: 'Field', name: { kind: 'Name', value: 'passed' } },
3196
+ { kind: 'Field', name: { kind: 'Name', value: 'failed' } },
3197
+ { kind: 'Field', name: { kind: 'Name', value: 'errored' } },
3198
+ { kind: 'Field', name: { kind: 'Name', value: 'skipped' } },
3199
+ ],
3200
+ },
3201
+ },
3202
+ ],
3203
+ },
3204
+ },
3126
3205
  {
3127
3206
  kind: 'Field',
3128
3207
  name: { kind: 'Name', value: 'view' },
@@ -1500,6 +1500,7 @@ export type Query = {
1500
1500
  libraryTaxonomyArcs: Array<LibraryAssociation>
1501
1501
  mappedTrialBalance: Maybe<MappedTrialBalance>
1502
1502
  mapping: Maybe<MappingDetail>
1503
+ mappingCandidates: Array<Element>
1503
1504
  mappingCoverage: Maybe<MappingCoverage>
1504
1505
  mappings: Maybe<StructureList>
1505
1506
  openPayables: OpenBalanceAggregate
@@ -1685,6 +1686,10 @@ export type QueryMappingArgs = {
1685
1686
  mappingId: Scalars['String']['input']
1686
1687
  }
1687
1688
 
1689
+ export type QueryMappingCandidatesArgs = {
1690
+ classification: Scalars['String']['input']
1691
+ }
1692
+
1688
1693
  export type QueryMappingCoverageArgs = {
1689
1694
  mappingId: Scalars['String']['input']
1690
1695
  }
@@ -2592,6 +2597,7 @@ export type ListLedgerElementsQuery = {
2592
2597
  description: string | null
2593
2598
  qname: string | null
2594
2599
  namespace: string | null
2600
+ trait: string | null
2595
2601
  subClassification: string | null
2596
2602
  balanceType: string
2597
2603
  periodType: string
@@ -3070,6 +3076,14 @@ export type GetLedgerMappingQuery = {
3070
3076
  } | null
3071
3077
  }
3072
3078
 
3079
+ export type MappingCandidatesQueryVariables = Exact<{
3080
+ classification: Scalars['String']['input']
3081
+ }>
3082
+
3083
+ export type MappingCandidatesQuery = {
3084
+ mappingCandidates: Array<{ id: string; name: string; qname: string | null; trait: string | null }>
3085
+ }
3086
+
3073
3087
  export type GetLedgerMappingCoverageQueryVariables = Exact<{
3074
3088
  mappingId: Scalars['String']['input']
3075
3089
  }>
@@ -3343,6 +3357,21 @@ export type GetLedgerReportPackageQuery = {
3343
3357
  periodEnd: any | null
3344
3358
  evaluatedAt: any | null
3345
3359
  }>
3360
+ verificationSummary: {
3361
+ total: number
3362
+ passed: number
3363
+ failed: number
3364
+ errored: number
3365
+ skipped: number
3366
+ byCategory: Array<{
3367
+ category: string
3368
+ total: number
3369
+ passed: number
3370
+ failed: number
3371
+ errored: number
3372
+ skipped: number
3373
+ }>
3374
+ } | null
3346
3375
  view: {
3347
3376
  rendering: {
3348
3377
  unmappedCount: number
@@ -5082,6 +5111,7 @@ export const ListLedgerElementsDocument = {
5082
5111
  { kind: 'Field', name: { kind: 'Name', value: 'description' } },
5083
5112
  { kind: 'Field', name: { kind: 'Name', value: 'qname' } },
5084
5113
  { kind: 'Field', name: { kind: 'Name', value: 'namespace' } },
5114
+ { kind: 'Field', name: { kind: 'Name', value: 'trait' } },
5085
5115
  { kind: 'Field', name: { kind: 'Name', value: 'subClassification' } },
5086
5116
  { kind: 'Field', name: { kind: 'Name', value: 'balanceType' } },
5087
5117
  { kind: 'Field', name: { kind: 'Name', value: 'periodType' } },
@@ -6229,6 +6259,51 @@ export const GetLedgerMappingDocument = {
6229
6259
  },
6230
6260
  ],
6231
6261
  } as unknown as DocumentNode<GetLedgerMappingQuery, GetLedgerMappingQueryVariables>
6262
+ export const MappingCandidatesDocument = {
6263
+ kind: 'Document',
6264
+ definitions: [
6265
+ {
6266
+ kind: 'OperationDefinition',
6267
+ operation: 'query',
6268
+ name: { kind: 'Name', value: 'MappingCandidates' },
6269
+ variableDefinitions: [
6270
+ {
6271
+ kind: 'VariableDefinition',
6272
+ variable: { kind: 'Variable', name: { kind: 'Name', value: 'classification' } },
6273
+ type: {
6274
+ kind: 'NonNullType',
6275
+ type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } },
6276
+ },
6277
+ },
6278
+ ],
6279
+ selectionSet: {
6280
+ kind: 'SelectionSet',
6281
+ selections: [
6282
+ {
6283
+ kind: 'Field',
6284
+ name: { kind: 'Name', value: 'mappingCandidates' },
6285
+ arguments: [
6286
+ {
6287
+ kind: 'Argument',
6288
+ name: { kind: 'Name', value: 'classification' },
6289
+ value: { kind: 'Variable', name: { kind: 'Name', value: 'classification' } },
6290
+ },
6291
+ ],
6292
+ selectionSet: {
6293
+ kind: 'SelectionSet',
6294
+ selections: [
6295
+ { kind: 'Field', name: { kind: 'Name', value: 'id' } },
6296
+ { kind: 'Field', name: { kind: 'Name', value: 'name' } },
6297
+ { kind: 'Field', name: { kind: 'Name', value: 'qname' } },
6298
+ { kind: 'Field', name: { kind: 'Name', value: 'trait' } },
6299
+ ],
6300
+ },
6301
+ },
6302
+ ],
6303
+ },
6304
+ },
6305
+ ],
6306
+ } as unknown as DocumentNode<MappingCandidatesQuery, MappingCandidatesQueryVariables>
6232
6307
  export const GetLedgerMappingCoverageDocument = {
6233
6308
  kind: 'Document',
6234
6309
  definitions: [
@@ -6956,6 +7031,38 @@ export const GetLedgerReportPackageDocument = {
6956
7031
  ],
6957
7032
  },
6958
7033
  },
7034
+ {
7035
+ kind: 'Field',
7036
+ name: { kind: 'Name', value: 'verificationSummary' },
7037
+ selectionSet: {
7038
+ kind: 'SelectionSet',
7039
+ selections: [
7040
+ { kind: 'Field', name: { kind: 'Name', value: 'total' } },
7041
+ { kind: 'Field', name: { kind: 'Name', value: 'passed' } },
7042
+ { kind: 'Field', name: { kind: 'Name', value: 'failed' } },
7043
+ { kind: 'Field', name: { kind: 'Name', value: 'errored' } },
7044
+ { kind: 'Field', name: { kind: 'Name', value: 'skipped' } },
7045
+ {
7046
+ kind: 'Field',
7047
+ name: { kind: 'Name', value: 'byCategory' },
7048
+ selectionSet: {
7049
+ kind: 'SelectionSet',
7050
+ selections: [
7051
+ {
7052
+ kind: 'Field',
7053
+ name: { kind: 'Name', value: 'category' },
7054
+ },
7055
+ { kind: 'Field', name: { kind: 'Name', value: 'total' } },
7056
+ { kind: 'Field', name: { kind: 'Name', value: 'passed' } },
7057
+ { kind: 'Field', name: { kind: 'Name', value: 'failed' } },
7058
+ { kind: 'Field', name: { kind: 'Name', value: 'errored' } },
7059
+ { kind: 'Field', name: { kind: 'Name', value: 'skipped' } },
7060
+ ],
7061
+ },
7062
+ },
7063
+ ],
7064
+ },
7065
+ },
6959
7066
  {
6960
7067
  kind: 'Field',
6961
7068
  name: { kind: 'Name', value: 'view' },
@@ -31,6 +31,7 @@ exports.LIST_ELEMENTS = (0, graphql_request_1.gql) `
31
31
  description
32
32
  qname
33
33
  namespace
34
+ trait
34
35
  subClassification
35
36
  balanceType
36
37
  periodType
@@ -29,6 +29,7 @@ export const LIST_ELEMENTS = gql`
29
29
  description
30
30
  qname
31
31
  namespace
32
+ trait
32
33
  subClassification
33
34
  balanceType
34
35
  periodType
@@ -0,0 +1,8 @@
1
+ /**
2
+ * rs-gaap concepts a CoA element of a given EFS classification may map to,
3
+ * limited to concepts that render under the graph's active Reporting Style
4
+ * (statement-level subtotals excluded). This is the candidate set the mapping
5
+ * picker should offer — mapping to anything outside it would land a fact on an
6
+ * unreachable branch that never renders.
7
+ */
8
+ export declare const MAPPING_CANDIDATES: string;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MAPPING_CANDIDATES = void 0;
4
+ const graphql_request_1 = require("graphql-request");
5
+ /**
6
+ * rs-gaap concepts a CoA element of a given EFS classification may map to,
7
+ * limited to concepts that render under the graph's active Reporting Style
8
+ * (statement-level subtotals excluded). This is the candidate set the mapping
9
+ * picker should offer — mapping to anything outside it would land a fact on an
10
+ * unreachable branch that never renders.
11
+ */
12
+ exports.MAPPING_CANDIDATES = (0, graphql_request_1.gql) `
13
+ query MappingCandidates($classification: String!) {
14
+ mappingCandidates(classification: $classification) {
15
+ id
16
+ name
17
+ qname
18
+ trait
19
+ }
20
+ }
21
+ `;
@@ -0,0 +1,19 @@
1
+ import { gql } from 'graphql-request'
2
+
3
+ /**
4
+ * rs-gaap concepts a CoA element of a given EFS classification may map to,
5
+ * limited to concepts that render under the graph's active Reporting Style
6
+ * (statement-level subtotals excluded). This is the candidate set the mapping
7
+ * picker should offer — mapping to anything outside it would land a fact on an
8
+ * unreachable branch that never renders.
9
+ */
10
+ export const MAPPING_CANDIDATES = gql`
11
+ query MappingCandidates($classification: String!) {
12
+ mappingCandidates(classification: $classification) {
13
+ id
14
+ name
15
+ qname
16
+ trait
17
+ }
18
+ }
19
+ `
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@robosystems/client",
3
- "version": "0.3.32",
3
+ "version": "0.3.34",
4
4
  "description": "TypeScript client library for RoboSystems Financial Knowledge Graph API",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
package/sdk/sdk.gen.d.ts CHANGED
@@ -710,7 +710,7 @@ export declare const opCreateMappingAssociation: <ThrowOnError extends boolean =
710
710
  /**
711
711
  * Delete Mapping Association
712
712
  *
713
- * Remove a single CoA → reporting-concept mapping edge. The mapping structure itself remains; only the association row is dropped.
713
+ * Remove a single CoA → reporting-concept mapping edge by id. The mapping structure itself remains; only the association row is dropped. Use this to correct a wrong mapping — delete the bad edge, then `create-mapping-association` the right one. Find the association id via the `library_element_arcs` GraphQL field. Library-seeded rows cannot be deleted (403).
714
714
  *
715
715
  * **Idempotency**: supply an `Idempotency-Key` header to make safe retries; replays within 24 hours return the same envelope. Reusing the key with a different body returns HTTP 409 Conflict.
716
716
  */
package/sdk/sdk.gen.js CHANGED
@@ -1472,7 +1472,7 @@ exports.opCreateMappingAssociation = opCreateMappingAssociation;
1472
1472
  /**
1473
1473
  * Delete Mapping Association
1474
1474
  *
1475
- * Remove a single CoA → reporting-concept mapping edge. The mapping structure itself remains; only the association row is dropped.
1475
+ * Remove a single CoA → reporting-concept mapping edge by id. The mapping structure itself remains; only the association row is dropped. Use this to correct a wrong mapping — delete the bad edge, then `create-mapping-association` the right one. Find the association id via the `library_element_arcs` GraphQL field. Library-seeded rows cannot be deleted (403).
1476
1476
  *
1477
1477
  * **Idempotency**: supply an `Idempotency-Key` header to make safe retries; replays within 24 hours return the same envelope. Reusing the key with a different body returns HTTP 409 Conflict.
1478
1478
  */
package/sdk/sdk.gen.ts CHANGED
@@ -1484,7 +1484,7 @@ export const opCreateMappingAssociation = <ThrowOnError extends boolean = false>
1484
1484
  /**
1485
1485
  * Delete Mapping Association
1486
1486
  *
1487
- * Remove a single CoA → reporting-concept mapping edge. The mapping structure itself remains; only the association row is dropped.
1487
+ * Remove a single CoA → reporting-concept mapping edge by id. The mapping structure itself remains; only the association row is dropped. Use this to correct a wrong mapping — delete the bad edge, then `create-mapping-association` the right one. Find the association id via the `library_element_arcs` GraphQL field. Library-seeded rows cannot be deleted (403).
1488
1488
  *
1489
1489
  * **Idempotency**: supply an `Idempotency-Key` header to make safe retries; replays within 24 hours return the same envelope. Reusing the key with a different body returns HTTP 409 Conflict.
1490
1490
  */
package/sdk.gen.d.ts CHANGED
@@ -710,7 +710,7 @@ export declare const opCreateMappingAssociation: <ThrowOnError extends boolean =
710
710
  /**
711
711
  * Delete Mapping Association
712
712
  *
713
- * Remove a single CoA → reporting-concept mapping edge. The mapping structure itself remains; only the association row is dropped.
713
+ * Remove a single CoA → reporting-concept mapping edge by id. The mapping structure itself remains; only the association row is dropped. Use this to correct a wrong mapping — delete the bad edge, then `create-mapping-association` the right one. Find the association id via the `library_element_arcs` GraphQL field. Library-seeded rows cannot be deleted (403).
714
714
  *
715
715
  * **Idempotency**: supply an `Idempotency-Key` header to make safe retries; replays within 24 hours return the same envelope. Reusing the key with a different body returns HTTP 409 Conflict.
716
716
  */
package/sdk.gen.js CHANGED
@@ -1472,7 +1472,7 @@ exports.opCreateMappingAssociation = opCreateMappingAssociation;
1472
1472
  /**
1473
1473
  * Delete Mapping Association
1474
1474
  *
1475
- * Remove a single CoA → reporting-concept mapping edge. The mapping structure itself remains; only the association row is dropped.
1475
+ * Remove a single CoA → reporting-concept mapping edge by id. The mapping structure itself remains; only the association row is dropped. Use this to correct a wrong mapping — delete the bad edge, then `create-mapping-association` the right one. Find the association id via the `library_element_arcs` GraphQL field. Library-seeded rows cannot be deleted (403).
1476
1476
  *
1477
1477
  * **Idempotency**: supply an `Idempotency-Key` header to make safe retries; replays within 24 hours return the same envelope. Reusing the key with a different body returns HTTP 409 Conflict.
1478
1478
  */
package/sdk.gen.ts CHANGED
@@ -1484,7 +1484,7 @@ export const opCreateMappingAssociation = <ThrowOnError extends boolean = false>
1484
1484
  /**
1485
1485
  * Delete Mapping Association
1486
1486
  *
1487
- * Remove a single CoA → reporting-concept mapping edge. The mapping structure itself remains; only the association row is dropped.
1487
+ * Remove a single CoA → reporting-concept mapping edge by id. The mapping structure itself remains; only the association row is dropped. Use this to correct a wrong mapping — delete the bad edge, then `create-mapping-association` the right one. Find the association id via the `library_element_arcs` GraphQL field. Library-seeded rows cannot be deleted (403).
1488
1488
  *
1489
1489
  * **Idempotency**: supply an `Idempotency-Key` header to make safe retries; replays within 24 hours return the same envelope. Reusing the key with a different body returns HTTP 409 Conflict.
1490
1490
  */