@robosystems/client 0.3.15 → 0.3.17

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
1
  import type { AutoMapElementsOperation, CreateAgentRequest, CreateEventBlockRequest, CreateEventHandlerRequest, CreateMappingAssociationOperation, CreateTaxonomyBlockRequest, CreateViewRequest, DeleteMappingAssociationOperation, DeleteTaxonomyBlockRequest, EvaluateRulesRequest, FinancialStatementAnalysisRequest, LinkEntityTaxonomyRequest, LiveFinancialStatementRequest, OperationEnvelope, UpdateAgentRequest, UpdateEntityRequest, UpdateEventBlockRequest, UpdateEventHandlerRequest, UpdateJournalEntryRequest, UpdateTaxonomyBlockRequest } from '../types.gen';
2
2
  import type { TokenProvider } from './graphql/client';
3
- import { type GetInformationBlockQuery, type GetLedgerAccountRollupsQuery, type GetLedgerAccountTreeQuery, type GetLedgerClosingBookStructuresQuery, type GetLedgerEntityQuery, 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 ListInformationBlocksQuery, type ListLedgerAccountsQuery, type ListLedgerElementsQuery, type ListLedgerEntitiesQuery, type ListLedgerMappingsQuery, type ListLedgerPublishListsQuery, type ListLedgerReportsQuery, type ListLedgerStructuresQuery, type ListLedgerTaxonomiesQuery, type ListLedgerTransactionsQuery, type ListLedgerUnmappedElementsQuery } from './graphql/generated/graphql';
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 ListInformationBlocksQuery, type ListLedgerAccountsQuery, type ListLedgerAgentsQuery, type ListLedgerElementsQuery, type ListLedgerEntitiesQuery, type ListLedgerEventBlocksQuery, type ListLedgerMappingsQuery, type ListLedgerPublishListsQuery, type ListLedgerReportsQuery, type ListLedgerStructuresQuery, type ListLedgerTaxonomiesQuery, type ListLedgerTransactionsQuery, type ListLedgerUnmappedElementsQuery } from './graphql/generated/graphql';
4
4
  export type LedgerEntity = NonNullable<GetLedgerEntityQuery['entity']>;
5
5
  export type LedgerEntitySummary = ListLedgerEntitiesQuery['entities'][number];
6
6
  export type LedgerSummary = NonNullable<GetLedgerSummaryQuery['summary']>;
@@ -13,6 +13,10 @@ export type LedgerMappedTrialBalance = NonNullable<GetLedgerMappedTrialBalanceQu
13
13
  export type LedgerTransactionList = NonNullable<ListLedgerTransactionsQuery['transactions']>;
14
14
  export type LedgerTransactionListItem = LedgerTransactionList['transactions'][number];
15
15
  export type LedgerTransaction = NonNullable<GetLedgerTransactionQuery['transaction']>;
16
+ export type LedgerEventBlock = ListLedgerEventBlocksQuery['eventBlocks'][number];
17
+ export type LedgerEventBlockDetail = NonNullable<GetLedgerEventBlockQuery['eventBlock']>;
18
+ export type LedgerAgent = ListLedgerAgentsQuery['agents'][number];
19
+ export type LedgerAgentDetail = NonNullable<GetLedgerAgentQuery['agent']>;
16
20
  export type LedgerReportingTaxonomy = NonNullable<GetLedgerReportingTaxonomyQuery['reportingTaxonomy']>;
17
21
  export type LedgerTaxonomyList = NonNullable<ListLedgerTaxonomiesQuery['taxonomies']>;
18
22
  export type LedgerTaxonomy = LedgerTaxonomyList['taxonomies'][number];
@@ -196,6 +200,38 @@ export declare class LedgerClient {
196
200
  }): Promise<LedgerTransactionList | null>;
197
201
  /** Get transaction detail with entries + line items. */
198
202
  getTransaction(graphId: string, transactionId: string): Promise<LedgerTransaction | null>;
