@robosystems/client 2.33.1 → 2.33.2

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.
@@ -1,4 +1,4 @@
1
- import type { AcceptSuggestionsRequest, AcceptSuggestionsResponse, AcquisitionResponse, AllocationOverrideResponse, AssociationResponse, AutoMapElementsOperation, BindTextBlockRequest, BindTextBlockResponse, BlockedSourceGraphResponse, BlockSourceGraphResult, ComputeMetricsRequest, ComputeMetricsResponse, ConsolidationProposal, ConsolidationWorksheetRequest, ConsolidationWorksheetResponse, CreateAgentRequest, CreateDimensionRequest, CreateEntityRequest, CreateEventBlockRequest, CreateEventHandlerRequest, CreateInformationBlockRequest, CreateMappingAssociationOperation, CreateTaxonomyBlockRequest, CreateViewRequest, DeleteInformationBlockRequest, DeleteInformationBlockResponse, DeleteMappingAssociationOperation, DeleteResult, DeleteTaxonomyBlockRequest, DeleteTaxonomyBlockResponse, DimensionResponse, EntityTaxonomyResponse, EvaluateRulesRequest, EvaluateRulesResponse, EventBlockEnvelope, EventHandlerResponse, FinancialStatementAnalysisRequest, FinancialStatementAnalysisResponse, InformationBlockEnvelope, InitializeChartOfAccountsRequest, JournalEntryResponse, LearnClassificationDefaultsResponse, LedgerAgentResponse, LinkBankAccountRequest, LinkBankAccountResponse, LinkEntityTaxonomyRequest, LiveFinancialStatementRequest, LiveFinancialStatementResponse, OperationEnvelope, OwnershipChangeResponse, PreviewConsolidationEntriesResponse, PreviewEventBlockResponse, PreviewReconciliationsRequest, PromoteObligationsRequest, PromoteObligationsResponse, ProposeConsolidationEntriesResponse, PublishListMemberResponse, PublishListResponse, ReconcilingItemPlan, RecordAcquisitionRequest, RecordOpeningBalanceRequest, RecordOwnershipChangeRequest, ReportResponse, ResolveReconcilingItemRequest, ResolveReconcilingItemResponse, RevokeReportShareResponse, SetAllocationOverrideRequest, ShareReportResponse, TaxonomyBlockEnvelope, UpdateAgentRequest, UpdateDimensionRequest, UpdateEntityRequest, UpdateEventBlockRequest, UpdateEventHandlerRequest, UpdateInformationBlockRequest, UpdateJournalEntryRequest, UpdateTaxonomyBlockRequest, ViewResponse } from '../types.gen';
1
+ import type { AcceptSuggestionsRequest, AcceptSuggestionsResponse, AcquisitionResponse, AllocationOverrideResponse, AssociationResponse, AutoMapElementsOperation, BindTextBlockRequest, BindTextBlockResponse, BlockedSourceGraphResponse, BlockSourceGraphResult, ComputeMetricsRequest, ComputeMetricsResponse, ConsolidationProposal, ConsolidationWorksheetRequest, ConsolidationWorksheetResponse, CreateAgentRequest, CreateDimensionRequest, CreateEntityRequest, CreateEventBlockRequest, CreateEventHandlerRequest, CreateInformationBlockRequest, CreateMappingAssociationOperation, CreateTaxonomyBlockRequest, CreateViewRequest, DeconsolidationResponse, DeleteInformationBlockRequest, DeleteInformationBlockResponse, DeleteMappingAssociationOperation, DeleteResult, DeleteTaxonomyBlockRequest, DeleteTaxonomyBlockResponse, DimensionResponse, EntityTaxonomyResponse, EvaluateRulesRequest, EvaluateRulesResponse, EventBlockEnvelope, EventHandlerResponse, FinancialStatementAnalysisRequest, FinancialStatementAnalysisResponse, InformationBlockEnvelope, InitializeChartOfAccountsRequest, JournalEntryResponse, LearnClassificationDefaultsResponse, LedgerAgentResponse, LinkBankAccountRequest, LinkBankAccountResponse, LinkEntityTaxonomyRequest, LiveFinancialStatementRequest, LiveFinancialStatementResponse, OperationEnvelope, OwnershipChangeResponse, PreviewConsolidationEntriesResponse, PreviewEventBlockResponse, PreviewReconciliationsRequest, PromoteObligationsRequest, PromoteObligationsResponse, ProposeConsolidationEntriesResponse, PublishListMemberResponse, PublishListResponse, ReconcilingItemPlan, RecordAcquisitionRequest, RecordDeconsolidationRequest, RecordOpeningBalanceRequest, RecordOwnershipChangeRequest, ReportResponse, ResolveReconcilingItemRequest, ResolveReconcilingItemResponse, RevokeReportShareResponse, SetAllocationOverrideRequest, ShareReportResponse, TaxonomyBlockEnvelope, UpdateAgentRequest, UpdateDimensionRequest, UpdateEntityRequest, UpdateEventBlockRequest, UpdateEventHandlerRequest, UpdateInformationBlockRequest, UpdateJournalEntryRequest, UpdateTaxonomyBlockRequest, ViewResponse } from '../types.gen';
2
2
  import type { TokenProvider } from './graphql/client';
