@robosystems/client 1.14.0 → 1.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  import type { AssociationResponse, AutoMapElementsOperation, BindTextBlockRequest, BindTextBlockResponse, BlockedSourceGraphResponse, BlockSourceGraphResult, ComputeMetricsRequest, ComputeMetricsResponse, CreateAgentRequest, CreateEventBlockRequest, CreateEventHandlerRequest, CreateInformationBlockRequest, CreateMappingAssociationOperation, CreateTaxonomyBlockRequest, CreateViewRequest, DeleteInformationBlockRequest, DeleteInformationBlockResponse, DeleteMappingAssociationOperation, DeleteResult, DeleteTaxonomyBlockRequest, DeleteTaxonomyBlockResponse, EntityTaxonomyResponse, EvaluateRulesRequest, EvaluateRulesResponse, EventBlockEnvelope, EventHandlerResponse, FinancialStatementAnalysisRequest, FinancialStatementAnalysisResponse, InformationBlockEnvelope, JournalEntryResponse, LedgerAgentResponse, LinkEntityTaxonomyRequest, LiveFinancialStatementRequest, LiveFinancialStatementResponse, OperationEnvelope, PreviewEventBlockResponse, PublishListMemberResponse, PublishListResponse, ReportResponse, RevokeReportShareResponse, ShareReportResponse, TaxonomyBlockEnvelope, UpdateAgentRequest, UpdateEntityRequest, UpdateEventBlockRequest, UpdateEventHandlerRequest, UpdateInformationBlockRequest, UpdateJournalEntryRequest, UpdateTaxonomyBlockRequest, ViewResponse } from '../types.gen';
2
2
  import type { TokenProvider } from './graphql/client';
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 ListLedgerBlockedSourceGraphsQuery, type ListLedgerElementsQuery, type ListLedgerEntitiesQuery, type ListLedgerEventBlocksQuery, type ListLedgerMappingsQuery, type ListLedgerPublishListsQuery, type ListLedgerReportsQuery, type ListLedgerStructuresQuery, type ListLedgerTaxonomiesQuery, type ListLedgerTransactionsQuery, type ListLedgerUnmappedElementsQuery, type MappingCandidatesQuery, type ReportDownloadFormat } 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 ListLedgerBlockedSourceGraphsQuery, type ListLedgerElementsQuery, type ListLedgerEntitiesQuery, type ListLedgerEventBlocksQuery, type ListLedgerJournalEntriesQuery, type ListLedgerMappingsQuery, type ListLedgerPublishListsQuery, type ListLedgerReportsQuery, type ListLedgerStructuresQuery, type ListLedgerTaxonomiesQuery, type ListLedgerTransactionsQuery, type ListLedgerUnmappedElementsQuery, type MappingCandidatesQuery, type ReportDownloadFormat } from './graphql/generated/graphql';
4
4
  export { GraphQLError } from './graphql/client';
5
5
  export type LedgerEntity = NonNullable<GetLedgerEntityQuery['entity']>;
6
6
  export type LedgerEntitySummary = ListLedgerEntitiesQuery['entities'][number];
@@ -14,6 +14,8 @@ export type LedgerMappedTrialBalance = NonNullable<GetLedgerMappedTrialBalanceQu
14
14
  export type LedgerTransactionList = NonNullable<ListLedgerTransactionsQuery['transactions']>;
15
15
  export type LedgerTransactionListItem = LedgerTransactionList['transactions'][number];
16
16
  export type LedgerTransaction = NonNullable<GetLedgerTransactionQuery['transaction']>;
17
+ export type LedgerJournalEntryList = NonNullable<ListLedgerJournalEntriesQuery['journalEntries']>;
18
+ export type LedgerJournalEntry = LedgerJournalEntryList['entries'][number];
17
19
  export type LedgerEventBlock = ListLedgerEventBlocksQuery['eventBlocks'][number];
18
20
  export type LedgerEventBlockDetail = NonNullable<GetLedgerEventBlockQuery['eventBlock']>;
19
21
  export type LedgerAgent = ListLedgerAgentsQuery['agents'][number];
@@ -283,6 +285,29 @@ export declare class LedgerClient {
283
285
  limit?: number;
284
286
  offset?: number;
285
287
  }): Promise<LedgerTransactionList | null>;
288
+ /**
289
+ * List journal entries with their line items, newest first.
290
+ *
291
+ * The entry-centric read. `listTransactions` walks transactions and hangs
292
+ * entries off them, so an entry with no parent transaction appears in
293
+ * nothing it returns — and the schedule engine and event handlers create
294
+ * exactly those, which is why everything a period close posts is absent
295
+ * from that surface. Here `transactionId` is null for a standalone entry
296
+ * rather than absent data.
297
+ *
298
+ * Filter by `provenance` (`schedule_derived` for what a close posted),
299
+ * `type` (`adjusting` / `closing`), `status`, or a parent `transactionId`.
300
+ */
301
+ listJournalEntries(graphId: string, options?: {
302
+ startDate?: string;
303
+ endDate?: string;
304
+ status?: string;
305
+ type?: string;
306
+ provenance?: string;
307
+ transactionId?: string;
308
+ limit?: number;
309
+ offset?: number;
310
+ }): Promise<LedgerJournalEntryList | null>;
286
311
  /** Get transaction detail with entries + line items. */
287
312
  getTransaction(graphId: string, transactionId: string): Promise<LedgerTransaction | null>;
288
313
  /**
@@ -701,7 +726,8 @@ export declare class LedgerClient {
701
726
  *
702
727
  * @param graphId Graph identifier owning the Report.
703
728
  * @param reportId Report identifier (rpt_-prefixed ULID).
704
- * @param options.format Serialization flavor — `JSONLD` (default) or `XBRL_2_1`.
729
+ * @param options.format Serialization flavor — `JSONLD` (default), `HOLON_JSONLD`,
730
+ * `XBRL_2_1`, or `TAVI` (the Project Tavi compiled model).
705
731
  * @param options.expiresIn Presigned URL lifetime, in seconds.
706
732
  */
707
733
  getReportDownloadUrl(graphId: string, reportId: string, options?: {
@@ -84,6 +84,32 @@ class LedgerClient {
84
84
  offset: options?.offset ?? 0,
85
85
  }, 'List transactions', (data) => data.transactions);
86
86
  }
87
+ // ── Journal entries ─────────────────────────────────────────────────
88
+ /**
89
+ * List journal entries with their line items, newest first.
90
+ *
91
+ * The entry-centric read. `listTransactions` walks transactions and hangs
92
+ * entries off them, so an entry with no parent transaction appears in
93
+ * nothing it returns — and the schedule engine and event handlers create
94
+ * exactly those, which is why everything a period close posts is absent
95
+ * from that surface. Here `transactionId` is null for a standalone entry
96
+ * rather than absent data.
97
+ *
98
+ * Filter by `provenance` (`schedule_derived` for what a close posted),
99
+ * `type` (`adjusting` / `closing`), `status`, or a parent `transactionId`.
100
+ */
101
+ async listJournalEntries(graphId, options) {
102
+ return this.gqlQuery(graphId, graphql_1.ListLedgerJournalEntriesDocument, {
103
+ startDate: options?.startDate ?? null,
104
+ endDate: options?.endDate ?? null,
105
+ status: options?.status ?? null,
106
+ type: options?.type ?? null,
107
+ provenance: options?.provenance ?? null,
108
+ transactionId: options?.transactionId ?? null,
109
+ limit: options?.limit ?? 100,
110
+ offset: options?.offset ?? 0,
111
+ }, 'List journal entries', (data) => data.journalEntries);
112
+ }
87
113
  /** Get transaction detail with entries + line items. */
