@robosystems/client 2.12.0 → 2.12.1
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 +15 -1
- package/artifacts/LedgerClient.js +13 -0
- package/artifacts/LedgerClient.ts +26 -0
- package/artifacts/graphql/generated/graphql.d.ts +12 -0
- package/artifacts/graphql/generated/graphql.js +44 -2
- package/artifacts/graphql/generated/graphql.ts +50 -0
- package/artifacts/graphql/queries/ledger/flowCandidates.d.ts +12 -0
- package/artifacts/graphql/queries/ledger/flowCandidates.js +25 -0
- package/artifacts/graphql/queries/ledger/flowCandidates.ts +23 -0
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { AssociationResponse, AutoMapElementsOperation, BindTextBlockRequest, BindTextBlockResponse, BlockedSourceGraphResponse, BlockSourceGraphResult, ComputeMetricsRequest, ComputeMetricsResponse, CreateAgentRequest, CreateEntityRequest, CreateEventBlockRequest, CreateEventHandlerRequest, CreateInformationBlockRequest, CreateMappingAssociationOperation, CreateTaxonomyBlockRequest, CreateViewRequest, DeleteInformationBlockRequest, DeleteInformationBlockResponse, DeleteMappingAssociationOperation, DeleteResult, DeleteTaxonomyBlockRequest, DeleteTaxonomyBlockResponse, EntityTaxonomyResponse, EvaluateRulesRequest, EvaluateRulesResponse, EventBlockEnvelope, EventHandlerResponse, FinancialStatementAnalysisRequest, FinancialStatementAnalysisResponse, InformationBlockEnvelope, InitializeChartOfAccountsRequest, JournalEntryResponse, LearnClassificationDefaultsResponse, LedgerAgentResponse, LinkBankAccountRequest, LinkBankAccountResponse, LinkEntityTaxonomyRequest, LiveFinancialStatementRequest, LiveFinancialStatementResponse, OperationEnvelope, PreviewEventBlockResponse, PreviewReconciliationsRequest, PromoteObligationsRequest, PromoteObligationsResponse, PublishListMemberResponse, PublishListResponse, ReconcilingItemPlan, ReportResponse, ResolveReconcilingItemRequest, ResolveReconcilingItemResponse, RevokeReportShareResponse, ShareReportResponse, TaxonomyBlockEnvelope, UpdateAgentRequest, UpdateEntityRequest, UpdateEventBlockRequest, UpdateEventHandlerRequest, UpdateInformationBlockRequest, UpdateJournalEntryRequest, UpdateTaxonomyBlockRequest, ViewResponse } from '../types.gen';
|
|
2
2
|
import type { TokenProvider } from './graphql/client';
|
|
3
|
-
import { ListLedgerBankAccountsQuery, 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 ListChartTemplatesQuery, type ListInformationBlocksQuery, type ListLedgerAccountsQuery, type ListLedgerAgentsQuery, type ListLedgerBlockedSourceGraphsQuery, type ListLedgerElementsQuery, type ListLedgerEntitiesQuery, type ListLedgerEventBlocksQuery, type ListLedgerJournalEntriesQuery, type ListLedgerMappingsQuery, type ListLedgerPublishListsQuery, type ListLedgerReconciliationsQuery, type ListLedgerReportsQuery, type ListLedgerStructuresQuery, type ListLedgerTaxonomiesQuery, type ListLedgerTransactionsQuery, type ListLedgerUnmappedElementsQuery, type MappingCandidatesQuery, type ReportDownloadFormat, type ReportLifecycle } from './graphql/generated/graphql';
|
|
3
|
+
import { ListLedgerBankAccountsQuery, type FlowCandidatesQuery, 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 ListChartTemplatesQuery, type ListInformationBlocksQuery, type ListLedgerAccountsQuery, type ListLedgerAgentsQuery, type ListLedgerBlockedSourceGraphsQuery, type ListLedgerElementsQuery, type ListLedgerEntitiesQuery, type ListLedgerEventBlocksQuery, type ListLedgerJournalEntriesQuery, type ListLedgerMappingsQuery, type ListLedgerPublishListsQuery, type ListLedgerReconciliationsQuery, type ListLedgerReportsQuery, type ListLedgerStructuresQuery, type ListLedgerTaxonomiesQuery, type ListLedgerTransactionsQuery, type ListLedgerUnmappedElementsQuery, type MappingCandidatesQuery, type ReportDownloadFormat, type ReportLifecycle } from './graphql/generated/graphql';
|
|
4
4
|
export { GraphQLError } from './graphql/client';
|
|
5
5
|
export type { ReportLifecycle };
|
|
6
6
|
export type LedgerEntity = NonNullable<GetLedgerEntityQuery['entity']>;
|
|
@@ -29,6 +29,7 @@ export type LedgerTaxonomy = LedgerTaxonomyList['taxonomies'][number];
|
|
|
29
29
|
export type LedgerElementList = NonNullable<ListLedgerElementsQuery['elements']>;
|
|
30
30
|
export type LedgerElement = LedgerElementList['elements'][number];
|
|
31
31
|
export type LedgerMappingCandidate = MappingCandidatesQuery['mappingCandidates'][number];
|
|
32
|
+
export type LedgerFlowCandidate = FlowCandidatesQuery['flowCandidates'][number];
|
|
32
33
|
export type LedgerUnmappedElement = ListLedgerUnmappedElementsQuery['unmappedElements'][number];
|
|
33
34
|
export type LedgerStructureList = NonNullable<ListLedgerStructuresQuery['structures']>;
|
|
34
35
|
export type LedgerStructure = LedgerStructureList['structures'][number];
|
|
@@ -597,6 +598,19 @@ export declare class LedgerClient {
|
|
|
597
598
|
getMappingCandidates(graphId: string, classification: string, options?: {
|
|
598
599
|
entityId?: string | null;
|
|
599
600
|
}): Promise<LedgerMappingCandidate[]>;
|
|
601
|
+
/**
|
|
602
|
+
* The cash flow rows a line may be tagged with: the leaf investing and
|
|
603
|
+
* financing rows of the entity's cash flow statement under its Reporting
|
|
604
|
+
* Style (`options.entityId`, default the group parent), in statement
|
|
605
|
+
* order. A flow is a second classification beside the account — it
|
|
606
|
+
* overrides the account's default flow on the cash flow and equity
|
|
607
|
+
* statements — and this is the set the write path accepts, so a picker
|
|
608
|
+
* built from it never offers a row the statement cannot present. The
|
|
609
|
+
* `qname` is what a bank line's `classified_flow_qname` takes.
|
|
610
|
+
*/
|
|
611
|
+
getFlowCandidates(graphId: string, options?: {
|
|
612
|
+
entityId?: string | null;
|
|
613
|
+
}): Promise<LedgerFlowCandidate[]>;
|
|
600
614
|
/** CoA elements not yet mapped to a reporting concept. */
|
|
601
615
|
listUnmappedElements(graphId: string, options?: {
|
|
602
616
|
mappingId?: string;
|
|
@@ -290,6 +290,19 @@ class LedgerClient {
|
|
|
290
290
|
async getMappingCandidates(graphId, classification, options) {
|
|
291
291
|
return this.gqlQuery(graphId, graphql_1.MappingCandidatesDocument, { classification, entityId: options?.entityId ?? null }, 'Mapping candidates', (data) => data.mappingCandidates);
|
|
292
292
|
}
|
|
293
|
+
/**
|
|
294
|
+
* The cash flow rows a line may be tagged with: the leaf investing and
|
|
295
|
+
* financing rows of the entity's cash flow statement under its Reporting
|
|
296
|
+
* Style (`options.entityId`, default the group parent), in statement
|
|
297
|
+
* order. A flow is a second classification beside the account — it
|
|
298
|
+
* overrides the account's default flow on the cash flow and equity
|
|
299
|
+
* statements — and this is the set the write path accepts, so a picker
|
|
300
|
+
* built from it never offers a row the statement cannot present. The
|
|
301
|
+
* `qname` is what a bank line's `classified_flow_qname` takes.
|
|
302
|
+
*/
|
|
303
|
+
async getFlowCandidates(graphId, options) {
|
|
304
|
+
return this.gqlQuery(graphId, graphql_1.FlowCandidatesDocument, { entityId: options?.entityId ?? null }, 'Flow candidates', (data) => data.flowCandidates);
|
|
305
|
+
}
|
|
293
306
|
/** CoA elements not yet mapped to a reporting concept. */
|
|
294
307
|
async listUnmappedElements(graphId, options) {
|
|
295
308
|
return this.gqlQuery(graphId, graphql_1.ListLedgerUnmappedElementsDocument, { mappingId: options?.mappingId ?? null }, 'List unmapped elements', (data) => data.unmappedElements);
|
|
@@ -179,6 +179,7 @@ import type {
|
|
|
179
179
|
import type { TokenProvider } from './graphql/client'
|
|
180
180
|
import { GraphQLClientCache, toGraphQLError } from './graphql/client'
|
|
181
181
|
import {
|
|
182
|
+
FlowCandidatesDocument,
|
|
182
183
|
GetInformationBlockDocument,
|
|
183
184
|
GetInformationBlockWindowedDocument,
|
|
184
185
|
GetLedgerAccountRollupsDocument,
|
|
@@ -222,6 +223,7 @@ import {
|
|
|
222
223
|
ListLedgerTransactionsDocument,
|
|
223
224
|
ListLedgerUnmappedElementsDocument,
|
|
224
225
|
MappingCandidatesDocument,
|
|
226
|
+
type FlowCandidatesQuery,
|
|
225
227
|
type GetInformationBlockQuery,
|
|
226
228
|
type GetLedgerAccountRollupsQuery,
|
|
227
229
|
type GetLedgerAccountTreeQuery,
|
|
@@ -317,6 +319,7 @@ export type LedgerTaxonomy = LedgerTaxonomyList['taxonomies'][number]
|
|
|
317
319
|
export type LedgerElementList = NonNullable<ListLedgerElementsQuery['elements']>
|
|
318
320
|
export type LedgerElement = LedgerElementList['elements'][number]
|
|
319
321
|
export type LedgerMappingCandidate = MappingCandidatesQuery['mappingCandidates'][number]
|
|
322
|
+
export type LedgerFlowCandidate = FlowCandidatesQuery['flowCandidates'][number]
|
|
320
323
|
export type LedgerUnmappedElement = ListLedgerUnmappedElementsQuery['unmappedElements'][number]
|
|
321
324
|
|
|
322
325
|
export type LedgerStructureList = NonNullable<ListLedgerStructuresQuery['structures']>
|
|
@@ -1402,6 +1405,29 @@ export class LedgerClient {
|
|
|
1402
1405
|
)
|
|
1403
1406
|
}
|
|
1404
1407
|
|
|
1408
|
+
/**
|
|
1409
|
+
* The cash flow rows a line may be tagged with: the leaf investing and
|
|
1410
|
+
* financing rows of the entity's cash flow statement under its Reporting
|
|
1411
|
+
* Style (`options.entityId`, default the group parent), in statement
|
|
1412
|
+
* order. A flow is a second classification beside the account — it
|
|
1413
|
+
* overrides the account's default flow on the cash flow and equity
|
|
1414
|
+
* statements — and this is the set the write path accepts, so a picker
|
|
1415
|
+
* built from it never offers a row the statement cannot present. The
|
|
1416
|
+
* `qname` is what a bank line's `classified_flow_qname` takes.
|
|
1417
|
+
*/
|
|
1418
|
+
async getFlowCandidates(
|
|
1419
|
+
graphId: string,
|
|
1420
|
+
options?: { entityId?: string | null }
|
|
1421
|
+
): Promise<LedgerFlowCandidate[]> {
|
|
1422
|
+
return this.gqlQuery(
|
|
1423
|
+
graphId,
|
|
1424
|
+
FlowCandidatesDocument,
|
|
1425
|
+
{ entityId: options?.entityId ?? null },
|
|
1426
|
+
'Flow candidates',
|
|
1427
|
+
(data) => data.flowCandidates
|
|
1428
|
+
)
|
|
1429
|
+
}
|
|
1430
|
+
|
|
1405
1431
|
/** CoA elements not yet mapped to a reporting concept. */
|
|
1406
1432
|
async listUnmappedElements(
|
|
1407
1433
|
graphId: string,
|
|
@@ -714,6 +714,17 @@ export type GetLedgerFiscalCalendarQuery = {
|
|
|
714
714
|
}>;
|
|
715
715
|
} | null;
|
|
716
716
|
};
|
|
717
|
+
export type FlowCandidatesQueryVariables = Exact<{
|
|
718
|
+
entityId: string | null | undefined;
|
|
719
|
+
}>;
|
|
720
|
+
export type FlowCandidatesQuery = {
|
|
721
|
+
flowCandidates: Array<{
|
|
722
|
+
elementId: string;
|
|
723
|
+
qname: string;
|
|
724
|
+
name: string;
|
|
725
|
+
activity: string;
|
|
726
|
+
}>;
|
|
727
|
+
};
|
|
717
728
|
export type GetInformationBlockQueryVariables = Exact<{
|
|
718
729
|
id: string | number;
|
|
719
730
|
scenarioId: string | null | undefined;
|
|
@@ -2303,6 +2314,7 @@ export declare const GetLedgerEntityDocument: DocumentNode<GetLedgerEntityQuery,
|
|
|
2303
2314
|
export declare const GetLedgerEventBlockDocument: DocumentNode<GetLedgerEventBlockQuery, GetLedgerEventBlockQueryVariables>;
|
|
2304
2315
|
export declare const ListLedgerEventBlocksDocument: DocumentNode<ListLedgerEventBlocksQuery, ListLedgerEventBlocksQueryVariables>;
|
|
2305
2316
|
export declare const GetLedgerFiscalCalendarDocument: DocumentNode<GetLedgerFiscalCalendarQuery, GetLedgerFiscalCalendarQueryVariables>;
|
|
2317
|
+
export declare const FlowCandidatesDocument: DocumentNode<FlowCandidatesQuery, FlowCandidatesQueryVariables>;
|
|
2306
2318
|
export declare const GetInformationBlockDocument: DocumentNode<GetInformationBlockQuery, GetInformationBlockQueryVariables>;
|
|
2307
2319
|
export declare const GetInformationBlockWindowedDocument: DocumentNode<GetInformationBlockWindowedQuery, GetInformationBlockWindowedQueryVariables>;
|
|
2308
2320
|
export declare const ListInformationBlocksDocument: DocumentNode<ListInformationBlocksQuery, ListInformationBlocksQueryVariables>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.GetLibraryTaxonomyDocument = exports.ListLibraryTaxonomiesDocument = exports.GetLibraryStructureDocument = exports.ListLibraryStructuresDocument = exports.GetLibraryElementDocument = exports.SearchLibraryElementsDocument = exports.ListLibraryElementsDocument = exports.GetLibraryElementEquivalentsDocument = exports.GetLibraryElementClassificationsDocument = exports.GetLibraryElementArcsDocument = void 0;
|
|
3
|
+
exports.ListLedgerUnmappedElementsDocument = exports.GetLedgerTrialBalanceDocument = exports.ListLedgerTransactionsDocument = exports.GetLedgerTransactionDocument = exports.ListLedgerTaxonomiesDocument = exports.GetLedgerSummaryDocument = exports.ListLedgerStructuresDocument = exports.GetLedgerStatementDocument = exports.ListLedgerReportsDocument = exports.GetLedgerReportingTaxonomyDocument = exports.GetLedgerReportPackageDocument = exports.GetLedgerReportDownloadUrlDocument = exports.GetLedgerReportDocument = exports.ListLedgerReconciliationsDocument = exports.ListLedgerPublishListsDocument = exports.GetLedgerPublishListDocument = exports.GetLedgerPeriodDraftsDocument = exports.GetLedgerPeriodCloseStatusDocument = exports.ListLedgerMappingsDocument = exports.GetLedgerMappingCoverageDocument = exports.MappingCandidatesDocument = exports.GetLedgerMappingDocument = exports.GetLedgerMappedTrialBalanceDocument = exports.ListLedgerJournalEntriesDocument = exports.ListInformationBlocksDocument = exports.GetInformationBlockWindowedDocument = exports.GetInformationBlockDocument = exports.FlowCandidatesDocument = exports.GetLedgerFiscalCalendarDocument = exports.ListLedgerEventBlocksDocument = exports.GetLedgerEventBlockDocument = exports.GetLedgerEntityDocument = exports.ListLedgerEntitiesDocument = exports.ListLedgerElementsDocument = exports.GetLedgerClosingBookStructuresDocument = exports.ListChartTemplatesDocument = exports.ListLedgerBlockedSourceGraphsDocument = exports.ListLedgerBankAccountsDocument = 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 = exports.ListLibraryTaxonomiesDocument = exports.GetLibraryStructureDocument = exports.ListLibraryStructuresDocument = exports.GetLibraryElementDocument = exports.SearchLibraryElementsDocument = exports.ListLibraryElementsDocument = exports.GetLibraryElementEquivalentsDocument = exports.GetLibraryElementClassificationsDocument = exports.GetLibraryElementArcsDocument = exports.ListLibraryTaxonomyArcsDocument = void 0;
|
|
5
5
|
exports.GetInvestorHoldingsDocument = {
|
|
6
6
|
kind: 'Document',
|
|
7
7
|
definitions: [
|
|
@@ -1995,6 +1995,48 @@ exports.GetLedgerFiscalCalendarDocument = {
|
|
|
1995
1995
|
},
|
|
1996
1996
|
],
|
|
1997
1997
|
};
|
|
1998
|
+
exports.FlowCandidatesDocument = {
|
|
1999
|
+
kind: 'Document',
|
|
2000
|
+
definitions: [
|
|
2001
|
+
{
|
|
2002
|
+
kind: 'OperationDefinition',
|
|
2003
|
+
operation: 'query',
|
|
2004
|
+
name: { kind: 'Name', value: 'FlowCandidates' },
|
|
2005
|
+
variableDefinitions: [
|
|
2006
|
+
{
|
|
2007
|
+
kind: 'VariableDefinition',
|
|
2008
|
+
variable: { kind: 'Variable', name: { kind: 'Name', value: 'entityId' } },
|
|
2009
|
+
type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } },
|
|
2010
|
+
},
|
|
2011
|
+
],
|
|
2012
|
+
selectionSet: {
|
|
2013
|
+
kind: 'SelectionSet',
|
|
2014
|
+
selections: [
|
|
2015
|
+
{
|
|
2016
|
+
kind: 'Field',
|
|
2017
|
+
name: { kind: 'Name', value: 'flowCandidates' },
|
|
2018
|
+
arguments: [
|
|
2019
|
+
{
|
|
2020
|
+
kind: 'Argument',
|
|
2021
|
+
name: { kind: 'Name', value: 'entityId' },
|
|
2022
|
+
value: { kind: 'Variable', name: { kind: 'Name', value: 'entityId' } },
|
|
2023
|
+
},
|
|
2024
|
+
],
|
|
2025
|
+
selectionSet: {
|
|
2026
|
+
kind: 'SelectionSet',
|
|
2027
|
+
selections: [
|
|
2028
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'elementId' } },
|
|
2029
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'qname' } },
|
|
2030
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'name' } },
|
|
2031
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'activity' } },
|
|
2032
|
+
],
|
|
2033
|
+
},
|
|
2034
|
+
},
|
|
2035
|
+
],
|
|
2036
|
+
},
|
|
2037
|
+
},
|
|
2038
|
+
],
|
|
2039
|
+
};
|
|
1998
2040
|
exports.GetInformationBlockDocument = {
|
|
1999
2041
|
kind: 'Document',
|
|
2000
2042
|
definitions: [
|
|
@@ -715,6 +715,14 @@ export type GetLedgerFiscalCalendarQuery = {
|
|
|
715
715
|
} | null
|
|
716
716
|
}
|
|
717
717
|
|
|
718
|
+
export type FlowCandidatesQueryVariables = Exact<{
|
|
719
|
+
entityId: string | null | undefined
|
|
720
|
+
}>
|
|
721
|
+
|
|
722
|
+
export type FlowCandidatesQuery = {
|
|
723
|
+
flowCandidates: Array<{ elementId: string; qname: string; name: string; activity: string }>
|
|
724
|
+
}
|
|
725
|
+
|
|
718
726
|
export type GetInformationBlockQueryVariables = Exact<{
|
|
719
727
|
id: string | number
|
|
720
728
|
scenarioId: string | null | undefined
|
|
@@ -4230,6 +4238,48 @@ export const GetLedgerFiscalCalendarDocument = {
|
|
|
4230
4238
|
},
|
|
4231
4239
|
],
|
|
4232
4240
|
} as unknown as DocumentNode<GetLedgerFiscalCalendarQuery, GetLedgerFiscalCalendarQueryVariables>
|
|
4241
|
+
export const FlowCandidatesDocument = {
|
|
4242
|
+
kind: 'Document',
|
|
4243
|
+
definitions: [
|
|
4244
|
+
{
|
|
4245
|
+
kind: 'OperationDefinition',
|
|
4246
|
+
operation: 'query',
|
|
4247
|
+
name: { kind: 'Name', value: 'FlowCandidates' },
|
|
4248
|
+
variableDefinitions: [
|
|
4249
|
+
{
|
|
4250
|
+
kind: 'VariableDefinition',
|
|
4251
|
+
variable: { kind: 'Variable', name: { kind: 'Name', value: 'entityId' } },
|
|
4252
|
+
type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } },
|
|
4253
|
+
},
|
|
4254
|
+
],
|
|
4255
|
+
selectionSet: {
|
|
4256
|
+
kind: 'SelectionSet',
|
|
4257
|
+
selections: [
|
|
4258
|
+
{
|
|
4259
|
+
kind: 'Field',
|
|
4260
|
+
name: { kind: 'Name', value: 'flowCandidates' },
|
|
4261
|
+
arguments: [
|
|
4262
|
+
{
|
|
4263
|
+
kind: 'Argument',
|
|
4264
|
+
name: { kind: 'Name', value: 'entityId' },
|
|
4265
|
+
value: { kind: 'Variable', name: { kind: 'Name', value: 'entityId' } },
|
|
4266
|
+
},
|
|
4267
|
+
],
|
|
4268
|
+
selectionSet: {
|
|
4269
|
+
kind: 'SelectionSet',
|
|
4270
|
+
selections: [
|
|
4271
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'elementId' } },
|
|
4272
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'qname' } },
|
|
4273
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'name' } },
|
|
4274
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'activity' } },
|
|
4275
|
+
],
|
|
4276
|
+
},
|
|
4277
|
+
},
|
|
4278
|
+
],
|
|
4279
|
+
},
|
|
4280
|
+
},
|
|
4281
|
+
],
|
|
4282
|
+
} as unknown as DocumentNode<FlowCandidatesQuery, FlowCandidatesQueryVariables>
|
|
4233
4283
|
export const GetInformationBlockDocument = {
|
|
4234
4284
|
kind: 'Document',
|
|
4235
4285
|
definitions: [
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The cash flow rows a line may be tagged with. A flow is a second
|
|
3
|
+
* classification beside the account: it overrides the account's default flow
|
|
4
|
+
* on the cash flow and equity statements (a bank line's
|
|
5
|
+
* `classified_flow_qname`, a journal-entry line's
|
|
6
|
+
* `transaction_description_code`). These are the leaf investing and financing
|
|
7
|
+
* rows of the entity's cash flow statement under its Reporting Style
|
|
8
|
+
* (`$entityId`, default the group parent) — the set the write path accepts —
|
|
9
|
+
* so a picker built from them never offers a row the statement cannot
|
|
10
|
+
* present. Statement order: investing, then financing.
|
|
11
|
+
*/
|
|
12
|
+
export declare const FLOW_CANDIDATES: string;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FLOW_CANDIDATES = void 0;
|
|
4
|
+
const graphql_request_1 = require("graphql-request");
|
|
5
|
+
/**
|
|
6
|
+
* The cash flow rows a line may be tagged with. A flow is a second
|
|
7
|
+
* classification beside the account: it overrides the account's default flow
|
|
8
|
+
* on the cash flow and equity statements (a bank line's
|
|
9
|
+
* `classified_flow_qname`, a journal-entry line's
|
|
10
|
+
* `transaction_description_code`). These are the leaf investing and financing
|
|
11
|
+
* rows of the entity's cash flow statement under its Reporting Style
|
|
12
|
+
* (`$entityId`, default the group parent) — the set the write path accepts —
|
|
13
|
+
* so a picker built from them never offers a row the statement cannot
|
|
14
|
+
* present. Statement order: investing, then financing.
|
|
15
|
+
*/
|
|
16
|
+
exports.FLOW_CANDIDATES = (0, graphql_request_1.gql) `
|
|
17
|
+
query FlowCandidates($entityId: String) {
|
|
18
|
+
flowCandidates(entityId: $entityId) {
|
|
19
|
+
elementId
|
|
20
|
+
qname
|
|
21
|
+
name
|
|
22
|
+
activity
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
`;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { gql } from 'graphql-request'
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* The cash flow rows a line may be tagged with. A flow is a second
|
|
5
|
+
* classification beside the account: it overrides the account's default flow
|
|
6
|
+
* on the cash flow and equity statements (a bank line's
|
|
7
|
+
* `classified_flow_qname`, a journal-entry line's
|
|
8
|
+
* `transaction_description_code`). These are the leaf investing and financing
|
|
9
|
+
* rows of the entity's cash flow statement under its Reporting Style
|
|
10
|
+
* (`$entityId`, default the group parent) — the set the write path accepts —
|
|
11
|
+
* so a picker built from them never offers a row the statement cannot
|
|
12
|
+
* present. Statement order: investing, then financing.
|
|
13
|
+
*/
|
|
14
|
+
export const FLOW_CANDIDATES = gql`
|
|
15
|
+
query FlowCandidates($entityId: String) {
|
|
16
|
+
flowCandidates(entityId: $entityId) {
|
|
17
|
+
elementId
|
|
18
|
+
qname
|
|
19
|
+
name
|
|
20
|
+
activity
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
`
|