@robosystems/client 2.11.3 → 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 +31 -3
- package/artifacts/LedgerClient.js +32 -1
- package/artifacts/LedgerClient.ts +55 -1
- package/artifacts/graphql/generated/graphql.d.ts +32 -0
- package/artifacts/graphql/generated/graphql.js +78 -2
- package/artifacts/graphql/generated/graphql.ts +104 -0
- package/artifacts/graphql/queries/ledger/agent.d.ts +3 -1
- package/artifacts/graphql/queries/ledger/agent.js +13 -1
- package/artifacts/graphql/queries/ledger/agent.ts +13 -1
- package/artifacts/graphql/queries/ledger/agents.js +10 -0
- package/artifacts/graphql/queries/ledger/agents.ts +10 -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/index.ts +2 -2
- package/package.json +1 -1
- package/sdk/index.d.ts +2 -2
- package/sdk/index.js +4 -3
- package/sdk/index.ts +2 -2
- package/sdk/sdk.gen.d.ts +11 -3
- package/sdk/sdk.gen.js +21 -4
- package/sdk/sdk.gen.ts +20 -3
- package/sdk/types.gen.d.ts +225 -1
- package/sdk/types.gen.ts +234 -1
- package/sdk.gen.d.ts +11 -3
- package/sdk.gen.js +21 -4
- package/sdk.gen.ts +20 -3
- package/types.gen.d.ts +225 -1
- package/types.gen.ts +234 -1
|
@@ -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, 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 { 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];
|
|
@@ -372,6 +373,8 @@ export interface CreateJournalEntryOptions {
|
|
|
372
373
|
*/
|
|
373
374
|
source?: string;
|
|
374
375
|
idempotencyKey?: string | null;
|
|
376
|
+
/** The entity whose books the entry goes into. Omitted: the group parent. */
|
|
377
|
+
entityId?: string | null;
|
|
375
378
|
}
|
|
376
379
|
interface LedgerClientConfig {
|
|
377
380
|
baseUrl: string;
|
|
@@ -595,6 +598,19 @@ export declare class LedgerClient {
|
|
|
595
598
|
getMappingCandidates(graphId: string, classification: string, options?: {
|
|
596
599
|
entityId?: string | null;
|
|
597
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[]>;
|
|
598
614
|
/** CoA elements not yet mapped to a reporting concept. */
|
|
599
615
|
listUnmappedElements(graphId: string, options?: {
|
|
600
616
|
mappingId?: string;
|
|
@@ -934,9 +950,21 @@ export declare class LedgerClient {
|
|
|
934
950
|
createAgent(graphId: string, body: CreateAgentRequest, idempotencyKey?: string): Promise<LedgerAgentResponse>;
|
|
935
951
|
/**
|
|
936
952
|
* Update an agent. `metadata_patch` is a partial merge into the existing
|
|
937
|
-
* metadata object; all other fields replace.
|
|
953
|
+
* metadata object; all other fields replace. `classification_element_id`
|
|
954
|
+
* sets the account its bank lines are suggested (an empty string clears
|
|
955
|
+
* it) and `classification_mode: 'always_ask'` stops suggesting one; its
|
|
956
|
+
* open lines are re-suggested at once.
|
|
938
957
|
*/
|
|
939
958
|
updateAgent(graphId: string, body: UpdateAgentRequest): Promise<LedgerAgentResponse>;
|
|
959
|
+
/**
|
|
960
|
+
* Give each counterparty with committed bank lines and no default the
|
|
961
|
+
* account most of its lines went to, and re-suggest its open lines. Run
|
|
962
|
+
* once on books classified before defaults were learned; `dryRun` reports
|
|
963
|
+
* without writing.
|
|
964
|
+
*/
|
|
965
|
+
learnClassificationDefaults(graphId: string, options?: {
|
|
966
|
+
dryRun?: boolean;
|
|
967
|
+
}): Promise<LearnClassificationDefaultsResponse>;
|
|
940
968
|
/**
|
|
941
969
|
* Register a tenant-configurable event handler — DSL row in the
|
|
942
970
|
* `event_handlers` table that drives `create-event-block` for event
|
|
@@ -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);
|
|
@@ -895,6 +908,7 @@ class LedgerClient {
|
|
|
895
908
|
source: options.source ?? 'manual',
|
|
896
909
|
occurred_at: `${options.postingDate}T00:00:00Z`,
|
|
897
910
|
apply_handlers: true,
|
|
911
|
+
...(options.entityId ? { entity_id: options.entityId } : {}),
|
|
898
912
|
metadata: {
|
|
899
913
|
posting_date: options.postingDate,
|
|
900
914
|
memo: options.memo,
|
|
@@ -1008,12 +1022,29 @@ class LedgerClient {
|
|
|
1008
1022
|
}
|
|
1009
1023
|
/**
|
|
1010
1024
|
* Update an agent. `metadata_patch` is a partial merge into the existing
|
|
1011
|
-
* metadata object; all other fields replace.
|
|
1025
|
+
* metadata object; all other fields replace. `classification_element_id`
|
|
1026
|
+
* sets the account its bank lines are suggested (an empty string clears
|
|
1027
|
+
* it) and `classification_mode: 'always_ask'` stops suggesting one; its
|
|
1028
|
+
* open lines are re-suggested at once.
|
|
1012
1029
|
*/
|
|
1013
1030
|
async updateAgent(graphId, body) {
|
|
1014
1031
|
const envelope = await this.callOperation('Update agent', (o) => (0, sdk_gen_1.updateAgent)({ ...o, path: { graph_id: graphId }, body }));
|
|
1015
1032
|
return this.requireResult('Update agent', envelope.result);
|
|
1016
1033
|
}
|
|
1034
|
+
/**
|
|
1035
|
+
* Give each counterparty with committed bank lines and no default the
|
|
1036
|
+
* account most of its lines went to, and re-suggest its open lines. Run
|
|
1037
|
+
* once on books classified before defaults were learned; `dryRun` reports
|
|
1038
|
+
* without writing.
|
|
1039
|
+
*/
|
|
1040
|
+
async learnClassificationDefaults(graphId, options) {
|
|
1041
|
+
const envelope = await this.callOperation('Learn classification defaults', (o) => (0, sdk_gen_1.learnClassificationDefaults)({
|
|
1042
|
+
...o,
|
|
1043
|
+
path: { graph_id: graphId },
|
|
1044
|
+
body: { dry_run: options?.dryRun ?? false },
|
|
1045
|
+
}));
|
|
1046
|
+
return this.requireResult('Learn classification defaults', envelope.result);
|
|
1047
|
+
}
|
|
1017
1048
|
// ── Event handlers (DSL handler registry) ────────────────────────────
|
|
1018
1049
|
/**
|
|
1019
1050
|
* Register a tenant-configurable event handler — DSL row in the
|
|
@@ -56,6 +56,7 @@ import {
|
|
|
56
56
|
financialStatementAnalysis,
|
|
57
57
|
initializeChartOfAccounts,
|
|
58
58
|
initializeLedger,
|
|
59
|
+
learnClassificationDefaults,
|
|
59
60
|
linkBankAccount,
|
|
60
61
|
linkEntityTaxonomy,
|
|
61
62
|
liveFinancialStatement,
|
|
@@ -128,6 +129,7 @@ import type {
|
|
|
128
129
|
InitializeChartOfAccountsResponse,
|
|
129
130
|
InitializeLedgerRequest,
|
|
130
131
|
JournalEntryResponse,
|
|
132
|
+
LearnClassificationDefaultsResponse,
|
|
131
133
|
LedgerAgentResponse,
|
|
132
134
|
LedgerEntityResponse,
|
|
133
135
|
LinkBankAccountRequest,
|
|
@@ -177,6 +179,7 @@ import type {
|
|
|
177
179
|
import type { TokenProvider } from './graphql/client'
|
|
178
180
|
import { GraphQLClientCache, toGraphQLError } from './graphql/client'
|
|
179
181
|
import {
|
|
182
|
+
FlowCandidatesDocument,
|
|
180
183
|
GetInformationBlockDocument,
|
|
181
184
|
GetInformationBlockWindowedDocument,
|
|
182
185
|
GetLedgerAccountRollupsDocument,
|
|
@@ -220,6 +223,7 @@ import {
|
|
|
220
223
|
ListLedgerTransactionsDocument,
|
|
221
224
|
ListLedgerUnmappedElementsDocument,
|
|
222
225
|
MappingCandidatesDocument,
|
|
226
|
+
type FlowCandidatesQuery,
|
|
223
227
|
type GetInformationBlockQuery,
|
|
224
228
|
type GetLedgerAccountRollupsQuery,
|
|
225
229
|
type GetLedgerAccountTreeQuery,
|
|
@@ -315,6 +319,7 @@ export type LedgerTaxonomy = LedgerTaxonomyList['taxonomies'][number]
|
|
|
315
319
|
export type LedgerElementList = NonNullable<ListLedgerElementsQuery['elements']>
|
|
316
320
|
export type LedgerElement = LedgerElementList['elements'][number]
|
|
317
321
|
export type LedgerMappingCandidate = MappingCandidatesQuery['mappingCandidates'][number]
|
|
322
|
+
export type LedgerFlowCandidate = FlowCandidatesQuery['flowCandidates'][number]
|
|
318
323
|
export type LedgerUnmappedElement = ListLedgerUnmappedElementsQuery['unmappedElements'][number]
|
|
319
324
|
|
|
320
325
|
export type LedgerStructureList = NonNullable<ListLedgerStructuresQuery['structures']>
|
|
@@ -798,6 +803,8 @@ export interface CreateJournalEntryOptions {
|
|
|
798
803
|
*/
|
|
799
804
|
source?: string
|
|
800
805
|
idempotencyKey?: string | null
|
|
806
|
+
/** The entity whose books the entry goes into. Omitted: the group parent. */
|
|
807
|
+
entityId?: string | null
|
|
801
808
|
}
|
|
802
809
|
|
|
803
810
|
// ── Client ──────────────────────────────────────────────────────────────
|
|
@@ -1398,6 +1405,29 @@ export class LedgerClient {
|
|
|
1398
1405
|
)
|
|
1399
1406
|
}
|
|
1400
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
|
+
|
|
1401
1431
|
/** CoA elements not yet mapped to a reporting concept. */
|
|
1402
1432
|
async listUnmappedElements(
|
|
1403
1433
|
graphId: string,
|
|
@@ -2360,6 +2390,7 @@ export class LedgerClient {
|
|
|
2360
2390
|
source: options.source ?? 'manual',
|
|
2361
2391
|
occurred_at: `${options.postingDate}T00:00:00Z`,
|
|
2362
2392
|
apply_handlers: true,
|
|
2393
|
+
...(options.entityId ? { entity_id: options.entityId } : {}),
|
|
2363
2394
|
metadata: {
|
|
2364
2395
|
posting_date: options.postingDate,
|
|
2365
2396
|
memo: options.memo,
|
|
@@ -2525,7 +2556,10 @@ export class LedgerClient {
|
|
|
2525
2556
|
|
|
2526
2557
|
/**
|
|
2527
2558
|
* Update an agent. `metadata_patch` is a partial merge into the existing
|
|
2528
|
-
* metadata object; all other fields replace.
|
|
2559
|
+
* metadata object; all other fields replace. `classification_element_id`
|
|
2560
|
+
* sets the account its bank lines are suggested (an empty string clears
|
|
2561
|
+
* it) and `classification_mode: 'always_ask'` stops suggesting one; its
|
|
2562
|
+
* open lines are re-suggested at once.
|
|
2529
2563
|
*/
|
|
2530
2564
|
async updateAgent(graphId: string, body: UpdateAgentRequest): Promise<LedgerAgentResponse> {
|
|
2531
2565
|
const envelope = await this.callOperation('Update agent', (o) =>
|
|
@@ -2534,6 +2568,26 @@ export class LedgerClient {
|
|
|
2534
2568
|
return this.requireResult('Update agent', envelope.result)
|
|
2535
2569
|
}
|
|
2536
2570
|
|
|
2571
|
+
/**
|
|
2572
|
+
* Give each counterparty with committed bank lines and no default the
|
|
2573
|
+
* account most of its lines went to, and re-suggest its open lines. Run
|
|
2574
|
+
* once on books classified before defaults were learned; `dryRun` reports
|
|
2575
|
+
* without writing.
|
|
2576
|
+
*/
|
|
2577
|
+
async learnClassificationDefaults(
|
|
2578
|
+
graphId: string,
|
|
2579
|
+
options?: { dryRun?: boolean }
|
|
2580
|
+
): Promise<LearnClassificationDefaultsResponse> {
|
|
2581
|
+
const envelope = await this.callOperation('Learn classification defaults', (o) =>
|
|
2582
|
+
learnClassificationDefaults({
|
|
2583
|
+
...o,
|
|
2584
|
+
path: { graph_id: graphId },
|
|
2585
|
+
body: { dry_run: options?.dryRun ?? false },
|
|
2586
|
+
})
|
|
2587
|
+
)
|
|
2588
|
+
return this.requireResult('Learn classification defaults', envelope.result)
|
|
2589
|
+
}
|
|
2590
|
+
|
|
2537
2591
|
// ── Event handlers (DSL handler registry) ────────────────────────────
|
|
2538
2592
|
|
|
2539
2593
|
/**
|
|
@@ -361,6 +361,16 @@ export type GetLedgerAgentQuery = {
|
|
|
361
361
|
createdAt: string | null;
|
|
362
362
|
updatedAt: string | null;
|
|
363
363
|
createdBy: string | null;
|
|
364
|
+
classification: {
|
|
365
|
+
elementId: string;
|
|
366
|
+
accountName: string | null;
|
|
367
|
+
mode: string;
|
|
368
|
+
confirmations: number;
|
|
369
|
+
overrides: number;
|
|
370
|
+
setBy: string | null;
|
|
371
|
+
setAt: string | null;
|
|
372
|
+
learnedFrom: string | null;
|
|
373
|
+
} | null;
|
|
364
374
|
} | null;
|
|
365
375
|
};
|
|
366
376
|
export type ListLedgerAgentsQueryVariables = Exact<{
|
|
@@ -390,6 +400,16 @@ export type ListLedgerAgentsQuery = {
|
|
|
390
400
|
createdAt: string | null;
|
|
391
401
|
updatedAt: string | null;
|
|
392
402
|
createdBy: string | null;
|
|
403
|
+
classification: {
|
|
404
|
+
elementId: string;
|
|
405
|
+
accountName: string | null;
|
|
406
|
+
mode: string;
|
|
407
|
+
confirmations: number;
|
|
408
|
+
overrides: number;
|
|
409
|
+
setBy: string | null;
|
|
410
|
+
setAt: string | null;
|
|
411
|
+
learnedFrom: string | null;
|
|
412
|
+
} | null;
|
|
393
413
|
}>;
|
|
394
414
|
};
|
|
395
415
|
export type ListLedgerBankAccountsQueryVariables = Exact<{
|
|
@@ -694,6 +714,17 @@ export type GetLedgerFiscalCalendarQuery = {
|
|
|
694
714
|
}>;
|
|
695
715
|
} | null;
|
|
696
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
|
+
};
|
|
697
728
|
export type GetInformationBlockQueryVariables = Exact<{
|
|
698
729
|
id: string | number;
|
|
699
730
|
scenarioId: string | null | undefined;
|
|
@@ -2283,6 +2314,7 @@ export declare const GetLedgerEntityDocument: DocumentNode<GetLedgerEntityQuery,
|
|
|
2283
2314
|
export declare const GetLedgerEventBlockDocument: DocumentNode<GetLedgerEventBlockQuery, GetLedgerEventBlockQueryVariables>;
|
|
2284
2315
|
export declare const ListLedgerEventBlocksDocument: DocumentNode<ListLedgerEventBlocksQuery, ListLedgerEventBlocksQueryVariables>;
|
|
2285
2316
|
export declare const GetLedgerFiscalCalendarDocument: DocumentNode<GetLedgerFiscalCalendarQuery, GetLedgerFiscalCalendarQueryVariables>;
|
|
2317
|
+
export declare const FlowCandidatesDocument: DocumentNode<FlowCandidatesQuery, FlowCandidatesQueryVariables>;
|
|
2286
2318
|
export declare const GetInformationBlockDocument: DocumentNode<GetInformationBlockQuery, GetInformationBlockQueryVariables>;
|
|
2287
2319
|
export declare const GetInformationBlockWindowedDocument: DocumentNode<GetInformationBlockWindowedQuery, GetInformationBlockWindowedQueryVariables>;
|
|
2288
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: [
|
|
@@ -1024,6 +1024,23 @@ exports.GetLedgerAgentDocument = {
|
|
|
1024
1024
|
{ kind: 'Field', name: { kind: 'Name', value: 'externalId' } },
|
|
1025
1025
|
{ kind: 'Field', name: { kind: 'Name', value: 'isActive' } },
|
|
1026
1026
|
{ kind: 'Field', name: { kind: 'Name', value: 'is1099Recipient' } },
|
|
1027
|
+
{
|
|
1028
|
+
kind: 'Field',
|
|
1029
|
+
name: { kind: 'Name', value: 'classification' },
|
|
1030
|
+
selectionSet: {
|
|
1031
|
+
kind: 'SelectionSet',
|
|
1032
|
+
selections: [
|
|
1033
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'elementId' } },
|
|
1034
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'accountName' } },
|
|
1035
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'mode' } },
|
|
1036
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'confirmations' } },
|
|
1037
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'overrides' } },
|
|
1038
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'setBy' } },
|
|
1039
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'setAt' } },
|
|
1040
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'learnedFrom' } },
|
|
1041
|
+
],
|
|
1042
|
+
},
|
|
1043
|
+
},
|
|
1027
1044
|
{ kind: 'Field', name: { kind: 'Name', value: 'createdAt' } },
|
|
1028
1045
|
{ kind: 'Field', name: { kind: 'Name', value: 'updatedAt' } },
|
|
1029
1046
|
{ kind: 'Field', name: { kind: 'Name', value: 'createdBy' } },
|
|
@@ -1129,6 +1146,23 @@ exports.ListLedgerAgentsDocument = {
|
|
|
1129
1146
|
{ kind: 'Field', name: { kind: 'Name', value: 'externalId' } },
|
|
1130
1147
|
{ kind: 'Field', name: { kind: 'Name', value: 'isActive' } },
|
|
1131
1148
|
{ kind: 'Field', name: { kind: 'Name', value: 'is1099Recipient' } },
|
|
1149
|
+
{
|
|
1150
|
+
kind: 'Field',
|
|
1151
|
+
name: { kind: 'Name', value: 'classification' },
|
|
1152
|
+
selectionSet: {
|
|
1153
|
+
kind: 'SelectionSet',
|
|
1154
|
+
selections: [
|
|
1155
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'elementId' } },
|
|
1156
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'accountName' } },
|
|
1157
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'mode' } },
|
|
1158
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'confirmations' } },
|
|
1159
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'overrides' } },
|
|
1160
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'setBy' } },
|
|
1161
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'setAt' } },
|
|
1162
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'learnedFrom' } },
|
|
1163
|
+
],
|
|
1164
|
+
},
|
|
1165
|
+
},
|
|
1132
1166
|
{ kind: 'Field', name: { kind: 'Name', value: 'createdAt' } },
|
|
1133
1167
|
{ kind: 'Field', name: { kind: 'Name', value: 'updatedAt' } },
|
|
1134
1168
|
{ kind: 'Field', name: { kind: 'Name', value: 'createdBy' } },
|
|
@@ -1961,6 +1995,48 @@ exports.GetLedgerFiscalCalendarDocument = {
|
|
|
1961
1995
|
},
|
|
1962
1996
|
],
|
|
1963
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
|
+
};
|
|
1964
2040
|
exports.GetInformationBlockDocument = {
|
|
1965
2041
|
kind: 'Document',
|
|
1966
2042
|
definitions: [
|
|
@@ -351,6 +351,16 @@ export type GetLedgerAgentQuery = {
|
|
|
351
351
|
createdAt: string | null
|
|
352
352
|
updatedAt: string | null
|
|
353
353
|
createdBy: string | null
|
|
354
|
+
classification: {
|
|
355
|
+
elementId: string
|
|
356
|
+
accountName: string | null
|
|
357
|
+
mode: string
|
|
358
|
+
confirmations: number
|
|
359
|
+
overrides: number
|
|
360
|
+
setBy: string | null
|
|
361
|
+
setAt: string | null
|
|
362
|
+
learnedFrom: string | null
|
|
363
|
+
} | null
|
|
354
364
|
} | null
|
|
355
365
|
}
|
|
356
366
|
|
|
@@ -382,6 +392,16 @@ export type ListLedgerAgentsQuery = {
|
|
|
382
392
|
createdAt: string | null
|
|
383
393
|
updatedAt: string | null
|
|
384
394
|
createdBy: string | null
|
|
395
|
+
classification: {
|
|
396
|
+
elementId: string
|
|
397
|
+
accountName: string | null
|
|
398
|
+
mode: string
|
|
399
|
+
confirmations: number
|
|
400
|
+
overrides: number
|
|
401
|
+
setBy: string | null
|
|
402
|
+
setAt: string | null
|
|
403
|
+
learnedFrom: string | null
|
|
404
|
+
} | null
|
|
385
405
|
}>
|
|
386
406
|
}
|
|
387
407
|
|
|
@@ -695,6 +715,14 @@ export type GetLedgerFiscalCalendarQuery = {
|
|
|
695
715
|
} | null
|
|
696
716
|
}
|
|
697
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
|
+
|
|
698
726
|
export type GetInformationBlockQueryVariables = Exact<{
|
|
699
727
|
id: string | number
|
|
700
728
|
scenarioId: string | null | undefined
|
|
@@ -3233,6 +3261,23 @@ export const GetLedgerAgentDocument = {
|
|
|
3233
3261
|
{ kind: 'Field', name: { kind: 'Name', value: 'externalId' } },
|
|
3234
3262
|
{ kind: 'Field', name: { kind: 'Name', value: 'isActive' } },
|
|
3235
3263
|
{ kind: 'Field', name: { kind: 'Name', value: 'is1099Recipient' } },
|
|
3264
|
+
{
|
|
3265
|
+
kind: 'Field',
|
|
3266
|
+
name: { kind: 'Name', value: 'classification' },
|
|
3267
|
+
selectionSet: {
|
|
3268
|
+
kind: 'SelectionSet',
|
|
3269
|
+
selections: [
|
|
3270
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'elementId' } },
|
|
3271
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'accountName' } },
|
|
3272
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'mode' } },
|
|
3273
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'confirmations' } },
|
|
3274
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'overrides' } },
|
|
3275
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'setBy' } },
|
|
3276
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'setAt' } },
|
|
3277
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'learnedFrom' } },
|
|
3278
|
+
],
|
|
3279
|
+
},
|
|
3280
|
+
},
|
|
3236
3281
|
{ kind: 'Field', name: { kind: 'Name', value: 'createdAt' } },
|
|
3237
3282
|
{ kind: 'Field', name: { kind: 'Name', value: 'updatedAt' } },
|
|
3238
3283
|
{ kind: 'Field', name: { kind: 'Name', value: 'createdBy' } },
|
|
@@ -3338,6 +3383,23 @@ export const ListLedgerAgentsDocument = {
|
|
|
3338
3383
|
{ kind: 'Field', name: { kind: 'Name', value: 'externalId' } },
|
|
3339
3384
|
{ kind: 'Field', name: { kind: 'Name', value: 'isActive' } },
|
|
3340
3385
|
{ kind: 'Field', name: { kind: 'Name', value: 'is1099Recipient' } },
|
|
3386
|
+
{
|
|
3387
|
+
kind: 'Field',
|
|
3388
|
+
name: { kind: 'Name', value: 'classification' },
|
|
3389
|
+
selectionSet: {
|
|
3390
|
+
kind: 'SelectionSet',
|
|
3391
|
+
selections: [
|
|
3392
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'elementId' } },
|
|
3393
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'accountName' } },
|
|
3394
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'mode' } },
|
|
3395
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'confirmations' } },
|
|
3396
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'overrides' } },
|
|
3397
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'setBy' } },
|
|
3398
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'setAt' } },
|
|
3399
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'learnedFrom' } },
|
|
3400
|
+
],
|
|
3401
|
+
},
|
|
3402
|
+
},
|
|
3341
3403
|
{ kind: 'Field', name: { kind: 'Name', value: 'createdAt' } },
|
|
3342
3404
|
{ kind: 'Field', name: { kind: 'Name', value: 'updatedAt' } },
|
|
3343
3405
|
{ kind: 'Field', name: { kind: 'Name', value: 'createdBy' } },
|
|
@@ -4176,6 +4238,48 @@ export const GetLedgerFiscalCalendarDocument = {
|
|
|
4176
4238
|
},
|
|
4177
4239
|
],
|
|
4178
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>
|
|
4179
4283
|
export const GetInformationBlockDocument = {
|
|
4180
4284
|
kind: 'Document',
|
|
4181
4285
|
definitions: [
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
* Get a single agent by id (the agents detail view).
|
|
3
3
|
*
|
|
4
4
|
* `address` is a JSON dict — typically QB-shaped with `Line1`/`City`/
|
|
5
|
-
* `CountrySubDivisionCode`/`PostalCode` keys.
|
|
5
|
+
* `CountrySubDivisionCode`/`PostalCode` keys. `classification` is the
|
|
6
|
+
* account its bank lines are suggested, learned from committed lines or set
|
|
7
|
+
* with `updateAgent`; null until it has one.
|
|
6
8
|
*/
|
|
7
9
|
export declare const GET_AGENT: string;
|
|
@@ -6,7 +6,9 @@ const graphql_request_1 = require("graphql-request");
|
|
|
6
6
|
* Get a single agent by id (the agents detail view).
|
|
7
7
|
*
|
|
8
8
|
* `address` is a JSON dict — typically QB-shaped with `Line1`/`City`/
|
|
9
|
-
* `CountrySubDivisionCode`/`PostalCode` keys.
|
|
9
|
+
* `CountrySubDivisionCode`/`PostalCode` keys. `classification` is the
|
|
10
|
+
* account its bank lines are suggested, learned from committed lines or set
|
|
11
|
+
* with `updateAgent`; null until it has one.
|
|
10
12
|
*/
|
|
11
13
|
exports.GET_AGENT = (0, graphql_request_1.gql) `
|
|
12
14
|
query GetLedgerAgent($id: String!) {
|
|
@@ -26,6 +28,16 @@ exports.GET_AGENT = (0, graphql_request_1.gql) `
|
|
|
26
28
|
externalId
|
|
27
29
|
isActive
|
|
28
30
|
is1099Recipient
|
|
31
|
+
classification {
|
|
32
|
+
elementId
|
|
33
|
+
accountName
|
|
34
|
+
mode
|
|
35
|
+
confirmations
|
|
36
|
+
overrides
|
|
37
|
+
setBy
|
|
38
|
+
setAt
|
|
39
|
+
learnedFrom
|
|
40
|
+
}
|
|
29
41
|
createdAt
|
|
30
42
|
updatedAt
|
|
31
43
|
createdBy
|
|
@@ -4,7 +4,9 @@ import { gql } from 'graphql-request'
|
|
|
4
4
|
* Get a single agent by id (the agents detail view).
|
|
5
5
|
*
|
|
6
6
|
* `address` is a JSON dict — typically QB-shaped with `Line1`/`City`/
|
|
7
|
-
* `CountrySubDivisionCode`/`PostalCode` keys.
|
|
7
|
+
* `CountrySubDivisionCode`/`PostalCode` keys. `classification` is the
|
|
8
|
+
* account its bank lines are suggested, learned from committed lines or set
|
|
9
|
+
* with `updateAgent`; null until it has one.
|
|
8
10
|
*/
|
|
9
11
|
export const GET_AGENT = gql`
|
|
10
12
|
query GetLedgerAgent($id: String!) {
|
|
@@ -24,6 +26,16 @@ export const GET_AGENT = gql`
|
|
|
24
26
|
externalId
|
|
25
27
|
isActive
|
|
26
28
|
is1099Recipient
|
|
29
|
+
classification {
|
|
30
|
+
elementId
|
|
31
|
+
accountName
|
|
32
|
+
mode
|
|
33
|
+
confirmations
|
|
34
|
+
overrides
|
|
35
|
+
setBy
|
|
36
|
+
setAt
|
|
37
|
+
learnedFrom
|
|
38
|
+
}
|
|
27
39
|
createdAt
|
|
28
40
|
updatedAt
|
|
29
41
|
createdBy
|
|
@@ -40,6 +40,16 @@ exports.LIST_AGENTS = (0, graphql_request_1.gql) `
|
|
|
40
40
|
externalId
|
|
41
41
|
isActive
|
|
42
42
|
is1099Recipient
|
|
43
|
+
classification {
|
|
44
|
+
elementId
|
|
45
|
+
accountName
|
|
46
|
+
mode
|
|
47
|
+
confirmations
|
|
48
|
+
overrides
|
|
49
|
+
setBy
|
|
50
|
+
setAt
|
|
51
|
+
learnedFrom
|
|
52
|
+
}
|
|
43
53
|
createdAt
|
|
44
54
|
updatedAt
|
|
45
55
|
createdBy
|