3
3
  import { ListLedgerBankAccountsQuery, type AgedReceivablesQuery, type ClassificationStatsQuery, type DischargeCandidatesQuery, type FlowCandidatesQuery, type GetInformationBlockQuery, type GetLedgerAccountRegisterQuery, type GetLedgerAccountRollupsQuery, type GetLedgerAccountTreeQuery, type GetLedgerAgentQuery, type GetLedgerAllocationShareQuery, 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 ListInformationBlockSummariesQuery, type ListLedgerAccountsQuery, type ListLedgerAgentsQuery, type ListLedgerAllocationOverridesQuery, type ListLedgerBlockedSourceGraphsQuery, type ListLedgerDimensionsQuery, type ListLedgerElementsQuery, type ListLedgerEntitiesQuery, type ListLedgerEventBlocksQuery, type ListLedgerEventHandlersQuery, type ListLedgerJournalEntriesQuery, type ListLedgerMappingsQuery, type ListLedgerPublishListsQuery, type ListLedgerReconciliationsQuery, type ListLedgerReportSharesQuery, type ListLedgerReportsQuery, type ListLedgerStructuresQuery, type ListLedgerTaxonomiesQuery, type ListLedgerTransactionsQuery, type ListLedgerUnmappedElementsQuery, type MappingCandidatesQuery, type OpenItemsForAgentQuery, type ReportDownloadFormat, type ReportLifecycle } from './graphql/generated/graphql';
4
4
  export { GraphQLError } from './graphql/client';
