@robosystems/client 2.28.0 → 2.30.0

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,6 +1,6 @@
1
- import type { AcceptSuggestionsRequest, AcceptSuggestionsResponse, 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, PreviewConsolidationEntriesResponse, PreviewEventBlockResponse, PreviewReconciliationsRequest, PromoteObligationsRequest, PromoteObligationsResponse, ProposeConsolidationEntriesResponse, PublishListMemberResponse, PublishListResponse, ReconcilingItemPlan, RecordOpeningBalanceRequest, 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, 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';
2
2
  import type { TokenProvider } from './graphql/client';
3
- import { ListLedgerBankAccountsQuery, type AgedReceivablesQuery, type ClassificationStatsQuery, type DischargeCandidatesQuery, type FlowCandidatesQuery, type GetInformationBlockQuery, type GetLedgerAccountRegisterQuery, 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 ListInformationBlockSummariesQuery, type ListLedgerAccountsQuery, type ListLedgerAgentsQuery, 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';
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';
5
5
  export type { ReportLifecycle };
6
6
  export type LedgerEntity = NonNullable<GetLedgerEntityQuery['entity']>;
@@ -92,6 +92,15 @@ export type PublishListMember = PublishListDetail['members'][number];
92
92
  export type BlockedSourceGraph = NonNullable<ListLedgerBlockedSourceGraphsQuery['blockedSourceGraphs']>['blockedSourceGraphs'][number];
93
93
  /** One delivery of a report to a recipient graph, with its revocation state. */
94
94
  export type ReportShare = NonNullable<ListLedgerReportSharesQuery['reportShares']>['reportShares'][number];
95
+ /**
96
+ * The outside owners' share of a member's result for one month, in cents:
97
+ * the pro-rata figure its ownership gives (`proRataAmount`), the override if
98
+ * one is set, and the share the consolidating entries use
99
+ * (`effectiveAmount`).
100
+ */
101
+ export type LedgerAllocationShare = NonNullable<GetLedgerAllocationShareQuery['allocationShare']>;
102
+ /** A member's allocation override for one month. */
103
+ export type LedgerAllocationOverride = NonNullable<ListLedgerAllocationOverridesQuery['allocationOverrides']>['overrides'][number];
95
104
  /**
96
105
  * A rule that turns a matching event into GL rows. `awaitingApproval` marks
97
106
  * an AI client's suggestion, which takes no part in matching until a person
@@ -1107,6 +1116,31 @@ export declare class LedgerClient {
1107
1116
  * `clear: true` removes it. Only for a member consolidated in full.
1108
1117
  */
1109
1118
  setAllocationOverride(graphId: string, body: SetAllocationOverrideRequest): Promise<AllocationOverrideResponse>;
1119
+ /**
1120
+ * The outside owners' share of a member's result for one month: the
1121
+ * pro-rata figure, the override if one is set, and the share the
1122
+ * consolidating entries use. Null when the ledger is not initialized.
1123
+ */
1124
+ getAllocationShare(graphId: string, entityId: string, period: string): Promise<LedgerAllocationShare | null>;
1125
+ /** Every month a member's allocation override is set for, oldest first. */
1126
+ listAllocationOverrides(graphId: string, entityId: string): Promise<LedgerAllocationOverride[]>;
1127
+ /**
1128
+ * Record a member the parent bought from its outside owners: the
1129
+ * consideration paid the sellers, in cents, with the basis, and optionally
1130
+ * the outside owners' fair value and fair-value step-ups. Writes a draft in
1131
+ * the consolidation entity that its close posts; the excess over the
1132
+ * parent's share of the member's equity at acquisition goes to the
1133
+ * step-ups and goodwill. A bargain purchase needs `confirm_bargain_purchase`.
1134
+ */
1135
+ recordAcquisition(graphId: string, body: RecordAcquisitionRequest): Promise<AcquisitionResponse>;
1136
+ /**
1137
+ * Record the parent buying more of a member from its outside owners,
1138
+ * staying on full consolidation: the share it holds from `period` and the
1139
+ * price paid, in cents, with the basis. Sets the member's share from that
1140
+ * month and writes a draft in the consolidation entity that its close
1141
+ * posts — an equity transaction under ASC 810, never a gain or loss.
1142
+ */
1143
+ recordOwnershipChange(graphId: string, body: RecordOwnershipChangeRequest): Promise<OwnershipChangeResponse>;
1110
1144
  /**
1111
1145
  * Create an event block directly. Use for support-class events
1112
1146
  * (`event_class: 'support'`) with categories `approval`, `control`,
@@ -1145,6 +1145,42 @@ class LedgerClient {
1145
1145
  const envelope = await this.callOperation('Set allocation override', (o) => (0, sdk_gen_1.setAllocationOverride)({ ...o, path: { graph_id: graphId }, body }));
1146
1146
  return this.requireResult('Set allocation override', envelope.result);
1147
1147
  }
1148
+ /**
1149
+ * The outside owners' share of a member's result for one month: the
1150
+ * pro-rata figure, the override if one is set, and the share the
1151
+ * consolidating entries use. Null when the ledger is not initialized.
1152
+ */
1153
+ async getAllocationShare(graphId, entityId, period) {
1154
+ return this.gqlQuery(graphId, graphql_1.GetLedgerAllocationShareDocument, { entityId, period }, 'Get allocation share', (data) => data.allocationShare ?? null);
1155
+ }
1156
+ /** Every month a member's allocation override is set for, oldest first. */
1157
+ async listAllocationOverrides(graphId, entityId) {
1158
+ const list = await this.gqlQuery(graphId, graphql_1.ListLedgerAllocationOverridesDocument, { entityId }, 'List allocation overrides', (data) => data.allocationOverrides);
1159
+ return list?.overrides ?? [];
1160
+ }
1161
+ /**
1162
+ * Record a member the parent bought from its outside owners: the
1163
+ * consideration paid the sellers, in cents, with the basis, and optionally
1164
+ * the outside owners' fair value and fair-value step-ups. Writes a draft in
1165
+ * the consolidation entity that its close posts; the excess over the
1166
+ * parent's share of the member's equity at acquisition goes to the
1167
+ * step-ups and goodwill. A bargain purchase needs `confirm_bargain_purchase`.
1168
+ */
1169
+ async recordAcquisition(graphId, body) {
1170
+ const envelope = await this.callOperation('Record acquisition', (o) => (0, sdk_gen_1.recordAcquisition)({ ...o, path: { graph_id: graphId }, body }));
1171
+ return this.requireResult('Record acquisition', envelope.result);
1172
+ }
1173
+ /**
1174
+ * Record the parent buying more of a member from its outside owners,
1175
+ * staying on full consolidation: the share it holds from `period` and the
1176
+ * price paid, in cents, with the basis. Sets the member's share from that
1177
+ * month and writes a draft in the consolidation entity that its close
1178
+ * posts — an equity transaction under ASC 810, never a gain or loss.
1179
+ */
1180
+ async recordOwnershipChange(graphId, body) {
1181
+ const envelope = await this.callOperation('Record ownership change', (o) => (0, sdk_gen_1.recordOwnershipChange)({ ...o, path: { graph_id: graphId }, body }));
1182
+ return this.requireResult('Record ownership change', envelope.result);
1183
+ }
1148
1184
  // ── Event blocks (generic preview + status transitions) ──────────────
1149
1185
  /**
1150
1186
  * Create an event block directly. Use for support-class events
@@ -70,7 +70,9 @@ import {
70
70
  promoteObligations,
71
71
  proposeConsolidationEntries,
72
72
  rebuildSchedule,
73
+ recordAcquisition,
73
74
  recordOpeningBalance,
75
+ recordOwnershipChange,
74
76
  recordStatementBalance,
75
77
  refreshReconciliations,
76
78
  regenerateReport,
@@ -98,6 +100,7 @@ import {
98
100
  import type {
99
101
  AcceptSuggestionsRequest,
100
102
  AcceptSuggestionsResponse,
103
+ AcquisitionResponse,
101
104
  AddPublishListMembersOperation,
102
105
  AllocationOverrideResponse,
103
106
  AssociationResponse,
@@ -154,6 +157,7 @@ import type {
154
157
  LiveFinancialStatementRequest,
155
158
  LiveFinancialStatementResponse,
156
159
  OperationEnvelope,
160
+ OwnershipChangeResponse,
157
161
  PreviewConsolidationEntriesResponse,
158
162
  PreviewEventBlockResponse,
159
163
  PreviewReconciliationsRequest,
@@ -171,7 +175,9 @@ import type {
171
175
  ReconciliationRow,
172
176
  ReconciliationSummary,
173
177
  ReconcilingItemPlan,
178
+ RecordAcquisitionRequest,
174
179
  RecordOpeningBalanceRequest,
180
+ RecordOwnershipChangeRequest,
175
181
  RecordStatementBalanceRequest,
176
182
  RefreshReconciliationsRequest,
177
183
  ReopenPeriodOperation,
@@ -211,6 +217,7 @@ import {
211
217
  GetLedgerAccountRollupsDocument,
212
218
  GetLedgerAccountTreeDocument,
213
219
  GetLedgerAgentDocument,
220
+ GetLedgerAllocationShareDocument,
214
221
  GetLedgerClosingBookStructuresDocument,
215
222
  GetLedgerEntityDocument,
216
223
  GetLedgerEventBlockDocument,
@@ -235,6 +242,7 @@ import {
235
242
  ListInformationBlockSummariesDocument,
236
243
  ListLedgerAccountsDocument,
237
244
  ListLedgerAgentsDocument,
245
+ ListLedgerAllocationOverridesDocument,
238
246
  ListLedgerBankAccountsDocument,
239
247
  ListLedgerBankAccountsQuery,
240
248
  ListLedgerBlockedSourceGraphsDocument,
@@ -264,6 +272,7 @@ import {
264
272
  type GetLedgerAccountRollupsQuery,
265
273
  type GetLedgerAccountTreeQuery,
266
274
  type GetLedgerAgentQuery,
275
+ type GetLedgerAllocationShareQuery,
267
276
  type GetLedgerClosingBookStructuresQuery,
268
277
  type GetLedgerEntityQuery,
269
278
  type GetLedgerEventBlockQuery,
@@ -286,6 +295,7 @@ import {
286
295
  type ListInformationBlockSummariesQuery,
287
296
  type ListLedgerAccountsQuery,
288
297
  type ListLedgerAgentsQuery,
298
+ type ListLedgerAllocationOverridesQuery,
289
299
  type ListLedgerBlockedSourceGraphsQuery,
290
300
  type ListLedgerDimensionsQuery,
291
301
  type ListLedgerElementsQuery,
@@ -460,6 +470,19 @@ export type ReportShare = NonNullable<
460
470
  ListLedgerReportSharesQuery['reportShares']
461
471
  >['reportShares'][number]
462
472
 
473
+ /**
474
+ * The outside owners' share of a member's result for one month, in cents:
475
+ * the pro-rata figure its ownership gives (`proRataAmount`), the override if
476
+ * one is set, and the share the consolidating entries use
477
+ * (`effectiveAmount`).
478
+ */
479
+ export type LedgerAllocationShare = NonNullable<GetLedgerAllocationShareQuery['allocationShare']>
480
+
481
+ /** A member's allocation override for one month. */
482
+ export type LedgerAllocationOverride = NonNullable<
483
+ ListLedgerAllocationOverridesQuery['allocationOverrides']
484
+ >['overrides'][number]
485
+
463
486
  /**
464
487
  * A rule that turns a matching event into GL rows. `awaitingApproval` marks
465
488
  * an AI client's suggestion, which takes no part in matching until a person
@@ -2891,6 +2914,75 @@ export class LedgerClient {
2891
2914
  return this.requireResult('Set allocation override', envelope.result)
2892
2915
  }
2893
2916
 
2917
+ /**
2918
+ * The outside owners' share of a member's result for one month: the
2919
+ * pro-rata figure, the override if one is set, and the share the
2920
+ * consolidating entries use. Null when the ledger is not initialized.
2921
+ */
2922
+ async getAllocationShare(
2923
+ graphId: string,
2924
+ entityId: string,
2925
+ period: string
2926
+ ): Promise<LedgerAllocationShare | null> {
2927
+ return this.gqlQuery(
2928
+ graphId,
2929
+ GetLedgerAllocationShareDocument,
2930
+ { entityId, period },
2931
+ 'Get allocation share',
2932
+ (data) => data.allocationShare ?? null
2933
+ )
2934
+ }
2935
+
2936
+ /** Every month a member's allocation override is set for, oldest first. */
2937
+ async listAllocationOverrides(
2938
+ graphId: string,
2939
+ entityId: string
2940
+ ): Promise<LedgerAllocationOverride[]> {
2941
+ const list = await this.gqlQuery(
2942
+ graphId,
2943
+ ListLedgerAllocationOverridesDocument,
2944
+ { entityId },
2945
+ 'List allocation overrides',
2946
+ (data) => data.allocationOverrides
2947
+ )
2948
+ return list?.overrides ?? []
2949
+ }
2950
+
2951
+ /**
2952
+ * Record a member the parent bought from its outside owners: the
2953
+ * consideration paid the sellers, in cents, with the basis, and optionally
2954
+ * the outside owners' fair value and fair-value step-ups. Writes a draft in
2955
+ * the consolidation entity that its close posts; the excess over the
2956
+ * parent's share of the member's equity at acquisition goes to the
2957
+ * step-ups and goodwill. A bargain purchase needs `confirm_bargain_purchase`.
2958
+ */
2959
+ async recordAcquisition(
2960
+ graphId: string,
2961
+ body: RecordAcquisitionRequest
2962
+ ): Promise<AcquisitionResponse> {
2963
+ const envelope = await this.callOperation('Record acquisition', (o) =>
2964
+ recordAcquisition({ ...o, path: { graph_id: graphId }, body })
2965
+ )
2966
+ return this.requireResult('Record acquisition', envelope.result)
2967
+ }
2968
+
2969
+ /**
2970
+ * Record the parent buying more of a member from its outside owners,
2971
+ * staying on full consolidation: the share it holds from `period` and the
2972
+ * price paid, in cents, with the basis. Sets the member's share from that
2973
+ * month and writes a draft in the consolidation entity that its close
2974
+ * posts — an equity transaction under ASC 810, never a gain or loss.
2975
+ */
2976
+ async recordOwnershipChange(
2977
+ graphId: string,
2978
+ body: RecordOwnershipChangeRequest
2979
+ ): Promise<OwnershipChangeResponse> {
2980
+ const envelope = await this.callOperation('Record ownership change', (o) =>
2981
+ recordOwnershipChange({ ...o, path: { graph_id: graphId }, body })
2982
+ )
2983
+ return this.requireResult('Record ownership change', envelope.result)
2984
+ }
2985
+
2894
2986
  // ── Event blocks (generic preview + status transitions) ──────────────
2895
2987
 
2896
2988
  /**
@@ -839,6 +839,53 @@ export type ListLedgerAgentsQuery = {
839
839
  }>;
840
840
  }>;
841
841
  };
842
+ export type AllocationOverrideFieldsFragment = {
843
+ period: string;
844
+ amount: number | null;
845
+ percentage: number | null;
846
+ basis: string | null;
847
+ setBy: string | null;
848
+ };
849
+ export type GetLedgerAllocationShareQueryVariables = Exact<{
850
+ entityId: string;
851
+ period: string;
852
+ }>;
853
+ export type GetLedgerAllocationShareQuery = {
854
+ allocationShare: {
855
+ entityId: string;
856
+ entityName: string;
857
+ period: string;
858
+ consolidationMethod: string;
859
+ ownershipPct: number | null;
860
+ outsidePct: number;
861
+ monthResult: number;
862
+ proRataAmount: number;
863
+ effectiveAmount: number;
864
+ closed: boolean;
865
+ override: {
866
+ period: string;
867
+ amount: number | null;
868
+ percentage: number | null;
869
+ basis: string | null;
870
+ setBy: string | null;
871
+ } | null;
872
+ } | null;
873
+ };
874
+ export type ListLedgerAllocationOverridesQueryVariables = Exact<{
875
+ entityId: string;
876
+ }>;
877
+ export type ListLedgerAllocationOverridesQuery = {
878
+ allocationOverrides: {
879
+ entityId: string;
880
+ overrides: Array<{
881
+ period: string;
882
+ amount: number | null;
883
+ percentage: number | null;
884
+ basis: string | null;
885
+ setBy: string | null;
886
+ }>;
887
+ } | null;
888
+ };
842
889
  export type ListLedgerBankAccountsQueryVariables = Exact<{
843
890
  entityId: string | null | undefined;
844
891
  }>;
@@ -2966,6 +3013,7 @@ export declare const RegisterLineFieldsFragmentDoc: DocumentNode<RegisterLineFie
2966
3013
  export declare const AgingBucketsFieldsFragmentDoc: DocumentNode<AgingBucketsFieldsFragment, unknown>;
2967
3014
  export declare const OpenItemFieldsFragmentDoc: DocumentNode<OpenItemFieldsFragment, unknown>;
2968
3015
  export declare const AgedBalancesFieldsFragmentDoc: DocumentNode<AgedBalancesFieldsFragment, unknown>;
3016
+ export declare const AllocationOverrideFieldsFragmentDoc: DocumentNode<AllocationOverrideFieldsFragment, unknown>;
2969
3017
  export declare const EventHandlerFieldsFragmentDoc: DocumentNode<EventHandlerFieldsFragment, unknown>;
2970
3018
  export declare const GetInvestorHoldingsDocument: DocumentNode<GetInvestorHoldingsQuery, GetInvestorHoldingsQueryVariables>;
2971
3019
  export declare const GetInvestorPortfolioBlockDocument: DocumentNode<GetInvestorPortfolioBlockQuery, GetInvestorPortfolioBlockQueryVariables>;
@@ -2984,6 +3032,8 @@ export declare const OpenItemsForAgentDocument: DocumentNode<OpenItemsForAgentQu
2984
3032
  export declare const DischargeCandidatesDocument: DocumentNode<DischargeCandidatesQuery, DischargeCandidatesQueryVariables>;
2985
3033
  export declare const GetLedgerAgentDocument: DocumentNode<GetLedgerAgentQuery, GetLedgerAgentQueryVariables>;
2986
3034
  export declare const ListLedgerAgentsDocument: DocumentNode<ListLedgerAgentsQuery, ListLedgerAgentsQueryVariables>;
3035
+ export declare const GetLedgerAllocationShareDocument: DocumentNode<GetLedgerAllocationShareQuery, GetLedgerAllocationShareQueryVariables>;
3036
+ export declare const ListLedgerAllocationOverridesDocument: DocumentNode<ListLedgerAllocationOverridesQuery, ListLedgerAllocationOverridesQueryVariables>;
2987
3037
  export declare const ListLedgerBankAccountsDocument: DocumentNode<ListLedgerBankAccountsQuery, ListLedgerBankAccountsQueryVariables>;
2988
3038
  export declare const ListLedgerBlockedSourceGraphsDocument: DocumentNode<ListLedgerBlockedSourceGraphsQuery, ListLedgerBlockedSourceGraphsQueryVariables>;
2989
3039
  export declare const ListChartTemplatesDocument: DocumentNode<ListChartTemplatesQuery, ListChartTemplatesQueryVariables>;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GetLedgerPublishListDocument = exports.GetLedgerPeriodDraftsDocument = exports.GetLedgerPeriodCloseStatusDocument = exports.ListLedgerMappingsDocument = exports.GetLedgerMappingCoverageDocument = exports.MappingCandidatesDocument = exports.GetLedgerMappingDocument = exports.GetLedgerMappedTrialBalanceDocument = exports.ListLedgerJournalEntriesDocument = exports.ListInformationBlockSummariesDocument = exports.ListInformationBlocksDocument = exports.GetInformationBlockWindowedDocument = exports.GetInformationBlockDocument = exports.FlowCandidatesDocument = exports.GetLedgerFiscalCalendarDocument = exports.GetLedgerEventHandlerDocument = exports.ListLedgerEventHandlersDocument = exports.ListLedgerEventBlocksDocument = exports.GetLedgerEventBlockDocument = exports.GetLedgerEntityDocument = exports.ListLedgerEntitiesDocument = exports.ListLedgerElementsDocument = exports.ListLedgerDimensionsDocument = exports.GetLedgerClosingBookStructuresDocument = exports.ClassificationStatsDocument = exports.ListChartTemplatesDocument = exports.ListLedgerBlockedSourceGraphsDocument = exports.ListLedgerBankAccountsDocument = exports.ListLedgerAgentsDocument = exports.GetLedgerAgentDocument = exports.DischargeCandidatesDocument = exports.OpenItemsForAgentDocument = exports.AgedPayablesDocument = exports.AgedReceivablesDocument = exports.ListLedgerAccountsDocument = exports.GetLedgerAccountTreeDocument = exports.GetLedgerAccountRollupsDocument = exports.GetLedgerAccountRegisterDocument = exports.GetInvestorSecurityDocument = exports.ListInvestorSecuritiesDocument = exports.ListInvestorPositionsDocument = exports.GetInvestorPositionDocument = exports.ListInvestorPortfoliosDocument = exports.GetInvestorPortfolioBlockDocument = exports.GetInvestorHoldingsDocument = exports.EventHandlerFieldsFragmentDoc = exports.AgedBalancesFieldsFragmentDoc = exports.OpenItemFieldsFragmentDoc = exports.AgingBucketsFieldsFragmentDoc = exports.RegisterLineFieldsFragmentDoc = 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 = exports.GetLedgerTrialBalanceDocument = exports.ListLedgerTransactionsDocument = exports.GetLedgerTransactionDocument = exports.ListLedgerTaxonomiesDocument = exports.GetLedgerSummaryDocument = exports.ListLedgerStructuresDocument = exports.GetLedgerStatementDocument = exports.ListLedgerReportsDocument = exports.GetLedgerReportingTaxonomyDocument = exports.ListLedgerReportSharesDocument = exports.GetLedgerReportPackageDocument = exports.GetLedgerReportDownloadUrlDocument = exports.GetLedgerReportDocument = exports.ListLedgerReconciliationsDocument = exports.ListLedgerPublishListsDocument = void 0;
3
+ exports.ListLedgerMappingsDocument = exports.GetLedgerMappingCoverageDocument = exports.MappingCandidatesDocument = exports.GetLedgerMappingDocument = exports.GetLedgerMappedTrialBalanceDocument = exports.ListLedgerJournalEntriesDocument = exports.ListInformationBlockSummariesDocument = exports.ListInformationBlocksDocument = exports.GetInformationBlockWindowedDocument = exports.GetInformationBlockDocument = exports.FlowCandidatesDocument = exports.GetLedgerFiscalCalendarDocument = exports.GetLedgerEventHandlerDocument = exports.ListLedgerEventHandlersDocument = exports.ListLedgerEventBlocksDocument = exports.GetLedgerEventBlockDocument = exports.GetLedgerEntityDocument = exports.ListLedgerEntitiesDocument = exports.ListLedgerElementsDocument = exports.ListLedgerDimensionsDocument = exports.GetLedgerClosingBookStructuresDocument = exports.ClassificationStatsDocument = exports.ListChartTemplatesDocument = exports.ListLedgerBlockedSourceGraphsDocument = exports.ListLedgerBankAccountsDocument = exports.ListLedgerAllocationOverridesDocument = exports.GetLedgerAllocationShareDocument = exports.ListLedgerAgentsDocument = exports.GetLedgerAgentDocument = exports.DischargeCandidatesDocument = exports.OpenItemsForAgentDocument = exports.AgedPayablesDocument = exports.AgedReceivablesDocument = exports.ListLedgerAccountsDocument = exports.GetLedgerAccountTreeDocument = exports.GetLedgerAccountRollupsDocument = exports.GetLedgerAccountRegisterDocument = exports.GetInvestorSecurityDocument = exports.ListInvestorSecuritiesDocument = exports.ListInvestorPositionsDocument = exports.GetInvestorPositionDocument = exports.ListInvestorPortfoliosDocument = exports.GetInvestorPortfolioBlockDocument = exports.GetInvestorHoldingsDocument = exports.EventHandlerFieldsFragmentDoc = exports.AllocationOverrideFieldsFragmentDoc = exports.AgedBalancesFieldsFragmentDoc = exports.OpenItemFieldsFragmentDoc = exports.AgingBucketsFieldsFragmentDoc = exports.RegisterLineFieldsFragmentDoc = 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 = exports.GetLedgerTrialBalanceDocument = exports.ListLedgerTransactionsDocument = exports.GetLedgerTransactionDocument = exports.ListLedgerTaxonomiesDocument = exports.GetLedgerSummaryDocument = exports.ListLedgerStructuresDocument = exports.GetLedgerStatementDocument = exports.ListLedgerReportsDocument = exports.GetLedgerReportingTaxonomyDocument = exports.ListLedgerReportSharesDocument = exports.GetLedgerReportPackageDocument = exports.GetLedgerReportDownloadUrlDocument = exports.GetLedgerReportDocument = exports.ListLedgerReconciliationsDocument = exports.ListLedgerPublishListsDocument = exports.GetLedgerPublishListDocument = exports.GetLedgerPeriodDraftsDocument = exports.GetLedgerPeriodCloseStatusDocument = void 0;
5
5
  exports.RegisterLineFieldsFragmentDoc = {
6
6
  kind: 'Document',
7
7
  definitions: [
@@ -246,6 +246,29 @@ exports.AgedBalancesFieldsFragmentDoc = {
246
246
  },
247
247
  ],
248
248
  };
249
+ exports.AllocationOverrideFieldsFragmentDoc = {
250
+ kind: 'Document',
251
+ definitions: [
252
+ {
253
+ kind: 'FragmentDefinition',
254
+ name: { kind: 'Name', value: 'AllocationOverrideFields' },
255
+ typeCondition: {
256
+ kind: 'NamedType',
257
+ name: { kind: 'Name', value: 'AllocationOverrideRecord' },
258
+ },
259
+ selectionSet: {
260
+ kind: 'SelectionSet',
261
+ selections: [
262
+ { kind: 'Field', name: { kind: 'Name', value: 'period' } },
263
+ { kind: 'Field', name: { kind: 'Name', value: 'amount' } },
264
+ { kind: 'Field', name: { kind: 'Name', value: 'percentage' } },
265
+ { kind: 'Field', name: { kind: 'Name', value: 'basis' } },
266
+ { kind: 'Field', name: { kind: 'Name', value: 'setBy' } },
267
+ ],
268
+ },
269
+ },
270
+ ],
271
+ };
249
272
  exports.EventHandlerFieldsFragmentDoc = {
250
273
  kind: 'Document',
251
274
  definitions: [
@@ -2310,6 +2333,174 @@ exports.ListLedgerAgentsDocument = {
2310
2333
  },
2311
2334
  ],
2312
2335
  };
2336
+ exports.GetLedgerAllocationShareDocument = {
2337
+ kind: 'Document',
2338
+ definitions: [
2339
+ {
2340
+ kind: 'OperationDefinition',
2341
+ operation: 'query',
2342
+ name: { kind: 'Name', value: 'GetLedgerAllocationShare' },
2343
+ variableDefinitions: [
2344
+ {
2345
+ kind: 'VariableDefinition',
2346
+ variable: { kind: 'Variable', name: { kind: 'Name', value: 'entityId' } },
2347
+ type: {
2348
+ kind: 'NonNullType',
2349
+ type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } },
2350
+ },
2351
+ },
2352
+ {
2353
+ kind: 'VariableDefinition',
2354
+ variable: { kind: 'Variable', name: { kind: 'Name', value: 'period' } },
2355
+ type: {
2356
+ kind: 'NonNullType',
2357
+ type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } },
2358
+ },
2359
+ },
2360
+ ],
2361
+ selectionSet: {
2362
+ kind: 'SelectionSet',
2363
+ selections: [
2364
+ {
2365
+ kind: 'Field',
2366
+ name: { kind: 'Name', value: 'allocationShare' },
2367
+ arguments: [
2368
+ {
2369
+ kind: 'Argument',
2370
+ name: { kind: 'Name', value: 'entityId' },
2371
+ value: { kind: 'Variable', name: { kind: 'Name', value: 'entityId' } },
2372
+ },
2373
+ {
2374
+ kind: 'Argument',
2375
+ name: { kind: 'Name', value: 'period' },
2376
+ value: { kind: 'Variable', name: { kind: 'Name', value: 'period' } },
2377
+ },
2378
+ ],
2379
+ selectionSet: {
2380
+ kind: 'SelectionSet',
2381
+ selections: [
2382
+ { kind: 'Field', name: { kind: 'Name', value: 'entityId' } },
2383
+ { kind: 'Field', name: { kind: 'Name', value: 'entityName' } },
2384
+ { kind: 'Field', name: { kind: 'Name', value: 'period' } },
2385
+ { kind: 'Field', name: { kind: 'Name', value: 'consolidationMethod' } },
2386
+ { kind: 'Field', name: { kind: 'Name', value: 'ownershipPct' } },
2387
+ { kind: 'Field', name: { kind: 'Name', value: 'outsidePct' } },
2388
+ { kind: 'Field', name: { kind: 'Name', value: 'monthResult' } },
2389
+ { kind: 'Field', name: { kind: 'Name', value: 'proRataAmount' } },
2390
+ {
2391
+ kind: 'Field',
2392
+ name: { kind: 'Name', value: 'override' },
2393
+ selectionSet: {
2394
+ kind: 'SelectionSet',
2395
+ selections: [
2396
+ {
2397
+ kind: 'FragmentSpread',
2398
+ name: { kind: 'Name', value: 'AllocationOverrideFields' },
2399
+ },
2400
+ ],
2401
+ },
2402
+ },
2403
+ { kind: 'Field', name: { kind: 'Name', value: 'effectiveAmount' } },
2404
+ { kind: 'Field', name: { kind: 'Name', value: 'closed' } },
2405
+ ],
2406
+ },
2407
+ },
2408
+ ],
2409
+ },
2410
+ },
2411
+ {
2412
+ kind: 'FragmentDefinition',
2413
+ name: { kind: 'Name', value: 'AllocationOverrideFields' },
2414
+ typeCondition: {
2415
+ kind: 'NamedType',
2416
+ name: { kind: 'Name', value: 'AllocationOverrideRecord' },
2417
+ },
2418
+ selectionSet: {
2419
+ kind: 'SelectionSet',
2420
+ selections: [
2421
+ { kind: 'Field', name: { kind: 'Name', value: 'period' } },
2422
+ { kind: 'Field', name: { kind: 'Name', value: 'amount' } },
2423
+ { kind: 'Field', name: { kind: 'Name', value: 'percentage' } },
2424
+ { kind: 'Field', name: { kind: 'Name', value: 'basis' } },
2425
+ { kind: 'Field', name: { kind: 'Name', value: 'setBy' } },
2426
+ ],
2427
+ },
2428
+ },
2429
+ ],
2430
+ };
2431
+ exports.ListLedgerAllocationOverridesDocument = {
2432
+ kind: 'Document',
2433
+ definitions: [
2434
+ {
2435
+ kind: 'OperationDefinition',
2436
+ operation: 'query',
2437
+ name: { kind: 'Name', value: 'ListLedgerAllocationOverrides' },
2438
+ variableDefinitions: [
2439
+ {
2440
+ kind: 'VariableDefinition',
2441
+ variable: { kind: 'Variable', name: { kind: 'Name', value: 'entityId' } },
2442
+ type: {
2443
+ kind: 'NonNullType',
2444
+ type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } },
2445
+ },
2446
+ },
2447
+ ],
2448
+ selectionSet: {
2449
+ kind: 'SelectionSet',
2450
+ selections: [
2451
+ {
2452
+ kind: 'Field',
2453
+ name: { kind: 'Name', value: 'allocationOverrides' },
2454
+ arguments: [
2455
+ {
2456
+ kind: 'Argument',
2457
+ name: { kind: 'Name', value: 'entityId' },
2458
+ value: { kind: 'Variable', name: { kind: 'Name', value: 'entityId' } },
2459
+ },
2460
+ ],
2461
+ selectionSet: {
2462
+ kind: 'SelectionSet',
2463
+ selections: [
2464
+ { kind: 'Field', name: { kind: 'Name', value: 'entityId' } },
2465
+ {
2466
+ kind: 'Field',
2467
+ name: { kind: 'Name', value: 'overrides' },
2468
+ selectionSet: {
2469
+ kind: 'SelectionSet',
2470
+ selections: [
2471
+ {
2472
+ kind: 'FragmentSpread',
2473
+ name: { kind: 'Name', value: 'AllocationOverrideFields' },
2474
+ },
2475
+ ],
2476
+ },
2477
+ },
2478
+ ],
2479
+ },
2480
+ },
2481
+ ],
2482
+ },
2483
+ },
2484
+ {
2485
+ kind: 'FragmentDefinition',
2486
+ name: { kind: 'Name', value: 'AllocationOverrideFields' },
2487
+ typeCondition: {
2488
+ kind: 'NamedType',
2489
+ name: { kind: 'Name', value: 'AllocationOverrideRecord' },
2490
+ },
2491
+ selectionSet: {
2492
+ kind: 'SelectionSet',
2493
+ selections: [
2494
+ { kind: 'Field', name: { kind: 'Name', value: 'period' } },
2495
+ { kind: 'Field', name: { kind: 'Name', value: 'amount' } },
2496
+ { kind: 'Field', name: { kind: 'Name', value: 'percentage' } },
2497
+ { kind: 'Field', name: { kind: 'Name', value: 'basis' } },
2498
+ { kind: 'Field', name: { kind: 'Name', value: 'setBy' } },
2499
+ ],
2500
+ },
2501
+ },
2502
+ ],
2503
+ };
2313
2504
  exports.ListLedgerBankAccountsDocument = {
2314
2505
  kind: 'Document',
2315
2506
  definitions: [