@robosystems/client 2.12.1 → 2.13.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 +24 -2
- package/artifacts/LedgerClient.js +23 -0
- package/artifacts/LedgerClient.ts +47 -0
- package/artifacts/graphql/generated/graphql.d.ts +27 -0
- package/artifacts/graphql/generated/graphql.js +78 -2
- package/artifacts/graphql/generated/graphql.ts +104 -0
- package/artifacts/graphql/queries/ledger/classificationStats.d.ts +10 -0
- package/artifacts/graphql/queries/ledger/classificationStats.js +37 -0
- package/artifacts/graphql/queries/ledger/classificationStats.ts +35 -0
- package/index.ts +2 -2
- package/package.json +1 -1
- package/sdk/index.d.ts +2 -2
- package/sdk/index.js +6 -5
- package/sdk/index.ts +2 -2
- package/sdk/sdk.gen.d.ts +15 -7
- package/sdk/sdk.gen.js +25 -8
- package/sdk/sdk.gen.ts +24 -7
- package/sdk/types.gen.d.ts +297 -3
- package/sdk/types.gen.ts +306 -3
- package/sdk.gen.d.ts +15 -7
- package/sdk.gen.js +25 -8
- package/sdk.gen.ts +24 -7
- package/types.gen.d.ts +297 -3
- package/types.gen.ts +306 -3
|
@@ -1,6 +1,6 @@
|
|
|
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';
|
|
1
|
+
import type { AcceptSuggestionsRequest, AcceptSuggestionsResponse, 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 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';
|
|
3
|
+
import { ListLedgerBankAccountsQuery, type ClassificationStatsQuery, 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']>;
|
|
@@ -30,6 +30,8 @@ export type LedgerElementList = NonNullable<ListLedgerElementsQuery['elements']>
|
|
|
30
30
|
export type LedgerElement = LedgerElementList['elements'][number];
|
|
31
31
|
export type LedgerMappingCandidate = MappingCandidatesQuery['mappingCandidates'][number];
|
|
32
32
|
export type LedgerFlowCandidate = FlowCandidatesQuery['flowCandidates'][number];
|
|
33
|
+
export type LedgerClassificationStats = NonNullable<ClassificationStatsQuery['classificationStats']>;
|
|
34
|
+
export type LedgerClassificationSourceStats = LedgerClassificationStats['bySource'][number];
|
|
33
35
|
export type LedgerUnmappedElement = ListLedgerUnmappedElementsQuery['unmappedElements'][number];
|
|
34
36
|
export type LedgerStructureList = NonNullable<ListLedgerStructuresQuery['structures']>;
|
|
35
37
|
export type LedgerStructure = LedgerStructureList['structures'][number];
|
|
@@ -965,6 +967,26 @@ export declare class LedgerClient {
|
|
|
965
967
|
learnClassificationDefaults(graphId: string, options?: {
|
|
966
968
|
dryRun?: boolean;
|
|
967
969
|
}): Promise<LearnClassificationDefaultsResponse>;
|
|
970
|
+
/**
|
|
971
|
+
* Take the suggestion on every open bank line the filters select, oldest
|
|
972
|
+
* first, through the same update a single line goes through; `commit`
|
|
973
|
+
* posts them too. A line that cannot be taken comes back `skipped` with
|
|
974
|
+
* its reason, never forced. `dry_run` counts without writing, `limit`
|
|
975
|
+
* bounds a call and `truncated` says more matched; explicit `event_ids`
|
|
976
|
+
* from a multi-select are each answered.
|
|
977
|
+
*/
|
|
978
|
+
acceptSuggestions(graphId: string, body?: AcceptSuggestionsRequest): Promise<AcceptSuggestionsResponse>;
|
|
979
|
+
/**
|
|
980
|
+
* How one month's bank lines were classified, per suggestion source:
|
|
981
|
+
* taken as suggested, overridden, split, or chosen with no suggestion to
|
|
982
|
+
* take, and the share that needed a person's choice. `period` is
|
|
983
|
+
* `YYYY-MM` over the lines' own dates; `options.entityId` defaults to
|
|
984
|
+
* the group parent. Lines posted before outcomes were recorded are
|
|
985
|
+
* `unstamped`, outside the share.
|
|
986
|
+
*/
|
|
987
|
+
getClassificationStats(graphId: string, period: string, options?: {
|
|
988
|
+
entityId?: string | null;
|
|
989
|
+
}): Promise<LedgerClassificationStats | null>;
|
|
968
990
|
/**
|
|
969
991
|
* Register a tenant-configurable event handler — DSL row in the
|
|
970
992
|
* `event_handlers` table that drives `create-event-block` for event
|
|
@@ -1045,6 +1045,29 @@ class LedgerClient {
|
|
|
1045
1045
|
}));
|
|
1046
1046
|
return this.requireResult('Learn classification defaults', envelope.result);
|
|
1047
1047
|
}
|
|
1048
|
+
/**
|
|
1049
|
+
* Take the suggestion on every open bank line the filters select, oldest
|
|
1050
|
+
* first, through the same update a single line goes through; `commit`
|
|
1051
|
+
* posts them too. A line that cannot be taken comes back `skipped` with
|
|
1052
|
+
* its reason, never forced. `dry_run` counts without writing, `limit`
|
|
1053
|
+
* bounds a call and `truncated` says more matched; explicit `event_ids`
|
|
1054
|
+
* from a multi-select are each answered.
|
|
1055
|
+
*/
|
|
1056
|
+
async acceptSuggestions(graphId, body = {}) {
|
|
1057
|
+
const envelope = await this.callOperation('Accept suggestions', (o) => (0, sdk_gen_1.acceptSuggestions)({ ...o, path: { graph_id: graphId }, body }));
|
|
1058
|
+
return this.requireResult('Accept suggestions', envelope.result);
|
|
1059
|
+
}
|
|
1060
|
+
/**
|
|
1061
|
+
* How one month's bank lines were classified, per suggestion source:
|
|
1062
|
+
* taken as suggested, overridden, split, or chosen with no suggestion to
|
|
1063
|
+
* take, and the share that needed a person's choice. `period` is
|
|
1064
|
+
* `YYYY-MM` over the lines' own dates; `options.entityId` defaults to
|
|
1065
|
+
* the group parent. Lines posted before outcomes were recorded are
|
|
1066
|
+
* `unstamped`, outside the share.
|
|
1067
|
+
*/
|
|
1068
|
+
async getClassificationStats(graphId, period, options) {
|
|
1069
|
+
return this.gqlQuery(graphId, graphql_1.ClassificationStatsDocument, { period, entityId: options?.entityId ?? null }, 'Classification stats', (data) => data.classificationStats);
|
|
1070
|
+
}
|
|
1048
1071
|
// ── Event handlers (DSL handler registry) ────────────────────────────
|
|
1049
1072
|
/**
|
|
1050
1073
|
* Register a tenant-configurable event handler — DSL row in the
|
|
@@ -28,6 +28,7 @@
|
|
|
28
28
|
import type { TypedDocumentNode } from '@graphql-typed-document-node/core'
|
|
29
29
|
import { ClientError } from 'graphql-request'
|
|
30
30
|
import {
|
|
31
|
+
acceptSuggestions,
|
|
31
32
|
addPublishListMembers,
|
|
32
33
|
autoMapElements,
|
|
33
34
|
bindTextBlock,
|
|
@@ -88,6 +89,8 @@ import {
|
|
|
88
89
|
updateTaxonomyBlock,
|
|
89
90
|
} from '../sdk.gen'
|
|
90
91
|
import type {
|
|
92
|
+
AcceptSuggestionsRequest,
|
|
93
|
+
AcceptSuggestionsResponse,
|
|
91
94
|
AddPublishListMembersOperation,
|
|
92
95
|
AssociationResponse,
|
|
93
96
|
AutoMapElementsOperation,
|
|
@@ -179,6 +182,7 @@ import type {
|
|
|
179
182
|
import type { TokenProvider } from './graphql/client'
|
|
180
183
|
import { GraphQLClientCache, toGraphQLError } from './graphql/client'
|
|
181
184
|
import {
|
|
185
|
+
ClassificationStatsDocument,
|
|
182
186
|
FlowCandidatesDocument,
|
|
183
187
|
GetInformationBlockDocument,
|
|
184
188
|
GetInformationBlockWindowedDocument,
|
|
@@ -223,6 +227,7 @@ import {
|
|
|
223
227
|
ListLedgerTransactionsDocument,
|
|
224
228
|
ListLedgerUnmappedElementsDocument,
|
|
225
229
|
MappingCandidatesDocument,
|
|
230
|
+
type ClassificationStatsQuery,
|
|
226
231
|
type FlowCandidatesQuery,
|
|
227
232
|
type GetInformationBlockQuery,
|
|
228
233
|
type GetLedgerAccountRollupsQuery,
|
|
@@ -320,6 +325,8 @@ export type LedgerElementList = NonNullable<ListLedgerElementsQuery['elements']>
|
|
|
320
325
|
export type LedgerElement = LedgerElementList['elements'][number]
|
|
321
326
|
export type LedgerMappingCandidate = MappingCandidatesQuery['mappingCandidates'][number]
|
|
322
327
|
export type LedgerFlowCandidate = FlowCandidatesQuery['flowCandidates'][number]
|
|
328
|
+
export type LedgerClassificationStats = NonNullable<ClassificationStatsQuery['classificationStats']>
|
|
329
|
+
export type LedgerClassificationSourceStats = LedgerClassificationStats['bySource'][number]
|
|
323
330
|
export type LedgerUnmappedElement = ListLedgerUnmappedElementsQuery['unmappedElements'][number]
|
|
324
331
|
|
|
325
332
|
export type LedgerStructureList = NonNullable<ListLedgerStructuresQuery['structures']>
|
|
@@ -2588,6 +2595,46 @@ export class LedgerClient {
|
|
|
2588
2595
|
return this.requireResult('Learn classification defaults', envelope.result)
|
|
2589
2596
|
}
|
|
2590
2597
|
|
|
2598
|
+
/**
|
|
2599
|
+
* Take the suggestion on every open bank line the filters select, oldest
|
|
2600
|
+
* first, through the same update a single line goes through; `commit`
|
|
2601
|
+
* posts them too. A line that cannot be taken comes back `skipped` with
|
|
2602
|
+
* its reason, never forced. `dry_run` counts without writing, `limit`
|
|
2603
|
+
* bounds a call and `truncated` says more matched; explicit `event_ids`
|
|
2604
|
+
* from a multi-select are each answered.
|
|
2605
|
+
*/
|
|
2606
|
+
async acceptSuggestions(
|
|
2607
|
+
graphId: string,
|
|
2608
|
+
body: AcceptSuggestionsRequest = {}
|
|
2609
|
+
): Promise<AcceptSuggestionsResponse> {
|
|
2610
|
+
const envelope = await this.callOperation('Accept suggestions', (o) =>
|
|
2611
|
+
acceptSuggestions({ ...o, path: { graph_id: graphId }, body })
|
|
2612
|
+
)
|
|
2613
|
+
return this.requireResult('Accept suggestions', envelope.result)
|
|
2614
|
+
}
|
|
2615
|
+
|
|
2616
|
+
/**
|
|
2617
|
+
* How one month's bank lines were classified, per suggestion source:
|
|
2618
|
+
* taken as suggested, overridden, split, or chosen with no suggestion to
|
|
2619
|
+
* take, and the share that needed a person's choice. `period` is
|
|
2620
|
+
* `YYYY-MM` over the lines' own dates; `options.entityId` defaults to
|
|
2621
|
+
* the group parent. Lines posted before outcomes were recorded are
|
|
2622
|
+
* `unstamped`, outside the share.
|
|
2623
|
+
*/
|
|
2624
|
+
async getClassificationStats(
|
|
2625
|
+
graphId: string,
|
|
2626
|
+
period: string,
|
|
2627
|
+
options?: { entityId?: string | null }
|
|
2628
|
+
): Promise<LedgerClassificationStats | null> {
|
|
2629
|
+
return this.gqlQuery(
|
|
2630
|
+
graphId,
|
|
2631
|
+
ClassificationStatsDocument,
|
|
2632
|
+
{ period, entityId: options?.entityId ?? null },
|
|
2633
|
+
'Classification stats',
|
|
2634
|
+
(data) => data.classificationStats
|
|
2635
|
+
)
|
|
2636
|
+
}
|
|
2637
|
+
|
|
2591
2638
|
// ── Event handlers (DSL handler registry) ────────────────────────────
|
|
2592
2639
|
|
|
2593
2640
|
/**
|
|
@@ -472,6 +472,32 @@ export type ListChartTemplatesQuery = {
|
|
|
472
472
|
accountCount: number;
|
|
473
473
|
}>;
|
|
474
474
|
};
|
|
475
|
+
export type ClassificationStatsQueryVariables = Exact<{
|
|
476
|
+
period: string;
|
|
477
|
+
entityId: string | null | undefined;
|
|
478
|
+
}>;
|
|
479
|
+
export type ClassificationStatsQuery = {
|
|
480
|
+
classificationStats: {
|
|
481
|
+
period: string;
|
|
482
|
+
entityId: string | null;
|
|
483
|
+
lines: number;
|
|
484
|
+
accepted: number;
|
|
485
|
+
overridden: number;
|
|
486
|
+
unsuggested: number;
|
|
487
|
+
split: number;
|
|
488
|
+
unstamped: number;
|
|
489
|
+
humanChoiceShare: number | null;
|
|
490
|
+
openLines: number;
|
|
491
|
+
bySource: Array<{
|
|
492
|
+
source: string;
|
|
493
|
+
lines: number;
|
|
494
|
+
accepted: number;
|
|
495
|
+
overridden: number;
|
|
496
|
+
unsuggested: number;
|
|
497
|
+
split: number;
|
|
498
|
+
}>;
|
|
499
|
+
} | null;
|
|
500
|
+
};
|
|
475
501
|
export type GetLedgerClosingBookStructuresQueryVariables = Exact<{
|
|
476
502
|
entityId: string | null | undefined;
|
|
477
503
|
}>;
|
|
@@ -2307,6 +2333,7 @@ export declare const ListLedgerAgentsDocument: DocumentNode<ListLedgerAgentsQuer
|
|
|
2307
2333
|
export declare const ListLedgerBankAccountsDocument: DocumentNode<ListLedgerBankAccountsQuery, ListLedgerBankAccountsQueryVariables>;
|
|
2308
2334
|
export declare const ListLedgerBlockedSourceGraphsDocument: DocumentNode<ListLedgerBlockedSourceGraphsQuery, ListLedgerBlockedSourceGraphsQueryVariables>;
|
|
2309
2335
|
export declare const ListChartTemplatesDocument: DocumentNode<ListChartTemplatesQuery, ListChartTemplatesQueryVariables>;
|
|
2336
|
+
export declare const ClassificationStatsDocument: DocumentNode<ClassificationStatsQuery, ClassificationStatsQueryVariables>;
|
|
2310
2337
|
export declare const GetLedgerClosingBookStructuresDocument: DocumentNode<GetLedgerClosingBookStructuresQuery, GetLedgerClosingBookStructuresQueryVariables>;
|
|
2311
2338
|
export declare const ListLedgerElementsDocument: DocumentNode<ListLedgerElementsQuery, ListLedgerElementsQueryVariables>;
|
|
2312
2339
|
export declare const ListLedgerEntitiesDocument: DocumentNode<ListLedgerEntitiesQuery, ListLedgerEntitiesQueryVariables>;
|
|
@@ -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 = exports.ListLibraryTaxonomyArcsDocument = void 0;
|
|
3
|
+
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.ClassificationStatsDocument = 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 = exports.ListLedgerUnmappedElementsDocument = void 0;
|
|
5
5
|
exports.GetInvestorHoldingsDocument = {
|
|
6
6
|
kind: 'Document',
|
|
7
7
|
definitions: [
|
|
@@ -1351,6 +1351,82 @@ exports.ListChartTemplatesDocument = {
|
|
|
1351
1351
|
},
|
|
1352
1352
|
],
|
|
1353
1353
|
};
|
|
1354
|
+
exports.ClassificationStatsDocument = {
|
|
1355
|
+
kind: 'Document',
|
|
1356
|
+
definitions: [
|
|
1357
|
+
{
|
|
1358
|
+
kind: 'OperationDefinition',
|
|
1359
|
+
operation: 'query',
|
|
1360
|
+
name: { kind: 'Name', value: 'ClassificationStats' },
|
|
1361
|
+
variableDefinitions: [
|
|
1362
|
+
{
|
|
1363
|
+
kind: 'VariableDefinition',
|
|
1364
|
+
variable: { kind: 'Variable', name: { kind: 'Name', value: 'period' } },
|
|
1365
|
+
type: {
|
|
1366
|
+
kind: 'NonNullType',
|
|
1367
|
+
type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } },
|
|
1368
|
+
},
|
|
1369
|
+
},
|
|
1370
|
+
{
|
|
1371
|
+
kind: 'VariableDefinition',
|
|
1372
|
+
variable: { kind: 'Variable', name: { kind: 'Name', value: 'entityId' } },
|
|
1373
|
+
type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } },
|
|
1374
|
+
},
|
|
1375
|
+
],
|
|
1376
|
+
selectionSet: {
|
|
1377
|
+
kind: 'SelectionSet',
|
|
1378
|
+
selections: [
|
|
1379
|
+
{
|
|
1380
|
+
kind: 'Field',
|
|
1381
|
+
name: { kind: 'Name', value: 'classificationStats' },
|
|
1382
|
+
arguments: [
|
|
1383
|
+
{
|
|
1384
|
+
kind: 'Argument',
|
|
1385
|
+
name: { kind: 'Name', value: 'period' },
|
|
1386
|
+
value: { kind: 'Variable', name: { kind: 'Name', value: 'period' } },
|
|
1387
|
+
},
|
|
1388
|
+
{
|
|
1389
|
+
kind: 'Argument',
|
|
1390
|
+
name: { kind: 'Name', value: 'entityId' },
|
|
1391
|
+
value: { kind: 'Variable', name: { kind: 'Name', value: 'entityId' } },
|
|
1392
|
+
},
|
|
1393
|
+
],
|
|
1394
|
+
selectionSet: {
|
|
1395
|
+
kind: 'SelectionSet',
|
|
1396
|
+
selections: [
|
|
1397
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'period' } },
|
|
1398
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'entityId' } },
|
|
1399
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'lines' } },
|
|
1400
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'accepted' } },
|
|
1401
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'overridden' } },
|
|
1402
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'unsuggested' } },
|
|
1403
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'split' } },
|
|
1404
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'unstamped' } },
|
|
1405
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'humanChoiceShare' } },
|
|
1406
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'openLines' } },
|
|
1407
|
+
{
|
|
1408
|
+
kind: 'Field',
|
|
1409
|
+
name: { kind: 'Name', value: 'bySource' },
|
|
1410
|
+
selectionSet: {
|
|
1411
|
+
kind: 'SelectionSet',
|
|
1412
|
+
selections: [
|
|
1413
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'source' } },
|
|
1414
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'lines' } },
|
|
1415
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'accepted' } },
|
|
1416
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'overridden' } },
|
|
1417
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'unsuggested' } },
|
|
1418
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'split' } },
|
|
1419
|
+
],
|
|
1420
|
+
},
|
|
1421
|
+
},
|
|
1422
|
+
],
|
|
1423
|
+
},
|
|
1424
|
+
},
|
|
1425
|
+
],
|
|
1426
|
+
},
|
|
1427
|
+
},
|
|
1428
|
+
],
|
|
1429
|
+
};
|
|
1354
1430
|
exports.GetLedgerClosingBookStructuresDocument = {
|
|
1355
1431
|
kind: 'Document',
|
|
1356
1432
|
definitions: [
|
|
@@ -464,6 +464,34 @@ export type ListChartTemplatesQuery = {
|
|
|
464
464
|
}>
|
|
465
465
|
}
|
|
466
466
|
|
|
467
|
+
export type ClassificationStatsQueryVariables = Exact<{
|
|
468
|
+
period: string
|
|
469
|
+
entityId: string | null | undefined
|
|
470
|
+
}>
|
|
471
|
+
|
|
472
|
+
export type ClassificationStatsQuery = {
|
|
473
|
+
classificationStats: {
|
|
474
|
+
period: string
|
|
475
|
+
entityId: string | null
|
|
476
|
+
lines: number
|
|
477
|
+
accepted: number
|
|
478
|
+
overridden: number
|
|
479
|
+
unsuggested: number
|
|
480
|
+
split: number
|
|
481
|
+
unstamped: number
|
|
482
|
+
humanChoiceShare: number | null
|
|
483
|
+
openLines: number
|
|
484
|
+
bySource: Array<{
|
|
485
|
+
source: string
|
|
486
|
+
lines: number
|
|
487
|
+
accepted: number
|
|
488
|
+
overridden: number
|
|
489
|
+
unsuggested: number
|
|
490
|
+
split: number
|
|
491
|
+
}>
|
|
492
|
+
} | null
|
|
493
|
+
}
|
|
494
|
+
|
|
467
495
|
export type GetLedgerClosingBookStructuresQueryVariables = Exact<{
|
|
468
496
|
entityId: string | null | undefined
|
|
469
497
|
}>
|
|
@@ -3591,6 +3619,82 @@ export const ListChartTemplatesDocument = {
|
|
|
3591
3619
|
},
|
|
3592
3620
|
],
|
|
3593
3621
|
} as unknown as DocumentNode<ListChartTemplatesQuery, ListChartTemplatesQueryVariables>
|
|
3622
|
+
export const ClassificationStatsDocument = {
|
|
3623
|
+
kind: 'Document',
|
|
3624
|
+
definitions: [
|
|
3625
|
+
{
|
|
3626
|
+
kind: 'OperationDefinition',
|
|
3627
|
+
operation: 'query',
|
|
3628
|
+
name: { kind: 'Name', value: 'ClassificationStats' },
|
|
3629
|
+
variableDefinitions: [
|
|
3630
|
+
{
|
|
3631
|
+
kind: 'VariableDefinition',
|
|
3632
|
+
variable: { kind: 'Variable', name: { kind: 'Name', value: 'period' } },
|
|
3633
|
+
type: {
|
|
3634
|
+
kind: 'NonNullType',
|
|
3635
|
+
type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } },
|
|
3636
|
+
},
|
|
3637
|
+
},
|
|
3638
|
+
{
|
|
3639
|
+
kind: 'VariableDefinition',
|
|
3640
|
+
variable: { kind: 'Variable', name: { kind: 'Name', value: 'entityId' } },
|
|
3641
|
+
type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } },
|
|
3642
|
+
},
|
|
3643
|
+
],
|
|
3644
|
+
selectionSet: {
|
|
3645
|
+
kind: 'SelectionSet',
|
|
3646
|
+
selections: [
|
|
3647
|
+
{
|
|
3648
|
+
kind: 'Field',
|
|
3649
|
+
name: { kind: 'Name', value: 'classificationStats' },
|
|
3650
|
+
arguments: [
|
|
3651
|
+
{
|
|
3652
|
+
kind: 'Argument',
|
|
3653
|
+
name: { kind: 'Name', value: 'period' },
|
|
3654
|
+
value: { kind: 'Variable', name: { kind: 'Name', value: 'period' } },
|
|
3655
|
+
},
|
|
3656
|
+
{
|
|
3657
|
+
kind: 'Argument',
|
|
3658
|
+
name: { kind: 'Name', value: 'entityId' },
|
|
3659
|
+
value: { kind: 'Variable', name: { kind: 'Name', value: 'entityId' } },
|
|
3660
|
+
},
|
|
3661
|
+
],
|
|
3662
|
+
selectionSet: {
|
|
3663
|
+
kind: 'SelectionSet',
|
|
3664
|
+
selections: [
|
|
3665
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'period' } },
|
|
3666
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'entityId' } },
|
|
3667
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'lines' } },
|
|
3668
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'accepted' } },
|
|
3669
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'overridden' } },
|
|
3670
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'unsuggested' } },
|
|
3671
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'split' } },
|
|
3672
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'unstamped' } },
|
|
3673
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'humanChoiceShare' } },
|
|
3674
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'openLines' } },
|
|
3675
|
+
{
|
|
3676
|
+
kind: 'Field',
|
|
3677
|
+
name: { kind: 'Name', value: 'bySource' },
|
|
3678
|
+
selectionSet: {
|
|
3679
|
+
kind: 'SelectionSet',
|
|
3680
|
+
selections: [
|
|
3681
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'source' } },
|
|
3682
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'lines' } },
|
|
3683
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'accepted' } },
|
|
3684
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'overridden' } },
|
|
3685
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'unsuggested' } },
|
|
3686
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'split' } },
|
|
3687
|
+
],
|
|
3688
|
+
},
|
|
3689
|
+
},
|
|
3690
|
+
],
|
|
3691
|
+
},
|
|
3692
|
+
},
|
|
3693
|
+
],
|
|
3694
|
+
},
|
|
3695
|
+
},
|
|
3696
|
+
],
|
|
3697
|
+
} as unknown as DocumentNode<ClassificationStatsQuery, ClassificationStatsQueryVariables>
|
|
3594
3698
|
export const GetLedgerClosingBookStructuresDocument = {
|
|
3595
3699
|
kind: 'Document',
|
|
3596
3700
|
definitions: [
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* How one month's bank lines were classified, per suggestion source: taken
|
|
3
|
+
* as suggested, overridden, split, or chosen with no suggestion to take, and
|
|
4
|
+
* the share that needed a person's choice. Counted from the lines committed
|
|
5
|
+
* in the month (`$period`, `YYYY-MM`, over the lines' own dates) for one
|
|
6
|
+
* entity (`$entityId`, default the group parent); lines posted before
|
|
7
|
+
* outcomes were recorded are `unstamped` and outside the share. This is the
|
|
8
|
+
* override rate: never quote a match rate that did not come from here.
|
|
9
|
+
*/
|
|
10
|
+
export declare const CLASSIFICATION_STATS: string;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CLASSIFICATION_STATS = void 0;
|
|
4
|
+
const graphql_request_1 = require("graphql-request");
|
|
5
|
+
/**
|
|
6
|
+
* How one month's bank lines were classified, per suggestion source: taken
|
|
7
|
+
* as suggested, overridden, split, or chosen with no suggestion to take, and
|
|
8
|
+
* the share that needed a person's choice. Counted from the lines committed
|
|
9
|
+
* in the month (`$period`, `YYYY-MM`, over the lines' own dates) for one
|
|
10
|
+
* entity (`$entityId`, default the group parent); lines posted before
|
|
11
|
+
* outcomes were recorded are `unstamped` and outside the share. This is the
|
|
12
|
+
* override rate: never quote a match rate that did not come from here.
|
|
13
|
+
*/
|
|
14
|
+
exports.CLASSIFICATION_STATS = (0, graphql_request_1.gql) `
|
|
15
|
+
query ClassificationStats($period: String!, $entityId: String) {
|
|
16
|
+
classificationStats(period: $period, entityId: $entityId) {
|
|
17
|
+
period
|
|
18
|
+
entityId
|
|
19
|
+
lines
|
|
20
|
+
accepted
|
|
21
|
+
overridden
|
|
22
|
+
unsuggested
|
|
23
|
+
split
|
|
24
|
+
unstamped
|
|
25
|
+
humanChoiceShare
|
|
26
|
+
openLines
|
|
27
|
+
bySource {
|
|
28
|
+
source
|
|
29
|
+
lines
|
|
30
|
+
accepted
|
|
31
|
+
overridden
|
|
32
|
+
unsuggested
|
|
33
|
+
split
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
`;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { gql } from 'graphql-request'
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* How one month's bank lines were classified, per suggestion source: taken
|
|
5
|
+
* as suggested, overridden, split, or chosen with no suggestion to take, and
|
|
6
|
+
* the share that needed a person's choice. Counted from the lines committed
|
|
7
|
+
* in the month (`$period`, `YYYY-MM`, over the lines' own dates) for one
|
|
8
|
+
* entity (`$entityId`, default the group parent); lines posted before
|
|
9
|
+
* outcomes were recorded are `unstamped` and outside the share. This is the
|
|
10
|
+
* override rate: never quote a match rate that did not come from here.
|
|
11
|
+
*/
|
|
12
|
+
export const CLASSIFICATION_STATS = gql`
|
|
13
|
+
query ClassificationStats($period: String!, $entityId: String) {
|
|
14
|
+
classificationStats(period: $period, entityId: $entityId) {
|
|
15
|
+
period
|
|
16
|
+
entityId
|
|
17
|
+
lines
|
|
18
|
+
accepted
|
|
19
|
+
overridden
|
|
20
|
+
unsuggested
|
|
21
|
+
split
|
|
22
|
+
unstamped
|
|
23
|
+
humanChoiceShare
|
|
24
|
+
openLines
|
|
25
|
+
bySource {
|
|
26
|
+
source
|
|
27
|
+
lines
|
|
28
|
+
accepted
|
|
29
|
+
overridden
|
|
30
|
+
unsuggested
|
|
31
|
+
split
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
`
|