@@ -1326,6 +1326,16 @@ export declare class LedgerClient {
1326
1326
  * posts — an equity transaction under ASC 810, never a gain or loss.
1327
1327
  */
1328
1328
  recordOwnershipChange(graphId: string, body: RecordOwnershipChangeRequest): Promise<OwnershipChangeResponse>;
1329
+ /**
1330
+ * Record a member's leaving the group once `left_on` is set on it: what the
1331
+ * parent received for its shares in cents (0 for a dissolution) and the
1332
+ * basis. Writes a draft in the consolidation entity, dated the first day of
1333
+ * the month after the member's last, that its close posts: what the entity
1334
+ * still held for the member is taken off, a member in full has its results
1335
+ * put back into the group's equity, and the difference is the gain or loss
1336
+ * on its leaving — the group's adjustment to the parent's own gain (ASC 810).
1337
+ */
1338
+ recordDeconsolidation(graphId: string, body: RecordDeconsolidationRequest): Promise<DeconsolidationResponse>;
1329
1339
  /**
1330
1340
  * Create an event block directly. Use for support-class events
1331
1341
  * (`event_class: 'support'`) with categories `approval`, `control`,
@@ -1278,6 +1278,19 @@ class LedgerClient {
1278
1278
  const envelope = await this.callOperation('Record ownership change', (o) => (0, sdk_gen_1.recordOwnershipChange)({ ...o, path: { graph_id: graphId }, body }));
1279
1279
  return this.requireResult('Record ownership change', envelope.result);
1280
1280
  }
1281
+ /**
1282
+ * Record a member's leaving the group once `left_on` is set on it: what the
1283
+ * parent received for its shares in cents (0 for a dissolution) and the
1284
+ * basis. Writes a draft in the consolidation entity, dated the first day of
1285
+ * the month after the member's last, that its close posts: what the entity
1286
+ * still held for the member is taken off, a member in full has its results
1287
+ * put back into the group's equity, and the difference is the gain or loss
1288
+ * on its leaving — the group's adjustment to the parent's own gain (ASC 810).
1289
+ */
1290
+ async recordDeconsolidation(graphId, body) {
1291
+ const envelope = await this.callOperation('Record deconsolidation', (o) => (0, sdk_gen_1.recordDeconsolidation)({ ...o, path: { graph_id: graphId }, body }));
1292
+ return this.requireResult('Record deconsolidation', envelope.result);
1293
+ }
1281
1294
  // ── Event blocks (generic preview + status transitions) ──────────────
1282
1295
  /**
1283
1296
  * Create an event block directly. Use for support-class events
@@ -1888,6 +1901,8 @@ function rawFiscalCalendarToCamel(raw) {
1888
1901
  unpostedSourceEventSample: raw.unposted_source_event_sample ?? [],
1889
1902
  unreconciledAccountCount: raw.unreconciled_account_count ?? 0,
1890
1903
  unreconciledAccountSample: raw.unreconciled_account_sample ?? [],
1904
+ unmappedAccountCount: raw.unmapped_account_count ?? 0,
1905
+ unmappedAccountSample: raw.unmapped_account_sample ?? [],
1891
1906
  heldBankLineCount: raw.held_bank_line_count ?? 0,
1892
1907
  heldBankLineSample: raw.held_bank_line_sample ?? [],
1893
1908
  groupOpenEntities: raw.group_open_entities ?? [],
@@ -72,6 +72,7 @@ import {
72
72
  proposeConsolidationEntries,
73
73
  rebuildSchedule,
74
74
  recordAcquisition,
75
+ recordDeconsolidation,
75
76
  recordOpeningBalance,
76
77
  recordOwnershipChange,
77
78
  recordStatementBalance,
@@ -129,6 +130,7 @@ import type {
129
130
  CreateScheduleArm,
130
131
  CreateTaxonomyBlockRequest,
131
132
  CreateViewRequest,
133
+ DeconsolidationResponse,
132
134
  DeleteInformationBlockRequest,
133
135
  DeleteInformationBlockResponse,
134
136
  DeleteJournalEntryRequest,
@@ -181,6 +183,7 @@ import type {
181
183
  ReconciliationSummary,
182
184
  ReconcilingItemPlan,
183
185
  RecordAcquisitionRequest,
186
+ RecordDeconsolidationRequest,
184
187
  RecordOpeningBalanceRequest,
185
188
  RecordOwnershipChangeRequest,
186
189
  RecordStatementBalanceRequest,
@@ -582,6 +585,8 @@ interface RawFiscalCalendar {
582
585
  unposted_source_event_sample?: string[]
583
586
  unreconciled_account_count?: number
584
587
  unreconciled_account_sample?: string[]
588
+ unmapped_account_count?: number
589
+ unmapped_account_sample?: string[]
585
590
  held_bank_line_count?: number
586
591
  held_bank_line_sample?: string[]
587
592
  group_open_entities?: string[]
@@ -3269,6 +3274,25 @@ export class LedgerClient {
3269
3274
  return this.requireResult('Record ownership change', envelope.result)
3270
3275
  }
3271
3276
 
3277
+ /**
3278
+ * Record a member's leaving the group once `left_on` is set on it: what the
3279
+ * parent received for its shares in cents (0 for a dissolution) and the
3280
+ * basis. Writes a draft in the consolidation entity, dated the first day of
3281
+ * the month after the member's last, that its close posts: what the entity
3282
+ * still held for the member is taken off, a member in full has its results
3283
+ * put back into the group's equity, and the difference is the gain or loss
3284
+ * on its leaving — the group's adjustment to the parent's own gain (ASC 810).
3285
+ */
3286
+ async recordDeconsolidation(
3287
+ graphId: string,
3288
+ body: RecordDeconsolidationRequest
3289
+ ): Promise<DeconsolidationResponse> {
3290
+ const envelope = await this.callOperation('Record deconsolidation', (o) =>
3291
+ recordDeconsolidation({ ...o, path: { graph_id: graphId }, body })
3292
+ )
3293
+ return this.requireResult('Record deconsolidation', envelope.result)
3294
+ }
3295
+
3272
3296
  // ── Event blocks (generic preview + status transitions) ──────────────
3273
3297
 
3274
3298
  /**
@@ -4187,6 +4211,8 @@ function rawFiscalCalendarToCamel(raw: RawFiscalCalendar): LedgerFiscalCalendar
4187
4211
  unpostedSourceEventSample: raw.unposted_source_event_sample ?? [],
4188
4212
  unreconciledAccountCount: raw.unreconciled_account_count ?? 0,
4189
4213
  unreconciledAccountSample: raw.unreconciled_account_sample ?? [],
4214
+ unmappedAccountCount: raw.unmapped_account_count ?? 0,
4215
+ unmappedAccountSample: raw.unmapped_account_sample ?? [],
4190
4216
  heldBankLineCount: raw.held_bank_line_count ?? 0,
4191
4217
  heldBankLineSample: raw.held_bank_line_sample ?? [],
4192
4218
  groupOpenEntities: raw.group_open_entities ?? [],
@@ -1070,6 +1070,7 @@ export type ListLedgerEntitiesQuery = {
1070
1070
  entityRole: string;
1071
1071
  joinedOn: string | null;
1072
1072
  leftOn: string | null;
1073
+ isFormer: boolean;
1073
1074
  source: string;
1074
1075
  sourceGraphId: string | null;
1075
1076
  connectionId: string | null;
@@ -1109,6 +1110,7 @@ export type GetLedgerEntityQuery = {
1109
1110
  entityRole: string;
1110
1111
  joinedOn: string | null;
1111
1112
  leftOn: string | null;
1113
+ isFormer: boolean;
1112
1114
  source: string;
1113
1115
  sourceId: string | null;
1114
1116
  sourceGraphId: string | null;
@@ -1330,6 +1332,8 @@ export type GetLedgerFiscalCalendarQuery = {
1330
1332
  unpostedSourceEventSample: Array<string>;
1331
1333
  unreconciledAccountCount: number;
1332
1334
  unreconciledAccountSample: Array<string>;
1335
+ unmappedAccountCount: number;
1336
+ unmappedAccountSample: Array<string>;
1333
1337
  heldBankLineCount: number;
1334
1338
  heldBankLineSample: Array<string>;
1335
1339
  groupOpenEntities: Array<string>;
@@ -3084,6 +3084,7 @@ exports.ListLedgerEntitiesDocument = {
3084
3084
  { kind: 'Field', name: { kind: 'Name', value: 'entityRole' } },
3085
3085
  { kind: 'Field', name: { kind: 'Name', value: 'joinedOn' } },
3086
3086
  { kind: 'Field', name: { kind: 'Name', value: 'leftOn' } },
3087
+ { kind: 'Field', name: { kind: 'Name', value: 'isFormer' } },
3087
3088
  { kind: 'Field', name: { kind: 'Name', value: 'source' } },
3088
3089
  { kind: 'Field', name: { kind: 'Name', value: 'sourceGraphId' } },
3089
3090
  { kind: 'Field', name: { kind: 'Name', value: 'connectionId' } },
@@ -3154,6 +3155,7 @@ exports.GetLedgerEntityDocument = {
3154
3155
  { kind: 'Field', name: { kind: 'Name', value: 'entityRole' } },
3155
3156
  { kind: 'Field', name: { kind: 'Name', value: 'joinedOn' } },
3156
3157
  { kind: 'Field', name: { kind: 'Name', value: 'leftOn' } },
3158
+ { kind: 'Field', name: { kind: 'Name', value: 'isFormer' } },
3157
3159
  { kind: 'Field', name: { kind: 'Name', value: 'source' } },
3158
3160
  { kind: 'Field', name: { kind: 'Name', value: 'sourceId' } },
3159
3161
  { kind: 'Field', name: { kind: 'Name', value: 'sourceGraphId' } },
@@ -3716,6 +3718,8 @@ exports.GetLedgerFiscalCalendarDocument = {
3716
3718
  { kind: 'Field', name: { kind: 'Name', value: 'unpostedSourceEventSample' } },
3717
3719
  { kind: 'Field', name: { kind: 'Name', value: 'unreconciledAccountCount' } },
3718
3720
  { kind: 'Field', name: { kind: 'Name', value: 'unreconciledAccountSample' } },
3721
+ { kind: 'Field', name: { kind: 'Name', value: 'unmappedAccountCount' } },
3722
+ { kind: 'Field', name: { kind: 'Name', value: 'unmappedAccountSample' } },
3719
3723
  { kind: 'Field', name: { kind: 'Name', value: 'heldBankLineCount' } },
3720
3724
  { kind: 'Field', name: { kind: 'Name', value: 'heldBankLineSample' } },
3721
3725
  { kind: 'Field', name: { kind: 'Name', value: 'groupOpenEntities' } },
@@ -1061,6 +1061,7 @@ export type ListLedgerEntitiesQuery = {
1061
1061
  entityRole: string
1062
1062
  joinedOn: string | null
1063
1063
  leftOn: string | null
1064
+ isFormer: boolean
1064
1065
  source: string
1065
1066
  sourceGraphId: string | null
1066
1067
  connectionId: string | null
@@ -1102,6 +1103,7 @@ export type GetLedgerEntityQuery = {
1102
1103
  entityRole: string
1103
1104
  joinedOn: string | null
1104
1105
  leftOn: string | null
1106
+ isFormer: boolean
1105
1107
  source: string
1106
1108
  sourceId: string | null
1107
1109
  sourceGraphId: string | null
@@ -1329,6 +1331,8 @@ export type GetLedgerFiscalCalendarQuery = {
1329
1331
  unpostedSourceEventSample: Array<string>
1330
1332
  unreconciledAccountCount: number
1331
1333
  unreconciledAccountSample: Array<string>
1334
+ unmappedAccountCount: number
1335
+ unmappedAccountSample: Array<string>
1332
1336
  heldBankLineCount: number
1333
1337
  heldBankLineSample: Array<string>
1334
1338
  groupOpenEntities: Array<string>
@@ -6038,6 +6042,7 @@ export const ListLedgerEntitiesDocument = {
6038
6042
  { kind: 'Field', name: { kind: 'Name', value: 'entityRole' } },
6039
6043
  { kind: 'Field', name: { kind: 'Name', value: 'joinedOn' } },
6040
6044
  { kind: 'Field', name: { kind: 'Name', value: 'leftOn' } },
6045
+ { kind: 'Field', name: { kind: 'Name', value: 'isFormer' } },
6041
6046
  { kind: 'Field', name: { kind: 'Name', value: 'source' } },
6042
6047
  { kind: 'Field', name: { kind: 'Name', value: 'sourceGraphId' } },
6043
6048
  { kind: 'Field', name: { kind: 'Name', value: 'connectionId' } },
@@ -6108,6 +6113,7 @@ export const GetLedgerEntityDocument = {
6108
6113
  { kind: 'Field', name: { kind: 'Name', value: 'entityRole' } },
6109
6114
  { kind: 'Field', name: { kind: 'Name', value: 'joinedOn' } },
6110
6115
  { kind: 'Field', name: { kind: 'Name', value: 'leftOn' } },
6116
+ { kind: 'Field', name: { kind: 'Name', value: 'isFormer' } },
6111
6117
  { kind: 'Field', name: { kind: 'Name', value: 'source' } },
6112
6118
  { kind: 'Field', name: { kind: 'Name', value: 'sourceId' } },
6113
6119
  { kind: 'Field', name: { kind: 'Name', value: 'sourceGraphId' } },
@@ -6670,6 +6676,8 @@ export const GetLedgerFiscalCalendarDocument = {
6670
6676
  { kind: 'Field', name: { kind: 'Name', value: 'unpostedSourceEventSample' } },
6671
6677
  { kind: 'Field', name: { kind: 'Name', value: 'unreconciledAccountCount' } },
6672
6678
  { kind: 'Field', name: { kind: 'Name', value: 'unreconciledAccountSample' } },
6679
+ { kind: 'Field', name: { kind: 'Name', value: 'unmappedAccountCount' } },
6680
+ { kind: 'Field', name: { kind: 'Name', value: 'unmappedAccountSample' } },
6673
6681
  { kind: 'Field', name: { kind: 'Name', value: 'heldBankLineCount' } },
6674
6682
  { kind: 'Field', name: { kind: 'Name', value: 'heldBankLineSample' } },
6675
6683
  { kind: 'Field', name: { kind: 'Name', value: 'groupOpenEntities' } },
@@ -26,6 +26,7 @@ exports.LIST_ENTITIES = (0, graphql_request_1.gql) `
26
26
  entityRole
27
27
  joinedOn
28
28
  leftOn
29
+ isFormer
29
30
  source
30
31
  sourceGraphId
31
32
  connectionId
@@ -24,6 +24,7 @@ export const LIST_ENTITIES = gql`
24
24
  entityRole
25
25
  joinedOn
26
26
  leftOn
27
+ isFormer
27
28
  source
28
29
  sourceGraphId
29
30
  connectionId
@@ -45,6 +45,7 @@ exports.GET_ENTITY = (0, graphql_request_1.gql) `
45
45
  entityRole
46
46
  joinedOn
47
47
  leftOn
48
+ isFormer
48
49
  source
49
50
  sourceId
50
51
  sourceGraphId
@@ -44,6 +44,7 @@ export const GET_ENTITY = gql`
44
44
  entityRole
45
45
  joinedOn
46
46
  leftOn
47
+ isFormer
47
48
  source
48
49
  sourceId
49
50
  sourceGraphId
@@ -50,6 +50,8 @@ exports.GET_FISCAL_CALENDAR = (0, graphql_request_1.gql) `
50
50
  unpostedSourceEventSample
51
51
  unreconciledAccountCount
52
52
  unreconciledAccountSample
53
+ unmappedAccountCount
54
+ unmappedAccountSample
53
55
  heldBankLineCount
54
56
  heldBankLineSample
55
57
  groupOpenEntities
@@ -48,6 +48,8 @@ export const GET_FISCAL_CALENDAR = gql`
48
48
  unpostedSourceEventSample
49
49
  unreconciledAccountCount
50
50
  unreconciledAccountSample
51
+ unmappedAccountCount
52
+ unmappedAccountSample
51
53
  heldBankLineCount
52
54
  heldBankLineSample
53
55
  groupOpenEntities
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@robosystems/client",
3
- "version": "2.33.1",
3
+ "version": "2.33.2",
4
4
  "description": "TypeScript client library for the RoboSystems financial intelligence platform",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",