203
+ /**
204
+ * List captured event blocks for the inbox surface.
205
+ *
206
+ * Pass `status: 'captured'` for the default un-reviewed view. Use
207
+ * `eventType` filters like `'invoice_issued'` / `'bill_received'` to
208
+ * narrow by source class. Approve/reject via `updateEventBlock`.
209
+ */
210
+ listEventBlocks(graphId: string, options?: {
211
+ eventType?: string;
212
+ eventCategory?: string;
213
+ status?: string;
214
+ agentId?: string;
215
+ source?: string;
216
+ limit?: number;
217
+ offset?: number;
218
+ }): Promise<LedgerEventBlock[]>;
219
+ /** Get event block detail (carries the metadata blob with nested entries). */
220
+ getEventBlock(graphId: string, eventId: string): Promise<LedgerEventBlockDetail | null>;
221
+ /**
222
+ * List agents — REA-aligned counterparties (customers, vendors,
223
+ * employees). Defaults to active agents only; pass `isActive: null`
224
+ * to include deactivated ones.
225
+ */
226
+ listAgents(graphId: string, options?: {
227
+ agentType?: string;
228
+ source?: string;
229
+ isActive?: boolean | null;
230
+ limit?: number;
231
+ offset?: number;
232
+ }): Promise<LedgerAgent[]>;
233
+ /** Get agent detail by id. */
234
+ getAgent(graphId: string, agentId: string): Promise<LedgerAgentDetail | null>;
199
235
  /** Trial balance by raw CoA account. */