88
114
  async getTransaction(graphId, transactionId) {
89
115
  return this.gqlQuery(graphId, graphql_1.GetLedgerTransactionDocument, { transactionId }, 'Get transaction', (data) => data.transaction);
@@ -894,7 +920,8 @@ class LedgerClient {
894
920
  *
895
921
  * @param graphId Graph identifier owning the Report.
896
922
  * @param reportId Report identifier (rpt_-prefixed ULID).
897
- * @param options.format Serialization flavor — `JSONLD` (default) or `XBRL_2_1`.
923
+ * @param options.format Serialization flavor — `JSONLD` (default), `HOLON_JSONLD`,
924
+ * `XBRL_2_1`, or `TAVI` (the Project Tavi compiled model).
898
925
  * @param options.expiresIn Presigned URL lifetime, in seconds.
899
926
  */
900
927
  async getReportDownloadUrl(graphId, reportId, options = {}) {
@@ -169,6 +169,7 @@ import {
169
169
  ListLedgerElementsDocument,
170
170
  ListLedgerEntitiesDocument,
171
171
  ListLedgerEventBlocksDocument,
172
+ ListLedgerJournalEntriesDocument,
172
173
  ListLedgerMappingsDocument,
173
174
  ListLedgerPublishListsDocument,
174
175
  ListLedgerReportsDocument,
@@ -205,6 +206,7 @@ import {
205
206
  type ListLedgerElementsQuery,
206
207
  type ListLedgerEntitiesQuery,
207
208
  type ListLedgerEventBlocksQuery,
209
+ type ListLedgerJournalEntriesQuery,
208
210
  type ListLedgerMappingsQuery,
209
211
  type ListLedgerPublishListsQuery,
210
212
  type ListLedgerReportsQuery,
@@ -246,6 +248,9 @@ export type LedgerTransactionList = NonNullable<ListLedgerTransactionsQuery['tra
246
248
  export type LedgerTransactionListItem = LedgerTransactionList['transactions'][number]
247
249
  export type LedgerTransaction = NonNullable<GetLedgerTransactionQuery['transaction']>
248
250
 
251
+ export type LedgerJournalEntryList = NonNullable<ListLedgerJournalEntriesQuery['journalEntries']>
252
+ export type LedgerJournalEntry = LedgerJournalEntryList['entries'][number]
253
+
249
254
  export type LedgerEventBlock = ListLedgerEventBlocksQuery['eventBlocks'][number]
250
255
  export type LedgerEventBlockDetail = NonNullable<GetLedgerEventBlockQuery['eventBlock']>
251
256
 
@@ -749,6 +754,52 @@ export class LedgerClient {
749
754
  )
750
755
  }
751
756
 
757
+ // ── Journal entries ─────────────────────────────────────────────────
758
+
759
+ /**
760
+ * List journal entries with their line items, newest first.
761
+ *
762
+ * The entry-centric read. `listTransactions` walks transactions and hangs
763
+ * entries off them, so an entry with no parent transaction appears in
764
+ * nothing it returns — and the schedule engine and event handlers create
765
+ * exactly those, which is why everything a period close posts is absent
766
+ * from that surface. Here `transactionId` is null for a standalone entry
767
+ * rather than absent data.
768
+ *
769
+ * Filter by `provenance` (`schedule_derived` for what a close posted),
770
+ * `type` (`adjusting` / `closing`), `status`, or a parent `transactionId`.
771
+ */
772
+ async listJournalEntries(
773
+ graphId: string,
774
+ options?: {
775
+ startDate?: string
776
+ endDate?: string
777
+ status?: string
778
+ type?: string
779
+ provenance?: string
780
+ transactionId?: string
781
+ limit?: number
782
+ offset?: number
783
+ }
784
+ ): Promise<LedgerJournalEntryList | null> {
785
+ return this.gqlQuery(
786
+ graphId,
787
+ ListLedgerJournalEntriesDocument,
788
+ {
789
+ startDate: options?.startDate ?? null,
790
+ endDate: options?.endDate ?? null,
791
+ status: options?.status ?? null,
792
+ type: options?.type ?? null,
793
+ provenance: options?.provenance ?? null,
794
+ transactionId: options?.transactionId ?? null,
795
+ limit: options?.limit ?? 100,
796
+ offset: options?.offset ?? 0,
797
+ },
798
+ 'List journal entries',
799
+ (data) => data.journalEntries
800
+ )
801
+ }
802
+
752
803
  /** Get transaction detail with entries + line items. */
753
804
  async getTransaction(graphId: string, transactionId: string): Promise<LedgerTransaction | null> {
754
805
  return this.gqlQuery(
@@ -2139,7 +2190,8 @@ export class LedgerClient {
2139
2190
  *
2140
2191
  * @param graphId Graph identifier owning the Report.
2141
2192
  * @param reportId Report identifier (rpt_-prefixed ULID).
2142
- * @param options.format Serialization flavor — `JSONLD` (default) or `XBRL_2_1`.
2193
+ * @param options.format Serialization flavor — `JSONLD` (default), `HOLON_JSONLD`,
2194
+ * `XBRL_2_1`, or `TAVI` (the Project Tavi compiled model).
2143
2195
  * @param options.expiresIn Presigned URL lifetime, in seconds.
2144
2196
  */
2145
2197
  async getReportDownloadUrl(
@@ -9,7 +9,7 @@ export type Incremental<T> = T | {
9
9
  [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never;
10
10
  };
11
11
  import type { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';
12
- export type ReportDownloadFormat = 'HOLON_JSONLD' | 'JSONLD' | 'XBRL_2_1';
12
+ export type ReportDownloadFormat = 'HOLON_JSONLD' | 'JSONLD' | 'TAVI' | 'XBRL_2_1';
13
13
  export type GetInvestorHoldingsQueryVariables = Exact<{
14
14
  portfolioId: string;
15
15
  }>;
@@ -1111,6 +1111,54 @@ export type ListInformationBlocksQuery = {
1111
1111
  };
1112
1112
  }>;
1113
1113
  };
1114
+ export type ListLedgerJournalEntriesQueryVariables = Exact<{
1115
+ startDate: string | null | undefined;
1116
+ endDate: string | null | undefined;
1117
+ status: string | null | undefined;
1118
+ type: string | null | undefined;
1119
+ provenance: string | null | undefined;
1120
+ transactionId: string | null | undefined;
1121
+ limit?: number;
1122
+ offset?: number;
1123
+ }>;
1124
+ export type ListLedgerJournalEntriesQuery = {
1125
+ journalEntries: {
1126
+ entries: Array<{
1127
+ id: string;
1128
+ number: string | null;
1129
+ transactionId: string | null;
1130
+ type: string;
1131
+ status: string;
1132
+ postingDate: string;
1133
+ memo: string | null;
1134
+ provenance: string | null;
1135
+ sourceStructureId: string | null;
1136
+ sourceStructureName: string | null;
1137
+ triggeredByEventId: string | null;
1138
+ reversalOf: string | null;
1139
+ postedAt: string | null;
1140
+ totalDebit: number;
1141
+ totalCredit: number;
1142
+ balanced: boolean;
1143
+ lineItems: Array<{
1144
+ id: string;
1145
+ accountId: string;
1146
+ accountName: string | null;
1147
+ accountCode: string | null;
1148
+ debitAmount: number;
1149
+ creditAmount: number;
1150
+ description: string | null;
1151
+ lineOrder: number;
1152
+ }>;
1153
+ }>;
1154
+ pagination: {
1155
+ total: number;
1156
+ limit: number;
1157
+ offset: number;
1158
+ hasMore: boolean;
1159
+ };
1160
+ } | null;
1161
+ };
1114
1162
  export type GetLedgerMappedTrialBalanceQueryVariables = Exact<{
1115
1163
  mappingId: string;
1116
1164
  startDate: string | null | undefined;
@@ -2064,6 +2112,7 @@ export declare const GetLedgerFiscalCalendarDocument: DocumentNode<GetLedgerFisc
2064
2112
  export declare const GetInformationBlockDocument: DocumentNode<GetInformationBlockQuery, GetInformationBlockQueryVariables>;
2065
2113
  export declare const GetInformationBlockWindowedDocument: DocumentNode<GetInformationBlockWindowedQuery, GetInformationBlockWindowedQueryVariables>;
2066
2114
  export declare const ListInformationBlocksDocument: DocumentNode<ListInformationBlocksQuery, ListInformationBlocksQueryVariables>;
2115
+ export declare const ListLedgerJournalEntriesDocument: DocumentNode<ListLedgerJournalEntriesQuery, ListLedgerJournalEntriesQueryVariables>;
2067
2116
  export declare const GetLedgerMappedTrialBalanceDocument: DocumentNode<GetLedgerMappedTrialBalanceQuery, GetLedgerMappedTrialBalanceQueryVariables>;
2068
2117
  export declare const GetLedgerMappingDocument: DocumentNode<GetLedgerMappingQuery, GetLedgerMappingQueryVariables>;
2069
2118
  export declare const MappingCandidatesDocument: DocumentNode<MappingCandidatesQuery, MappingCandidatesQueryVariables>;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ListLibraryElementsDocument = exports.GetLibraryElementEquivalentsDocument = exports.GetLibraryElementClassificationsDocument = exports.GetLibraryElementArcsDocument = exports.ListLibraryTaxonomyArcsDocument = exports.ListLedgerUnmappedElementsDocument = exports.GetLedgerTrialBalanceDocument = exports.ListLedgerTransactionsDocument = exports.GetLedgerTransactionDocument = exports.ListLedgerTaxonomiesDocument = exports.GetLedgerSummaryDocument = exports.ListLedgerStructuresDocument = exports.GetLedgerStatementDocument = exports.ListLedgerReportsDocument = exports.GetLedgerReportingTaxonomyDocument = exports.GetLedgerReportPackageDocument = exports.GetLedgerReportDownloadUrlDocument = exports.GetLedgerReportDocument = exports.ListLedgerPublishListsDocument = exports.GetLedgerPublishListDocument = exports.GetLedgerPeriodDraftsDocument = exports.GetLedgerPeriodCloseStatusDocument = exports.ListLedgerMappingsDocument = exports.GetLedgerMappingCoverageDocument = exports.MappingCandidatesDocument = exports.GetLedgerMappingDocument = exports.GetLedgerMappedTrialBalanceDocument = exports.ListInformationBlocksDocument = exports.GetInformationBlockWindowedDocument = exports.GetInformationBlockDocument = exports.GetLedgerFiscalCalendarDocument = exports.ListLedgerEventBlocksDocument = exports.GetLedgerEventBlockDocument = exports.GetLedgerEntityDocument = exports.ListLedgerEntitiesDocument = exports.ListLedgerElementsDocument = exports.GetLedgerClosingBookStructuresDocument = exports.ListLedgerBlockedSourceGraphsDocument = exports.ListLedgerAgentsDocument = exports.GetLedgerAgentDocument = exports.ListLedgerAccountsDocument = exports.GetLedgerAccountTreeDocument = exports.GetLedgerAccountRollupsDocument = exports.GetInvestorSecurityDocument = exports.ListInvestorSecuritiesDocument = exports.ListInvestorPositionsDocument = exports.GetInvestorPositionDocument = exports.ListInvestorPortfoliosDocument = exports.GetInvestorPortfolioBlockDocument = exports.GetInvestorHoldingsDocument = void 0;
4
- exports.GetLibraryTaxonomyDocument = exports.ListLibraryTaxonomiesDocument = exports.GetLibraryStructureDocument = exports.ListLibraryStructuresDocument = exports.GetLibraryElementDocument = exports.SearchLibraryElementsDocument = void 0;
3
+ exports.GetLibraryElementEquivalentsDocument = exports.GetLibraryElementClassificationsDocument = exports.GetLibraryElementArcsDocument = exports.ListLibraryTaxonomyArcsDocument = exports.ListLedgerUnmappedElementsDocument = exports.GetLedgerTrialBalanceDocument = exports.ListLedgerTransactionsDocument = exports.GetLedgerTransactionDocument = exports.ListLedgerTaxonomiesDocument = exports.GetLedgerSummaryDocument = exports.ListLedgerStructuresDocument = exports.GetLedgerStatementDocument = exports.ListLedgerReportsDocument = exports.GetLedgerReportingTaxonomyDocument = exports.GetLedgerReportPackageDocument = exports.GetLedgerReportDownloadUrlDocument = exports.GetLedgerReportDocument = exports.ListLedgerPublishListsDocument = exports.GetLedgerPublishListDocument = exports.GetLedgerPeriodDraftsDocument = exports.GetLedgerPeriodCloseStatusDocument = exports.ListLedgerMappingsDocument = exports.GetLedgerMappingCoverageDocument = exports.MappingCandidatesDocument = exports.GetLedgerMappingDocument = exports.GetLedgerMappedTrialBalanceDocument = exports.ListLedgerJournalEntriesDocument = exports.ListInformationBlocksDocument = exports.GetInformationBlockWindowedDocument = exports.GetInformationBlockDocument = exports.GetLedgerFiscalCalendarDocument = exports.ListLedgerEventBlocksDocument = exports.GetLedgerEventBlockDocument = exports.GetLedgerEntityDocument = exports.ListLedgerEntitiesDocument = exports.ListLedgerElementsDocument = exports.GetLedgerClosingBookStructuresDocument = exports.ListLedgerBlockedSourceGraphsDocument = exports.ListLedgerAgentsDocument = exports.GetLedgerAgentDocument = exports.ListLedgerAccountsDocument = exports.GetLedgerAccountTreeDocument = exports.GetLedgerAccountRollupsDocument = exports.GetInvestorSecurityDocument = exports.ListInvestorSecuritiesDocument = exports.ListInvestorPositionsDocument = exports.GetInvestorPositionDocument = exports.ListInvestorPortfoliosDocument = exports.GetInvestorPortfolioBlockDocument = exports.GetInvestorHoldingsDocument = void 0;
4
+ exports.GetLibraryTaxonomyDocument = exports.ListLibraryTaxonomiesDocument = exports.GetLibraryStructureDocument = exports.ListLibraryStructuresDocument = exports.GetLibraryElementDocument = exports.SearchLibraryElementsDocument = exports.ListLibraryElementsDocument = void 0;
5
5
  exports.GetInvestorHoldingsDocument = {
6
6
  kind: 'Document',
7
7
  definitions: [
@@ -2867,6 +2867,177 @@ exports.ListInformationBlocksDocument = {
2867
2867
  },
2868
2868
  ],
2869
2869
  };
2870
+ exports.ListLedgerJournalEntriesDocument = {
2871
+ kind: 'Document',
2872
+ definitions: [
2873
+ {
2874
+ kind: 'OperationDefinition',
2875
+ operation: 'query',
2876
+ name: { kind: 'Name', value: 'ListLedgerJournalEntries' },
2877
+ variableDefinitions: [
2878
+ {
2879
+ kind: 'VariableDefinition',
2880
+ variable: { kind: 'Variable', name: { kind: 'Name', value: 'startDate' } },
2881
+ type: { kind: 'NamedType', name: { kind: 'Name', value: 'Date' } },
2882
+ },
2883
+ {
2884
+ kind: 'VariableDefinition',
2885
+ variable: { kind: 'Variable', name: { kind: 'Name', value: 'endDate' } },
2886
+ type: { kind: 'NamedType', name: { kind: 'Name', value: 'Date' } },
2887
+ },
2888
+ {
2889
+ kind: 'VariableDefinition',
2890
+ variable: { kind: 'Variable', name: { kind: 'Name', value: 'status' } },
2891
+ type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } },
2892
+ },
2893
+ {
2894
+ kind: 'VariableDefinition',
2895
+ variable: { kind: 'Variable', name: { kind: 'Name', value: 'type' } },
2896
+ type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } },
2897
+ },
2898
+ {
2899
+ kind: 'VariableDefinition',
2900
+ variable: { kind: 'Variable', name: { kind: 'Name', value: 'provenance' } },
2901
+ type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } },
2902
+ },
2903
+ {
2904
+ kind: 'VariableDefinition',
2905
+ variable: { kind: 'Variable', name: { kind: 'Name', value: 'transactionId' } },
2906
+ type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } },
2907
+ },
2908
+ {
2909
+ kind: 'VariableDefinition',
2910
+ variable: { kind: 'Variable', name: { kind: 'Name', value: 'limit' } },
2911
+ type: {
2912
+ kind: 'NonNullType',
2913
+ type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } },
2914
+ },
2915
+ defaultValue: { kind: 'IntValue', value: '100' },
2916
+ },
2917
+ {
2918
+ kind: 'VariableDefinition',
2919
+ variable: { kind: 'Variable', name: { kind: 'Name', value: 'offset' } },
2920
+ type: {
2921
+ kind: 'NonNullType',
2922
+ type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } },
2923
+ },
2924
+ defaultValue: { kind: 'IntValue', value: '0' },
2925
+ },
2926
+ ],
2927
+ selectionSet: {
2928
+ kind: 'SelectionSet',
2929
+ selections: [
2930
+ {
2931
+ kind: 'Field',
2932
+ name: { kind: 'Name', value: 'journalEntries' },
2933
+ arguments: [
2934
+ {
2935
+ kind: 'Argument',
2936
+ name: { kind: 'Name', value: 'startDate' },
2937
+ value: { kind: 'Variable', name: { kind: 'Name', value: 'startDate' } },
2938
+ },
2939
+ {
2940
+ kind: 'Argument',
2941
+ name: { kind: 'Name', value: 'endDate' },
2942
+ value: { kind: 'Variable', name: { kind: 'Name', value: 'endDate' } },
2943
+ },
2944
+ {
2945
+ kind: 'Argument',
2946
+ name: { kind: 'Name', value: 'status' },
2947
+ value: { kind: 'Variable', name: { kind: 'Name', value: 'status' } },
2948
+ },
2949
+ {
2950
+ kind: 'Argument',
2951
+ name: { kind: 'Name', value: 'type' },
2952
+ value: { kind: 'Variable', name: { kind: 'Name', value: 'type' } },
2953
+ },
2954
+ {
2955
+ kind: 'Argument',
2956
+ name: { kind: 'Name', value: 'provenance' },
2957
+ value: { kind: 'Variable', name: { kind: 'Name', value: 'provenance' } },
2958
+ },
2959
+ {
2960
+ kind: 'Argument',
2961
+ name: { kind: 'Name', value: 'transactionId' },
2962
+ value: { kind: 'Variable', name: { kind: 'Name', value: 'transactionId' } },
2963
+ },
2964
+ {
2965
+ kind: 'Argument',
2966
+ name: { kind: 'Name', value: 'limit' },
2967
+ value: { kind: 'Variable', name: { kind: 'Name', value: 'limit' } },
2968
+ },
2969
+ {
2970
+ kind: 'Argument',
2971
+ name: { kind: 'Name', value: 'offset' },
2972
+ value: { kind: 'Variable', name: { kind: 'Name', value: 'offset' } },
2973
+ },
2974
+ ],
2975
+ selectionSet: {
2976
+ kind: 'SelectionSet',
2977
+ selections: [
2978
+ {
2979
+ kind: 'Field',
2980
+ name: { kind: 'Name', value: 'entries' },
2981
+ selectionSet: {
2982
+ kind: 'SelectionSet',
2983
+ selections: [
2984
+ { kind: 'Field', name: { kind: 'Name', value: 'id' } },
2985
+ { kind: 'Field', name: { kind: 'Name', value: 'number' } },
2986
+ { kind: 'Field', name: { kind: 'Name', value: 'transactionId' } },
2987
+ { kind: 'Field', name: { kind: 'Name', value: 'type' } },
2988
+ { kind: 'Field', name: { kind: 'Name', value: 'status' } },
2989
+ { kind: 'Field', name: { kind: 'Name', value: 'postingDate' } },
2990
+ { kind: 'Field', name: { kind: 'Name', value: 'memo' } },
2991
+ { kind: 'Field', name: { kind: 'Name', value: 'provenance' } },
2992
+ { kind: 'Field', name: { kind: 'Name', value: 'sourceStructureId' } },
2993
+ { kind: 'Field', name: { kind: 'Name', value: 'sourceStructureName' } },
2994
+ { kind: 'Field', name: { kind: 'Name', value: 'triggeredByEventId' } },
2995
+ { kind: 'Field', name: { kind: 'Name', value: 'reversalOf' } },
2996
+ { kind: 'Field', name: { kind: 'Name', value: 'postedAt' } },
2997
+ { kind: 'Field', name: { kind: 'Name', value: 'totalDebit' } },
2998
+ { kind: 'Field', name: { kind: 'Name', value: 'totalCredit' } },
2999
+ { kind: 'Field', name: { kind: 'Name', value: 'balanced' } },
3000
+ {
3001
+ kind: 'Field',
3002
+ name: { kind: 'Name', value: 'lineItems' },
3003
+ selectionSet: {
3004
+ kind: 'SelectionSet',
3005
+ selections: [
3006
+ { kind: 'Field', name: { kind: 'Name', value: 'id' } },
3007
+ { kind: 'Field', name: { kind: 'Name', value: 'accountId' } },
3008
+ { kind: 'Field', name: { kind: 'Name', value: 'accountName' } },
3009
+ { kind: 'Field', name: { kind: 'Name', value: 'accountCode' } },
3010
+ { kind: 'Field', name: { kind: 'Name', value: 'debitAmount' } },
3011
+ { kind: 'Field', name: { kind: 'Name', value: 'creditAmount' } },
3012
+ { kind: 'Field', name: { kind: 'Name', value: 'description' } },
3013
+ { kind: 'Field', name: { kind: 'Name', value: 'lineOrder' } },
3014
+ ],
3015
+ },
3016
+ },
3017
+ ],
3018
+ },
3019
+ },
3020
+ {
3021
+ kind: 'Field',
3022
+ name: { kind: 'Name', value: 'pagination' },
3023
+ selectionSet: {
3024
+ kind: 'SelectionSet',
3025
+ selections: [
3026
+ { kind: 'Field', name: { kind: 'Name', value: 'total' } },
3027
+ { kind: 'Field', name: { kind: 'Name', value: 'limit' } },
3028
+ { kind: 'Field', name: { kind: 'Name', value: 'offset' } },
3029
+ { kind: 'Field', name: { kind: 'Name', value: 'hasMore' } },
3030
+ ],
3031
+ },
3032
+ },
3033
+ ],
3034
+ },
3035
+ },
3036
+ ],
3037
+ },
3038
+ },
3039
+ ],
3040
+ };
2870
3041
  exports.GetLedgerMappedTrialBalanceDocument = {
2871
3042
  kind: 'Document',
2872
3043
  definitions: [
@@ -4,7 +4,7 @@ type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] }
4
4
  export type Incremental<T> =
