@robosystems/client 2.4.0 → 2.5.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 +34 -1
- package/artifacts/LedgerClient.js +35 -0
- package/artifacts/LedgerClient.ts +79 -0
- package/artifacts/graphql/generated/graphql.d.ts +5 -0
- package/artifacts/graphql/generated/graphql.js +14 -0
- package/artifacts/graphql/generated/graphql.ts +19 -0
- package/artifacts/graphql/queries/ledger/eventBlocks.d.ts +2 -1
- package/artifacts/graphql/queries/ledger/eventBlocks.js +4 -1
- package/artifacts/graphql/queries/ledger/eventBlocks.ts +4 -1
- package/artifacts/graphql/queries/ledger/fiscalCalendar.js +4 -0
- package/artifacts/graphql/queries/ledger/fiscalCalendar.ts +4 -0
- package/index.ts +2 -2
- package/package.json +1 -1
- package/sdk/index.d.ts +2 -2
- package/sdk/index.js +7 -4
- package/sdk/index.ts +2 -2
- package/sdk/sdk.gen.d.ts +25 -1
- package/sdk/sdk.gen.js +53 -2
- package/sdk/sdk.gen.ts +52 -1
- package/sdk/types.gen.d.ts +697 -1
- package/sdk/types.gen.ts +759 -38
- package/sdk.gen.d.ts +25 -1
- package/sdk.gen.js +53 -2
- package/sdk.gen.ts +52 -1
- package/types.gen.d.ts +697 -1
- package/types.gen.ts +759 -38
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AssociationResponse, AutoMapElementsOperation, BindTextBlockRequest, BindTextBlockResponse, BlockedSourceGraphResponse, BlockSourceGraphResult, ComputeMetricsRequest, ComputeMetricsResponse, CreateAgentRequest, CreateEventBlockRequest, CreateEventHandlerRequest, CreateInformationBlockRequest, CreateMappingAssociationOperation, CreateTaxonomyBlockRequest, CreateViewRequest, DeleteInformationBlockRequest, DeleteInformationBlockResponse, DeleteMappingAssociationOperation, DeleteResult, DeleteTaxonomyBlockRequest, DeleteTaxonomyBlockResponse, EntityTaxonomyResponse, EvaluateRulesRequest, EvaluateRulesResponse, EventBlockEnvelope, EventHandlerResponse, FinancialStatementAnalysisRequest, FinancialStatementAnalysisResponse, InformationBlockEnvelope, InitializeChartOfAccountsRequest, JournalEntryResponse, LedgerAgentResponse, LinkEntityTaxonomyRequest, LiveFinancialStatementRequest, LiveFinancialStatementResponse, OperationEnvelope, PreviewEventBlockResponse, PreviewReconciliationsRequest, PublishListMemberResponse, PublishListResponse, ReportResponse, 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, CreateEventBlockRequest, CreateEventHandlerRequest, CreateInformationBlockRequest, CreateMappingAssociationOperation, CreateTaxonomyBlockRequest, CreateViewRequest, DeleteInformationBlockRequest, DeleteInformationBlockResponse, DeleteMappingAssociationOperation, DeleteResult, DeleteTaxonomyBlockRequest, DeleteTaxonomyBlockResponse, EntityTaxonomyResponse, EvaluateRulesRequest, EvaluateRulesResponse, EventBlockEnvelope, EventHandlerResponse, FinancialStatementAnalysisRequest, FinancialStatementAnalysisResponse, InformationBlockEnvelope, InitializeChartOfAccountsRequest, JournalEntryResponse, LedgerAgentResponse, 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
3
|
import { type GetInformationBlockQuery, type GetLedgerAccountRollupsQuery, type GetLedgerAccountTreeQuery, type GetLedgerAgentQuery, type GetLedgerClosingBookStructuresQuery, type GetLedgerEntityQuery, type GetLedgerEventBlockQuery, type GetLedgerFiscalCalendarQuery, type GetLedgerMappedTrialBalanceQuery, type GetLedgerMappingCoverageQuery, type GetLedgerMappingQuery, type GetLedgerPeriodCloseStatusQuery, type GetLedgerPeriodDraftsQuery, type GetLedgerPublishListQuery, type GetLedgerReportingTaxonomyQuery, type GetLedgerReportPackageQuery, type GetLedgerReportQuery, type GetLedgerStatementQuery, type GetLedgerSummaryQuery, type GetLedgerTransactionQuery, type GetLedgerTrialBalanceQuery, type 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';
|
|
@@ -214,6 +214,18 @@ export interface ClosePeriodOptions {
|
|
|
214
214
|
* recorded in the close audit note.
|
|
215
215
|
*/
|
|
216
216
|
allowUnreconciledAccounts?: boolean;
|
|
217
|
+
/**
|
|
218
|
+
* Close despite posted events whose source payload changed afterwards and
|
|
219
|
+
* that nobody has decided on. Prefer `resolveReconcilingItem` on each.
|
|
220
|
+
* The override is recorded in the close audit note.
|
|
221
|
+
*/
|
|
222
|
+
allowReconcilingItems?: boolean;
|
|
223
|
+
/**
|
|
224
|
+
* Close despite source events dated in the period that were never
|
|
225
|
+
* committed; once it closes they cannot post into it. Prefer committing
|
|
226
|
+
* or voiding each. The override is recorded in the close audit note.
|
|
227
|
+
*/
|
|
228
|
+
allowUnpostedSourceEvents?: boolean;
|
|
217
229
|
}
|
|
218
230
|
/** Which reconciliation check to run. */
|
|
219
231
|
export type ReconciliationMethod = NonNullable<PreviewReconciliationsRequest['method']>;
|
|
@@ -426,6 +438,8 @@ export declare class LedgerClient {
|
|
|
426
438
|
status?: string;
|
|
427
439
|
agentId?: string;
|
|
428
440
|
source?: string;
|
|
441
|
+
/** Only posted events whose source payload changed afterwards. */
|
|
442
|
+
isReconcilingItem?: boolean;
|
|
429
443
|
limit?: number;
|
|
430
444
|
offset?: number;
|
|
431
445
|
}): Promise<LedgerEventBlock[]>;
|
|
@@ -694,6 +708,25 @@ export declare class LedgerClient {
|
|
|
694
708
|
* not yet compared for the period reads `not_started`.
|
|
695
709
|
*/
|
|
696
710
|
listReconciliations(graphId: string, period: string): Promise<LedgerReconciliationList | null>;
|
|
711
|
+
/**
|
|
712
|
+
* What changed on a reconciling item (a posted event whose source payload
|
|
713
|
+
* changed afterwards) and what each treatment would do. Writes nothing.
|
|
714
|
+
* List the items with `listEventBlocks(graphId, { isReconcilingItem: true })`.
|
|
715
|
+
*/
|
|
716
|
+
previewReconcilingItem(graphId: string, eventId: string): Promise<ReconcilingItemPlan>;
|
|
717
|
+
/**
|
|
718
|
+
* Decide one reconciling item: `restate` the affected months, `catch_up`
|
|
719
|
+
* with an entry in the open period, or `acknowledge` that it was handled
|
|
720
|
+
* elsewhere (a note is required). Omit `disposition` to take the default
|
|
721
|
+
* the preview reports.
|
|
722
|
+
*/
|
|
723
|
+
resolveReconcilingItem(graphId: string, body: ResolveReconcilingItemRequest): Promise<ResolveReconcilingItemResponse>;
|
|
724
|
+
/**
|
|
725
|
+
* Draft the closing entry of every matured schedule obligation, including
|
|
726
|
+
* ones promoted earlier and never drafted. The drafts post when the period
|
|
727
|
+
* closes. Safe to repeat.
|
|
728
|
+
*/
|
|
729
|
+
promoteObligations(graphId: string, body?: PromoteObligationsRequest): Promise<PromoteObligationsResponse>;
|
|
697
730
|
/** Compare the ledger with something outside it. Records nothing. */
|
|
698
731
|
previewReconciliations(graphId: string, period: string, options?: PreviewReconciliationsOptions): Promise<LedgerReconciliationPreview>;
|
|
699
732
|
/**
|
|
@@ -129,6 +129,7 @@ class LedgerClient {
|
|
|
129
129
|
status: options?.status ?? null,
|
|
130
130
|
agentId: options?.agentId ?? null,
|
|
131
131
|
source: options?.source ?? null,
|
|
132
|
+
isReconcilingItem: options?.isReconcilingItem ?? null,
|
|
132
133
|
limit: options?.limit ?? 50,
|
|
133
134
|
offset: options?.offset ?? 0,
|
|
134
135
|
}, 'List event blocks', (data) => data.eventBlocks);
|
|
@@ -641,6 +642,8 @@ class LedgerClient {
|
|
|
641
642
|
allow_stale_sync: options?.allowStaleSync,
|
|
642
643
|
allow_stranded_obligations: options?.allowStrandedObligations,
|
|
643
644
|
allow_unreconciled_accounts: options?.allowUnreconciledAccounts,
|
|
645
|
+
allow_reconciling_items: options?.allowReconcilingItems,
|
|
646
|
+
allow_unposted_source_events: options?.allowUnpostedSourceEvents,
|
|
644
647
|
};
|
|
645
648
|
const envelope = await this.callOperation('Close period', (0, sdk_gen_1.closePeriod)({ path: { graph_id: graphId }, body }));
|
|
646
649
|
const raw = envelope.result;
|
|
@@ -673,6 +676,34 @@ class LedgerClient {
|
|
|
673
676
|
async listReconciliations(graphId, period) {
|
|
674
677
|
return this.gqlQuery(graphId, graphql_1.ListLedgerReconciliationsDocument, { period }, 'List reconciliations', (data) => data.reconciliations);
|
|
675
678
|
}
|
|
679
|
+
/**
|
|
680
|
+
* What changed on a reconciling item (a posted event whose source payload
|
|
681
|
+
* changed afterwards) and what each treatment would do. Writes nothing.
|
|
682
|
+
* List the items with `listEventBlocks(graphId, { isReconcilingItem: true })`.
|
|
683
|
+
*/
|
|
684
|
+
async previewReconcilingItem(graphId, eventId) {
|
|
685
|
+
const envelope = await this.callOperation('Preview reconciling item', (0, sdk_gen_1.previewReconcilingItem)({ path: { graph_id: graphId }, body: { event_id: eventId } }));
|
|
686
|
+
return this.requireResult('Preview reconciling item', envelope.result);
|
|
687
|
+
}
|
|
688
|
+
/**
|
|
689
|
+
* Decide one reconciling item: `restate` the affected months, `catch_up`
|
|
690
|
+
* with an entry in the open period, or `acknowledge` that it was handled
|
|
691
|
+
* elsewhere (a note is required). Omit `disposition` to take the default
|
|
692
|
+
* the preview reports.
|
|
693
|
+
*/
|
|
694
|
+
async resolveReconcilingItem(graphId, body) {
|
|
695
|
+
const envelope = await this.callOperation('Resolve reconciling item', (0, sdk_gen_1.resolveReconcilingItem)({ path: { graph_id: graphId }, body }));
|
|
696
|
+
return this.requireResult('Resolve reconciling item', envelope.result);
|
|
697
|
+
}
|
|
698
|
+
/**
|
|
699
|
+
* Draft the closing entry of every matured schedule obligation, including
|
|
700
|
+
* ones promoted earlier and never drafted. The drafts post when the period
|
|
701
|
+
* closes. Safe to repeat.
|
|
702
|
+
*/
|
|
703
|
+
async promoteObligations(graphId, body = {}) {
|
|
704
|
+
const envelope = await this.callOperation('Promote obligations', (0, sdk_gen_1.promoteObligations)({ path: { graph_id: graphId }, body }));
|
|
705
|
+
return this.requireResult('Promote obligations', envelope.result);
|
|
706
|
+
}
|
|
676
707
|
/** Compare the ledger with something outside it. Records nothing. */
|
|
677
708
|
async previewReconciliations(graphId, period, options) {
|
|
678
709
|
const body = {
|
|
@@ -1322,6 +1353,10 @@ function rawFiscalCalendarToCamel(raw) {
|
|
|
1322
1353
|
strandedObligationCount: raw.stranded_obligation_count ?? 0,
|
|
1323
1354
|
strandedObligationSample: (raw.stranded_obligation_sample ?? []).map(rawObligationDetailToCamel),
|
|
1324
1355
|
syncStaleDays: raw.sync_stale_days ?? null,
|
|
1356
|
+
reconcilingItemCount: raw.reconciling_item_count ?? 0,
|
|
1357
|
+
reconcilingItemSample: raw.reconciling_item_sample ?? [],
|
|
1358
|
+
unpostedSourceEventCount: raw.unposted_source_event_count ?? 0,
|
|
1359
|
+
unpostedSourceEventSample: raw.unposted_source_event_sample ?? [],
|
|
1325
1360
|
unreconciledAccountCount: raw.unreconciled_account_count ?? 0,
|
|
1326
1361
|
unreconciledAccountSample: raw.unreconciled_account_sample ?? [],
|
|
1327
1362
|
lastCloseAt: raw.last_close_at ?? null,
|
|
@@ -55,12 +55,15 @@ import {
|
|
|
55
55
|
liveFinancialStatement,
|
|
56
56
|
previewEventBlock,
|
|
57
57
|
previewReconciliations,
|
|
58
|
+
previewReconcilingItem,
|
|
59
|
+
promoteObligations,
|
|
58
60
|
rebuildSchedule,
|
|
59
61
|
recordStatementBalance,
|
|
60
62
|
refreshReconciliations,
|
|
61
63
|
regenerateReport,
|
|
62
64
|
removePublishListMember,
|
|
63
65
|
reopenPeriod,
|
|
66
|
+
resolveReconcilingItem,
|
|
64
67
|
revokeReportShare,
|
|
65
68
|
setCloseTarget,
|
|
66
69
|
setReconciliationPolicy,
|
|
@@ -125,6 +128,8 @@ import type {
|
|
|
125
128
|
OperationEnvelope,
|
|
126
129
|
PreviewEventBlockResponse,
|
|
127
130
|
PreviewReconciliationsRequest,
|
|
131
|
+
PromoteObligationsRequest,
|
|
132
|
+
PromoteObligationsResponse,
|
|
128
133
|
PublishListMemberResponse,
|
|
129
134
|
PublishListResponse,
|
|
130
135
|
RebuildScheduleRequest,
|
|
@@ -134,10 +139,13 @@ import type {
|
|
|
134
139
|
ReconciliationPreviewResponse,
|
|
135
140
|
ReconciliationRow,
|
|
136
141
|
ReconciliationSummary,
|
|
142
|
+
ReconcilingItemPlan,
|
|
137
143
|
RecordStatementBalanceRequest,
|
|
138
144
|
RefreshReconciliationsRequest,
|
|
139
145
|
ReopenPeriodOperation,
|
|
140
146
|
ReportResponse,
|
|
147
|
+
ResolveReconcilingItemRequest,
|
|
148
|
+
ResolveReconcilingItemResponse,
|
|
141
149
|
RevokeReportShareResponse,
|
|
142
150
|
SetCloseTargetOperation,
|
|
143
151
|
SetReconciliationPolicyRequest,
|
|
@@ -425,6 +433,10 @@ interface RawFiscalCalendar {
|
|
|
425
433
|
stranded_obligation_count?: number
|
|
426
434
|
stranded_obligation_sample?: RawObligationDetail[]
|
|
427
435
|
sync_stale_days?: number | null
|
|
436
|
+
reconciling_item_count?: number
|
|
437
|
+
reconciling_item_sample?: string[]
|
|
438
|
+
unposted_source_event_count?: number
|
|
439
|
+
unposted_source_event_sample?: string[]
|
|
428
440
|
unreconciled_account_count?: number
|
|
429
441
|
unreconciled_account_sample?: string[]
|
|
430
442
|
last_close_at: string | null
|
|
@@ -592,6 +604,18 @@ export interface ClosePeriodOptions {
|
|
|
592
604
|
* recorded in the close audit note.
|
|
593
605
|
*/
|
|
594
606
|
allowUnreconciledAccounts?: boolean
|
|
607
|
+
/**
|
|
608
|
+
* Close despite posted events whose source payload changed afterwards and
|
|
609
|
+
* that nobody has decided on. Prefer `resolveReconcilingItem` on each.
|
|
610
|
+
* The override is recorded in the close audit note.
|
|
611
|
+
*/
|
|
612
|
+
allowReconcilingItems?: boolean
|
|
613
|
+
/**
|
|
614
|
+
* Close despite source events dated in the period that were never
|
|
615
|
+
* committed; once it closes they cannot post into it. Prefer committing
|
|
616
|
+
* or voiding each. The override is recorded in the close audit note.
|
|
617
|
+
*/
|
|
618
|
+
allowUnpostedSourceEvents?: boolean
|
|
595
619
|
}
|
|
596
620
|
|
|
597
621
|
/** Which reconciliation check to run. */
|
|
@@ -969,6 +993,8 @@ export class LedgerClient {
|
|
|
969
993
|
status?: string
|
|
970
994
|
agentId?: string
|
|
971
995
|
source?: string
|
|
996
|
+
/** Only posted events whose source payload changed afterwards. */
|
|
997
|
+
isReconcilingItem?: boolean
|
|
972
998
|
limit?: number
|
|
973
999
|
offset?: number
|
|
974
1000
|
}
|
|
@@ -982,6 +1008,7 @@ export class LedgerClient {
|
|
|
982
1008
|
status: options?.status ?? null,
|
|
983
1009
|
agentId: options?.agentId ?? null,
|
|
984
1010
|
source: options?.source ?? null,
|
|
1011
|
+
isReconcilingItem: options?.isReconcilingItem ?? null,
|
|
985
1012
|
limit: options?.limit ?? 50,
|
|
986
1013
|
offset: options?.offset ?? 0,
|
|
987
1014
|
},
|
|
@@ -1901,6 +1928,8 @@ export class LedgerClient {
|
|
|
1901
1928
|
allow_stale_sync: options?.allowStaleSync,
|
|
1902
1929
|
allow_stranded_obligations: options?.allowStrandedObligations,
|
|
1903
1930
|
allow_unreconciled_accounts: options?.allowUnreconciledAccounts,
|
|
1931
|
+
allow_reconciling_items: options?.allowReconcilingItems,
|
|
1932
|
+
allow_unposted_source_events: options?.allowUnpostedSourceEvents,
|
|
1904
1933
|
}
|
|
1905
1934
|
const envelope = await this.callOperation(
|
|
1906
1935
|
'Close period',
|
|
@@ -1957,6 +1986,52 @@ export class LedgerClient {
|
|
|
1957
1986
|
)
|
|
1958
1987
|
}
|
|
1959
1988
|
|
|
1989
|
+
/**
|
|
1990
|
+
* What changed on a reconciling item (a posted event whose source payload
|
|
1991
|
+
* changed afterwards) and what each treatment would do. Writes nothing.
|
|
1992
|
+
* List the items with `listEventBlocks(graphId, { isReconcilingItem: true })`.
|
|
1993
|
+
*/
|
|
1994
|
+
async previewReconcilingItem(graphId: string, eventId: string): Promise<ReconcilingItemPlan> {
|
|
1995
|
+
const envelope = await this.callOperation(
|
|
1996
|
+
'Preview reconciling item',
|
|
1997
|
+
previewReconcilingItem({ path: { graph_id: graphId }, body: { event_id: eventId } })
|
|
1998
|
+
)
|
|
1999
|
+
return this.requireResult('Preview reconciling item', envelope.result)
|
|
2000
|
+
}
|
|
2001
|
+
|
|
2002
|
+
/**
|
|
2003
|
+
* Decide one reconciling item: `restate` the affected months, `catch_up`
|
|
2004
|
+
* with an entry in the open period, or `acknowledge` that it was handled
|
|
2005
|
+
* elsewhere (a note is required). Omit `disposition` to take the default
|
|
2006
|
+
* the preview reports.
|
|
2007
|
+
*/
|
|
2008
|
+
async resolveReconcilingItem(
|
|
2009
|
+
graphId: string,
|
|
2010
|
+
body: ResolveReconcilingItemRequest
|
|
2011
|
+
): Promise<ResolveReconcilingItemResponse> {
|
|
2012
|
+
const envelope = await this.callOperation(
|
|
2013
|
+
'Resolve reconciling item',
|
|
2014
|
+
resolveReconcilingItem({ path: { graph_id: graphId }, body })
|
|
2015
|
+
)
|
|
2016
|
+
return this.requireResult('Resolve reconciling item', envelope.result)
|
|
2017
|
+
}
|
|
2018
|
+
|
|
2019
|
+
/**
|
|
2020
|
+
* Draft the closing entry of every matured schedule obligation, including
|
|
2021
|
+
* ones promoted earlier and never drafted. The drafts post when the period
|
|
2022
|
+
* closes. Safe to repeat.
|
|
2023
|
+
*/
|
|
2024
|
+
async promoteObligations(
|
|
2025
|
+
graphId: string,
|
|
2026
|
+
body: PromoteObligationsRequest = {}
|
|
2027
|
+
): Promise<PromoteObligationsResponse> {
|
|
2028
|
+
const envelope = await this.callOperation(
|
|
2029
|
+
'Promote obligations',
|
|
2030
|
+
promoteObligations({ path: { graph_id: graphId }, body })
|
|
2031
|
+
)
|
|
2032
|
+
return this.requireResult('Promote obligations', envelope.result)
|
|
2033
|
+
}
|
|
2034
|
+
|
|
1960
2035
|
/** Compare the ledger with something outside it. Records nothing. */
|
|
1961
2036
|
async previewReconciliations(
|
|
1962
2037
|
graphId: string,
|
|
@@ -2930,6 +3005,10 @@ function rawFiscalCalendarToCamel(raw: RawFiscalCalendar): LedgerFiscalCalendar
|
|
|
2930
3005
|
rawObligationDetailToCamel
|
|
2931
3006
|
),
|
|
2932
3007
|
syncStaleDays: raw.sync_stale_days ?? null,
|
|
3008
|
+
reconcilingItemCount: raw.reconciling_item_count ?? 0,
|
|
3009
|
+
reconcilingItemSample: raw.reconciling_item_sample ?? [],
|
|
3010
|
+
unpostedSourceEventCount: raw.unposted_source_event_count ?? 0,
|
|
3011
|
+
unpostedSourceEventSample: raw.unposted_source_event_sample ?? [],
|
|
2933
3012
|
unreconciledAccountCount: raw.unreconciled_account_count ?? 0,
|
|
2934
3013
|
unreconciledAccountSample: raw.unreconciled_account_sample ?? [],
|
|
2935
3014
|
lastCloseAt: raw.last_close_at ?? null,
|
|
@@ -579,6 +579,7 @@ export type ListLedgerEventBlocksQueryVariables = Exact<{
|
|
|
579
579
|
status: string | null | undefined;
|
|
580
580
|
agentId: string | null | undefined;
|
|
581
581
|
source: string | null | undefined;
|
|
582
|
+
isReconcilingItem: boolean | null | undefined;
|
|
582
583
|
limit?: number;
|
|
583
584
|
offset?: number;
|
|
584
585
|
}>;
|
|
@@ -627,6 +628,10 @@ export type GetLedgerFiscalCalendarQuery = {
|
|
|
627
628
|
earliestPendingPeriod: string | null;
|
|
628
629
|
strandedObligationCount: number;
|
|
629
630
|
syncStaleDays: number | null;
|
|
631
|
+
reconcilingItemCount: number;
|
|
632
|
+
reconcilingItemSample: Array<string>;
|
|
633
|
+
unpostedSourceEventCount: number;
|
|
634
|
+
unpostedSourceEventSample: Array<string>;
|
|
630
635
|
unreconciledAccountCount: number;
|
|
631
636
|
unreconciledAccountSample: Array<string>;
|
|
632
637
|
lastCloseAt: string | null;
|
|
@@ -1612,6 +1612,11 @@ exports.ListLedgerEventBlocksDocument = {
|
|
|
1612
1612
|
variable: { kind: 'Variable', name: { kind: 'Name', value: 'source' } },
|
|
1613
1613
|
type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } },
|
|
1614
1614
|
},
|
|
1615
|
+
{
|
|
1616
|
+
kind: 'VariableDefinition',
|
|
1617
|
+
variable: { kind: 'Variable', name: { kind: 'Name', value: 'isReconcilingItem' } },
|
|
1618
|
+
type: { kind: 'NamedType', name: { kind: 'Name', value: 'Boolean' } },
|
|
1619
|
+
},
|
|
1615
1620
|
{
|
|
1616
1621
|
kind: 'VariableDefinition',
|
|
1617
1622
|
variable: { kind: 'Variable', name: { kind: 'Name', value: 'limit' } },
|
|
@@ -1663,6 +1668,11 @@ exports.ListLedgerEventBlocksDocument = {
|
|
|
1663
1668
|
name: { kind: 'Name', value: 'source' },
|
|
1664
1669
|
value: { kind: 'Variable', name: { kind: 'Name', value: 'source' } },
|
|
1665
1670
|
},
|
|
1671
|
+
{
|
|
1672
|
+
kind: 'Argument',
|
|
1673
|
+
name: { kind: 'Name', value: 'isReconcilingItem' },
|
|
1674
|
+
value: { kind: 'Variable', name: { kind: 'Name', value: 'isReconcilingItem' } },
|
|
1675
|
+
},
|
|
1666
1676
|
{
|
|
1667
1677
|
kind: 'Argument',
|
|
1668
1678
|
name: { kind: 'Name', value: 'limit' },
|
|
@@ -1763,6 +1773,10 @@ exports.GetLedgerFiscalCalendarDocument = {
|
|
|
1763
1773
|
},
|
|
1764
1774
|
},
|
|
1765
1775
|
{ kind: 'Field', name: { kind: 'Name', value: 'syncStaleDays' } },
|
|
1776
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'reconcilingItemCount' } },
|
|
1777
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'reconcilingItemSample' } },
|
|
1778
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'unpostedSourceEventCount' } },
|
|
1779
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'unpostedSourceEventSample' } },
|
|
1766
1780
|
{ kind: 'Field', name: { kind: 'Name', value: 'unreconciledAccountCount' } },
|
|
1767
1781
|
{ kind: 'Field', name: { kind: 'Name', value: 'unreconciledAccountSample' } },
|
|
1768
1782
|
{ kind: 'Field', name: { kind: 'Name', value: 'lastCloseAt' } },
|
|
@@ -568,6 +568,7 @@ export type ListLedgerEventBlocksQueryVariables = Exact<{
|
|
|
568
568
|
status: string | null | undefined
|
|
569
569
|
agentId: string | null | undefined
|
|
570
570
|
source: string | null | undefined
|
|
571
|
+
isReconcilingItem: boolean | null | undefined
|
|
571
572
|
limit?: number
|
|
572
573
|
offset?: number
|
|
573
574
|
}>
|
|
@@ -617,6 +618,10 @@ export type GetLedgerFiscalCalendarQuery = {
|
|
|
617
618
|
earliestPendingPeriod: string | null
|
|
618
619
|
strandedObligationCount: number
|
|
619
620
|
syncStaleDays: number | null
|
|
621
|
+
reconcilingItemCount: number
|
|
622
|
+
reconcilingItemSample: Array<string>
|
|
623
|
+
unpostedSourceEventCount: number
|
|
624
|
+
unpostedSourceEventSample: Array<string>
|
|
620
625
|
unreconciledAccountCount: number
|
|
621
626
|
unreconciledAccountSample: Array<string>
|
|
622
627
|
lastCloseAt: string | null
|
|
@@ -3724,6 +3729,11 @@ export const ListLedgerEventBlocksDocument = {
|
|
|
3724
3729
|
variable: { kind: 'Variable', name: { kind: 'Name', value: 'source' } },
|
|
3725
3730
|
type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } },
|
|
3726
3731
|
},
|
|
3732
|
+
{
|
|
3733
|
+
kind: 'VariableDefinition',
|
|
3734
|
+
variable: { kind: 'Variable', name: { kind: 'Name', value: 'isReconcilingItem' } },
|
|
3735
|
+
type: { kind: 'NamedType', name: { kind: 'Name', value: 'Boolean' } },
|
|
3736
|
+
},
|
|
3727
3737
|
{
|
|
3728
3738
|
kind: 'VariableDefinition',
|
|
3729
3739
|
variable: { kind: 'Variable', name: { kind: 'Name', value: 'limit' } },
|
|
@@ -3775,6 +3785,11 @@ export const ListLedgerEventBlocksDocument = {
|
|
|
3775
3785
|
name: { kind: 'Name', value: 'source' },
|
|
3776
3786
|
value: { kind: 'Variable', name: { kind: 'Name', value: 'source' } },
|
|
3777
3787
|
},
|
|
3788
|
+
{
|
|
3789
|
+
kind: 'Argument',
|
|
3790
|
+
name: { kind: 'Name', value: 'isReconcilingItem' },
|
|
3791
|
+
value: { kind: 'Variable', name: { kind: 'Name', value: 'isReconcilingItem' } },
|
|
3792
|
+
},
|
|
3778
3793
|
{
|
|
3779
3794
|
kind: 'Argument',
|
|
3780
3795
|
name: { kind: 'Name', value: 'limit' },
|
|
@@ -3875,6 +3890,10 @@ export const GetLedgerFiscalCalendarDocument = {
|
|
|
3875
3890
|
},
|
|
3876
3891
|
},
|
|
3877
3892
|
{ kind: 'Field', name: { kind: 'Name', value: 'syncStaleDays' } },
|
|
3893
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'reconcilingItemCount' } },
|
|
3894
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'reconcilingItemSample' } },
|
|
3895
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'unpostedSourceEventCount' } },
|
|
3896
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'unpostedSourceEventSample' } },
|
|
3878
3897
|
{ kind: 'Field', name: { kind: 'Name', value: 'unreconciledAccountCount' } },
|
|
3879
3898
|
{ kind: 'Field', name: { kind: 'Name', value: 'unreconciledAccountSample' } },
|
|
3880
3899
|
{ kind: 'Field', name: { kind: 'Name', value: 'lastCloseAt' } },
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
* `eventType` matches values like `invoice_issued`, `bill_received`,
|
|
7
7
|
* `payment_received`, `bill_paid`, `sales_receipt_recorded`,
|
|
8
8
|
* `journal_entry_recorded`. `eventCategory` groups them: `sales`,
|
|
9
|
-
* `purchase`, `adjustment`.
|
|
9
|
+
* `purchase`, `adjustment`. `isReconcilingItem` narrows to posted events
|
|
10
|
+
* whose source payload changed afterwards and that await a decision.
|
|
10
11
|
*/
|
|
11
12
|
export declare const LIST_EVENT_BLOCKS: string;
|
|
@@ -10,7 +10,8 @@ const graphql_request_1 = require("graphql-request");
|
|
|
10
10
|
* `eventType` matches values like `invoice_issued`, `bill_received`,
|
|
11
11
|
* `payment_received`, `bill_paid`, `sales_receipt_recorded`,
|
|
12
12
|
* `journal_entry_recorded`. `eventCategory` groups them: `sales`,
|
|
13
|
-
* `purchase`, `adjustment`.
|
|
13
|
+
* `purchase`, `adjustment`. `isReconcilingItem` narrows to posted events
|
|
14
|
+
* whose source payload changed afterwards and that await a decision.
|
|
14
15
|
*/
|
|
15
16
|
exports.LIST_EVENT_BLOCKS = (0, graphql_request_1.gql) `
|
|
16
17
|
query ListLedgerEventBlocks(
|
|
@@ -19,6 +20,7 @@ exports.LIST_EVENT_BLOCKS = (0, graphql_request_1.gql) `
|
|
|
19
20
|
$status: String
|
|
20
21
|
$agentId: String
|
|
21
22
|
$source: String
|
|
23
|
+
$isReconcilingItem: Boolean
|
|
22
24
|
$limit: Int! = 50
|
|
23
25
|
$offset: Int! = 0
|
|
24
26
|
) {
|
|
@@ -28,6 +30,7 @@ exports.LIST_EVENT_BLOCKS = (0, graphql_request_1.gql) `
|
|
|
28
30
|
status: $status
|
|
29
31
|
agentId: $agentId
|
|
30
32
|
source: $source
|
|
33
|
+
isReconcilingItem: $isReconcilingItem
|
|
31
34
|
limit: $limit
|
|
32
35
|
offset: $offset
|
|
33
36
|
) {
|
|
@@ -8,7 +8,8 @@ import { gql } from 'graphql-request'
|
|
|
8
8
|
* `eventType` matches values like `invoice_issued`, `bill_received`,
|
|
9
9
|
* `payment_received`, `bill_paid`, `sales_receipt_recorded`,
|
|
10
10
|
* `journal_entry_recorded`. `eventCategory` groups them: `sales`,
|
|
11
|
-
* `purchase`, `adjustment`.
|
|
11
|
+
* `purchase`, `adjustment`. `isReconcilingItem` narrows to posted events
|
|
12
|
+
* whose source payload changed afterwards and that await a decision.
|
|
12
13
|
*/
|
|
13
14
|
export const LIST_EVENT_BLOCKS = gql`
|
|
14
15
|
query ListLedgerEventBlocks(
|
|
@@ -17,6 +18,7 @@ export const LIST_EVENT_BLOCKS = gql`
|
|
|
17
18
|
$status: String
|
|
18
19
|
$agentId: String
|
|
19
20
|
$source: String
|
|
21
|
+
$isReconcilingItem: Boolean
|
|
20
22
|
$limit: Int! = 50
|
|
21
23
|
$offset: Int! = 0
|
|
22
24
|
) {
|
|
@@ -26,6 +28,7 @@ export const LIST_EVENT_BLOCKS = gql`
|
|
|
26
28
|
status: $status
|
|
27
29
|
agentId: $agentId
|
|
28
30
|
source: $source
|
|
31
|
+
isReconcilingItem: $isReconcilingItem
|
|
29
32
|
limit: $limit
|
|
30
33
|
offset: $offset
|
|
31
34
|
) {
|
|
@@ -43,6 +43,10 @@ exports.GET_FISCAL_CALENDAR = (0, graphql_request_1.gql) `
|
|
|
43
43
|
period
|
|
44
44
|
}
|
|
45
45
|
syncStaleDays
|
|
46
|
+
reconcilingItemCount
|
|
47
|
+
reconcilingItemSample
|
|
48
|
+
unpostedSourceEventCount
|
|
49
|
+
unpostedSourceEventSample
|
|
46
50
|
unreconciledAccountCount
|
|
47
51
|
unreconciledAccountSample
|
|
48
52
|
lastCloseAt
|