200
236
  getTrialBalance(graphId: string, options?: {
201
237
  startDate?: string;
@@ -76,6 +76,48 @@ class LedgerClient {
76
76
  async getTransaction(graphId, transactionId) {
77
77
  return this.gqlQuery(graphId, graphql_1.GetLedgerTransactionDocument, { transactionId }, 'Get transaction', (data) => data.transaction);
78
78
  }
79
+ // ── Event Blocks (Inbox) ────────────────────────────────────────────
80
+ /**
81
+ * List captured event blocks for the inbox surface.
82
+ *
83
+ * Pass `status: 'captured'` for the default un-reviewed view. Use
84
+ * `eventType` filters like `'invoice_issued'` / `'bill_received'` to
85
+ * narrow by source class. Approve/reject via `updateEventBlock`.
86
+ */
87
+ async listEventBlocks(graphId, options) {
88
+ return this.gqlQuery(graphId, graphql_1.ListLedgerEventBlocksDocument, {
89
+ eventType: options?.eventType ?? null,
90
+ eventCategory: options?.eventCategory ?? null,
91
+ status: options?.status ?? null,
92
+ agentId: options?.agentId ?? null,
93
+ source: options?.source ?? null,
94
+ limit: options?.limit ?? 50,
95
+ offset: options?.offset ?? 0,
96
+ }, 'List event blocks', (data) => data.eventBlocks);
97
+ }
98
+ /** Get event block detail (carries the metadata blob with nested entries). */
99
+ async getEventBlock(graphId, eventId) {
100
+ return this.gqlQuery(graphId, graphql_1.GetLedgerEventBlockDocument, { id: eventId }, 'Get event block', (data) => data.eventBlock);
101
+ }
102
+ // ── Agents (REA counterparties) ─────────────────────────────────────
103
+ /**
104
+ * List agents — REA-aligned counterparties (customers, vendors,
105
+ * employees). Defaults to active agents only; pass `isActive: null`
106
+ * to include deactivated ones.
107
+ */
108
+ async listAgents(graphId, options) {
109
+ return this.gqlQuery(graphId, graphql_1.ListLedgerAgentsDocument, {
110
+ agentType: options?.agentType ?? null,
111
+ source: options?.source ?? null,
112
+ isActive: options?.isActive === undefined ? true : options.isActive,
113
+ limit: options?.limit ?? 50,
114
+ offset: options?.offset ?? 0,
115
+ }, 'List agents', (data) => data.agents);
116
+ }
117
+ /** Get agent detail by id. */
118
+ async getAgent(graphId, agentId) {
119
+ return this.gqlQuery(graphId, graphql_1.GetLedgerAgentDocument, { id: agentId }, 'Get agent', (data) => data.agent);
120
+ }
79
121
  // ── Trial Balance ──────────────────────────────────────────────────
80
122
  /** Trial balance by raw CoA account. */
81
123
  async getTrialBalance(graphId, options) {
@@ -107,8 +107,10 @@ import {
107
107
  GetInformationBlockDocument,
108
108
  GetLedgerAccountRollupsDocument,
109
109
  GetLedgerAccountTreeDocument,
110
+ GetLedgerAgentDocument,
110
111
  GetLedgerClosingBookStructuresDocument,
111
112
  GetLedgerEntityDocument,
113
+ GetLedgerEventBlockDocument,
112
114
  GetLedgerFiscalCalendarDocument,
113
115
  GetLedgerMappedTrialBalanceDocument,
114
116
  GetLedgerMappingCoverageDocument,
@@ -125,8 +127,10 @@ import {
125
127
  GetLedgerTrialBalanceDocument,
126
128
  ListInformationBlocksDocument,
127
129
  ListLedgerAccountsDocument,
130
+ ListLedgerAgentsDocument,
128
131
  ListLedgerElementsDocument,
129
132
  ListLedgerEntitiesDocument,
133
+ ListLedgerEventBlocksDocument,
130
134
  ListLedgerMappingsDocument,
131
135
  ListLedgerPublishListsDocument,
132
136
  ListLedgerReportsDocument,
@@ -137,8 +141,10 @@ import {
137
141
  type GetInformationBlockQuery,
138
142
  type GetLedgerAccountRollupsQuery,
139
143
  type GetLedgerAccountTreeQuery,
144
+ type GetLedgerAgentQuery,
140
145
  type GetLedgerClosingBookStructuresQuery,
141
146
  type GetLedgerEntityQuery,
147
+ type GetLedgerEventBlockQuery,
142
148
  type GetLedgerFiscalCalendarQuery,
143
149
  type GetLedgerMappedTrialBalanceQuery,
144
150
  type GetLedgerMappingCoverageQuery,
@@ -155,8 +161,10 @@ import {
155
161
  type GetLedgerTrialBalanceQuery,
156
162
  type ListInformationBlocksQuery,
157
163
  type ListLedgerAccountsQuery,
164
+ type ListLedgerAgentsQuery,
158
165
  type ListLedgerElementsQuery,
159
166
  type ListLedgerEntitiesQuery,
167
+ type ListLedgerEventBlocksQuery,
160
168
  type ListLedgerMappingsQuery,
161
169
  type ListLedgerPublishListsQuery,
162
170
  type ListLedgerReportsQuery,
@@ -192,6 +200,12 @@ export type LedgerTransactionList = NonNullable<ListLedgerTransactionsQuery['tra
192
200
  export type LedgerTransactionListItem = LedgerTransactionList['transactions'][number]
193
201
  export type LedgerTransaction = NonNullable<GetLedgerTransactionQuery['transaction']>
194
202
 
203
+ export type LedgerEventBlock = ListLedgerEventBlocksQuery['eventBlocks'][number]
204
+ export type LedgerEventBlockDetail = NonNullable<GetLedgerEventBlockQuery['eventBlock']>
205
+
206
+ export type LedgerAgent = ListLedgerAgentsQuery['agents'][number]
207
+ export type LedgerAgentDetail = NonNullable<GetLedgerAgentQuery['agent']>
208
+
195
209
  export type LedgerReportingTaxonomy = NonNullable<
196
210
  GetLedgerReportingTaxonomyQuery['reportingTaxonomy']
197
211
  >
@@ -577,6 +591,98 @@ export class LedgerClient {
577
591
  )
578
592
  }
579
593
 
594
+ // ── Event Blocks (Inbox) ────────────────────────────────────────────
595
+
596
+ /**
597
+ * List captured event blocks for the inbox surface.
598
+ *
599
+ * Pass `status: 'captured'` for the default un-reviewed view. Use
600
+ * `eventType` filters like `'invoice_issued'` / `'bill_received'` to
601
+ * narrow by source class. Approve/reject via `updateEventBlock`.
602
+ */
603
+ async listEventBlocks(
604
+ graphId: string,
605
+ options?: {
606
+ eventType?: string
607
+ eventCategory?: string
608
+ status?: string
609
+ agentId?: string
610
+ source?: string
611
+ limit?: number
612
+ offset?: number
613
+ }
614
+ ): Promise<LedgerEventBlock[]> {
615
+ return this.gqlQuery(
616
+ graphId,
617
+ ListLedgerEventBlocksDocument,
618
+ {
619
+ eventType: options?.eventType ?? null,
620
+ eventCategory: options?.eventCategory ?? null,
621
+ status: options?.status ?? null,
622
+ agentId: options?.agentId ?? null,
623
+ source: options?.source ?? null,
624
+ limit: options?.limit ?? 50,
625
+ offset: options?.offset ?? 0,
626
+ },
627
+ 'List event blocks',
628
+ (data) => data.eventBlocks
629
+ )
630
+ }
631
+
632
+ /** Get event block detail (carries the metadata blob with nested entries). */
633
+ async getEventBlock(graphId: string, eventId: string): Promise<LedgerEventBlockDetail | null> {
634
+ return this.gqlQuery(
635
+ graphId,
636
+ GetLedgerEventBlockDocument,
637
+ { id: eventId },
638
+ 'Get event block',
639
+ (data) => data.eventBlock
640
+ )
641
+ }
642
+
643
+ // ── Agents (REA counterparties) ─────────────────────────────────────
644
+
645
+ /**
646
+ * List agents — REA-aligned counterparties (customers, vendors,
647
+ * employees). Defaults to active agents only; pass `isActive: null`
648
+ * to include deactivated ones.
649
+ */
650
+ async listAgents(
651
+ graphId: string,
652
+ options?: {
653
+ agentType?: string
654
+ source?: string
655
+ isActive?: boolean | null
656
+ limit?: number
657
+ offset?: number
658
+ }
659
+ ): Promise<LedgerAgent[]> {
660
+ return this.gqlQuery(
661
+ graphId,
662
+ ListLedgerAgentsDocument,
663
+ {
664
+ agentType: options?.agentType ?? null,
665
+ source: options?.source ?? null,
666
+ isActive: options?.isActive === undefined ? true : options.isActive,
667
+ limit: options?.limit ?? 50,
668
+ offset: options?.offset ?? 0,
669
+ },
670
+ 'List agents',
671
+ (data) => data.agents
672
+ )
673
+ }
674
+
675
+ /** Get agent detail by id. */
676
+ async getAgent(graphId: string, agentId: string): Promise<LedgerAgentDetail | null> {
677
+ return this.gqlQuery(
678
+ graphId,
679
+ GetLedgerAgentDocument,
680
+ { id: agentId },
681
+ 'Get agent',
682
+ (data) => data.agent
683
+ )
684
+ }
685
+
580
686
  // ── Trial Balance ──────────────────────────────────────────────────
581
687
 
582
688
  /** Trial balance by raw CoA account. */
@@ -230,10 +230,36 @@ export type ElementList = {
230
230
  pagination: PaginationInfo;
231
231
  };
232
232
  export type EntityLite = {
233
- id: Scalars['String']['output'];
233
+ id: Scalars['ID']['output'];
234
234
  name: Scalars['String']['output'];
235
235
  sourceGraphId: Maybe<Scalars['String']['output']>;
236
236
  };
237
+ export type EventBlock = {
238
+ agentId: Maybe<Scalars['String']['output']>;
239
+ amount: Maybe<Scalars['Int']['output']>;
240
+ createdAt: Scalars['DateTime']['output'];
241
+ createdBy: Scalars['String']['output'];
242
+ currency: Scalars['String']['output'];
243
+ description: Maybe<Scalars['String']['output']>;
244
+ dimensionIds: Array<Scalars['String']['output']>;
245
+ dischargesEventId: Maybe<Scalars['String']['output']>;
246
+ effectiveAt: Maybe<Scalars['DateTime']['output']>;
247
+ eventCategory: Scalars['String']['output'];
248
+ eventClass: Scalars['String']['output'];
249
+ eventType: Scalars['String']['output'];
250
+ externalId: Maybe<Scalars['String']['output']>;
251
+ externalUrl: Maybe<Scalars['String']['output']>;
252
+ id: Scalars['String']['output'];
253
+ metadata: Scalars['JSON']['output'];
254
+ obligatedByEventId: Maybe<Scalars['String']['output']>;
255
+ occurredAt: Scalars['DateTime']['output'];
256
+ replacedByEventId: Maybe<Scalars['String']['output']>;
257
+ replacesEventId: Maybe<Scalars['String']['output']>;
258
+ resourceElementId: Maybe<Scalars['String']['output']>;
259
+ resourceType: Maybe<Scalars['String']['output']>;
260
+ source: Scalars['String']['output'];
261
+ status: Scalars['String']['output'];
262
+ };
237
263
  export type FactRow = {
238
264
  depth: Scalars['Int']['output'];
239
265
  elementId: Scalars['String']['output'];
@@ -760,7 +786,7 @@ export type PortfolioBlock = {
760
786
  baseCurrency: Scalars['String']['output'];
761
787
  createdAt: Scalars['DateTime']['output'];
762
788
  description: Maybe<Scalars['String']['output']>;
763
- id: Scalars['String']['output'];
789
+ id: Scalars['ID']['output'];
764
790
  inceptionDate: Maybe<Scalars['Date']['output']>;
765
791
  name: Scalars['String']['output'];
766
792
  owner: Maybe<EntityLite>;
@@ -800,7 +826,7 @@ export type PositionBlock = {
800
826
  acquisitionDate: Maybe<Scalars['Date']['output']>;
801
827
  costBasisDollars: Scalars['Float']['output'];
802
828
  currentValueDollars: Maybe<Scalars['Float']['output']>;
803
- id: Scalars['String']['output'];
829
+ id: Scalars['ID']['output'];
804
830
  notes: Maybe<Scalars['String']['output']>;
805
831
  quantity: Scalars['Float']['output'];
806
832
  quantityType: Scalars['String']['output'];
@@ -854,6 +880,8 @@ export type Query = {
854
880
  elements: Maybe<ElementList>;
855
881
  entities: Array<LedgerEntity>;
856
882
  entity: Maybe<LedgerEntity>;
883
+ eventBlock: Maybe<EventBlock>;
884
+ eventBlocks: Array<EventBlock>;
857
885
  fiscalCalendar: Maybe<FiscalCalendar>;
858
886
  hello: Scalars['String']['output'];
859
887
  holdings: Maybe<HoldingsList>;
@@ -933,6 +961,18 @@ export type QueryElementsArgs = {
933
961
  export type QueryEntitiesArgs = {
934
962
  source?: InputMaybe<Scalars['String']['input']>;
935
963
  };
964
+ export type QueryEventBlockArgs = {
965
+ id: Scalars['String']['input'];
966
+ };
967
+ export type QueryEventBlocksArgs = {
968
+ agentId?: InputMaybe<Scalars['String']['input']>;
969
+ eventCategory?: InputMaybe<Scalars['String']['input']>;
970
+ eventType?: InputMaybe<Scalars['String']['input']>;
971
+ limit?: Scalars['Int']['input'];
972
+ offset?: Scalars['Int']['input'];
973
+ source?: InputMaybe<Scalars['String']['input']>;
974
+ status?: InputMaybe<Scalars['String']['input']>;
975
+ };
936
976
  export type QueryHoldingsArgs = {
937
977
  portfolioId: Scalars['String']['input'];
938
978
  };
@@ -1181,7 +1221,7 @@ export type SecurityList = {
1181
1221
  securities: Array<Security>;
1182
1222
  };
1183
1223
  export type SecurityLite = {
1184
- id: Scalars['String']['output'];
1224
+ id: Scalars['ID']['output'];
1185
1225
  isActive: Scalars['Boolean']['output'];
1186
1226
  issuer: Maybe<EntityLite>;
1187
1227
  name: Scalars['String']['output'];
@@ -1655,6 +1695,60 @@ export type ListLedgerAccountsQuery = {
1655
1695
  };
1656
1696
  } | null;
1657
1697
  };
1698
+ export type GetLedgerAgentQueryVariables = Exact<{
1699
+ id: Scalars['String']['input'];
1700
+ }>;
1701
+ export type GetLedgerAgentQuery = {
1702
+ agent: {
1703
+ id: string;
1704
+ agentType: string;
1705
+ name: string;
1706
+ legalName: string | null;
1707
+ taxId: string | null;
1708
+ registrationNumber: string | null;
1709
+ duns: string | null;
1710
+ lei: string | null;
1711
+ email: string | null;
1712
+ phone: string | null;
1713
+ address: any | null;
1714
+ source: string;
1715
+ externalId: string | null;
1716
+ isActive: boolean;
1717
+ is1099Recipient: boolean;
1718
+ createdAt: any | null;
1719
+ updatedAt: any | null;
1720
+ createdBy: string | null;
1721
+ } | null;
1722
+ };
1723
+ export type ListLedgerAgentsQueryVariables = Exact<{
1724
+ agentType: InputMaybe<Scalars['String']['input']>;
1725
+ source: InputMaybe<Scalars['String']['input']>;
1726
+ isActive?: InputMaybe<Scalars['Boolean']['input']>;
1727
+ limit?: Scalars['Int']['input'];
1728
+ offset?: Scalars['Int']['input'];
1729
+ }>;
1730
+ export type ListLedgerAgentsQuery = {
1731
+ agents: Array<{
1732
+ id: string;
1733
+ agentType: string;
1734
+ name: string;
1735
+ legalName: string | null;
1736
+ taxId: string | null;
1737
+ registrationNumber: string | null;
1738
+ duns: string | null;
1739
+ lei: string | null;
1740
+ email: string | null;
1741
+ phone: string | null;
1742
+ address: any | null;
1743
+ source: string;
1744
+ externalId: string | null;
1745
+ isActive: boolean;
1746
+ is1099Recipient: boolean;
1747
+ createdAt: any | null;
1748
+ updatedAt: any | null;
1749
+ createdBy: string | null;
1750
+ }>;
1751
+ };
1658
1752
  export type GetLedgerClosingBookStructuresQueryVariables = Exact<{
1659
1753
  [key: string]: never;
1660
1754
  }>;
@@ -1773,6 +1867,74 @@ export type GetLedgerEntityQuery = {
1773
1867
  updatedAt: string | null;
1774
1868
  } | null;
1775
1869
  };
1870
+ export type GetLedgerEventBlockQueryVariables = Exact<{
1871
+ id: Scalars['String']['input'];
1872
+ }>;
1873
+ export type GetLedgerEventBlockQuery = {
1874
+ eventBlock: {
1875
+ id: string;
1876
+ eventType: string;
1877
+ eventCategory: string;
1878
+ eventClass: string;
1879
+ status: string;
1880
+ occurredAt: any;
1881
+ effectiveAt: any | null;
1882
+ source: string;
1883
+ externalId: string | null;
1884
+ externalUrl: string | null;
1885
+ amount: number | null;
1886
+ currency: string;
1887
+ description: string | null;
1888
+ metadata: any;
1889
+ dimensionIds: Array<string>;
1890
+ agentId: string | null;
1891
+ resourceType: string | null;
1892
+ resourceElementId: string | null;
1893
+ replacedByEventId: string | null;
1894
+ replacesEventId: string | null;
1895
+ obligatedByEventId: string | null;
1896
+ dischargesEventId: string | null;
1897
+ createdAt: any;
1898
+ createdBy: string;
1899
+ } | null;
1900
+ };
1901
+ export type ListLedgerEventBlocksQueryVariables = Exact<{
1902
+ eventType: InputMaybe<Scalars['String']['input']>;
1903
+ eventCategory: InputMaybe<Scalars['String']['input']>;
1904
+ status: InputMaybe<Scalars['String']['input']>;
1905
+ agentId: InputMaybe<Scalars['String']['input']>;
1906
+ source: InputMaybe<Scalars['String']['input']>;
1907
+ limit?: Scalars['Int']['input'];
1908
+ offset?: Scalars['Int']['input'];
1909
+ }>;
1910
+ export type ListLedgerEventBlocksQuery = {
1911
+ eventBlocks: Array<{
1912
+ id: string;
1913
+ eventType: string;
1914
+ eventCategory: string;
1915
+ eventClass: string;
1916
+ status: string;
1917
+ occurredAt: any;
1918
+ effectiveAt: any | null;
1919
+ source: string;
1920
+ externalId: string | null;
1921
+ externalUrl: string | null;
1922
+ amount: number | null;
1923
+ currency: string;
1924
+ description: string | null;
1925
+ metadata: any;
1926
+ dimensionIds: Array<string>;
1927
+ agentId: string | null;
1928
+ resourceType: string | null;
1929
+ resourceElementId: string | null;
1930
+ replacedByEventId: string | null;
1931
+ replacesEventId: string | null;
1932
+ obligatedByEventId: string | null;
1933
+ dischargesEventId: string | null;
1934
+ createdAt: any;
1935
+ createdBy: string;
1936
+ }>;
1937
+ };
1776
1938
  export type GetLedgerFiscalCalendarQueryVariables = Exact<{
1777
1939
  [key: string]: never;
1778
1940
  }>;
@@ -2855,10 +3017,14 @@ export declare const GetInvestorSecurityDocument: DocumentNode<GetInvestorSecuri
2855
3017
  export declare const GetLedgerAccountRollupsDocument: DocumentNode<GetLedgerAccountRollupsQuery, GetLedgerAccountRollupsQueryVariables>;
2856
3018
  export declare const GetLedgerAccountTreeDocument: DocumentNode<GetLedgerAccountTreeQuery, GetLedgerAccountTreeQueryVariables>;
2857
3019
  export declare const ListLedgerAccountsDocument: DocumentNode<ListLedgerAccountsQuery, ListLedgerAccountsQueryVariables>;
3020
+ export declare const GetLedgerAgentDocument: DocumentNode<GetLedgerAgentQuery, GetLedgerAgentQueryVariables>;
3021
+ export declare const ListLedgerAgentsDocument: DocumentNode<ListLedgerAgentsQuery, ListLedgerAgentsQueryVariables>;
2858
3022
  export declare const GetLedgerClosingBookStructuresDocument: DocumentNode<GetLedgerClosingBookStructuresQuery, GetLedgerClosingBookStructuresQueryVariables>;
2859
3023
  export declare const ListLedgerElementsDocument: DocumentNode<ListLedgerElementsQuery, ListLedgerElementsQueryVariables>;
2860
3024
  export declare const ListLedgerEntitiesDocument: DocumentNode<ListLedgerEntitiesQuery, ListLedgerEntitiesQueryVariables>;
2861
3025
  export declare const GetLedgerEntityDocument: DocumentNode<GetLedgerEntityQuery, GetLedgerEntityQueryVariables>;
3026
+ export declare const GetLedgerEventBlockDocument: DocumentNode<GetLedgerEventBlockQuery, GetLedgerEventBlockQueryVariables>;
3027
+ export declare const ListLedgerEventBlocksDocument: DocumentNode<ListLedgerEventBlocksQuery, ListLedgerEventBlocksQueryVariables>;
2862
3028
  export declare const GetLedgerFiscalCalendarDocument: DocumentNode<GetLedgerFiscalCalendarQuery, GetLedgerFiscalCalendarQueryVariables>;
2863
3029
  export declare const GetInformationBlockDocument: DocumentNode<GetInformationBlockQuery, GetInformationBlockQueryVariables>;
2864
3030
  export declare const ListInformationBlocksDocument: DocumentNode<ListInformationBlocksQuery, ListInformationBlocksQueryVariables>;