5
5
  T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never }
6
6
  import type { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core'
7
- export type ReportDownloadFormat = 'HOLON_JSONLD' | 'JSONLD' | 'XBRL_2_1'
7
+ export type ReportDownloadFormat = 'HOLON_JSONLD' | 'JSONLD' | 'TAVI' | 'XBRL_2_1'
8
8
 
9
9
  export type GetInvestorHoldingsQueryVariables = Exact<{
10
10
  portfolioId: string
@@ -1068,6 +1068,51 @@ export type ListInformationBlocksQuery = {
1068
1068
  }>
1069
1069
  }
1070
1070
 
1071
+ export type ListLedgerJournalEntriesQueryVariables = Exact<{
1072
+ startDate: string | null | undefined
1073
+ endDate: string | null | undefined
1074
+ status: string | null | undefined
1075
+ type: string | null | undefined
1076
+ provenance: string | null | undefined
1077
+ transactionId: string | null | undefined
1078
+ limit?: number
1079
+ offset?: number
1080
+ }>
1081
+
1082
+ export type ListLedgerJournalEntriesQuery = {
1083
+ journalEntries: {
1084
+ entries: Array<{
1085
+ id: string
1086
+ number: string | null
1087
+ transactionId: string | null
1088
+ type: string
1089
+ status: string
1090
+ postingDate: string
1091
+ memo: string | null
1092
+ provenance: string | null
1093
+ sourceStructureId: string | null
1094
+ sourceStructureName: string | null
1095
+ triggeredByEventId: string | null
1096
+ reversalOf: string | null
1097
+ postedAt: string | null
1098
+ totalDebit: number
1099
+ totalCredit: number
1100
+ balanced: boolean
1101
+ lineItems: Array<{
1102
+ id: string
1103
+ accountId: string
1104
+ accountName: string | null
1105
+ accountCode: string | null
1106
+ debitAmount: number
1107
+ creditAmount: number
1108
+ description: string | null
1109
+ lineOrder: number
1110
+ }>
1111
+ }>
1112
+ pagination: { total: number; limit: number; offset: number; hasMore: boolean }
1113
+ } | null
1114
+ }
1115
+
1071
1116
  export type GetLedgerMappedTrialBalanceQueryVariables = Exact<{
1072
1117
  mappingId: string
1073
1118
  startDate: string | null | undefined
@@ -4849,6 +4894,177 @@ export const ListInformationBlocksDocument = {
4849
4894
  },
4850
4895
  ],
4851
4896
  } as unknown as DocumentNode<ListInformationBlocksQuery, ListInformationBlocksQueryVariables>
