@robosystems/client 0.3.33 → 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.
- package/artifacts/LedgerClient.d.ts +10 -1
- package/artifacts/LedgerClient.js +11 -1
- package/artifacts/LedgerClient.ts +24 -1
- package/artifacts/graphql/generated/graphql.d.ts +17 -0
- package/artifacts/graphql/generated/graphql.js +48 -1
- package/artifacts/graphql/generated/graphql.ts +60 -0
- package/artifacts/graphql/queries/ledger/elements.js +1 -0
- package/artifacts/graphql/queries/ledger/elements.ts +1 -0
- package/artifacts/graphql/queries/ledger/mappingCandidates.d.ts +8 -0
- package/artifacts/graphql/queries/ledger/mappingCandidates.js +21 -0
- package/artifacts/graphql/queries/ledger/mappingCandidates.ts +19 -0
- package/package.json +1 -1
- package/sdk/sdk.gen.d.ts +1 -1
- package/sdk/sdk.gen.js +1 -1
- package/sdk/sdk.gen.ts +1 -1
- package/sdk.gen.d.ts +1 -1
- package/sdk.gen.js +1 -1
- package/sdk.gen.ts +1 -1
|
@@ -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 ?? '
|
|
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 ?? '
|
|
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
|
}>;
|
|
@@ -3791,6 +3807,7 @@ export declare const GetInformationBlockDocument: DocumentNode<GetInformationBlo
|
|
|
3791
3807
|
export declare const ListInformationBlocksDocument: DocumentNode<ListInformationBlocksQuery, ListInformationBlocksQueryVariables>;
|
|
3792
3808
|
export declare const GetLedgerMappedTrialBalanceDocument: DocumentNode<GetLedgerMappedTrialBalanceQuery, GetLedgerMappedTrialBalanceQueryVariables>;
|
|
3793
3809
|
export declare const GetLedgerMappingDocument: DocumentNode<GetLedgerMappingQuery, GetLedgerMappingQueryVariables>;
|
|
3810
|
+
export declare const MappingCandidatesDocument: DocumentNode<MappingCandidatesQuery, MappingCandidatesQueryVariables>;
|
|
3794
3811
|
export declare const GetLedgerMappingCoverageDocument: DocumentNode<GetLedgerMappingCoverageQuery, GetLedgerMappingCoverageQueryVariables>;
|
|
3795
3812
|
export declare const ListLedgerMappingsDocument: DocumentNode<ListLedgerMappingsQuery, ListLedgerMappingsQueryVariables>;
|
|
3796
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.
|
|
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: [
|
|
@@ -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
|
}>
|
|
@@ -5097,6 +5111,7 @@ export const ListLedgerElementsDocument = {
|
|
|
5097
5111
|
{ kind: 'Field', name: { kind: 'Name', value: 'description' } },
|
|
5098
5112
|
{ kind: 'Field', name: { kind: 'Name', value: 'qname' } },
|
|
5099
5113
|
{ kind: 'Field', name: { kind: 'Name', value: 'namespace' } },
|
|
5114
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'trait' } },
|
|
5100
5115
|
{ kind: 'Field', name: { kind: 'Name', value: 'subClassification' } },
|
|
5101
5116
|
{ kind: 'Field', name: { kind: 'Name', value: 'balanceType' } },
|
|
5102
5117
|
{ kind: 'Field', name: { kind: 'Name', value: 'periodType' } },
|
|
@@ -6244,6 +6259,51 @@ export const GetLedgerMappingDocument = {
|
|
|
6244
6259
|
},
|
|
6245
6260
|
],
|
|
6246
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>
|
|
6247
6307
|
export const GetLedgerMappingCoverageDocument = {
|
|
6248
6308
|
kind: 'Document',
|
|
6249
6309
|
definitions: [
|
|
@@ -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
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
|
*/
|