@robosystems/client 0.2.48 → 0.3.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.
Files changed (190) hide show
  1. package/extensions/InvestorClient.d.ts +91 -0
  2. package/extensions/InvestorClient.js +223 -0
  3. package/extensions/InvestorClient.ts +501 -0
  4. package/extensions/LedgerClient.d.ts +213 -165
  5. package/extensions/LedgerClient.js +315 -393
  6. package/extensions/LedgerClient.ts +887 -564
  7. package/extensions/ReportClient.d.ts +77 -115
  8. package/extensions/ReportClient.js +124 -211
  9. package/extensions/ReportClient.ts +298 -358
  10. package/extensions/config.js +1 -1
  11. package/extensions/config.ts +1 -1
  12. package/extensions/graphql/client.d.ts +46 -0
  13. package/extensions/graphql/client.js +75 -0
  14. package/extensions/graphql/client.ts +82 -0
  15. package/extensions/graphql/generated/graphql.d.ts +1786 -0
  16. package/extensions/graphql/generated/graphql.js +2671 -0
  17. package/extensions/graphql/generated/graphql.ts +4491 -0
  18. package/extensions/graphql/queries/investor/holdings.d.ts +8 -0
  19. package/extensions/graphql/queries/investor/holdings.js +36 -0
  20. package/extensions/graphql/queries/investor/holdings.ts +34 -0
  21. package/extensions/graphql/queries/investor/portfolio.d.ts +4 -0
  22. package/extensions/graphql/queries/investor/portfolio.js +21 -0
  23. package/extensions/graphql/queries/investor/portfolio.ts +19 -0
  24. package/extensions/graphql/queries/investor/portfolios.d.ts +4 -0
  25. package/extensions/graphql/queries/investor/portfolios.js +29 -0
  26. package/extensions/graphql/queries/investor/portfolios.ts +27 -0
  27. package/extensions/graphql/queries/investor/position.d.ts +4 -0
  28. package/extensions/graphql/queries/investor/position.js +33 -0
  29. package/extensions/graphql/queries/investor/position.ts +31 -0
  30. package/extensions/graphql/queries/investor/positions.d.ts +8 -0
  31. package/extensions/graphql/queries/investor/positions.js +57 -0
  32. package/extensions/graphql/queries/investor/positions.ts +55 -0
  33. package/extensions/graphql/queries/investor/securities.d.ts +8 -0
  34. package/extensions/graphql/queries/investor/securities.js +50 -0
  35. package/extensions/graphql/queries/investor/securities.ts +48 -0
  36. package/extensions/graphql/queries/investor/security.d.ts +4 -0
  37. package/extensions/graphql/queries/investor/security.js +26 -0
  38. package/extensions/graphql/queries/investor/security.ts +24 -0
  39. package/extensions/graphql/queries/ledger/accountRollups.d.ts +7 -0
  40. package/extensions/graphql/queries/ledger/accountRollups.js +36 -0
  41. package/extensions/graphql/queries/ledger/accountRollups.ts +34 -0
  42. package/extensions/graphql/queries/ledger/accountTree.d.ts +11 -0
  43. package/extensions/graphql/queries/ledger/accountTree.js +61 -0
  44. package/extensions/graphql/queries/ledger/accountTree.ts +59 -0
  45. package/extensions/graphql/queries/ledger/accounts.d.ts +8 -0
  46. package/extensions/graphql/queries/ledger/accounts.js +45 -0
  47. package/extensions/graphql/queries/ledger/accounts.ts +43 -0
  48. package/extensions/graphql/queries/ledger/closingBookStructures.d.ts +6 -0
  49. package/extensions/graphql/queries/ledger/closingBookStructures.js +27 -0
  50. package/extensions/graphql/queries/ledger/closingBookStructures.ts +25 -0
  51. package/extensions/graphql/queries/ledger/elements.d.ts +6 -0
  52. package/extensions/graphql/queries/ledger/elements.js +56 -0
  53. package/extensions/graphql/queries/ledger/elements.ts +54 -0
  54. package/extensions/graphql/queries/ledger/entities.d.ts +7 -0
  55. package/extensions/graphql/queries/ledger/entities.js +31 -0
  56. package/extensions/graphql/queries/ledger/entities.ts +29 -0
  57. package/extensions/graphql/queries/ledger/entity.d.ts +14 -0
  58. package/extensions/graphql/queries/ledger/entity.js +55 -0
  59. package/extensions/graphql/queries/ledger/entity.ts +54 -0
  60. package/extensions/graphql/queries/ledger/fiscalCalendar.d.ts +8 -0
  61. package/extensions/graphql/queries/ledger/fiscalCalendar.js +35 -0
  62. package/extensions/graphql/queries/ledger/fiscalCalendar.ts +33 -0
  63. package/extensions/graphql/queries/ledger/mappedTrialBalance.d.ts +9 -0
  64. package/extensions/graphql/queries/ledger/mappedTrialBalance.js +29 -0
  65. package/extensions/graphql/queries/ledger/mappedTrialBalance.ts +27 -0
  66. package/extensions/graphql/queries/ledger/mapping.d.ts +5 -0
  67. package/extensions/graphql/queries/ledger/mapping.js +35 -0
  68. package/extensions/graphql/queries/ledger/mapping.ts +33 -0
  69. package/extensions/graphql/queries/ledger/mappingCoverage.d.ts +5 -0
  70. package/extensions/graphql/queries/ledger/mappingCoverage.js +22 -0
  71. package/extensions/graphql/queries/ledger/mappingCoverage.ts +20 -0
  72. package/extensions/graphql/queries/ledger/mappings.d.ts +6 -0
  73. package/extensions/graphql/queries/ledger/mappings.js +23 -0
  74. package/extensions/graphql/queries/ledger/mappings.ts +21 -0
  75. package/extensions/graphql/queries/ledger/periodCloseStatus.d.ts +6 -0
  76. package/extensions/graphql/queries/ledger/periodCloseStatus.js +29 -0
  77. package/extensions/graphql/queries/ledger/periodCloseStatus.ts +27 -0
  78. package/extensions/graphql/queries/ledger/periodDrafts.d.ts +8 -0
  79. package/extensions/graphql/queries/ledger/periodDrafts.js +45 -0
  80. package/extensions/graphql/queries/ledger/periodDrafts.ts +43 -0
  81. package/extensions/graphql/queries/ledger/publishList.d.ts +5 -0
  82. package/extensions/graphql/queries/ledger/publishList.js +29 -0
  83. package/extensions/graphql/queries/ledger/publishList.ts +27 -0
  84. package/extensions/graphql/queries/ledger/publishLists.d.ts +5 -0
  85. package/extensions/graphql/queries/ledger/publishLists.js +29 -0
  86. package/extensions/graphql/queries/ledger/publishLists.ts +27 -0
  87. package/extensions/graphql/queries/ledger/report.d.ts +5 -0
  88. package/extensions/graphql/queries/ledger/report.js +40 -0
  89. package/extensions/graphql/queries/ledger/report.ts +38 -0
  90. package/extensions/graphql/queries/ledger/reportingTaxonomy.d.ts +6 -0
  91. package/extensions/graphql/queries/ledger/reportingTaxonomy.js +27 -0
  92. package/extensions/graphql/queries/ledger/reportingTaxonomy.ts +25 -0
  93. package/extensions/graphql/queries/ledger/reports.d.ts +8 -0
  94. package/extensions/graphql/queries/ledger/reports.js +45 -0
  95. package/extensions/graphql/queries/ledger/reports.ts +43 -0
  96. package/extensions/graphql/queries/ledger/scheduleFacts.d.ts +7 -0
  97. package/extensions/graphql/queries/ledger/scheduleFacts.js +24 -0
  98. package/extensions/graphql/queries/ledger/scheduleFacts.ts +22 -0
  99. package/extensions/graphql/queries/ledger/schedules.d.ts +6 -0
  100. package/extensions/graphql/queries/ledger/schedules.js +24 -0
  101. package/extensions/graphql/queries/ledger/schedules.ts +22 -0
  102. package/extensions/graphql/queries/ledger/statement.d.ts +9 -0
  103. package/extensions/graphql/queries/ledger/statement.js +43 -0
  104. package/extensions/graphql/queries/ledger/statement.ts +41 -0
  105. package/extensions/graphql/queries/ledger/structures.d.ts +5 -0
  106. package/extensions/graphql/queries/ledger/structures.js +22 -0
  107. package/extensions/graphql/queries/ledger/structures.ts +20 -0
  108. package/extensions/graphql/queries/ledger/summary.d.ts +7 -0
  109. package/extensions/graphql/queries/ledger/summary.js +25 -0
  110. package/extensions/graphql/queries/ledger/summary.ts +23 -0
  111. package/extensions/graphql/queries/ledger/taxonomies.d.ts +5 -0
  112. package/extensions/graphql/queries/ledger/taxonomies.js +28 -0
  113. package/extensions/graphql/queries/ledger/taxonomies.ts +26 -0
  114. package/extensions/graphql/queries/ledger/transaction.d.ts +6 -0
  115. package/extensions/graphql/queries/ledger/transaction.js +49 -0
  116. package/extensions/graphql/queries/ledger/transaction.ts +47 -0
  117. package/extensions/graphql/queries/ledger/transactions.d.ts +7 -0
  118. package/extensions/graphql/queries/ledger/transactions.js +49 -0
  119. package/extensions/graphql/queries/ledger/transactions.ts +47 -0
  120. package/extensions/graphql/queries/ledger/trialBalance.d.ts +7 -0
  121. package/extensions/graphql/queries/ledger/trialBalance.js +28 -0
  122. package/extensions/graphql/queries/ledger/trialBalance.ts +26 -0
  123. package/extensions/graphql/queries/ledger/unmappedElements.d.ts +8 -0
  124. package/extensions/graphql/queries/ledger/unmappedElements.js +29 -0
  125. package/extensions/graphql/queries/ledger/unmappedElements.ts +27 -0
  126. package/extensions/hooks.d.ts +1 -1
  127. package/extensions/index.d.ts +5 -1
  128. package/extensions/index.js +13 -1
  129. package/extensions/index.ts +14 -0
  130. package/index.ts +2 -2
  131. package/package.json +14 -5
  132. package/sdk/index.d.ts +2 -2
  133. package/sdk/index.js +38 -65
  134. package/sdk/index.ts +2 -2
  135. package/sdk/sdk.gen.d.ts +101 -220
  136. package/sdk/sdk.gen.js +251 -445
  137. package/sdk/sdk.gen.ts +216 -409
  138. package/sdk/types.gen.d.ts +4586 -7045
  139. package/sdk/types.gen.ts +4702 -7334
  140. package/sdk.gen.d.ts +101 -220
  141. package/sdk.gen.js +251 -445
  142. package/sdk.gen.ts +216 -409
  143. package/types.gen.d.ts +4586 -7045
  144. package/types.gen.ts +4702 -7334
  145. package/extensions/AgentClient.test.ts +0 -403
  146. package/extensions/LedgerClient.test.ts +0 -1138
  147. package/extensions/OperationClient.test.ts +0 -365
  148. package/extensions/QueryClient.test.ts +0 -432
  149. package/extensions/ReportClient.test.ts +0 -828
  150. package/extensions/SSEClient.test.ts +0 -375
  151. package/extensions/config.test.ts +0 -199
  152. package/extensions/hooks.test.ts +0 -373
  153. package/extensions/index.test.ts +0 -420
  154. package/sdk-extensions/AgentClient.d.ts +0 -82
  155. package/sdk-extensions/AgentClient.js +0 -218
  156. package/sdk-extensions/AgentClient.test.ts +0 -403
  157. package/sdk-extensions/AgentClient.ts +0 -321
  158. package/sdk-extensions/LedgerClient.d.ts +0 -242
  159. package/sdk-extensions/LedgerClient.js +0 -496
  160. package/sdk-extensions/LedgerClient.test.ts +0 -1138
  161. package/sdk-extensions/LedgerClient.ts +0 -800
  162. package/sdk-extensions/OperationClient.d.ts +0 -65
  163. package/sdk-extensions/OperationClient.js +0 -251
  164. package/sdk-extensions/OperationClient.test.ts +0 -365
  165. package/sdk-extensions/OperationClient.ts +0 -324
  166. package/sdk-extensions/QueryClient.d.ts +0 -52
  167. package/sdk-extensions/QueryClient.js +0 -313
  168. package/sdk-extensions/QueryClient.test.ts +0 -432
  169. package/sdk-extensions/QueryClient.ts +0 -420
  170. package/sdk-extensions/README.md +0 -901
  171. package/sdk-extensions/ReportClient.d.ts +0 -151
  172. package/sdk-extensions/ReportClient.js +0 -278
  173. package/sdk-extensions/ReportClient.test.ts +0 -828
  174. package/sdk-extensions/ReportClient.ts +0 -486
  175. package/sdk-extensions/SSEClient.d.ts +0 -62
  176. package/sdk-extensions/SSEClient.js +0 -154
  177. package/sdk-extensions/SSEClient.test.ts +0 -375
  178. package/sdk-extensions/SSEClient.ts +0 -210
  179. package/sdk-extensions/config.d.ts +0 -57
  180. package/sdk-extensions/config.js +0 -152
  181. package/sdk-extensions/config.test.ts +0 -199
  182. package/sdk-extensions/config.ts +0 -175
  183. package/sdk-extensions/hooks.d.ts +0 -110
  184. package/sdk-extensions/hooks.js +0 -384
  185. package/sdk-extensions/hooks.test.ts +0 -373
  186. package/sdk-extensions/hooks.ts +0 -459
  187. package/sdk-extensions/index.d.ts +0 -63
  188. package/sdk-extensions/index.js +0 -164
  189. package/sdk-extensions/index.test.ts +0 -420
  190. package/sdk-extensions/index.ts +0 -203