4897
+ export const ListLedgerJournalEntriesDocument = {
4898
+ kind: 'Document',
4899
+ definitions: [
4900
+ {
4901
+ kind: 'OperationDefinition',
4902
+ operation: 'query',
4903
+ name: { kind: 'Name', value: 'ListLedgerJournalEntries' },
4904
+ variableDefinitions: [
4905
+ {
4906
+ kind: 'VariableDefinition',
4907
+ variable: { kind: 'Variable', name: { kind: 'Name', value: 'startDate' } },
4908
+ type: { kind: 'NamedType', name: { kind: 'Name', value: 'Date' } },
4909
+ },
4910
+ {
4911
+ kind: 'VariableDefinition',
4912
+ variable: { kind: 'Variable', name: { kind: 'Name', value: 'endDate' } },
4913
+ type: { kind: 'NamedType', name: { kind: 'Name', value: 'Date' } },
4914
+ },
4915
+ {
4916
+ kind: 'VariableDefinition',
4917
+ variable: { kind: 'Variable', name: { kind: 'Name', value: 'status' } },
4918
+ type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } },
4919
+ },
4920
+ {
4921
+ kind: 'VariableDefinition',
4922
+ variable: { kind: 'Variable', name: { kind: 'Name', value: 'type' } },
4923
+ type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } },
4924
+ },
4925
+ {
4926
+ kind: 'VariableDefinition',
4927
+ variable: { kind: 'Variable', name: { kind: 'Name', value: 'provenance' } },
4928
+ type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } },
4929
+ },
4930
+ {
4931
+ kind: 'VariableDefinition',
4932
+ variable: { kind: 'Variable', name: { kind: 'Name', value: 'transactionId' } },
4933
+ type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } },
4934
+ },
4935
+ {
4936
+ kind: 'VariableDefinition',
4937
+ variable: { kind: 'Variable', name: { kind: 'Name', value: 'limit' } },
4938
+ type: {
4939
+ kind: 'NonNullType',
4940
+ type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } },
4941
+ },
4942
+ defaultValue: { kind: 'IntValue', value: '100' },
4943
+ },
4944
+ {
4945
+ kind: 'VariableDefinition',
4946
+ variable: { kind: 'Variable', name: { kind: 'Name', value: 'offset' } },
4947
+ type: {
4948
+ kind: 'NonNullType',
4949
+ type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } },
4950
+ },
4951
+ defaultValue: { kind: 'IntValue', value: '0' },
4952
+ },
4953
+ ],
4954
+ selectionSet: {
4955
+ kind: 'SelectionSet',
4956
+ selections: [
4957
+ {
4958
+ kind: 'Field',
4959
+ name: { kind: 'Name', value: 'journalEntries' },
4960
+ arguments: [
4961
+ {
4962
+ kind: 'Argument',
4963
+ name: { kind: 'Name', value: 'startDate' },
4964
+ value: { kind: 'Variable', name: { kind: 'Name', value: 'startDate' } },
4965
+ },
4966
+ {
4967
+ kind: 'Argument',
4968
+ name: { kind: 'Name', value: 'endDate' },
4969
+ value: { kind: 'Variable', name: { kind: 'Name', value: 'endDate' } },
4970
+ },
4971
+ {
4972
+ kind: 'Argument',
4973
+ name: { kind: 'Name', value: 'status' },
4974
+ value: { kind: 'Variable', name: { kind: 'Name', value: 'status' } },
4975
+ },
4976
+ {
4977
+ kind: 'Argument',
4978
+ name: { kind: 'Name', value: 'type' },
4979
+ value: { kind: 'Variable', name: { kind: 'Name', value: 'type' } },
4980
+ },
4981
+ {
4982
+ kind: 'Argument',
4983
+ name: { kind: 'Name', value: 'provenance' },
4984
+ value: { kind: 'Variable', name: { kind: 'Name', value: 'provenance' } },
4985
+ },
4986
+ {
4987
+ kind: 'Argument',
4988
+ name: { kind: 'Name', value: 'transactionId' },
4989
+ value: { kind: 'Variable', name: { kind: 'Name', value: 'transactionId' } },
4990
+ },
4991
+ {
4992
+ kind: 'Argument',
4993
+ name: { kind: 'Name', value: 'limit' },
4994
+ value: { kind: 'Variable', name: { kind: 'Name', value: 'limit' } },
4995
+ },
4996
+ {
4997
+ kind: 'Argument',
4998
+ name: { kind: 'Name', value: 'offset' },
4999
+ value: { kind: 'Variable', name: { kind: 'Name', value: 'offset' } },
5000
+ },
5001
+ ],
5002
+ selectionSet: {
5003
+ kind: 'SelectionSet',
5004
+ selections: [
5005
+ {
5006
+ kind: 'Field',
5007
+ name: { kind: 'Name', value: 'entries' },
5008
+ selectionSet: {
5009
+ kind: 'SelectionSet',
5010
+ selections: [
5011
+ { kind: 'Field', name: { kind: 'Name', value: 'id' } },
5012
+ { kind: 'Field', name: { kind: 'Name', value: 'number' } },
5013
+ { kind: 'Field', name: { kind: 'Name', value: 'transactionId' } },
5014
+ { kind: 'Field', name: { kind: 'Name', value: 'type' } },
5015
+ { kind: 'Field', name: { kind: 'Name', value: 'status' } },
5016
+ { kind: 'Field', name: { kind: 'Name', value: 'postingDate' } },
5017
+ { kind: 'Field', name: { kind: 'Name', value: 'memo' } },
5018
+ { kind: 'Field', name: { kind: 'Name', value: 'provenance' } },
5019
+ { kind: 'Field', name: { kind: 'Name', value: 'sourceStructureId' } },
5020
+ { kind: 'Field', name: { kind: 'Name', value: 'sourceStructureName' } },
5021
+ { kind: 'Field', name: { kind: 'Name', value: 'triggeredByEventId' } },
5022
+ { kind: 'Field', name: { kind: 'Name', value: 'reversalOf' } },
5023
+ { kind: 'Field', name: { kind: 'Name', value: 'postedAt' } },
5024
+ { kind: 'Field', name: { kind: 'Name', value: 'totalDebit' } },
5025
+ { kind: 'Field', name: { kind: 'Name', value: 'totalCredit' } },
5026
+ { kind: 'Field', name: { kind: 'Name', value: 'balanced' } },
5027
+ {
5028
+ kind: 'Field',
5029
+ name: { kind: 'Name', value: 'lineItems' },
5030
+ selectionSet: {
5031
+ kind: 'SelectionSet',
5032
+ selections: [
5033
+ { kind: 'Field', name: { kind: 'Name', value: 'id' } },
5034
+ { kind: 'Field', name: { kind: 'Name', value: 'accountId' } },
5035
+ { kind: 'Field', name: { kind: 'Name', value: 'accountName' } },
5036
+ { kind: 'Field', name: { kind: 'Name', value: 'accountCode' } },
5037
+ { kind: 'Field', name: { kind: 'Name', value: 'debitAmount' } },
5038
+ { kind: 'Field', name: { kind: 'Name', value: 'creditAmount' } },
5039
+ { kind: 'Field', name: { kind: 'Name', value: 'description' } },
5040
+ { kind: 'Field', name: { kind: 'Name', value: 'lineOrder' } },
5041
+ ],
5042
+ },
5043
+ },
5044
+ ],
5045
+ },
5046
+ },
5047
+ {
5048
+ kind: 'Field',
5049
+ name: { kind: 'Name', value: 'pagination' },
5050
+ selectionSet: {
5051
+ kind: 'SelectionSet',
5052
+ selections: [
5053
+ { kind: 'Field', name: { kind: 'Name', value: 'total' } },
5054
+ { kind: 'Field', name: { kind: 'Name', value: 'limit' } },
5055
+ { kind: 'Field', name: { kind: 'Name', value: 'offset' } },
5056
+ { kind: 'Field', name: { kind: 'Name', value: 'hasMore' } },
5057
+ ],
5058
+ },
5059
+ },
5060
+ ],
5061
+ },
5062
+ },
5063
+ ],
5064
+ },
5065
+ },
5066
+ ],
5067
+ } as unknown as DocumentNode<ListLedgerJournalEntriesQuery, ListLedgerJournalEntriesQueryVariables>
4852
5068
  export const GetLedgerMappedTrialBalanceDocument = {
4853
5069
  kind: 'Document',
4854
5070
  definitions: [
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Journal entry list with pagination and filters — the entry-centric read.
3
+ *
4
+ * `transactions` walks transactions and hangs entries off them, so an entry
5
+ * with no parent transaction appears in nothing it returns. The schedule
6
+ * engine and the event handlers create exactly those, which is why everything
7
+ * a period close posts is absent from that surface. Here `transactionId` is
8
+ * null for a standalone entry rather than absent data.
9
+ *
10
+ * `provenance` filters to where the entry came from (`schedule_derived` for
11
+ * what a close posted); `type` to the entry classification (`adjusting` /
12
+ * `closing`); `status` to the draft/posted/reversed lifecycle.
13
+ */
14
+ export declare const LIST_JOURNAL_ENTRIES: string;
@@ -0,0 +1,75 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LIST_JOURNAL_ENTRIES = void 0;
4
+ const graphql_request_1 = require("graphql-request");
5
+ /**
6
+ * Journal entry list with pagination and filters — the entry-centric read.
7
+ *
8
+ * `transactions` walks transactions and hangs entries off them, so an entry
9
+ * with no parent transaction appears in nothing it returns. The schedule
10
+ * engine and the event handlers create exactly those, which is why everything
11
+ * a period close posts is absent from that surface. Here `transactionId` is
12
+ * null for a standalone entry rather than absent data.
13
+ *
14
+ * `provenance` filters to where the entry came from (`schedule_derived` for
15
+ * what a close posted); `type` to the entry classification (`adjusting` /
16
+ * `closing`); `status` to the draft/posted/reversed lifecycle.
17
+ */
18
+ exports.LIST_JOURNAL_ENTRIES = (0, graphql_request_1.gql) `
19
+ query ListLedgerJournalEntries(
20
+ $startDate: Date
21
+ $endDate: Date
22
+ $status: String
23
+ $type: String
24
+ $provenance: String
25
+ $transactionId: String
26
+ $limit: Int! = 100
27
+ $offset: Int! = 0
28
+ ) {
29
+ journalEntries(
30
+ startDate: $startDate
31
+ endDate: $endDate
32
+ status: $status
33
+ type: $type
34
+ provenance: $provenance
35
+ transactionId: $transactionId
36
+ limit: $limit
37
+ offset: $offset
38
+ ) {
39
+ entries {
40
+ id
41
+ number
42
+ transactionId
43
+ type
44
+ status
45
+ postingDate
46
+ memo
47
+ provenance
48
+ sourceStructureId
49
+ sourceStructureName
50
+ triggeredByEventId
51
+ reversalOf
52
+ postedAt
53
+ totalDebit
54
+ totalCredit
55
+ balanced
56
+ lineItems {
57
+ id
58
+ accountId
59
+ accountName
60
+ accountCode
61
+ debitAmount
62
+ creditAmount
63
+ description
64
+ lineOrder
65
+ }
66
+ }
67
+ pagination {
68
+ total
69
+ limit
70
+ offset
71
+ hasMore
72
+ }
73
+ }
74
+ }
75
+ `;
@@ -0,0 +1,73 @@
1
+ import { gql } from 'graphql-request'
2
+
3
+ /**
4
+ * Journal entry list with pagination and filters — the entry-centric read.
5
+ *
6
+ * `transactions` walks transactions and hangs entries off them, so an entry
7
+ * with no parent transaction appears in nothing it returns. The schedule
8
+ * engine and the event handlers create exactly those, which is why everything
9
+ * a period close posts is absent from that surface. Here `transactionId` is
10
+ * null for a standalone entry rather than absent data.
11
+ *
12
+ * `provenance` filters to where the entry came from (`schedule_derived` for
13
+ * what a close posted); `type` to the entry classification (`adjusting` /
14
+ * `closing`); `status` to the draft/posted/reversed lifecycle.
15
+ */
16
+ export const LIST_JOURNAL_ENTRIES = gql`
17
+ query ListLedgerJournalEntries(
18
+ $startDate: Date
19
+ $endDate: Date
20
+ $status: String
21
+ $type: String
22
+ $provenance: String
23
+ $transactionId: String
24
+ $limit: Int! = 100
25
+ $offset: Int! = 0
26
+ ) {
27
+ journalEntries(
28
+ startDate: $startDate
29
+ endDate: $endDate
30
+ status: $status
31
+ type: $type
32
+ provenance: $provenance
33
+ transactionId: $transactionId
34
+ limit: $limit
35
+ offset: $offset
36
+ ) {
37
+ entries {
38
+ id
39
+ number
40
+ transactionId
41
+ type
42
+ status
43
+ postingDate
44
+ memo
45
+ provenance
46
+ sourceStructureId
47
+ sourceStructureName
48
+ triggeredByEventId
49
+ reversalOf
50
+ postedAt
51
+ totalDebit
52
+ totalCredit
53
+ balanced
54
+ lineItems {
55
+ id
56
+ accountId
57
+ accountName
58
+ accountCode
59
+ debitAmount
60
+ creditAmount
61
+ description
62
+ lineOrder
63
+ }
64
+ }
65
+ pagination {
66
+ total
67
+ limit
68
+ offset
69
+ hasMore
70
+ }
71
+ }
72
+ }
73
+ `
@@ -4,8 +4,9 @@
4
4
  * Replaces the retired `GET .../reports/{id}/download` REST resource — a
5
5
  * download is a read of stored state, so it lives on the read surface.
6
6
  * Every flavor resolves to a short-lived presigned S3 URL the client
7
- * follows directly (JSON-LD is stamped at publish time; XBRL is
8
- * materialized + cached on first request). `format` accepts the
9
- * `ReportDownloadFormat` enum (`JSONLD`, `XBRL_2_1`).
7
+ * follows directly (JSON-LD is stamped at publish time; XBRL, the holon
8
+ * and the Tavi compiled model are materialized + cached on first
9
+ * request). `format` accepts the `ReportDownloadFormat` enum (`JSONLD`,
10
+ * `HOLON_JSONLD`, `XBRL_2_1`, `TAVI`).
10
11
  */
11
12
  export declare const GET_REPORT_DOWNLOAD_URL: string;
@@ -8,9 +8,10 @@ const graphql_request_1 = require("graphql-request");
8
8
  * Replaces the retired `GET .../reports/{id}/download` REST resource — a
9
9
  * download is a read of stored state, so it lives on the read surface.
10
10
  * Every flavor resolves to a short-lived presigned S3 URL the client
11
- * follows directly (JSON-LD is stamped at publish time; XBRL is
12
- * materialized + cached on first request). `format` accepts the
13
- * `ReportDownloadFormat` enum (`JSONLD`, `XBRL_2_1`).
11
+ * follows directly (JSON-LD is stamped at publish time; XBRL, the holon
12
+ * and the Tavi compiled model are materialized + cached on first
13
+ * request). `format` accepts the `ReportDownloadFormat` enum (`JSONLD`,
14
+ * `HOLON_JSONLD`, `XBRL_2_1`, `TAVI`).
14
15
  */
15
16
  exports.GET_REPORT_DOWNLOAD_URL = (0, graphql_request_1.gql) `
16
17
  query GetLedgerReportDownloadUrl(
@@ -6,9 +6,10 @@ import { gql } from 'graphql-request'
6
6
  * Replaces the retired `GET .../reports/{id}/download` REST resource — a
7
7
  * download is a read of stored state, so it lives on the read surface.
8
8
  * Every flavor resolves to a short-lived presigned S3 URL the client
9
- * follows directly (JSON-LD is stamped at publish time; XBRL is
10
- * materialized + cached on first request). `format` accepts the
11
- * `ReportDownloadFormat` enum (`JSONLD`, `XBRL_2_1`).
9
+ * follows directly (JSON-LD is stamped at publish time; XBRL, the holon
10
+ * and the Tavi compiled model are materialized + cached on first
11
+ * request). `format` accepts the `ReportDownloadFormat` enum (`JSONLD`,
12
+ * `HOLON_JSONLD`, `XBRL_2_1`, `TAVI`).
12
13
  */
13
14
  export const GET_REPORT_DOWNLOAD_URL = gql`
14
15
  query GetLedgerReportDownloadUrl(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@robosystems/client",
3
- "version": "1.14.0",
3
+ "version": "1.15.0",
4
4
  "description": "TypeScript client library for the RoboSystems financial intelligence platform",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -4356,7 +4356,8 @@ export type DocumentListResponse = {
4356
4356
  /**
4357
4357
  * DocumentSection
4358
4358
  *
4359
- * Full document section retrieved by ID.
4359
+ * Full document section retrieved by ID — one part of it when the section
4360
+ * is long; ``next_document_id`` continues it.
4360
4361
  */
4361
4362
  export type DocumentSection = {
4362
4363
  /**
@@ -4371,6 +4372,22 @@ export type DocumentSection = {
4371
4372
  * Source Type
4372
4373
  */
4373
4374
  source_type: string;
4375
+ /**
4376
+ * Parent Document Id
4377
+ */
4378
+ parent_document_id?: string | null;
4379
+ /**
4380
+ * Part
4381
+ */
4382
+ part?: number;
4383
+ /**
4384
+ * Part Count
4385
+ */
4386
+ part_count?: number;
4387
+ /**
4388
+ * Next Document Id
4389
+ */
4390
+ next_document_id?: string | null;
4374
4391
  /**
4375
4392
  * Entity Ticker
4376
4393
  */
@@ -4925,7 +4942,7 @@ export type EventBlockEnvelope = {
4925
4942
  /**
4926
4943
  * Event Category
4927
4944
  *
4928
- * REA category — economic (`sales`, `purchase`, `financing`, `payroll`, `treasury`, `adjustment`, `recognition`, `other`) or support (`control`, `approval`, `reconciliation`, `inquiry`).
4945
+ * REA category, scoped by `event_class` — economic (`sales`, `purchase`, `financing`, `payroll`, `treasury`, `adjustment`, `recognition`, `other`), support (`control`, `approval`, `reconciliation`, `inquiry`), or operational (`pipeline`, `engagement`, `schedule`, `other`) for occurrences that drive no GL — a lead, a lifecycle change, an outreach, a schedule setup.
4929
4946
  */
4930
4947
  event_category: string;
4931
4948
  /**
@@ -14267,6 +14284,10 @@ export type SchemaValidationResponse = {
14267
14284
  * SearchHit
14268
14285
  *
14269
14286
  * A single search result with snippet.
14287
+ *
14288
+ * A long SEC section (an MD&A, a commitments note) is indexed in parts, each
14289
+ * a document of its own: ``part`` of ``part_count``, ``parent_document_id``
14290
+ * shared by the section's parts, ``next_document_id`` to read on.
14270
14291
  */
14271
14292
  export type SearchHit = {
14272
14293
  /**
@@ -14285,6 +14306,18 @@ export type SearchHit = {
14285
14306
  * Parent Document Id
14286
14307
  */
14287
14308
  parent_document_id?: string | null;
14309
+ /**
14310
+ * Part
14311
+ */
14312
+ part?: number;
14313
+ /**
14314
+ * Part Count
14315
+ */
14316
+ part_count?: number;
14317
+ /**
14318
+ * Next Document Id
14319
+ */
14320
+ next_document_id?: string | null;
14288
14321
  /**
14289
14322
  * Entity Ticker
14290
14323
  */
@@ -14373,7 +14406,7 @@ export type SearchRequest = {
14373
14406
  /**
14374
14407
  * Section
14375
14408
  *
14376
- * Filter by section ID (item_1, item_1a, item_7, etc.)
14409
+ * Filter by section ID: an Item (item_1, item_1a, item_7, ...) or, for iXBRL disclosures, the element qname (us-gaap:GoodwillDisclosureTextBlock)
14377
14410
  */
14378
14411
  section?: string | null;
14379
14412
  /**
package/sdk/types.gen.ts CHANGED
@@ -4472,7 +4472,8 @@ export type DocumentListResponse = {
4472
4472
  /**
4473
4473
  * DocumentSection
4474
4474
  *
4475
- * Full document section retrieved by ID.
4475
+ * Full document section retrieved by ID — one part of it when the section
4476
+ * is long; ``next_document_id`` continues it.
4476
4477
  */
4477
4478
  export type DocumentSection = {
4478
4479
  /**
@@ -4487,6 +4488,22 @@ export type DocumentSection = {
4487
4488
  * Source Type
4488
4489
  */
4489
4490
  source_type: string;
4491
+ /**
4492
+ * Parent Document Id
4493
+ */
4494
+ parent_document_id?: string | null;
4495
+ /**
4496
+ * Part
4497
+ */
4498
+ part?: number;
4499
+ /**
4500
+ * Part Count
4501
+ */
4502
+ part_count?: number;
4503
+ /**
4504
+ * Next Document Id
4505
+ */
4506
+ next_document_id?: string | null;
4490
4507
  /**
4491
4508
  * Entity Ticker
4492
4509
  */
@@ -5055,7 +5072,7 @@ export type EventBlockEnvelope = {
5055
5072
  /**
5056
5073
  * Event Category
5057
5074
  *
5058
- * REA category — economic (`sales`, `purchase`, `financing`, `payroll`, `treasury`, `adjustment`, `recognition`, `other`) or support (`control`, `approval`, `reconciliation`, `inquiry`).
5075
+ * REA category, scoped by `event_class` — economic (`sales`, `purchase`, `financing`, `payroll`, `treasury`, `adjustment`, `recognition`, `other`), support (`control`, `approval`, `reconciliation`, `inquiry`), or operational (`pipeline`, `engagement`, `schedule`, `other`) for occurrences that drive no GL — a lead, a lifecycle change, an outreach, a schedule setup.
5059
5076
  */
5060
5077
  event_category: string;
5061
5078
  /**
@@ -14624,6 +14641,10 @@ export type SchemaValidationResponse = {
14624
14641
  * SearchHit
14625
14642
  *
14626
14643
  * A single search result with snippet.
14644
+ *
14645
+ * A long SEC section (an MD&A, a commitments note) is indexed in parts, each
14646
+ * a document of its own: ``part`` of ``part_count``, ``parent_document_id``
14647
+ * shared by the section's parts, ``next_document_id`` to read on.
14627
14648
  */
14628
14649
  export type SearchHit = {
14629
14650
  /**
@@ -14642,6 +14663,18 @@ export type SearchHit = {
14642
14663
  * Parent Document Id
14643
14664
  */
14644
14665
  parent_document_id?: string | null;
14666
+ /**
14667
+ * Part
14668
+ */
14669
+ part?: number;
14670
+ /**
14671
+ * Part Count
14672
+ */
14673
+ part_count?: number;
14674
+ /**
14675
+ * Next Document Id
14676
+ */
14677
+ next_document_id?: string | null;
14645
14678
  /**
14646
14679
  * Entity Ticker
14647
14680
  */
@@ -14731,7 +14764,7 @@ export type SearchRequest = {
14731
14764
  /**
14732
14765
  * Section
14733
14766
  *
14734
- * Filter by section ID (item_1, item_1a, item_7, etc.)
14767
+ * Filter by section ID: an Item (item_1, item_1a, item_7, ...) or, for iXBRL disclosures, the element qname (us-gaap:GoodwillDisclosureTextBlock)
14735
14768
  */
14736
14769
  section?: string | null;
14737
14770
  /**
package/types.gen.d.ts CHANGED
@@ -4356,7 +4356,8 @@ export type DocumentListResponse = {
4356
4356
  /**
4357
4357
  * DocumentSection
4358
4358
  *
4359
- * Full document section retrieved by ID.
4359
+ * Full document section retrieved by ID — one part of it when the section
4360
+ * is long; ``next_document_id`` continues it.
4360
4361
  */
4361
4362
  export type DocumentSection = {
4362
4363
  /**
@@ -4371,6 +4372,22 @@ export type DocumentSection = {
4371
4372
  * Source Type
4372
4373
  */
4373
4374
  source_type: string;
4375
+ /**
4376
+ * Parent Document Id
4377
+ */
4378
+ parent_document_id?: string | null;
4379
+ /**
4380
+ * Part
4381
+ */
4382
+ part?: number;
4383
+ /**
4384
+ * Part Count
4385
+ */
4386
+ part_count?: number;
4387
+ /**
4388
+ * Next Document Id
4389
+ */
4390
+ next_document_id?: string | null;
4374
4391
  /**
4375
4392
  * Entity Ticker
4376
4393
  */
@@ -4925,7 +4942,7 @@ export type EventBlockEnvelope = {
4925
4942
  /**
4926
4943
  * Event Category
4927
4944
  *
4928
- * REA category — economic (`sales`, `purchase`, `financing`, `payroll`, `treasury`, `adjustment`, `recognition`, `other`) or support (`control`, `approval`, `reconciliation`, `inquiry`).
4945
+ * REA category, scoped by `event_class` — economic (`sales`, `purchase`, `financing`, `payroll`, `treasury`, `adjustment`, `recognition`, `other`), support (`control`, `approval`, `reconciliation`, `inquiry`), or operational (`pipeline`, `engagement`, `schedule`, `other`) for occurrences that drive no GL — a lead, a lifecycle change, an outreach, a schedule setup.
4929
4946
  */
4930
4947
  event_category: string;
4931
4948
  /**
@@ -14267,6 +14284,10 @@ export type SchemaValidationResponse = {
14267
14284
  * SearchHit
14268
14285
  *
14269
14286
  * A single search result with snippet.
14287
+ *
14288
+ * A long SEC section (an MD&A, a commitments note) is indexed in parts, each
14289
+ * a document of its own: ``part`` of ``part_count``, ``parent_document_id``
14290
+ * shared by the section's parts, ``next_document_id`` to read on.
14270
14291
  */
14271
14292
  export type SearchHit = {
14272
14293
  /**
@@ -14285,6 +14306,18 @@ export type SearchHit = {
14285
14306
  * Parent Document Id
14286
14307
  */
14287
14308
  parent_document_id?: string | null;
14309
+ /**
14310
+ * Part
14311
+ */
14312
+ part?: number;
14313
+ /**
14314
+ * Part Count
14315
+ */
14316
+ part_count?: number;
14317
+ /**
14318
+ * Next Document Id
14319
+ */
14320
+ next_document_id?: string | null;
14288
14321
  /**
14289
14322
  * Entity Ticker
14290
14323
  */
@@ -14373,7 +14406,7 @@ export type SearchRequest = {
14373
14406
  /**
14374
14407
  * Section
14375
14408
  *
14376
- * Filter by section ID (item_1, item_1a, item_7, etc.)
14409
+ * Filter by section ID: an Item (item_1, item_1a, item_7, ...) or, for iXBRL disclosures, the element qname (us-gaap:GoodwillDisclosureTextBlock)
14377
14410
  */
14378
14411
  section?: string | null;
14379
14412
  /**
package/types.gen.ts CHANGED
@@ -4472,7 +4472,8 @@ export type DocumentListResponse = {
4472
4472
  /**
4473
4473
  * DocumentSection
4474
4474
  *
4475
- * Full document section retrieved by ID.
4475
+ * Full document section retrieved by ID — one part of it when the section
4476
+ * is long; ``next_document_id`` continues it.
4476
4477
  */
4477
4478
  export type DocumentSection = {
4478
4479
  /**
@@ -4487,6 +4488,22 @@ export type DocumentSection = {
4487
4488
  * Source Type
4488
4489
  */
4489
4490
  source_type: string;
4491
+ /**
4492
+ * Parent Document Id
4493
+ */
4494
+ parent_document_id?: string | null;
4495
+ /**
4496
+ * Part
4497
+ */
4498
+ part?: number;
4499
+ /**
4500
+ * Part Count
4501
+ */
4502
+ part_count?: number;
4503
+ /**
4504
+ * Next Document Id
4505
+ */
4506
+ next_document_id?: string | null;
4490
4507
  /**
4491
4508
  * Entity Ticker
4492
4509
  */
@@ -5055,7 +5072,7 @@ export type EventBlockEnvelope = {
5055
5072
  /**
5056
5073
  * Event Category
5057
5074
  *
5058
- * REA category — economic (`sales`, `purchase`, `financing`, `payroll`, `treasury`, `adjustment`, `recognition`, `other`) or support (`control`, `approval`, `reconciliation`, `inquiry`).
5075
+ * REA category, scoped by `event_class` — economic (`sales`, `purchase`, `financing`, `payroll`, `treasury`, `adjustment`, `recognition`, `other`), support (`control`, `approval`, `reconciliation`, `inquiry`), or operational (`pipeline`, `engagement`, `schedule`, `other`) for occurrences that drive no GL — a lead, a lifecycle change, an outreach, a schedule setup.
5059
5076
  */
5060
5077
  event_category: string;
5061
5078
  /**
@@ -14624,6 +14641,10 @@ export type SchemaValidationResponse = {
14624
14641
  * SearchHit
14625
14642
  *
14626
14643
  * A single search result with snippet.
14644
+ *
14645
+ * A long SEC section (an MD&A, a commitments note) is indexed in parts, each
14646
+ * a document of its own: ``part`` of ``part_count``, ``parent_document_id``
14647
+ * shared by the section's parts, ``next_document_id`` to read on.
14627
14648
  */
14628
14649
  export type SearchHit = {
14629
14650
  /**
@@ -14642,6 +14663,18 @@ export type SearchHit = {
14642
14663
  * Parent Document Id
14643
14664
  */
14644
14665
  parent_document_id?: string | null;
14666
+ /**
14667
+ * Part
14668
+ */
14669
+ part?: number;
14670
+ /**
14671
+ * Part Count
14672
+ */
14673
+ part_count?: number;
14674
+ /**
14675
+ * Next Document Id
14676
+ */
14677
+ next_document_id?: string | null;
14645
14678
  /**
14646
14679
  * Entity Ticker
14647
14680
  */
@@ -14731,7 +14764,7 @@ export type SearchRequest = {
14731
14764
  /**
14732
14765
  * Section
14733
14766
  *
14734
- * Filter by section ID (item_1, item_1a, item_7, etc.)
14767
+ * Filter by section ID: an Item (item_1, item_1a, item_7, ...) or, for iXBRL disclosures, the element qname (us-gaap:GoodwillDisclosureTextBlock)
14735
14768
  */
14736
14769
  section?: string | null;
14737
14770
  /**