@@ -0,0 +1,1786 @@
1
+ import type { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';
2
+ export type Maybe<T> = T | null;
3
+ export type InputMaybe<T> = Maybe<T>;
4
+ export type Exact<T extends {
5
+ [key: string]: unknown;
6
+ }> = {
7
+ [K in keyof T]: T[K];
8
+ };
9
+ export type MakeOptional<T, K extends keyof T> = Omit<T, K> & {
10
+ [SubKey in K]?: Maybe<T[SubKey]>;
11
+ };
12
+ export type MakeMaybe<T, K extends keyof T> = Omit<T, K> & {
13
+ [SubKey in K]: Maybe<T[SubKey]>;
14
+ };
15
+ export type MakeEmpty<T extends {
16
+ [key: string]: unknown;
17
+ }, K extends keyof T> = {
18
+ [_ in K]?: never;
19
+ };
20
+ export type Incremental<T> = T | {
21
+ [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never;
22
+ };
23
+ /** All built-in and custom scalars, mapped to their actual values */
24
+ export type Scalars = {
25
+ ID: {
26
+ input: string;
27
+ output: string;
28
+ };
29
+ String: {
30
+ input: string;
31
+ output: string;
32
+ };
33
+ Boolean: {
34
+ input: boolean;
35
+ output: boolean;
36
+ };
37
+ Int: {
38
+ input: number;
39
+ output: number;
40
+ };
41
+ Float: {
42
+ input: number;
43
+ output: number;
44
+ };
45
+ Date: {
46
+ input: any;
47
+ output: any;
48
+ };
49
+ DateTime: {
50
+ input: any;
51
+ output: any;
52
+ };
53
+ JSON: {
54
+ input: any;
55
+ output: any;
56
+ };
57
+ };
58
+ export type Account = {
59
+ accountType: Maybe<Scalars['String']['output']>;
60
+ balanceType: Scalars['String']['output'];
61
+ classification: Scalars['String']['output'];
62
+ code: Maybe<Scalars['String']['output']>;
63
+ currency: Scalars['String']['output'];
64
+ depth: Scalars['Int']['output'];
65
+ description: Maybe<Scalars['String']['output']>;
66
+ externalId: Maybe<Scalars['String']['output']>;
67
+ externalSource: Maybe<Scalars['String']['output']>;
68
+ id: Scalars['String']['output'];
69
+ isActive: Scalars['Boolean']['output'];
70
+ isPlaceholder: Scalars['Boolean']['output'];
71
+ name: Scalars['String']['output'];
72
+ parentId: Maybe<Scalars['String']['output']>;
73
+ subClassification: Maybe<Scalars['String']['output']>;
74
+ };
75
+ export type AccountList = {
76
+ accounts: Array<Account>;
77
+ pagination: PaginationInfo;
78
+ };
79
+ export type AccountRollupGroup = {
80
+ accounts: Array<AccountRollupRow>;
81
+ balanceType: Scalars['String']['output'];
82
+ classification: Scalars['String']['output'];
83
+ reportingElementId: Scalars['String']['output'];
84
+ reportingName: Scalars['String']['output'];
85
+ reportingQname: Scalars['String']['output'];
86
+ total: Scalars['Float']['output'];
87
+ };
88
+ export type AccountRollupRow = {
89
+ accountCode: Maybe<Scalars['String']['output']>;
90
+ accountName: Scalars['String']['output'];
91
+ elementId: Scalars['String']['output'];
92
+ netBalance: Scalars['Float']['output'];
93
+ totalCredits: Scalars['Float']['output'];
94
+ totalDebits: Scalars['Float']['output'];
95
+ };
96
+ export type AccountRollups = {
97
+ groups: Array<AccountRollupGroup>;
98
+ mappingId: Scalars['String']['output'];
99
+ mappingName: Scalars['String']['output'];
100
+ totalMapped: Scalars['Int']['output'];
101
+ totalUnmapped: Scalars['Int']['output'];
102
+ };
103
+ export type AccountTree = {
104
+ roots: Array<AccountTreeNode>;
105
+ totalAccounts: Scalars['Int']['output'];
106
+ };
107
+ export type AccountTreeNode = {
108
+ accountType: Maybe<Scalars['String']['output']>;
109
+ balanceType: Scalars['String']['output'];
110
+ children: Array<AccountTreeNode>;
111
+ classification: Scalars['String']['output'];
112
+ code: Maybe<Scalars['String']['output']>;
113
+ depth: Scalars['Int']['output'];
114
+ id: Scalars['ID']['output'];
115
+ isActive: Scalars['Boolean']['output'];
116
+ name: Scalars['String']['output'];
117
+ };
118
+ export type Association = {
119
+ approvedBy: Maybe<Scalars['String']['output']>;
120
+ associationType: Scalars['String']['output'];
121
+ confidence: Maybe<Scalars['Float']['output']>;
122
+ fromElementId: Scalars['String']['output'];
123
+ fromElementName: Maybe<Scalars['String']['output']>;
124
+ fromElementQname: Maybe<Scalars['String']['output']>;
125
+ id: Scalars['String']['output'];
126
+ orderValue: Maybe<Scalars['Float']['output']>;
127
+ structureId: Scalars['String']['output'];
128
+ suggestedBy: Maybe<Scalars['String']['output']>;
129
+ toElementId: Scalars['String']['output'];
130
+ toElementName: Maybe<Scalars['String']['output']>;
131
+ toElementQname: Maybe<Scalars['String']['output']>;
132
+ weight: Maybe<Scalars['Float']['output']>;
133
+ };
134
+ export type ClosingBookCategory = {
135
+ items: Array<ClosingBookItem>;
136
+ label: Scalars['String']['output'];
137
+ };
138
+ export type ClosingBookItem = {
139
+ id: Scalars['String']['output'];
140
+ itemType: Scalars['String']['output'];
141
+ name: Scalars['String']['output'];
142
+ reportId: Maybe<Scalars['String']['output']>;
143
+ status: Maybe<Scalars['String']['output']>;
144
+ structureType: Maybe<Scalars['String']['output']>;
145
+ };
146
+ export type ClosingBookStructures = {
147
+ categories: Array<ClosingBookCategory>;
148
+ hasData: Scalars['Boolean']['output'];
149
+ };
150
+ export type DraftEntry = {
151
+ /** True if total_debit == total_credit */
152
+ balanced: Scalars['Boolean']['output'];
153
+ entryId: Scalars['String']['output'];
154
+ lineItems: Array<DraftLineItem>;
155
+ memo: Maybe<Scalars['String']['output']>;
156
+ postingDate: Scalars['Date']['output'];
157
+ /** Where the entry came from: 'ai_generated', 'manual_entry', etc. */
158
+ provenance: Maybe<Scalars['String']['output']>;
159
+ /** Schedule structure that generated this entry (if any) */
160
+ sourceStructureId: Maybe<Scalars['String']['output']>;
161
+ /** Human-readable name of the source schedule */
162
+ sourceStructureName: Maybe<Scalars['String']['output']>;
163
+ /** Sum of credit amounts in cents */
164
+ totalCredit: Scalars['Int']['output'];
165
+ /** Sum of debit amounts in cents */
166
+ totalDebit: Scalars['Int']['output'];
167
+ /** Entry type (e.g., 'closing', 'adjusting') */
168
+ type: Scalars['String']['output'];
169
+ };
170
+ export type DraftLineItem = {
171
+ /** Credit amount in cents */
172
+ creditAmount: Scalars['Int']['output'];
173
+ /** Debit amount in cents */
174
+ debitAmount: Scalars['Int']['output'];
175
+ description: Maybe<Scalars['String']['output']>;
176
+ elementCode: Maybe<Scalars['String']['output']>;
177
+ elementId: Scalars['String']['output'];
178
+ elementName: Scalars['String']['output'];
179
+ lineItemId: Scalars['String']['output'];
180
+ };
181
+ export type Element = {
182
+ balanceType: Scalars['String']['output'];
183
+ classification: Scalars['String']['output'];
184
+ code: Maybe<Scalars['String']['output']>;
185
+ depth: Scalars['Int']['output'];
186
+ description: Maybe<Scalars['String']['output']>;
187
+ elementType: Scalars['String']['output'];
188
+ externalId: Maybe<Scalars['String']['output']>;
189
+ externalSource: Maybe<Scalars['String']['output']>;
190
+ id: Scalars['String']['output'];
191
+ isAbstract: Scalars['Boolean']['output'];
192
+ isActive: Scalars['Boolean']['output'];
193
+ name: Scalars['String']['output'];
194
+ namespace: Maybe<Scalars['String']['output']>;
195
+ parentId: Maybe<Scalars['String']['output']>;
196
+ periodType: Scalars['String']['output'];
197
+ qname: Maybe<Scalars['String']['output']>;
198
+ source: Scalars['String']['output'];
199
+ subClassification: Maybe<Scalars['String']['output']>;
200
+ taxonomyId: Maybe<Scalars['String']['output']>;
201
+ };
202
+ export type ElementList = {
203
+ elements: Array<Element>;
204
+ pagination: PaginationInfo;
205
+ };
206
+ export type FactRow = {
207
+ classification: Scalars['String']['output'];
208
+ depth: Scalars['Int']['output'];
209
+ elementId: Scalars['String']['output'];
210
+ elementName: Scalars['String']['output'];
211
+ elementQname: Scalars['String']['output'];
212
+ isSubtotal: Scalars['Boolean']['output'];
213
+ values: Array<Maybe<Scalars['Float']['output']>>;
214
+ };
215
+ export type FiscalCalendar = {
216
+ /** Structured blocker codes when closeable_now is False: 'sequence_violation', 'period_incomplete', 'sync_stale', 'calendar_not_initialized', 'period_already_closed' */
217
+ blockers: Array<Scalars['String']['output']>;
218
+ /** Ordered list of periods that a close run would process */
219
+ catchUpSequence: Array<Scalars['String']['output']>;
220
+ /** Target period the user wants closed through (YYYY-MM) */
221
+ closeTarget: Maybe<Scalars['String']['output']>;
222
+ /** Whether the next period in the catch-up sequence passes all closeable gates */
223
+ closeableNow: Scalars['Boolean']['output'];
224
+ /** Latest closed period (YYYY-MM), or null if nothing closed */
225
+ closedThrough: Maybe<Scalars['String']['output']>;
226
+ fiscalYearStartMonth: Scalars['Int']['output'];
227
+ /** Number of periods between closed_through and close_target (inclusive of close_target). 0 means caught up. */
228
+ gapPeriods: Scalars['Int']['output'];
229
+ graphId: Scalars['String']['output'];
230
+ initializedAt: Maybe<Scalars['DateTime']['output']>;
231
+ lastCloseAt: Maybe<Scalars['DateTime']['output']>;
232
+ /** Most recent QB sync timestamp (if connected) */
233
+ lastSyncAt: Maybe<Scalars['DateTime']['output']>;
234
+ /** Fiscal period rows for this graph */
235
+ periods: Array<FiscalPeriodSummary>;
236
+ };
237
+ export type FiscalPeriodSummary = {
238
+ closedAt: Maybe<Scalars['DateTime']['output']>;
239
+ endDate: Scalars['Date']['output'];
240
+ /** Period name (YYYY-MM) */
241
+ name: Scalars['String']['output'];
242
+ startDate: Scalars['Date']['output'];
243
+ /** 'open' | 'closing' | 'closed' */
244
+ status: Scalars['String']['output'];
245
+ };
246
+ export type Holding = {
247
+ entityId: Scalars['String']['output'];
248
+ entityName: Scalars['String']['output'];
249
+ positionCount: Scalars['Int']['output'];
250
+ securities: Array<HoldingSecuritySummary>;
251
+ sourceGraphId: Maybe<Scalars['String']['output']>;
252
+ totalCostBasisDollars: Scalars['Float']['output'];
253
+ totalCurrentValueDollars: Maybe<Scalars['Float']['output']>;
254
+ };
255
+ export type HoldingSecuritySummary = {
256
+ costBasisDollars: Scalars['Float']['output'];
257
+ currentValueDollars: Maybe<Scalars['Float']['output']>;
258
+ quantity: Scalars['Float']['output'];
259
+ quantityType: Scalars['String']['output'];
260
+ securityId: Scalars['String']['output'];
261
+ securityName: Scalars['String']['output'];
262
+ securityType: Scalars['String']['output'];
263
+ };
264
+ export type HoldingsList = {
265
+ holdings: Array<Holding>;
266
+ totalEntities: Scalars['Int']['output'];
267
+ totalPositions: Scalars['Int']['output'];
268
+ };
269
+ export type LedgerEntity = {
270
+ addressCity: Maybe<Scalars['String']['output']>;
271
+ addressCountry: Maybe<Scalars['String']['output']>;
272
+ addressLine1: Maybe<Scalars['String']['output']>;
273
+ addressPostalCode: Maybe<Scalars['String']['output']>;
274
+ addressState: Maybe<Scalars['String']['output']>;
275
+ category: Maybe<Scalars['String']['output']>;
276
+ cik: Maybe<Scalars['String']['output']>;
277
+ connectionId: Maybe<Scalars['String']['output']>;
278
+ createdAt: Maybe<Scalars['String']['output']>;
279
+ entityType: Maybe<Scalars['String']['output']>;
280
+ exchange: Maybe<Scalars['String']['output']>;
281
+ fiscalYearEnd: Maybe<Scalars['String']['output']>;
282
+ id: Scalars['String']['output'];
283
+ industry: Maybe<Scalars['String']['output']>;
284
+ isParent: Scalars['Boolean']['output'];
285
+ legalName: Maybe<Scalars['String']['output']>;
286
+ lei: Maybe<Scalars['String']['output']>;
287
+ name: Scalars['String']['output'];
288
+ parentEntityId: Maybe<Scalars['String']['output']>;
289
+ phone: Maybe<Scalars['String']['output']>;
290
+ sic: Maybe<Scalars['String']['output']>;
291
+ sicDescription: Maybe<Scalars['String']['output']>;
292
+ source: Scalars['String']['output'];
293
+ sourceGraphId: Maybe<Scalars['String']['output']>;
294
+ sourceId: Maybe<Scalars['String']['output']>;
295
+ stateOfIncorporation: Maybe<Scalars['String']['output']>;
296
+ status: Scalars['String']['output'];
297
+ taxId: Maybe<Scalars['String']['output']>;
298
+ ticker: Maybe<Scalars['String']['output']>;
299
+ updatedAt: Maybe<Scalars['String']['output']>;
300
+ uri: Maybe<Scalars['String']['output']>;
301
+ website: Maybe<Scalars['String']['output']>;
302
+ };
303
+ export type LedgerEntry = {
304
+ id: Scalars['String']['output'];
305
+ lineItems: Array<LedgerLineItem>;
306
+ memo: Maybe<Scalars['String']['output']>;
307
+ number: Maybe<Scalars['String']['output']>;
308
+ postedAt: Maybe<Scalars['DateTime']['output']>;
309
+ postingDate: Scalars['Date']['output'];
310
+ status: Scalars['String']['output'];
311
+ type: Scalars['String']['output'];
312
+ };
313
+ export type LedgerLineItem = {
314
+ accountCode: Maybe<Scalars['String']['output']>;
315
+ accountId: Scalars['String']['output'];
316
+ accountName: Maybe<Scalars['String']['output']>;
317
+ creditAmount: Scalars['Float']['output'];
318
+ debitAmount: Scalars['Float']['output'];
319
+ description: Maybe<Scalars['String']['output']>;
320
+ id: Scalars['String']['output'];
321
+ lineOrder: Scalars['Int']['output'];
322
+ };
323
+ export type LedgerSummary = {
324
+ accountCount: Scalars['Int']['output'];
325
+ connectionCount: Scalars['Int']['output'];
326
+ earliestTransactionDate: Maybe<Scalars['Date']['output']>;
327
+ entryCount: Scalars['Int']['output'];
328
+ graphId: Scalars['String']['output'];
329
+ lastSyncAt: Maybe<Scalars['DateTime']['output']>;
330
+ latestTransactionDate: Maybe<Scalars['Date']['output']>;
331
+ lineItemCount: Scalars['Int']['output'];
332
+ transactionCount: Scalars['Int']['output'];
333
+ };
334
+ export type LedgerTransactionDetail = {
335
+ amount: Scalars['Float']['output'];
336
+ category: Maybe<Scalars['String']['output']>;
337
+ currency: Scalars['String']['output'];
338
+ date: Scalars['Date']['output'];
339
+ description: Maybe<Scalars['String']['output']>;
340
+ dueDate: Maybe<Scalars['Date']['output']>;
341
+ entries: Array<LedgerEntry>;
342
+ id: Scalars['String']['output'];
343
+ merchantName: Maybe<Scalars['String']['output']>;
344
+ number: Maybe<Scalars['String']['output']>;
345
+ postedAt: Maybe<Scalars['DateTime']['output']>;
346
+ referenceNumber: Maybe<Scalars['String']['output']>;
347
+ source: Scalars['String']['output'];
348
+ sourceId: Maybe<Scalars['String']['output']>;
349
+ status: Scalars['String']['output'];
350
+ type: Scalars['String']['output'];
351
+ };
352
+ export type LedgerTransactionList = {
353
+ pagination: PaginationInfo;
354
+ transactions: Array<LedgerTransactionSummary>;
355
+ };
356
+ export type LedgerTransactionSummary = {
357
+ amount: Scalars['Float']['output'];
358
+ category: Maybe<Scalars['String']['output']>;
359
+ currency: Scalars['String']['output'];
360
+ date: Scalars['Date']['output'];
361
+ description: Maybe<Scalars['String']['output']>;
362
+ dueDate: Maybe<Scalars['Date']['output']>;
363
+ id: Scalars['String']['output'];
364
+ merchantName: Maybe<Scalars['String']['output']>;
365
+ number: Maybe<Scalars['String']['output']>;
366
+ referenceNumber: Maybe<Scalars['String']['output']>;
367
+ source: Scalars['String']['output'];
368
+ status: Scalars['String']['output'];
369
+ type: Scalars['String']['output'];
370
+ };
371
+ export type MappedTrialBalance = {
372
+ mappingId: Scalars['String']['output'];
373
+ rows: Array<MappedTrialBalanceRow>;
374
+ };
375
+ export type MappedTrialBalanceRow = {
376
+ balanceType: Maybe<Scalars['String']['output']>;
377
+ classification: Maybe<Scalars['String']['output']>;
378
+ netBalance: Scalars['Float']['output'];
379
+ qname: Scalars['String']['output'];
380
+ reportingElementId: Scalars['String']['output'];
381
+ reportingName: Scalars['String']['output'];
382
+ totalCredits: Scalars['Float']['output'];
383
+ totalDebits: Scalars['Float']['output'];
384
+ };
385
+ export type MappingCoverage = {
386
+ coveragePercent: Scalars['Float']['output'];
387
+ highConfidence: Scalars['Int']['output'];
388
+ lowConfidence: Scalars['Int']['output'];
389
+ mappedCount: Scalars['Int']['output'];
390
+ mappingId: Scalars['String']['output'];
391
+ mediumConfidence: Scalars['Int']['output'];
392
+ totalCoaElements: Scalars['Int']['output'];
393
+ unmappedCount: Scalars['Int']['output'];
394
+ };
395
+ export type MappingDetail = {
396
+ associations: Array<Association>;
397
+ id: Scalars['String']['output'];
398
+ name: Scalars['String']['output'];
399
+ structureType: Scalars['String']['output'];
400
+ taxonomyId: Scalars['String']['output'];
401
+ totalAssociations: Scalars['Int']['output'];
402
+ };
403
+ export type PaginationInfo = {
404
+ /** Whether more items are available */
405
+ hasMore: Scalars['Boolean']['output'];
406
+ /** Maximum number of items returned in this response */
407
+ limit: Scalars['Int']['output'];
408
+ /** Number of items skipped */
409
+ offset: Scalars['Int']['output'];
410
+ /** Total number of items available */
411
+ total: Scalars['Int']['output'];
412
+ };
413
+ export type PeriodCloseItem = {
414
+ amount: Scalars['Float']['output'];
415
+ entryId: Maybe<Scalars['String']['output']>;
416
+ reversalEntryId: Maybe<Scalars['String']['output']>;
417
+ reversalStatus: Maybe<Scalars['String']['output']>;
418
+ status: Scalars['String']['output'];
419
+ structureId: Scalars['String']['output'];
420
+ structureName: Scalars['String']['output'];
421
+ };
422
+ export type PeriodCloseStatus = {
423
+ fiscalPeriodEnd: Scalars['Date']['output'];
424
+ fiscalPeriodStart: Scalars['Date']['output'];
425
+ periodStatus: Scalars['String']['output'];
426
+ schedules: Array<PeriodCloseItem>;
427
+ totalDraft: Scalars['Int']['output'];
428
+ totalPosted: Scalars['Int']['output'];
429
+ };
430
+ export type PeriodDrafts = {
431
+ /** True if every draft entry has debit == credit */
432
+ allBalanced: Scalars['Boolean']['output'];
433
+ draftCount: Scalars['Int']['output'];
434
+ drafts: Array<DraftEntry>;
435
+ /** YYYY-MM period name */
436
+ period: Scalars['String']['output'];
437
+ periodEnd: Scalars['Date']['output'];
438
+ periodStart: Scalars['Date']['output'];
439
+ /** Sum across all drafts, in cents */
440
+ totalCredit: Scalars['Int']['output'];
441
+ /** Sum across all drafts, in cents */
442
+ totalDebit: Scalars['Int']['output'];
443
+ };
444
+ export type PeriodSpec = {
445
+ end: Scalars['Date']['output'];
446
+ label: Scalars['String']['output'];
447
+ start: Scalars['Date']['output'];
448
+ };
449
+ export type Portfolio = {
450
+ baseCurrency: Scalars['String']['output'];
451
+ createdAt: Scalars['DateTime']['output'];
452
+ description: Maybe<Scalars['String']['output']>;
453
+ id: Scalars['String']['output'];
454
+ inceptionDate: Maybe<Scalars['Date']['output']>;
455
+ name: Scalars['String']['output'];
456
+ strategy: Maybe<Scalars['String']['output']>;
457
+ updatedAt: Scalars['DateTime']['output'];
458
+ };
459
+ export type PortfolioList = {
460
+ pagination: PaginationInfo;
461
+ portfolios: Array<Portfolio>;
462
+ };
463
+ export type Position = {
464
+ acquisitionDate: Maybe<Scalars['Date']['output']>;
465
+ costBasis: Scalars['Int']['output'];
466
+ costBasisDollars: Scalars['Float']['output'];
467
+ createdAt: Scalars['DateTime']['output'];
468
+ currency: Scalars['String']['output'];
469
+ currentValue: Maybe<Scalars['Int']['output']>;
470
+ currentValueDollars: Maybe<Scalars['Float']['output']>;
471
+ dispositionDate: Maybe<Scalars['Date']['output']>;
472
+ entityName: Maybe<Scalars['String']['output']>;
473
+ id: Scalars['String']['output'];
474
+ notes: Maybe<Scalars['String']['output']>;
475
+ portfolioId: Scalars['String']['output'];
476
+ quantity: Scalars['Float']['output'];
477
+ quantityType: Scalars['String']['output'];
478
+ securityId: Scalars['String']['output'];
479
+ securityName: Maybe<Scalars['String']['output']>;
480
+ status: Scalars['String']['output'];
481
+ updatedAt: Scalars['DateTime']['output'];
482
+ valuationDate: Maybe<Scalars['Date']['output']>;
483
+ valuationSource: Maybe<Scalars['String']['output']>;
484
+ };
485
+ export type PositionList = {
486
+ pagination: PaginationInfo;
487
+ positions: Array<Position>;
488
+ };
489
+ export type PublishList = {
490
+ createdAt: Scalars['DateTime']['output'];
491
+ createdBy: Scalars['String']['output'];
492
+ description: Maybe<Scalars['String']['output']>;
493
+ id: Scalars['String']['output'];
494
+ memberCount: Scalars['Int']['output'];
495
+ name: Scalars['String']['output'];
496
+ updatedAt: Scalars['DateTime']['output'];
497
+ };
498
+ export type PublishListDetail = {
499
+ createdAt: Scalars['DateTime']['output'];
500
+ createdBy: Scalars['String']['output'];
501
+ description: Maybe<Scalars['String']['output']>;
502
+ id: Scalars['String']['output'];
503
+ memberCount: Scalars['Int']['output'];
504
+ members: Array<PublishListMember>;
505
+ name: Scalars['String']['output'];
506
+ updatedAt: Scalars['DateTime']['output'];
507
+ };
508
+ export type PublishListList = {
509
+ pagination: PaginationInfo;
510
+ publishLists: Array<PublishList>;
511
+ };
512
+ export type PublishListMember = {
513
+ addedAt: Scalars['DateTime']['output'];
514
+ addedBy: Scalars['String']['output'];
515
+ id: Scalars['String']['output'];
516
+ targetGraphId: Scalars['String']['output'];
517
+ targetGraphName: Maybe<Scalars['String']['output']>;
518
+ targetOrgName: Maybe<Scalars['String']['output']>;
519
+ };
520
+ export type Query = {
521
+ accountRollups: Maybe<AccountRollups>;
522
+ accountTree: Maybe<AccountTree>;
523
+ accounts: Maybe<AccountList>;
524
+ closingBookStructures: Maybe<ClosingBookStructures>;
525
+ elements: Maybe<ElementList>;
526
+ entities: Array<LedgerEntity>;
527
+ entity: Maybe<LedgerEntity>;
528
+ fiscalCalendar: Maybe<FiscalCalendar>;
529
+ hello: Scalars['String']['output'];
530
+ holdings: Maybe<HoldingsList>;
531
+ mappedTrialBalance: Maybe<MappedTrialBalance>;
532
+ mapping: Maybe<MappingDetail>;
533
+ mappingCoverage: Maybe<MappingCoverage>;
534
+ mappings: Maybe<StructureList>;
535
+ periodCloseStatus: Maybe<PeriodCloseStatus>;
536
+ periodDrafts: Maybe<PeriodDrafts>;
537
+ portfolio: Maybe<Portfolio>;
538
+ portfolios: Maybe<PortfolioList>;
539
+ position: Maybe<Position>;
540
+ positions: Maybe<PositionList>;
541
+ publishList: Maybe<PublishListDetail>;
542
+ publishLists: Maybe<PublishListList>;
543
+ report: Maybe<Report>;
544
+ reportingTaxonomy: Maybe<Taxonomy>;
545
+ reports: Maybe<ReportList>;
546
+ scheduleFacts: Maybe<ScheduleFacts>;
547
+ schedules: Maybe<ScheduleList>;
548
+ securities: Maybe<SecurityList>;
549
+ security: Maybe<Security>;
550
+ statement: Maybe<Statement>;
551
+ structures: Maybe<StructureList>;
552
+ summary: Maybe<LedgerSummary>;
553
+ taxonomies: Maybe<TaxonomyList>;
554
+ transaction: Maybe<LedgerTransactionDetail>;
555
+ transactions: Maybe<LedgerTransactionList>;
556
+ trialBalance: Maybe<TrialBalance>;
557
+ unmappedElements: Array<UnmappedElement>;
558
+ };
559
+ export type QueryAccountRollupsArgs = {
560
+ endDate?: InputMaybe<Scalars['Date']['input']>;
561
+ mappingId?: InputMaybe<Scalars['String']['input']>;
562
+ startDate?: InputMaybe<Scalars['Date']['input']>;
563
+ };
564
+ export type QueryAccountsArgs = {
565
+ classification?: InputMaybe<Scalars['String']['input']>;
566
+ isActive?: InputMaybe<Scalars['Boolean']['input']>;
567
+ limit?: Scalars['Int']['input'];
568
+ offset?: Scalars['Int']['input'];
569
+ };
570
+ export type QueryElementsArgs = {
571
+ classification?: InputMaybe<Scalars['String']['input']>;
572
+ isAbstract?: InputMaybe<Scalars['Boolean']['input']>;
573
+ limit?: Scalars['Int']['input'];
574
+ offset?: Scalars['Int']['input'];
575
+ source?: InputMaybe<Scalars['String']['input']>;
576
+ taxonomyId?: InputMaybe<Scalars['String']['input']>;
577
+ };
578
+ export type QueryEntitiesArgs = {
579
+ source?: InputMaybe<Scalars['String']['input']>;
580
+ };
581
+ export type QueryHoldingsArgs = {
582
+ portfolioId: Scalars['String']['input'];
583
+ };
584
+ export type QueryMappedTrialBalanceArgs = {
585
+ endDate?: InputMaybe<Scalars['Date']['input']>;
586
+ mappingId: Scalars['String']['input'];
587
+ startDate?: InputMaybe<Scalars['Date']['input']>;
588
+ };
589
+ export type QueryMappingArgs = {
590
+ mappingId: Scalars['String']['input'];
591
+ };
592
+ export type QueryMappingCoverageArgs = {
593
+ mappingId: Scalars['String']['input'];
594
+ };
595
+ export type QueryPeriodCloseStatusArgs = {
596
+ periodEnd: Scalars['Date']['input'];
597
+ periodStart: Scalars['Date']['input'];
598
+ };
599
+ export type QueryPeriodDraftsArgs = {
600
+ period: Scalars['String']['input'];
601
+ };
602
+ export type QueryPortfolioArgs = {
603
+ portfolioId: Scalars['String']['input'];
604
+ };
605
+ export type QueryPortfoliosArgs = {
606
+ limit?: Scalars['Int']['input'];
607
+ offset?: Scalars['Int']['input'];
608
+ };
609
+ export type QueryPositionArgs = {
610
+ positionId: Scalars['String']['input'];
611
+ };
612
+ export type QueryPositionsArgs = {
613
+ limit?: Scalars['Int']['input'];
614
+ offset?: Scalars['Int']['input'];
615
+ portfolioId?: InputMaybe<Scalars['String']['input']>;
616
+ securityId?: InputMaybe<Scalars['String']['input']>;
617
+ status?: InputMaybe<Scalars['String']['input']>;
618
+ };
619
+ export type QueryPublishListArgs = {
620
+ listId: Scalars['String']['input'];
621
+ };
622
+ export type QueryPublishListsArgs = {
623
+ limit?: Scalars['Int']['input'];
624
+ offset?: Scalars['Int']['input'];
625
+ };
626
+ export type QueryReportArgs = {
627
+ reportId: Scalars['String']['input'];
628
+ };
629
+ export type QueryScheduleFactsArgs = {
630
+ periodEnd?: InputMaybe<Scalars['Date']['input']>;
631
+ periodStart?: InputMaybe<Scalars['Date']['input']>;
632
+ structureId: Scalars['String']['input'];
633
+ };
634
+ export type QuerySecuritiesArgs = {
635
+ entityId?: InputMaybe<Scalars['String']['input']>;
636
+ isActive?: InputMaybe<Scalars['Boolean']['input']>;
637
+ limit?: Scalars['Int']['input'];
638
+ offset?: Scalars['Int']['input'];
639
+ securityType?: InputMaybe<Scalars['String']['input']>;
640
+ };
641
+ export type QuerySecurityArgs = {
642
+ securityId: Scalars['String']['input'];
643
+ };
644
+ export type QueryStatementArgs = {
645
+ reportId: Scalars['String']['input'];
646
+ structureType: Scalars['String']['input'];
647
+ };
648
+ export type QueryStructuresArgs = {
649
+ structureType?: InputMaybe<Scalars['String']['input']>;
650
+ taxonomyId?: InputMaybe<Scalars['String']['input']>;
651
+ };
652
+ export type QueryTaxonomiesArgs = {
653
+ taxonomyType?: InputMaybe<Scalars['String']['input']>;
654
+ };
655
+ export type QueryTransactionArgs = {
656
+ transactionId: Scalars['String']['input'];
657
+ };
658
+ export type QueryTransactionsArgs = {
659
+ endDate?: InputMaybe<Scalars['Date']['input']>;
660
+ limit?: Scalars['Int']['input'];
661
+ offset?: Scalars['Int']['input'];
662
+ startDate?: InputMaybe<Scalars['Date']['input']>;
663
+ type?: InputMaybe<Scalars['String']['input']>;
664
+ };
665
+ export type QueryTrialBalanceArgs = {
666
+ endDate?: InputMaybe<Scalars['Date']['input']>;
667
+ startDate?: InputMaybe<Scalars['Date']['input']>;
668
+ };
669
+ export type QueryUnmappedElementsArgs = {
670
+ mappingId?: InputMaybe<Scalars['String']['input']>;
671
+ };
672
+ export type Report = {
673
+ aiGenerated: Scalars['Boolean']['output'];
674
+ comparative: Scalars['Boolean']['output'];
675
+ createdAt: Scalars['DateTime']['output'];
676
+ entityName: Maybe<Scalars['String']['output']>;
677
+ generationStatus: Scalars['String']['output'];
678
+ id: Scalars['String']['output'];
679
+ lastGenerated: Maybe<Scalars['DateTime']['output']>;
680
+ mappingId: Maybe<Scalars['String']['output']>;
681
+ name: Scalars['String']['output'];
682
+ periodEnd: Maybe<Scalars['Date']['output']>;
683
+ periodStart: Maybe<Scalars['Date']['output']>;
684
+ periodType: Scalars['String']['output'];
685
+ periods: Maybe<Array<PeriodSpec>>;
686
+ sharedAt: Maybe<Scalars['DateTime']['output']>;
687
+ sourceGraphId: Maybe<Scalars['String']['output']>;
688
+ sourceReportId: Maybe<Scalars['String']['output']>;
689
+ structures: Array<StructureSummary>;
690
+ taxonomyId: Scalars['String']['output'];
691
+ };
692
+ export type ReportList = {
693
+ reports: Array<Report>;
694
+ };
695
+ export type ScheduleFact = {
696
+ elementId: Scalars['String']['output'];
697
+ elementName: Scalars['String']['output'];
698
+ periodEnd: Scalars['Date']['output'];
699
+ periodStart: Scalars['Date']['output'];
700
+ value: Scalars['Float']['output'];
701
+ };
702
+ export type ScheduleFacts = {
703
+ facts: Array<ScheduleFact>;
704
+ structureId: Scalars['String']['output'];
705
+ };
706
+ export type ScheduleList = {
707
+ schedules: Array<ScheduleSummary>;
708
+ };
709
+ export type ScheduleSummary = {
710
+ entryTemplate: Maybe<Scalars['JSON']['output']>;
711
+ name: Scalars['String']['output'];
712
+ periodsWithEntries: Scalars['Int']['output'];
713
+ scheduleMetadata: Maybe<Scalars['JSON']['output']>;
714
+ structureId: Scalars['ID']['output'];
715
+ taxonomyName: Scalars['String']['output'];
716
+ totalPeriods: Scalars['Int']['output'];
717
+ };
718
+ export type Security = {
719
+ authorizedShares: Maybe<Scalars['Int']['output']>;
720
+ createdAt: Scalars['DateTime']['output'];
721
+ entityId: Maybe<Scalars['String']['output']>;
722
+ entityName: Maybe<Scalars['String']['output']>;
723
+ id: Scalars['ID']['output'];
724
+ isActive: Scalars['Boolean']['output'];
725
+ name: Scalars['String']['output'];
726
+ outstandingShares: Maybe<Scalars['Int']['output']>;
727
+ securitySubtype: Maybe<Scalars['String']['output']>;
728
+ securityType: Scalars['String']['output'];
729
+ sourceGraphId: Maybe<Scalars['String']['output']>;
730
+ terms: Scalars['JSON']['output'];
731
+ updatedAt: Scalars['DateTime']['output'];
732
+ };
733
+ export type SecurityList = {
734
+ pagination: PaginationInfo;
735
+ securities: Array<Security>;
736
+ };
737
+ export type Statement = {
738
+ periods: Array<PeriodSpec>;
739
+ reportId: Scalars['String']['output'];
740
+ rows: Array<FactRow>;
741
+ structureId: Scalars['String']['output'];
742
+ structureName: Scalars['String']['output'];
743
+ structureType: Scalars['String']['output'];
744
+ unmappedCount: Scalars['Int']['output'];
745
+ validation: Maybe<ValidationCheck>;
746
+ };
747
+ export type Structure = {
748
+ description: Maybe<Scalars['String']['output']>;
749
+ id: Scalars['String']['output'];
750
+ isActive: Scalars['Boolean']['output'];
751
+ name: Scalars['String']['output'];
752
+ structureType: Scalars['String']['output'];
753
+ taxonomyId: Scalars['String']['output'];
754
+ };
755
+ export type StructureList = {
756
+ structures: Array<Structure>;
757
+ };
758
+ export type StructureSummary = {
759
+ id: Scalars['String']['output'];
760
+ name: Scalars['String']['output'];
761
+ structureType: Scalars['String']['output'];
762
+ };
763
+ export type SuggestedTarget = {
764
+ confidence: Maybe<Scalars['Float']['output']>;
765
+ elementId: Scalars['String']['output'];
766
+ name: Scalars['String']['output'];
767
+ qname: Scalars['String']['output'];
768
+ };
769
+ export type Taxonomy = {
770
+ description: Maybe<Scalars['String']['output']>;
771
+ id: Scalars['String']['output'];
772
+ isActive: Scalars['Boolean']['output'];
773
+ isLocked: Scalars['Boolean']['output'];
774
+ isShared: Scalars['Boolean']['output'];
775
+ name: Scalars['String']['output'];
776
+ namespaceUri: Maybe<Scalars['String']['output']>;
777
+ sourceTaxonomyId: Maybe<Scalars['String']['output']>;
778
+ standard: Maybe<Scalars['String']['output']>;
779
+ targetTaxonomyId: Maybe<Scalars['String']['output']>;
780
+ taxonomyType: Scalars['String']['output'];
781
+ version: Maybe<Scalars['String']['output']>;
782
+ };
783
+ export type TaxonomyList = {
784
+ taxonomies: Array<Taxonomy>;
785
+ };
786
+ export type TrialBalance = {
787
+ rows: Array<TrialBalanceRow>;
788
+ totalCredits: Scalars['Float']['output'];
789
+ totalDebits: Scalars['Float']['output'];
790
+ };
791
+ export type TrialBalanceRow = {
792
+ accountCode: Scalars['String']['output'];
793
+ accountId: Scalars['String']['output'];
794
+ accountName: Scalars['String']['output'];
795
+ accountType: Maybe<Scalars['String']['output']>;
796
+ classification: Scalars['String']['output'];
797
+ netBalance: Scalars['Float']['output'];
798
+ totalCredits: Scalars['Float']['output'];
799
+ totalDebits: Scalars['Float']['output'];
800
+ };
801
+ export type UnmappedElement = {
802
+ balanceType: Scalars['String']['output'];
803
+ classification: Scalars['String']['output'];
804
+ code: Maybe<Scalars['String']['output']>;
805
+ externalSource: Maybe<Scalars['String']['output']>;
806
+ id: Scalars['String']['output'];
807
+ name: Scalars['String']['output'];
808
+ suggestedTargets: Array<SuggestedTarget>;
809
+ };
810
+ export type ValidationCheck = {
811
+ checks: Array<Scalars['String']['output']>;
812
+ failures: Array<Scalars['String']['output']>;
813
+ passed: Scalars['Boolean']['output'];
814
+ warnings: Array<Scalars['String']['output']>;
815
+ };
816
+ export type GetInvestorHoldingsQueryVariables = Exact<{
817
+ portfolioId: Scalars['String']['input'];
818
+ }>;
819
+ export type GetInvestorHoldingsQuery = {
820
+ holdings: {
821
+ totalEntities: number;
822
+ totalPositions: number;
823
+ holdings: Array<{
824
+ entityId: string;
825
+ entityName: string;
826
+ sourceGraphId: string | null;
827
+ totalCostBasisDollars: number;
828
+ totalCurrentValueDollars: number | null;
829
+ positionCount: number;
830
+ securities: Array<{
831
+ securityId: string;
832
+ securityName: string;
833
+ securityType: string;
834
+ quantity: number;
835
+ quantityType: string;
836
+ costBasisDollars: number;
837
+ currentValueDollars: number | null;
838
+ }>;
839
+ }>;
840
+ } | null;
841
+ };
842
+ export type GetInvestorPortfolioQueryVariables = Exact<{
843
+ portfolioId: Scalars['String']['input'];
844
+ }>;
845
+ export type GetInvestorPortfolioQuery = {
846
+ portfolio: {
847
+ id: string;
848
+ name: string;
849
+ description: string | null;
850
+ strategy: string | null;
851
+ inceptionDate: any | null;
852
+ baseCurrency: string;
853
+ createdAt: any;
854
+ updatedAt: any;
855
+ } | null;
856
+ };
857
+ export type ListInvestorPortfoliosQueryVariables = Exact<{
858
+ limit?: Scalars['Int']['input'];
859
+ offset?: Scalars['Int']['input'];
860
+ }>;
861
+ export type ListInvestorPortfoliosQuery = {
862
+ portfolios: {
863
+ portfolios: Array<{
864
+ id: string;
865
+ name: string;
866
+ description: string | null;
867
+ strategy: string | null;
868
+ inceptionDate: any | null;
869
+ baseCurrency: string;
870
+ createdAt: any;
871
+ updatedAt: any;
872
+ }>;
873
+ pagination: {
874
+ total: number;
875
+ limit: number;
876
+ offset: number;
877
+ hasMore: boolean;
878
+ };
879
+ } | null;
880
+ };
881
+ export type GetInvestorPositionQueryVariables = Exact<{
882
+ positionId: Scalars['String']['input'];
883
+ }>;
884
+ export type GetInvestorPositionQuery = {
885
+ position: {
886
+ id: string;
887
+ portfolioId: string;
888
+ securityId: string;
889
+ securityName: string | null;
890
+ entityName: string | null;
891
+ quantity: number;
892
+ quantityType: string;
893
+ costBasis: number;
894
+ costBasisDollars: number;
895
+ currency: string;
896
+ currentValue: number | null;
897
+ currentValueDollars: number | null;
898
+ valuationDate: any | null;
899
+ valuationSource: string | null;
900
+ acquisitionDate: any | null;
901
+ dispositionDate: any | null;
902
+ status: string;
903
+ notes: string | null;
904
+ createdAt: any;
905
+ updatedAt: any;
906
+ } | null;
907
+ };
908
+ export type ListInvestorPositionsQueryVariables = Exact<{
909
+ portfolioId: InputMaybe<Scalars['String']['input']>;
910
+ securityId: InputMaybe<Scalars['String']['input']>;
911
+ status: InputMaybe<Scalars['String']['input']>;
912
+ limit?: Scalars['Int']['input'];
913
+ offset?: Scalars['Int']['input'];
914
+ }>;
915
+ export type ListInvestorPositionsQuery = {
916
+ positions: {
917
+ positions: Array<{
918
+ id: string;
919
+ portfolioId: string;
920
+ securityId: string;
921
+ securityName: string | null;
922
+ entityName: string | null;
923
+ quantity: number;
924
+ quantityType: string;
925
+ costBasis: number;
926
+ costBasisDollars: number;
927
+ currency: string;
928
+ currentValue: number | null;
929
+ currentValueDollars: number | null;
930
+ valuationDate: any | null;
931
+ valuationSource: string | null;
932
+ acquisitionDate: any | null;
933
+ dispositionDate: any | null;
934
+ status: string;
935
+ notes: string | null;
936
+ createdAt: any;
937
+ updatedAt: any;
938
+ }>;
939
+ pagination: {
940
+ total: number;
941
+ limit: number;
942
+ offset: number;
943
+ hasMore: boolean;
944
+ };
945
+ } | null;
946
+ };
947
+ export type ListInvestorSecuritiesQueryVariables = Exact<{
948
+ entityId: InputMaybe<Scalars['String']['input']>;
949
+ securityType: InputMaybe<Scalars['String']['input']>;
950
+ isActive: InputMaybe<Scalars['Boolean']['input']>;
951
+ limit?: Scalars['Int']['input'];
952
+ offset?: Scalars['Int']['input'];
953
+ }>;
954
+ export type ListInvestorSecuritiesQuery = {
955
+ securities: {
956
+ securities: Array<{
957
+ id: string;
958
+ entityId: string | null;
959
+ entityName: string | null;
960
+ sourceGraphId: string | null;
961
+ name: string;
962
+ securityType: string;
963
+ securitySubtype: string | null;
964
+ terms: any;
965
+ isActive: boolean;
966
+ authorizedShares: number | null;
967
+ outstandingShares: number | null;
968
+ createdAt: any;
969
+ updatedAt: any;
970
+ }>;
971
+ pagination: {
972
+ total: number;
973
+ limit: number;
974
+ offset: number;
975
+ hasMore: boolean;
976
+ };
977
+ } | null;
978
+ };
979
+ export type GetInvestorSecurityQueryVariables = Exact<{
980
+ securityId: Scalars['String']['input'];
981
+ }>;
982
+ export type GetInvestorSecurityQuery = {
983
+ security: {
984
+ id: string;
985
+ entityId: string | null;
986
+ entityName: string | null;
987
+ sourceGraphId: string | null;
988
+ name: string;
989
+ securityType: string;
990
+ securitySubtype: string | null;
991
+ terms: any;
992
+ isActive: boolean;
993
+ authorizedShares: number | null;
994
+ outstandingShares: number | null;
995
+ createdAt: any;
996
+ updatedAt: any;
997
+ } | null;
998
+ };
999
+ export type GetLedgerAccountRollupsQueryVariables = Exact<{
1000
+ mappingId: InputMaybe<Scalars['String']['input']>;
1001
+ startDate: InputMaybe<Scalars['Date']['input']>;
1002
+ endDate: InputMaybe<Scalars['Date']['input']>;
1003
+ }>;
1004
+ export type GetLedgerAccountRollupsQuery = {
1005
+ accountRollups: {
1006
+ mappingId: string;
1007
+ mappingName: string;
1008
+ totalMapped: number;
1009
+ totalUnmapped: number;
1010
+ groups: Array<{
1011
+ reportingElementId: string;
1012
+ reportingName: string;
1013
+ reportingQname: string;
1014
+ classification: string;
1015
+ balanceType: string;
1016
+ total: number;
1017
+ accounts: Array<{
1018
+ elementId: string;
1019
+ accountName: string;
1020
+ accountCode: string | null;
1021
+ totalDebits: number;
1022
+ totalCredits: number;
1023
+ netBalance: number;
1024
+ }>;
1025
+ }>;
1026
+ } | null;
1027
+ };
1028
+ export type GetLedgerAccountTreeQueryVariables = Exact<{
1029
+ [key: string]: never;
1030
+ }>;
1031
+ export type GetLedgerAccountTreeQuery = {
1032
+ accountTree: {
1033
+ totalAccounts: number;
1034
+ roots: Array<{
1035
+ id: string;
1036
+ code: string | null;
1037
+ name: string;
1038
+ classification: string;
1039
+ accountType: string | null;
1040
+ balanceType: string;
1041
+ depth: number;
1042
+ isActive: boolean;
1043
+ children: Array<{
1044
+ id: string;
1045
+ code: string | null;
1046
+ name: string;
1047
+ classification: string;
1048
+ accountType: string | null;
1049
+ balanceType: string;
1050
+ depth: number;
1051
+ isActive: boolean;
1052
+ children: Array<{
1053
+ id: string;
1054
+ code: string | null;
1055
+ name: string;
1056
+ classification: string;
1057
+ accountType: string | null;
1058
+ balanceType: string;
1059
+ depth: number;
1060
+ isActive: boolean;
1061
+ children: Array<{
1062
+ id: string;
1063
+ code: string | null;
1064
+ name: string;
1065
+ classification: string;
1066
+ accountType: string | null;
1067
+ balanceType: string;
1068
+ depth: number;
1069
+ isActive: boolean;
1070
+ }>;
1071
+ }>;
1072
+ }>;
1073
+ }>;
1074
+ } | null;
1075
+ };
1076
+ export type ListLedgerAccountsQueryVariables = Exact<{
1077
+ classification: InputMaybe<Scalars['String']['input']>;
1078
+ isActive: InputMaybe<Scalars['Boolean']['input']>;
1079
+ limit?: Scalars['Int']['input'];
1080
+ offset?: Scalars['Int']['input'];
1081
+ }>;
1082
+ export type ListLedgerAccountsQuery = {
1083
+ accounts: {
1084
+ accounts: Array<{
1085
+ id: string;
1086
+ code: string | null;
1087
+ name: string;
1088
+ description: string | null;
1089
+ classification: string;
1090
+ subClassification: string | null;
1091
+ balanceType: string;
1092
+ parentId: string | null;
1093
+ depth: number;
1094
+ currency: string;
1095
+ isActive: boolean;
1096
+ isPlaceholder: boolean;
1097
+ accountType: string | null;
1098
+ externalId: string | null;
1099
+ externalSource: string | null;
1100
+ }>;
1101
+ pagination: {
1102
+ total: number;
1103
+ limit: number;
1104
+ offset: number;
1105
+ hasMore: boolean;
1106
+ };
1107
+ } | null;
1108
+ };
1109
+ export type GetLedgerClosingBookStructuresQueryVariables = Exact<{
1110
+ [key: string]: never;
1111
+ }>;
1112
+ export type GetLedgerClosingBookStructuresQuery = {
1113
+ closingBookStructures: {
1114
+ hasData: boolean;
1115
+ categories: Array<{
1116
+ label: string;
1117
+ items: Array<{
1118
+ id: string;
1119
+ name: string;
1120
+ itemType: string;
1121
+ structureType: string | null;
1122
+ reportId: string | null;
1123
+ status: string | null;
1124
+ }>;
1125
+ }>;
1126
+ } | null;
1127
+ };
1128
+ export type ListLedgerElementsQueryVariables = Exact<{
1129
+ taxonomyId: InputMaybe<Scalars['String']['input']>;
1130
+ source: InputMaybe<Scalars['String']['input']>;
1131
+ classification: InputMaybe<Scalars['String']['input']>;
1132
+ isAbstract: InputMaybe<Scalars['Boolean']['input']>;
1133
+ limit?: Scalars['Int']['input'];
1134
+ offset?: Scalars['Int']['input'];
1135
+ }>;
1136
+ export type ListLedgerElementsQuery = {
1137
+ elements: {
1138
+ elements: Array<{
1139
+ id: string;
1140
+ code: string | null;
1141
+ name: string;
1142
+ description: string | null;
1143
+ qname: string | null;
1144
+ namespace: string | null;
1145
+ classification: string;
1146
+ subClassification: string | null;
1147
+ balanceType: string;
1148
+ periodType: string;
1149
+ isAbstract: boolean;
1150
+ elementType: string;
1151
+ source: string;
1152
+ taxonomyId: string | null;
1153
+ parentId: string | null;
1154
+ depth: number;
1155
+ isActive: boolean;
1156
+ externalId: string | null;
1157
+ externalSource: string | null;
1158
+ }>;
1159
+ pagination: {
1160
+ total: number;
1161
+ limit: number;
1162
+ offset: number;
1163
+ hasMore: boolean;
1164
+ };
1165
+ } | null;
1166
+ };
1167
+ export type ListLedgerEntitiesQueryVariables = Exact<{
1168
+ source: InputMaybe<Scalars['String']['input']>;
1169
+ }>;
1170
+ export type ListLedgerEntitiesQuery = {
1171
+ entities: Array<{
1172
+ id: string;
1173
+ name: string;
1174
+ legalName: string | null;
1175
+ ticker: string | null;
1176
+ cik: string | null;
1177
+ industry: string | null;
1178
+ entityType: string | null;
1179
+ status: string;
1180
+ isParent: boolean;
1181
+ parentEntityId: string | null;
1182
+ source: string;
1183
+ sourceGraphId: string | null;
1184
+ connectionId: string | null;
1185
+ createdAt: string | null;
1186
+ updatedAt: string | null;
1187
+ }>;
1188
+ };
1189
+ export type GetLedgerEntityQueryVariables = Exact<{
1190
+ [key: string]: never;
1191
+ }>;
1192
+ export type GetLedgerEntityQuery = {
1193
+ entity: {
1194
+ id: string;
1195
+ name: string;
1196
+ legalName: string | null;
1197
+ uri: string | null;
1198
+ cik: string | null;
1199
+ ticker: string | null;
1200
+ exchange: string | null;
1201
+ sic: string | null;
1202
+ sicDescription: string | null;
1203
+ category: string | null;
1204
+ stateOfIncorporation: string | null;
1205
+ fiscalYearEnd: string | null;
1206
+ taxId: string | null;
1207
+ lei: string | null;
1208
+ industry: string | null;
1209
+ entityType: string | null;
1210
+ phone: string | null;
1211
+ website: string | null;
1212
+ status: string;
1213
+ isParent: boolean;
1214
+ parentEntityId: string | null;
1215
+ source: string;
1216
+ sourceId: string | null;
1217
+ sourceGraphId: string | null;
1218
+ connectionId: string | null;
1219
+ addressLine1: string | null;
1220
+ addressCity: string | null;
1221
+ addressState: string | null;
1222
+ addressPostalCode: string | null;
1223
+ addressCountry: string | null;
1224
+ createdAt: string | null;
1225
+ updatedAt: string | null;
1226
+ } | null;
1227
+ };
1228
+ export type GetLedgerFiscalCalendarQueryVariables = Exact<{
1229
+ [key: string]: never;
1230
+ }>;
1231
+ export type GetLedgerFiscalCalendarQuery = {
1232
+ fiscalCalendar: {
1233
+ graphId: string;
1234
+ fiscalYearStartMonth: number;
1235
+ closedThrough: string | null;
1236
+ closeTarget: string | null;
1237
+ gapPeriods: number;
1238
+ catchUpSequence: Array<string>;
1239
+ closeableNow: boolean;
1240
+ blockers: Array<string>;
1241
+ lastCloseAt: any | null;
1242
+ initializedAt: any | null;
1243
+ lastSyncAt: any | null;
1244
+ periods: Array<{
1245
+ name: string;
1246
+ startDate: any;
1247
+ endDate: any;
1248
+ status: string;
1249
+ closedAt: any | null;
1250
+ }>;
1251
+ } | null;
1252
+ };
1253
+ export type GetLedgerMappedTrialBalanceQueryVariables = Exact<{
1254
+ mappingId: Scalars['String']['input'];
1255
+ startDate: InputMaybe<Scalars['Date']['input']>;
1256
+ endDate: InputMaybe<Scalars['Date']['input']>;
1257
+ }>;
1258
+ export type GetLedgerMappedTrialBalanceQuery = {
1259
+ mappedTrialBalance: {
1260
+ mappingId: string;
1261
+ rows: Array<{
1262
+ reportingElementId: string;
1263
+ qname: string;
1264
+ reportingName: string;
1265
+ classification: string | null;
1266
+ balanceType: string | null;
1267
+ totalDebits: number;
1268
+ totalCredits: number;
1269
+ netBalance: number;
1270
+ }>;
1271
+ } | null;
1272
+ };
1273
+ export type GetLedgerMappingQueryVariables = Exact<{
1274
+ mappingId: Scalars['String']['input'];
1275
+ }>;
1276
+ export type GetLedgerMappingQuery = {
1277
+ mapping: {
1278
+ id: string;
1279
+ name: string;
1280
+ structureType: string;
1281
+ taxonomyId: string;
1282
+ totalAssociations: number;
1283
+ associations: Array<{
1284
+ id: string;
1285
+ structureId: string;
1286
+ fromElementId: string;
1287
+ fromElementName: string | null;
1288
+ fromElementQname: string | null;
1289
+ toElementId: string;
1290
+ toElementName: string | null;
1291
+ toElementQname: string | null;
1292
+ associationType: string;
1293
+ orderValue: number | null;
1294
+ weight: number | null;
1295
+ confidence: number | null;
1296
+ suggestedBy: string | null;
1297
+ approvedBy: string | null;
1298
+ }>;
1299
+ } | null;
1300
+ };
1301
+ export type GetLedgerMappingCoverageQueryVariables = Exact<{
1302
+ mappingId: Scalars['String']['input'];
1303
+ }>;
1304
+ export type GetLedgerMappingCoverageQuery = {
1305
+ mappingCoverage: {
1306
+ mappingId: string;
1307
+ totalCoaElements: number;
1308
+ mappedCount: number;
1309
+ unmappedCount: number;
1310
+ coveragePercent: number;
1311
+ highConfidence: number;
1312
+ mediumConfidence: number;
1313
+ lowConfidence: number;
1314
+ } | null;
1315
+ };
1316
+ export type ListLedgerMappingsQueryVariables = Exact<{
1317
+ [key: string]: never;
1318
+ }>;
1319
+ export type ListLedgerMappingsQuery = {
1320
+ mappings: {
1321
+ structures: Array<{
1322
+ id: string;
1323
+ name: string;
1324
+ description: string | null;
1325
+ structureType: string;
1326
+ taxonomyId: string;
1327
+ isActive: boolean;
1328
+ }>;
1329
+ } | null;
1330
+ };
1331
+ export type GetLedgerPeriodCloseStatusQueryVariables = Exact<{
1332
+ periodStart: Scalars['Date']['input'];
1333
+ periodEnd: Scalars['Date']['input'];
1334
+ }>;
1335
+ export type GetLedgerPeriodCloseStatusQuery = {
1336
+ periodCloseStatus: {
1337
+ fiscalPeriodStart: any;
1338
+ fiscalPeriodEnd: any;
1339
+ periodStatus: string;
1340
+ totalDraft: number;
1341
+ totalPosted: number;
1342
+ schedules: Array<{
1343
+ structureId: string;
1344
+ structureName: string;
1345
+ amount: number;
1346
+ status: string;
1347
+ entryId: string | null;
1348
+ reversalEntryId: string | null;
1349
+ reversalStatus: string | null;
1350
+ }>;
1351
+ } | null;
1352
+ };
1353
+ export type GetLedgerPeriodDraftsQueryVariables = Exact<{
1354
+ period: Scalars['String']['input'];
1355
+ }>;
1356
+ export type GetLedgerPeriodDraftsQuery = {
1357
+ periodDrafts: {
1358
+ period: string;
1359
+ periodStart: any;
1360
+ periodEnd: any;
1361
+ draftCount: number;
1362
+ totalDebit: number;
1363
+ totalCredit: number;
1364
+ allBalanced: boolean;
1365
+ drafts: Array<{
1366
+ entryId: string;
1367
+ postingDate: any;
1368
+ type: string;
1369
+ memo: string | null;
1370
+ provenance: string | null;
1371
+ sourceStructureId: string | null;
1372
+ sourceStructureName: string | null;
1373
+ totalDebit: number;
1374
+ totalCredit: number;
1375
+ balanced: boolean;
1376
+ lineItems: Array<{
1377
+ lineItemId: string;
1378
+ elementId: string;
1379
+ elementCode: string | null;
1380
+ elementName: string;
1381
+ debitAmount: number;
1382
+ creditAmount: number;
1383
+ description: string | null;
1384
+ }>;
1385
+ }>;
1386
+ } | null;
1387
+ };
1388
+ export type GetLedgerPublishListQueryVariables = Exact<{
1389
+ listId: Scalars['String']['input'];
1390
+ }>;
1391
+ export type GetLedgerPublishListQuery = {
1392
+ publishList: {
1393
+ id: string;
1394
+ name: string;
1395
+ description: string | null;
1396
+ memberCount: number;
1397
+ createdBy: string;
1398
+ createdAt: any;
1399
+ updatedAt: any;
1400
+ members: Array<{
1401
+ id: string;
1402
+ targetGraphId: string;
1403
+ targetGraphName: string | null;
1404
+ targetOrgName: string | null;
1405
+ addedBy: string;
1406
+ addedAt: any;
1407
+ }>;
1408
+ } | null;
1409
+ };
1410
+ export type ListLedgerPublishListsQueryVariables = Exact<{
1411
+ limit?: Scalars['Int']['input'];
1412
+ offset?: Scalars['Int']['input'];
1413
+ }>;
1414
+ export type ListLedgerPublishListsQuery = {
1415
+ publishLists: {
1416
+ publishLists: Array<{
1417
+ id: string;
1418
+ name: string;
1419
+ description: string | null;
1420
+ memberCount: number;
1421
+ createdBy: string;
1422
+ createdAt: any;
1423
+ updatedAt: any;
1424
+ }>;
1425
+ pagination: {
1426
+ total: number;
1427
+ limit: number;
1428
+ offset: number;
1429
+ hasMore: boolean;
1430
+ };
1431
+ } | null;
1432
+ };
1433
+ export type GetLedgerReportQueryVariables = Exact<{
1434
+ reportId: Scalars['String']['input'];
1435
+ }>;
1436
+ export type GetLedgerReportQuery = {
1437
+ report: {
1438
+ id: string;
1439
+ name: string;
1440
+ taxonomyId: string;
1441
+ generationStatus: string;
1442
+ periodType: string;
1443
+ periodStart: any | null;
1444
+ periodEnd: any | null;
1445
+ comparative: boolean;
1446
+ mappingId: string | null;
1447
+ aiGenerated: boolean;
1448
+ createdAt: any;
1449
+ lastGenerated: any | null;
1450
+ entityName: string | null;
1451
+ sourceGraphId: string | null;
1452
+ sourceReportId: string | null;
1453
+ sharedAt: any | null;
1454
+ periods: Array<{
1455
+ start: any;
1456
+ end: any;
1457
+ label: string;
1458
+ }> | null;
1459
+ structures: Array<{
1460
+ id: string;
1461
+ name: string;
1462
+ structureType: string;
1463
+ }>;
1464
+ } | null;
1465
+ };
1466
+ export type GetLedgerReportingTaxonomyQueryVariables = Exact<{
1467
+ [key: string]: never;
1468
+ }>;
1469
+ export type GetLedgerReportingTaxonomyQuery = {
1470
+ reportingTaxonomy: {
1471
+ id: string;
1472
+ name: string;
1473
+ description: string | null;
1474
+ taxonomyType: string;
1475
+ version: string | null;
1476
+ standard: string | null;
1477
+ namespaceUri: string | null;
1478
+ isShared: boolean;
1479
+ isActive: boolean;
1480
+ isLocked: boolean;
1481
+ sourceTaxonomyId: string | null;
1482
+ targetTaxonomyId: string | null;
1483
+ } | null;
1484
+ };
1485
+ export type ListLedgerReportsQueryVariables = Exact<{
1486
+ [key: string]: never;
1487
+ }>;
1488
+ export type ListLedgerReportsQuery = {
1489
+ reports: {
1490
+ reports: Array<{
1491
+ id: string;
1492
+ name: string;
1493
+ taxonomyId: string;
1494
+ generationStatus: string;
1495
+ periodType: string;
1496
+ periodStart: any | null;
1497
+ periodEnd: any | null;
1498
+ comparative: boolean;
1499
+ mappingId: string | null;
1500
+ aiGenerated: boolean;
1501
+ createdAt: any;
1502
+ lastGenerated: any | null;
1503
+ entityName: string | null;
1504
+ sourceGraphId: string | null;
1505
+ sourceReportId: string | null;
1506
+ sharedAt: any | null;
1507
+ periods: Array<{
1508
+ start: any;
1509
+ end: any;
1510
+ label: string;
1511
+ }> | null;
1512
+ structures: Array<{
1513
+ id: string;
1514
+ name: string;
1515
+ structureType: string;
1516
+ }>;
1517
+ }>;
1518
+ } | null;
1519
+ };
1520
+ export type GetLedgerScheduleFactsQueryVariables = Exact<{
1521
+ structureId: Scalars['String']['input'];
1522
+ periodStart: InputMaybe<Scalars['Date']['input']>;
1523
+ periodEnd: InputMaybe<Scalars['Date']['input']>;
1524
+ }>;
1525
+ export type GetLedgerScheduleFactsQuery = {
1526
+ scheduleFacts: {
1527
+ structureId: string;
1528
+ facts: Array<{
1529
+ elementId: string;
1530
+ elementName: string;
1531
+ value: number;
1532
+ periodStart: any;
1533
+ periodEnd: any;
1534
+ }>;
1535
+ } | null;
1536
+ };
1537
+ export type ListLedgerSchedulesQueryVariables = Exact<{
1538
+ [key: string]: never;
1539
+ }>;
1540
+ export type ListLedgerSchedulesQuery = {
1541
+ schedules: {
1542
+ schedules: Array<{
1543
+ structureId: string;
1544
+ name: string;
1545
+ taxonomyName: string;
1546
+ entryTemplate: any | null;
1547
+ scheduleMetadata: any | null;
1548
+ totalPeriods: number;
1549
+ periodsWithEntries: number;
1550
+ }>;
1551
+ } | null;
1552
+ };
1553
+ export type GetLedgerStatementQueryVariables = Exact<{
1554
+ reportId: Scalars['String']['input'];
1555
+ structureType: Scalars['String']['input'];
1556
+ }>;
1557
+ export type GetLedgerStatementQuery = {
1558
+ statement: {
1559
+ reportId: string;
1560
+ structureId: string;
1561
+ structureName: string;
1562
+ structureType: string;
1563
+ unmappedCount: number;
1564
+ periods: Array<{
1565
+ start: any;
1566
+ end: any;
1567
+ label: string;
1568
+ }>;
1569
+ rows: Array<{
1570
+ elementId: string;
1571
+ elementQname: string;
1572
+ elementName: string;
1573
+ classification: string;
1574
+ values: Array<number | null>;
1575
+ isSubtotal: boolean;
1576
+ depth: number;
1577
+ }>;
1578
+ validation: {
1579
+ passed: boolean;
1580
+ checks: Array<string>;
1581
+ failures: Array<string>;
1582
+ warnings: Array<string>;
1583
+ } | null;
1584
+ } | null;
1585
+ };
1586
+ export type ListLedgerStructuresQueryVariables = Exact<{
1587
+ taxonomyId: InputMaybe<Scalars['String']['input']>;
1588
+ structureType: InputMaybe<Scalars['String']['input']>;
1589
+ }>;
1590
+ export type ListLedgerStructuresQuery = {
1591
+ structures: {
1592
+ structures: Array<{
1593
+ id: string;
1594
+ name: string;
1595
+ description: string | null;
1596
+ structureType: string;
1597
+ taxonomyId: string;
1598
+ isActive: boolean;
1599
+ }>;
1600
+ } | null;
1601
+ };
1602
+ export type GetLedgerSummaryQueryVariables = Exact<{
1603
+ [key: string]: never;
1604
+ }>;
1605
+ export type GetLedgerSummaryQuery = {
1606
+ summary: {
1607
+ graphId: string;
1608
+ accountCount: number;
1609
+ transactionCount: number;
1610
+ entryCount: number;
1611
+ lineItemCount: number;
1612
+ earliestTransactionDate: any | null;
1613
+ latestTransactionDate: any | null;
1614
+ connectionCount: number;
1615
+ lastSyncAt: any | null;
1616
+ } | null;
1617
+ };
1618
+ export type ListLedgerTaxonomiesQueryVariables = Exact<{
1619
+ taxonomyType: InputMaybe<Scalars['String']['input']>;
1620
+ }>;
1621
+ export type ListLedgerTaxonomiesQuery = {
1622
+ taxonomies: {
1623
+ taxonomies: Array<{
1624
+ id: string;
1625
+ name: string;
1626
+ description: string | null;
1627
+ taxonomyType: string;
1628
+ version: string | null;
1629
+ standard: string | null;
1630
+ namespaceUri: string | null;
1631
+ isShared: boolean;
1632
+ isActive: boolean;
1633
+ isLocked: boolean;
1634
+ sourceTaxonomyId: string | null;
1635
+ targetTaxonomyId: string | null;
1636
+ }>;
1637
+ } | null;
1638
+ };
1639
+ export type GetLedgerTransactionQueryVariables = Exact<{
1640
+ transactionId: Scalars['String']['input'];
1641
+ }>;
1642
+ export type GetLedgerTransactionQuery = {
1643
+ transaction: {
1644
+ id: string;
1645
+ number: string | null;
1646
+ type: string;
1647
+ category: string | null;
1648
+ amount: number;
1649
+ currency: string;
1650
+ date: any;
1651
+ dueDate: any | null;
1652
+ merchantName: string | null;
1653
+ referenceNumber: string | null;
1654
+ description: string | null;
1655
+ source: string;
1656
+ sourceId: string | null;
1657
+ status: string;
1658
+ postedAt: any | null;
1659
+ entries: Array<{
1660
+ id: string;
1661
+ number: string | null;
1662
+ type: string;
1663
+ postingDate: any;
1664
+ memo: string | null;
1665
+ status: string;
1666
+ postedAt: any | null;
1667
+ lineItems: Array<{
1668
+ id: string;
1669
+ accountId: string;
1670
+ accountName: string | null;
1671
+ accountCode: string | null;
1672
+ debitAmount: number;
1673
+ creditAmount: number;
1674
+ description: string | null;
1675
+ lineOrder: number;
1676
+ }>;
1677
+ }>;
1678
+ } | null;
1679
+ };
1680
+ export type ListLedgerTransactionsQueryVariables = Exact<{
1681
+ type: InputMaybe<Scalars['String']['input']>;
1682
+ startDate: InputMaybe<Scalars['Date']['input']>;
1683
+ endDate: InputMaybe<Scalars['Date']['input']>;
1684
+ limit?: Scalars['Int']['input'];
1685
+ offset?: Scalars['Int']['input'];
1686
+ }>;
1687
+ export type ListLedgerTransactionsQuery = {
1688
+ transactions: {
1689
+ transactions: Array<{
1690
+ id: string;
1691
+ number: string | null;
1692
+ type: string;
1693
+ category: string | null;
1694
+ amount: number;
1695
+ currency: string;
1696
+ date: any;
1697
+ dueDate: any | null;
1698
+ merchantName: string | null;
1699
+ referenceNumber: string | null;
1700
+ description: string | null;
1701
+ source: string;
1702
+ status: string;
1703
+ }>;
1704
+ pagination: {
1705
+ total: number;
1706
+ limit: number;
1707
+ offset: number;
1708
+ hasMore: boolean;
1709
+ };
1710
+ } | null;
1711
+ };
1712
+ export type GetLedgerTrialBalanceQueryVariables = Exact<{
1713
+ startDate: InputMaybe<Scalars['Date']['input']>;
1714
+ endDate: InputMaybe<Scalars['Date']['input']>;
1715
+ }>;
1716
+ export type GetLedgerTrialBalanceQuery = {
1717
+ trialBalance: {
1718
+ totalDebits: number;
1719
+ totalCredits: number;
1720
+ rows: Array<{
1721
+ accountId: string;
1722
+ accountCode: string;
1723
+ accountName: string;
1724
+ classification: string;
1725
+ accountType: string | null;
1726
+ totalDebits: number;
1727
+ totalCredits: number;
1728
+ netBalance: number;
1729
+ }>;
1730
+ } | null;
1731
+ };
1732
+ export type ListLedgerUnmappedElementsQueryVariables = Exact<{
1733
+ mappingId: InputMaybe<Scalars['String']['input']>;
1734
+ }>;
1735
+ export type ListLedgerUnmappedElementsQuery = {
1736
+ unmappedElements: Array<{
1737
+ id: string;
1738
+ code: string | null;
1739
+ name: string;
1740
+ classification: string;
1741
+ balanceType: string;
1742
+ externalSource: string | null;
1743
+ suggestedTargets: Array<{
1744
+ elementId: string;
1745
+ qname: string;
1746
+ name: string;
1747
+ confidence: number | null;
1748
+ }>;
1749
+ }>;
1750
+ };
1751
+ export declare const GetInvestorHoldingsDocument: DocumentNode<GetInvestorHoldingsQuery, GetInvestorHoldingsQueryVariables>;
1752
+ export declare const GetInvestorPortfolioDocument: DocumentNode<GetInvestorPortfolioQuery, GetInvestorPortfolioQueryVariables>;
1753
+ export declare const ListInvestorPortfoliosDocument: DocumentNode<ListInvestorPortfoliosQuery, ListInvestorPortfoliosQueryVariables>;
1754
+ export declare const GetInvestorPositionDocument: DocumentNode<GetInvestorPositionQuery, GetInvestorPositionQueryVariables>;
1755
+ export declare const ListInvestorPositionsDocument: DocumentNode<ListInvestorPositionsQuery, ListInvestorPositionsQueryVariables>;
1756
+ export declare const ListInvestorSecuritiesDocument: DocumentNode<ListInvestorSecuritiesQuery, ListInvestorSecuritiesQueryVariables>;
1757
+ export declare const GetInvestorSecurityDocument: DocumentNode<GetInvestorSecurityQuery, GetInvestorSecurityQueryVariables>;
1758
+ export declare const GetLedgerAccountRollupsDocument: DocumentNode<GetLedgerAccountRollupsQuery, GetLedgerAccountRollupsQueryVariables>;
1759
+ export declare const GetLedgerAccountTreeDocument: DocumentNode<GetLedgerAccountTreeQuery, GetLedgerAccountTreeQueryVariables>;
1760
+ export declare const ListLedgerAccountsDocument: DocumentNode<ListLedgerAccountsQuery, ListLedgerAccountsQueryVariables>;
1761
+ export declare const GetLedgerClosingBookStructuresDocument: DocumentNode<GetLedgerClosingBookStructuresQuery, GetLedgerClosingBookStructuresQueryVariables>;
1762
+ export declare const ListLedgerElementsDocument: DocumentNode<ListLedgerElementsQuery, ListLedgerElementsQueryVariables>;
1763
+ export declare const ListLedgerEntitiesDocument: DocumentNode<ListLedgerEntitiesQuery, ListLedgerEntitiesQueryVariables>;
1764
+ export declare const GetLedgerEntityDocument: DocumentNode<GetLedgerEntityQuery, GetLedgerEntityQueryVariables>;
1765
+ export declare const GetLedgerFiscalCalendarDocument: DocumentNode<GetLedgerFiscalCalendarQuery, GetLedgerFiscalCalendarQueryVariables>;
1766
+ export declare const GetLedgerMappedTrialBalanceDocument: DocumentNode<GetLedgerMappedTrialBalanceQuery, GetLedgerMappedTrialBalanceQueryVariables>;
1767
+ export declare const GetLedgerMappingDocument: DocumentNode<GetLedgerMappingQuery, GetLedgerMappingQueryVariables>;
1768
+ export declare const GetLedgerMappingCoverageDocument: DocumentNode<GetLedgerMappingCoverageQuery, GetLedgerMappingCoverageQueryVariables>;
1769
+ export declare const ListLedgerMappingsDocument: DocumentNode<ListLedgerMappingsQuery, ListLedgerMappingsQueryVariables>;
1770
+ export declare const GetLedgerPeriodCloseStatusDocument: DocumentNode<GetLedgerPeriodCloseStatusQuery, GetLedgerPeriodCloseStatusQueryVariables>;
1771
+ export declare const GetLedgerPeriodDraftsDocument: DocumentNode<GetLedgerPeriodDraftsQuery, GetLedgerPeriodDraftsQueryVariables>;
1772
+ export declare const GetLedgerPublishListDocument: DocumentNode<GetLedgerPublishListQuery, GetLedgerPublishListQueryVariables>;
1773
+ export declare const ListLedgerPublishListsDocument: DocumentNode<ListLedgerPublishListsQuery, ListLedgerPublishListsQueryVariables>;
1774
+ export declare const GetLedgerReportDocument: DocumentNode<GetLedgerReportQuery, GetLedgerReportQueryVariables>;
1775
+ export declare const GetLedgerReportingTaxonomyDocument: DocumentNode<GetLedgerReportingTaxonomyQuery, GetLedgerReportingTaxonomyQueryVariables>;
1776
+ export declare const ListLedgerReportsDocument: DocumentNode<ListLedgerReportsQuery, ListLedgerReportsQueryVariables>;
1777
+ export declare const GetLedgerScheduleFactsDocument: DocumentNode<GetLedgerScheduleFactsQuery, GetLedgerScheduleFactsQueryVariables>;
1778
+ export declare const ListLedgerSchedulesDocument: DocumentNode<ListLedgerSchedulesQuery, ListLedgerSchedulesQueryVariables>;
1779
+ export declare const GetLedgerStatementDocument: DocumentNode<GetLedgerStatementQuery, GetLedgerStatementQueryVariables>;
1780
+ export declare const ListLedgerStructuresDocument: DocumentNode<ListLedgerStructuresQuery, ListLedgerStructuresQueryVariables>;
1781
+ export declare const GetLedgerSummaryDocument: DocumentNode<GetLedgerSummaryQuery, GetLedgerSummaryQueryVariables>;
1782
+ export declare const ListLedgerTaxonomiesDocument: DocumentNode<ListLedgerTaxonomiesQuery, ListLedgerTaxonomiesQueryVariables>;
1783
+ export declare const GetLedgerTransactionDocument: DocumentNode<GetLedgerTransactionQuery, GetLedgerTransactionQueryVariables>;
1784
+ export declare const ListLedgerTransactionsDocument: DocumentNode<ListLedgerTransactionsQuery, ListLedgerTransactionsQueryVariables>;
1785
+ export declare const GetLedgerTrialBalanceDocument: DocumentNode<GetLedgerTrialBalanceQuery, GetLedgerTrialBalanceQueryVariables>;
1786
+ export declare const ListLedgerUnmappedElementsDocument: DocumentNode<ListLedgerUnmappedElementsQuery, ListLedgerUnmappedElementsQueryVariables>;