@robosystems/client 2.26.1 → 2.27.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 { AcceptSuggestionsRequest, AcceptSuggestionsResponse, AllocationOverrideResponse, AssociationResponse, AutoMapElementsOperation, BindTextBlockRequest, BindTextBlockResponse, BlockedSourceGraphResponse, BlockSourceGraphResult, ComputeMetricsRequest, ComputeMetricsResponse, ConsolidationProposal, ConsolidationWorksheetRequest, ConsolidationWorksheetResponse, CreateAgentRequest, CreateDimensionRequest, CreateEntityRequest, CreateEventBlockRequest, CreateEventHandlerRequest, CreateInformationBlockRequest, CreateMappingAssociationOperation, CreateTaxonomyBlockRequest, CreateViewRequest, DeleteInformationBlockRequest, DeleteInformationBlockResponse, DeleteMappingAssociationOperation, DeleteResult, DeleteTaxonomyBlockRequest, DeleteTaxonomyBlockResponse, DimensionResponse, EntityTaxonomyResponse, EvaluateRulesRequest, EvaluateRulesResponse, EventBlockEnvelope, EventHandlerResponse, FinancialStatementAnalysisRequest, FinancialStatementAnalysisResponse, InformationBlockEnvelope, InitializeChartOfAccountsRequest, JournalEntryResponse, LearnClassificationDefaultsResponse, LedgerAgentResponse, LinkBankAccountRequest, LinkBankAccountResponse, LinkEntityTaxonomyRequest, LiveFinancialStatementRequest, LiveFinancialStatementResponse, OperationEnvelope, PreviewConsolidationEntriesResponse, PreviewEventBlockResponse, PreviewReconciliationsRequest, PromoteObligationsRequest, PromoteObligationsResponse, ProposeConsolidationEntriesResponse, PublishListMemberResponse, PublishListResponse, ReconcilingItemPlan, RecordOpeningBalanceRequest, ReportResponse, ResolveReconcilingItemRequest, ResolveReconcilingItemResponse, RevokeReportShareResponse, SetAllocationOverrideRequest, ShareReportResponse, TaxonomyBlockEnvelope, UpdateAgentRequest, UpdateDimensionRequest, UpdateEntityRequest, UpdateEventBlockRequest, UpdateEventHandlerRequest, UpdateInformationBlockRequest, UpdateJournalEntryRequest, UpdateTaxonomyBlockRequest, ViewResponse } from '../types.gen';
2
2
  import type { TokenProvider } from './graphql/client';
3
- import { ListLedgerBankAccountsQuery, type AgedReceivablesQuery, type ClassificationStatsQuery, type DischargeCandidatesQuery, type FlowCandidatesQuery, type GetInformationBlockQuery, type GetLedgerAccountRegisterQuery, type GetLedgerAccountRollupsQuery, type GetLedgerAccountTreeQuery, type GetLedgerAgentQuery, type GetLedgerClosingBookStructuresQuery, type GetLedgerEntityQuery, type GetLedgerEventBlockQuery, type GetLedgerFiscalCalendarQuery, type GetLedgerMappedTrialBalanceQuery, type GetLedgerMappingCoverageQuery, type GetLedgerMappingQuery, type GetLedgerPeriodCloseStatusQuery, type GetLedgerPeriodDraftsQuery, type GetLedgerPublishListQuery, type GetLedgerReportingTaxonomyQuery, type GetLedgerReportPackageQuery, type GetLedgerReportQuery, type GetLedgerStatementQuery, type GetLedgerSummaryQuery, type GetLedgerTransactionQuery, type GetLedgerTrialBalanceQuery, type ListChartTemplatesQuery, type ListInformationBlocksQuery, type ListInformationBlockSummariesQuery, type ListLedgerAccountsQuery, type ListLedgerAgentsQuery, type ListLedgerBlockedSourceGraphsQuery, type ListLedgerDimensionsQuery, type ListLedgerElementsQuery, type ListLedgerEntitiesQuery, type ListLedgerEventBlocksQuery, type ListLedgerJournalEntriesQuery, type ListLedgerMappingsQuery, type ListLedgerPublishListsQuery, type ListLedgerReconciliationsQuery, type ListLedgerReportsQuery, type ListLedgerStructuresQuery, type ListLedgerTaxonomiesQuery, type ListLedgerTransactionsQuery, type ListLedgerUnmappedElementsQuery, type MappingCandidatesQuery, type OpenItemsForAgentQuery, type ReportDownloadFormat, type ReportLifecycle } from './graphql/generated/graphql';
3
+ import { ListLedgerBankAccountsQuery, type AgedReceivablesQuery, type ClassificationStatsQuery, type DischargeCandidatesQuery, type FlowCandidatesQuery, type GetInformationBlockQuery, type GetLedgerAccountRegisterQuery, type GetLedgerAccountRollupsQuery, type GetLedgerAccountTreeQuery, type GetLedgerAgentQuery, type GetLedgerClosingBookStructuresQuery, type GetLedgerEntityQuery, type GetLedgerEventBlockQuery, type GetLedgerFiscalCalendarQuery, type GetLedgerMappedTrialBalanceQuery, type GetLedgerMappingCoverageQuery, type GetLedgerMappingQuery, type GetLedgerPeriodCloseStatusQuery, type GetLedgerPeriodDraftsQuery, type GetLedgerPublishListQuery, type GetLedgerReportingTaxonomyQuery, type GetLedgerReportPackageQuery, type GetLedgerReportQuery, type GetLedgerStatementQuery, type GetLedgerSummaryQuery, type GetLedgerTransactionQuery, type GetLedgerTrialBalanceQuery, type ListChartTemplatesQuery, type ListInformationBlocksQuery, type ListInformationBlockSummariesQuery, type ListLedgerAccountsQuery, type ListLedgerAgentsQuery, type ListLedgerBlockedSourceGraphsQuery, type ListLedgerDimensionsQuery, type ListLedgerElementsQuery, type ListLedgerEntitiesQuery, type ListLedgerEventBlocksQuery, type ListLedgerJournalEntriesQuery, type ListLedgerMappingsQuery, type ListLedgerPublishListsQuery, type ListLedgerReconciliationsQuery, type ListLedgerReportSharesQuery, type ListLedgerReportsQuery, type ListLedgerStructuresQuery, type ListLedgerTaxonomiesQuery, type ListLedgerTransactionsQuery, type ListLedgerUnmappedElementsQuery, type MappingCandidatesQuery, type OpenItemsForAgentQuery, type ReportDownloadFormat, type ReportLifecycle } from './graphql/generated/graphql';
4
4
  export { GraphQLError } from './graphql/client';
5
5
  export type { ReportLifecycle };
6
6
  export type LedgerEntity = NonNullable<GetLedgerEntityQuery['entity']>;
@@ -90,6 +90,8 @@ export type PublishList = NonNullable<ListLedgerPublishListsQuery['publishLists'
90
90
  export type PublishListDetail = NonNullable<GetLedgerPublishListQuery['publishList']>;
91
91
  export type PublishListMember = PublishListDetail['members'][number];
92
92
  export type BlockedSourceGraph = NonNullable<ListLedgerBlockedSourceGraphsQuery['blockedSourceGraphs']>['blockedSourceGraphs'][number];
93
+ /** One delivery of a report to a recipient graph, with its revocation state. */
94
+ export type ReportShare = NonNullable<ListLedgerReportSharesQuery['reportShares']>['reportShares'][number];
93
95
  /**
94
96
  * Presigned-URL response for a Report bundle download.
95
97
  *
@@ -1332,6 +1334,21 @@ export declare class LedgerClient {
1332
1334
  * investor's declared holding survives the withdrawal.
1333
1335
  */
1334
1336
  revokeReportShare(graphId: string, reportId: string, targetGraphId: string): Promise<RevokeReportShareResponse>;
1337
+ /**
1338
+ * Where this graph's reports have been shared — the sender's record behind
1339
+ * `shareReport` and `revokeReportShare`.
1340
+ *
1341
+ * `reportId` narrows to one report; omitted, the list is the graph's whole
1342
+ * distribution log. Revoked shares stay out unless `includeRevoked` is set:
1343
+ * a recipient shared to, revoked, and shared to again has one revoked row
1344
+ * and one live.
1345
+ */
1346
+ listReportShares(graphId: string, options?: {
1347
+ reportId?: string;
1348
+ includeRevoked?: boolean;
1349
+ limit?: number;
1350
+ offset?: number;
1351
+ }): Promise<ReportShare[]>;
1335
1352
  /** List source graphs barred from sharing reports into this graph. */
1336
1353
  listBlockedSourceGraphs(graphId: string, options?: {
1337
1354
  limit?: number;
@@ -1538,6 +1538,24 @@ class LedgerClient {
1538
1538
  }));
1539
1539
  return this.requireResult('Revoke report share', envelope.result);
1540
1540
  }
1541
+ /**
1542
+ * Where this graph's reports have been shared — the sender's record behind
1543
+ * `shareReport` and `revokeReportShare`.
1544
+ *
1545
+ * `reportId` narrows to one report; omitted, the list is the graph's whole
1546
+ * distribution log. Revoked shares stay out unless `includeRevoked` is set:
1547
+ * a recipient shared to, revoked, and shared to again has one revoked row
1548
+ * and one live.
1549
+ */
1550
+ async listReportShares(graphId, options) {
1551
+ const list = await this.gqlQuery(graphId, graphql_1.ListLedgerReportSharesDocument, {
1552
+ reportId: options?.reportId ?? null,
1553
+ includeRevoked: options?.includeRevoked ?? false,
1554
+ limit: options?.limit ?? 100,
1555
+ offset: options?.offset ?? 0,
1556
+ }, 'List report shares', (data) => data.reportShares);
1557
+ return list?.reportShares ?? [];
1558
+ }
1541
1559
  // ── Blocked source graphs ────────────────────────────────────────────
1542
1560
  //
1543
1561
  // Sharing is authorized capability-style — whoever holds this graph's id
@@ -246,6 +246,7 @@ import {
246
246
  ListLedgerPublishListsDocument,
247
247
  ListLedgerReconciliationsDocument,
248
248
  ListLedgerReportsDocument,
249
+ ListLedgerReportSharesDocument,
249
250
  ListLedgerStructuresDocument,
250
251
  ListLedgerTaxonomiesDocument,
251
252
  ListLedgerTransactionsDocument,
@@ -292,6 +293,7 @@ import {
292
293
  type ListLedgerMappingsQuery,
293
294
  type ListLedgerPublishListsQuery,
294
295
  type ListLedgerReconciliationsQuery,
296
+ type ListLedgerReportSharesQuery,
295
297
  type ListLedgerReportsQuery,
296
298
  type ListLedgerStructuresQuery,
297
299
  type ListLedgerTaxonomiesQuery,
@@ -450,6 +452,11 @@ export type BlockedSourceGraph = NonNullable<
450
452
  ListLedgerBlockedSourceGraphsQuery['blockedSourceGraphs']
451
453
  >['blockedSourceGraphs'][number]
452
454
 
455
+ /** One delivery of a report to a recipient graph, with its revocation state. */
456
+ export type ReportShare = NonNullable<
457
+ ListLedgerReportSharesQuery['reportShares']
458
+ >['reportShares'][number]
459
+
453
460
  /**
454
461
  * Presigned-URL response for a Report bundle download.
455
462
  *
@@ -3455,6 +3462,39 @@ export class LedgerClient {
3455
3462
  return this.requireResult('Revoke report share', envelope.result)
3456
3463
  }
3457
3464
 
3465
+ /**
3466
+ * Where this graph's reports have been shared — the sender's record behind
3467
+ * `shareReport` and `revokeReportShare`.
3468
+ *
3469
+ * `reportId` narrows to one report; omitted, the list is the graph's whole
3470
+ * distribution log. Revoked shares stay out unless `includeRevoked` is set:
3471
+ * a recipient shared to, revoked, and shared to again has one revoked row
3472
+ * and one live.
3473
+ */
3474
+ async listReportShares(
3475
+ graphId: string,
3476
+ options?: {
3477
+ reportId?: string
3478
+ includeRevoked?: boolean
3479
+ limit?: number
3480
+ offset?: number
3481
+ }
3482
+ ): Promise<ReportShare[]> {
3483
+ const list = await this.gqlQuery(
3484
+ graphId,
3485
+ ListLedgerReportSharesDocument,
3486
+ {
3487
+ reportId: options?.reportId ?? null,
3488
+ includeRevoked: options?.includeRevoked ?? false,
3489
+ limit: options?.limit ?? 100,
3490
+ offset: options?.offset ?? 0,
3491
+ },
3492
+ 'List report shares',
3493
+ (data) => data.reportShares
3494
+ )
3495
+ return list?.reportShares ?? []
3496
+ }
3497
+
3458
3498
  // ── Blocked source graphs ────────────────────────────────────────────
3459
3499
  //
3460
3500
  // Sharing is authorized capability-style — whoever holds this graph's id
@@ -2324,6 +2324,32 @@ export type GetLedgerReportPackageQuery = {
2324
2324
  }>;
2325
2325
  } | null;
2326
2326
  };
2327
+ export type ListLedgerReportSharesQueryVariables = Exact<{
2328
+ reportId: string | null | undefined;
2329
+ includeRevoked?: boolean;
2330
+ limit?: number;
2331
+ offset?: number;
2332
+ }>;
2333
+ export type ListLedgerReportSharesQuery = {
2334
+ reportShares: {
2335
+ reportShares: Array<{
2336
+ id: string;
2337
+ reportId: string;
2338
+ targetGraphId: string;
2339
+ targetGraphName: string | null;
2340
+ sharedBy: string;
2341
+ sharedAt: string;
2342
+ revokedAt: string | null;
2343
+ factCount: number;
2344
+ }>;
2345
+ pagination: {
2346
+ total: number;
2347
+ limit: number;
2348
+ offset: number;
2349
+ hasMore: boolean;
2350
+ };
2351
+ } | null;
2352
+ };
2327
2353
  export type GetLedgerReportingTaxonomyQueryVariables = Exact<{
2328
2354
  [key: string]: never;
2329
2355
  }>;
@@ -2897,6 +2923,7 @@ export declare const ListLedgerReconciliationsDocument: DocumentNode<ListLedgerR
2897
2923
  export declare const GetLedgerReportDocument: DocumentNode<GetLedgerReportQuery, GetLedgerReportQueryVariables>;
2898
2924
  export declare const GetLedgerReportDownloadUrlDocument: DocumentNode<GetLedgerReportDownloadUrlQuery, GetLedgerReportDownloadUrlQueryVariables>;
2899
2925
  export declare const GetLedgerReportPackageDocument: DocumentNode<GetLedgerReportPackageQuery, GetLedgerReportPackageQueryVariables>;
2926
+ export declare const ListLedgerReportSharesDocument: DocumentNode<ListLedgerReportSharesQuery, ListLedgerReportSharesQueryVariables>;
2900
2927
  export declare const GetLedgerReportingTaxonomyDocument: DocumentNode<GetLedgerReportingTaxonomyQuery, GetLedgerReportingTaxonomyQueryVariables>;
2901
2928
  export declare const ListLedgerReportsDocument: DocumentNode<ListLedgerReportsQuery, ListLedgerReportsQueryVariables>;
2902
2929
  export declare const GetLedgerStatementDocument: DocumentNode<GetLedgerStatementQuery, GetLedgerStatementQueryVariables>;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.GetLedgerReportDocument = exports.ListLedgerReconciliationsDocument = exports.ListLedgerPublishListsDocument = exports.GetLedgerPublishListDocument = exports.GetLedgerPeriodDraftsDocument = exports.GetLedgerPeriodCloseStatusDocument = exports.ListLedgerMappingsDocument = exports.GetLedgerMappingCoverageDocument = exports.MappingCandidatesDocument = exports.GetLedgerMappingDocument = exports.GetLedgerMappedTrialBalanceDocument = exports.ListLedgerJournalEntriesDocument = exports.ListInformationBlockSummariesDocument = exports.ListInformationBlocksDocument = exports.GetInformationBlockWindowedDocument = exports.GetInformationBlockDocument = exports.FlowCandidatesDocument = exports.GetLedgerFiscalCalendarDocument = exports.ListLedgerEventBlocksDocument = exports.GetLedgerEventBlockDocument = exports.GetLedgerEntityDocument = exports.ListLedgerEntitiesDocument = exports.ListLedgerElementsDocument = exports.ListLedgerDimensionsDocument = exports.GetLedgerClosingBookStructuresDocument = exports.ClassificationStatsDocument = exports.ListChartTemplatesDocument = exports.ListLedgerBlockedSourceGraphsDocument = exports.ListLedgerBankAccountsDocument = exports.ListLedgerAgentsDocument = exports.GetLedgerAgentDocument = exports.DischargeCandidatesDocument = exports.OpenItemsForAgentDocument = exports.AgedPayablesDocument = exports.AgedReceivablesDocument = exports.ListLedgerAccountsDocument = exports.GetLedgerAccountTreeDocument = exports.GetLedgerAccountRollupsDocument = exports.GetLedgerAccountRegisterDocument = exports.GetInvestorSecurityDocument = exports.ListInvestorSecuritiesDocument = exports.ListInvestorPositionsDocument = exports.GetInvestorPositionDocument = exports.ListInvestorPortfoliosDocument = exports.GetInvestorPortfolioBlockDocument = exports.GetInvestorHoldingsDocument = exports.AgedBalancesFieldsFragmentDoc = exports.OpenItemFieldsFragmentDoc = exports.AgingBucketsFieldsFragmentDoc = exports.RegisterLineFieldsFragmentDoc = void 0;
4
- exports.GetLibraryTaxonomyDocument = exports.ListLibraryTaxonomiesDocument = exports.GetLibraryStructureDocument = exports.ListLibraryStructuresDocument = exports.GetLibraryElementDocument = exports.SearchLibraryElementsDocument = exports.ListLibraryElementsDocument = exports.GetLibraryElementEquivalentsDocument = exports.GetLibraryElementClassificationsDocument = exports.GetLibraryElementArcsDocument = exports.ListLibraryTaxonomyArcsDocument = exports.ListLedgerUnmappedElementsDocument = exports.GetLedgerTrialBalanceDocument = exports.ListLedgerTransactionsDocument = exports.GetLedgerTransactionDocument = exports.ListLedgerTaxonomiesDocument = exports.GetLedgerSummaryDocument = exports.ListLedgerStructuresDocument = exports.GetLedgerStatementDocument = exports.ListLedgerReportsDocument = exports.GetLedgerReportingTaxonomyDocument = exports.GetLedgerReportPackageDocument = exports.GetLedgerReportDownloadUrlDocument = void 0;
4
+ exports.GetLibraryTaxonomyDocument = exports.ListLibraryTaxonomiesDocument = exports.GetLibraryStructureDocument = exports.ListLibraryStructuresDocument = exports.GetLibraryElementDocument = exports.SearchLibraryElementsDocument = exports.ListLibraryElementsDocument = exports.GetLibraryElementEquivalentsDocument = exports.GetLibraryElementClassificationsDocument = exports.GetLibraryElementArcsDocument = exports.ListLibraryTaxonomyArcsDocument = exports.ListLedgerUnmappedElementsDocument = exports.GetLedgerTrialBalanceDocument = exports.ListLedgerTransactionsDocument = exports.GetLedgerTransactionDocument = exports.ListLedgerTaxonomiesDocument = exports.GetLedgerSummaryDocument = exports.ListLedgerStructuresDocument = exports.GetLedgerStatementDocument = exports.ListLedgerReportsDocument = exports.GetLedgerReportingTaxonomyDocument = exports.ListLedgerReportSharesDocument = exports.GetLedgerReportPackageDocument = exports.GetLedgerReportDownloadUrlDocument = void 0;
5
5
  exports.RegisterLineFieldsFragmentDoc = {
6
6
  kind: 'Document',
7
7
  definitions: [
@@ -6218,6 +6218,116 @@ exports.GetLedgerReportPackageDocument = {
6218
6218
  },
6219
6219
  ],
6220
6220
  };
6221
+ exports.ListLedgerReportSharesDocument = {
6222
+ kind: 'Document',
6223
+ definitions: [
6224
+ {
6225
+ kind: 'OperationDefinition',
6226
+ operation: 'query',
6227
+ name: { kind: 'Name', value: 'ListLedgerReportShares' },
6228
+ variableDefinitions: [
6229
+ {
6230
+ kind: 'VariableDefinition',
6231
+ variable: { kind: 'Variable', name: { kind: 'Name', value: 'reportId' } },
6232
+ type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } },
6233
+ },
6234
+ {
6235
+ kind: 'VariableDefinition',
6236
+ variable: { kind: 'Variable', name: { kind: 'Name', value: 'includeRevoked' } },
6237
+ type: {
6238
+ kind: 'NonNullType',
6239
+ type: { kind: 'NamedType', name: { kind: 'Name', value: 'Boolean' } },
6240
+ },
6241
+ defaultValue: { kind: 'BooleanValue', value: false },
6242
+ },
6243
+ {
6244
+ kind: 'VariableDefinition',
6245
+ variable: { kind: 'Variable', name: { kind: 'Name', value: 'limit' } },
6246
+ type: {
6247
+ kind: 'NonNullType',
6248
+ type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } },
6249
+ },
6250
+ defaultValue: { kind: 'IntValue', value: '100' },
6251
+ },
6252
+ {
6253
+ kind: 'VariableDefinition',
6254
+ variable: { kind: 'Variable', name: { kind: 'Name', value: 'offset' } },
6255
+ type: {
6256
+ kind: 'NonNullType',
6257
+ type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } },
6258
+ },
6259
+ defaultValue: { kind: 'IntValue', value: '0' },
6260
+ },
6261
+ ],
6262
+ selectionSet: {
6263
+ kind: 'SelectionSet',
6264
+ selections: [
6265
+ {
6266
+ kind: 'Field',
6267
+ name: { kind: 'Name', value: 'reportShares' },
6268
+ arguments: [
6269
+ {
6270
+ kind: 'Argument',
6271
+ name: { kind: 'Name', value: 'reportId' },
6272
+ value: { kind: 'Variable', name: { kind: 'Name', value: 'reportId' } },
6273
+ },
6274
+ {
6275
+ kind: 'Argument',
6276
+ name: { kind: 'Name', value: 'includeRevoked' },
6277
+ value: { kind: 'Variable', name: { kind: 'Name', value: 'includeRevoked' } },
6278
+ },
6279
+ {
6280
+ kind: 'Argument',
6281
+ name: { kind: 'Name', value: 'limit' },
6282
+ value: { kind: 'Variable', name: { kind: 'Name', value: 'limit' } },
6283
+ },
6284
+ {
6285
+ kind: 'Argument',
6286
+ name: { kind: 'Name', value: 'offset' },
6287
+ value: { kind: 'Variable', name: { kind: 'Name', value: 'offset' } },
6288
+ },
6289
+ ],
6290
+ selectionSet: {
6291
+ kind: 'SelectionSet',
6292
+ selections: [
6293
+ {
6294
+ kind: 'Field',
6295
+ name: { kind: 'Name', value: 'reportShares' },
6296
+ selectionSet: {
6297
+ kind: 'SelectionSet',
6298
+ selections: [
6299
+ { kind: 'Field', name: { kind: 'Name', value: 'id' } },
6300
+ { kind: 'Field', name: { kind: 'Name', value: 'reportId' } },
6301
+ { kind: 'Field', name: { kind: 'Name', value: 'targetGraphId' } },
6302
+ { kind: 'Field', name: { kind: 'Name', value: 'targetGraphName' } },
6303
+ { kind: 'Field', name: { kind: 'Name', value: 'sharedBy' } },
6304
+ { kind: 'Field', name: { kind: 'Name', value: 'sharedAt' } },
6305
+ { kind: 'Field', name: { kind: 'Name', value: 'revokedAt' } },
6306
+ { kind: 'Field', name: { kind: 'Name', value: 'factCount' } },
6307
+ ],
6308
+ },
6309
+ },
6310
+ {
6311
+ kind: 'Field',
6312
+ name: { kind: 'Name', value: 'pagination' },
6313
+ selectionSet: {
6314
+ kind: 'SelectionSet',
6315
+ selections: [
6316
+ { kind: 'Field', name: { kind: 'Name', value: 'total' } },
6317
+ { kind: 'Field', name: { kind: 'Name', value: 'limit' } },
6318
+ { kind: 'Field', name: { kind: 'Name', value: 'offset' } },
6319
+ { kind: 'Field', name: { kind: 'Name', value: 'hasMore' } },
6320
+ ],
6321
+ },
6322
+ },
6323
+ ],
6324
+ },
6325
+ },
6326
+ ],
6327
+ },
6328
+ },
6329
+ ],
6330
+ };
6221
6331
  exports.GetLedgerReportingTaxonomyDocument = {
6222
6332
  kind: 'Document',
6223
6333
  definitions: [
@@ -2273,6 +2273,29 @@ export type GetLedgerReportPackageQuery = {
2273
2273
  } | null
2274
2274
  }
2275
2275
 
2276
+ export type ListLedgerReportSharesQueryVariables = Exact<{
2277
+ reportId: string | null | undefined
2278
+ includeRevoked?: boolean
2279
+ limit?: number
2280
+ offset?: number
2281
+ }>
2282
+
2283
+ export type ListLedgerReportSharesQuery = {
2284
+ reportShares: {
2285
+ reportShares: Array<{
2286
+ id: string
2287
+ reportId: string
2288
+ targetGraphId: string
2289
+ targetGraphName: string | null
2290
+ sharedBy: string
2291
+ sharedAt: string
2292
+ revokedAt: string | null
2293
+ factCount: number
2294
+ }>
2295
+ pagination: { total: number; limit: number; offset: number; hasMore: boolean }
2296
+ } | null
2297
+ }
2298
+
2276
2299
  export type GetLedgerReportingTaxonomyQueryVariables = Exact<{ [key: string]: never }>
2277
2300
 
2278
2301
  export type GetLedgerReportingTaxonomyQuery = {
@@ -9020,6 +9043,116 @@ export const GetLedgerReportPackageDocument = {
9020
9043
  },
9021
9044
  ],
9022
9045
  } as unknown as DocumentNode<GetLedgerReportPackageQuery, GetLedgerReportPackageQueryVariables>
9046
+ export const ListLedgerReportSharesDocument = {
9047
+ kind: 'Document',
9048
+ definitions: [
9049
+ {
9050
+ kind: 'OperationDefinition',
9051
+ operation: 'query',
9052
+ name: { kind: 'Name', value: 'ListLedgerReportShares' },
9053
+ variableDefinitions: [
9054
+ {
9055
+ kind: 'VariableDefinition',
9056
+ variable: { kind: 'Variable', name: { kind: 'Name', value: 'reportId' } },
9057
+ type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } },
9058
+ },
9059
+ {
9060
+ kind: 'VariableDefinition',
9061
+ variable: { kind: 'Variable', name: { kind: 'Name', value: 'includeRevoked' } },
9062
+ type: {
9063
+ kind: 'NonNullType',
9064
+ type: { kind: 'NamedType', name: { kind: 'Name', value: 'Boolean' } },
9065
+ },
9066
+ defaultValue: { kind: 'BooleanValue', value: false },
9067
+ },
9068
+ {
9069
+ kind: 'VariableDefinition',
9070
+ variable: { kind: 'Variable', name: { kind: 'Name', value: 'limit' } },
9071
+ type: {
9072
+ kind: 'NonNullType',
9073
+ type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } },
9074
+ },
9075
+ defaultValue: { kind: 'IntValue', value: '100' },
9076
+ },
9077
+ {
9078
+ kind: 'VariableDefinition',
9079
+ variable: { kind: 'Variable', name: { kind: 'Name', value: 'offset' } },
9080
+ type: {
9081
+ kind: 'NonNullType',
9082
+ type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } },
9083
+ },
9084
+ defaultValue: { kind: 'IntValue', value: '0' },
9085
+ },
9086
+ ],
9087
+ selectionSet: {
9088
+ kind: 'SelectionSet',
9089
+ selections: [
9090
+ {
9091
+ kind: 'Field',
9092
+ name: { kind: 'Name', value: 'reportShares' },
9093
+ arguments: [
9094
+ {
9095
+ kind: 'Argument',
9096
+ name: { kind: 'Name', value: 'reportId' },
9097
+ value: { kind: 'Variable', name: { kind: 'Name', value: 'reportId' } },
9098
+ },
9099
+ {
9100
+ kind: 'Argument',
9101
+ name: { kind: 'Name', value: 'includeRevoked' },
9102
+ value: { kind: 'Variable', name: { kind: 'Name', value: 'includeRevoked' } },
9103
+ },
9104
+ {
9105
+ kind: 'Argument',
9106
+ name: { kind: 'Name', value: 'limit' },
9107
+ value: { kind: 'Variable', name: { kind: 'Name', value: 'limit' } },
9108
+ },
9109
+ {
9110
+ kind: 'Argument',
9111
+ name: { kind: 'Name', value: 'offset' },
9112
+ value: { kind: 'Variable', name: { kind: 'Name', value: 'offset' } },
9113
+ },
9114
+ ],
9115
+ selectionSet: {
9116
+ kind: 'SelectionSet',
9117
+ selections: [
9118
+ {
9119
+ kind: 'Field',
9120
+ name: { kind: 'Name', value: 'reportShares' },
9121
+ selectionSet: {
9122
+ kind: 'SelectionSet',
9123
+ selections: [
9124
+ { kind: 'Field', name: { kind: 'Name', value: 'id' } },
9125
+ { kind: 'Field', name: { kind: 'Name', value: 'reportId' } },
9126
+ { kind: 'Field', name: { kind: 'Name', value: 'targetGraphId' } },
9127
+ { kind: 'Field', name: { kind: 'Name', value: 'targetGraphName' } },
9128
+ { kind: 'Field', name: { kind: 'Name', value: 'sharedBy' } },
9129
+ { kind: 'Field', name: { kind: 'Name', value: 'sharedAt' } },
9130
+ { kind: 'Field', name: { kind: 'Name', value: 'revokedAt' } },
9131
+ { kind: 'Field', name: { kind: 'Name', value: 'factCount' } },
9132
+ ],
9133
+ },
9134
+ },
9135
+ {
9136
+ kind: 'Field',
9137
+ name: { kind: 'Name', value: 'pagination' },
9138
+ selectionSet: {
9139
+ kind: 'SelectionSet',
9140
+ selections: [
9141
+ { kind: 'Field', name: { kind: 'Name', value: 'total' } },
9142
+ { kind: 'Field', name: { kind: 'Name', value: 'limit' } },
9143
+ { kind: 'Field', name: { kind: 'Name', value: 'offset' } },
9144
+ { kind: 'Field', name: { kind: 'Name', value: 'hasMore' } },
9145
+ ],
9146
+ },
9147
+ },
9148
+ ],
9149
+ },
9150
+ },
9151
+ ],
9152
+ },
9153
+ },
9154
+ ],
9155
+ } as unknown as DocumentNode<ListLedgerReportSharesQuery, ListLedgerReportSharesQueryVariables>
9023
9156
  export const GetLedgerReportingTaxonomyDocument = {
9024
9157
  kind: 'Document',
9025
9158
  definitions: [
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Where this graph's reports have been shared: each recipient graph, when,
3
+ * by whom, how many facts it received, and whether the share was revoked.
4
+ *
5
+ * The sender's record behind `share-report` and `revoke-report-share`.
6
+ * `reportId` narrows to one report; omitted, the list is the graph's whole
7
+ * distribution log. Revoked shares are history and stay out unless
8
+ * `includeRevoked` is set — a recipient shared to, revoked, and shared to
9
+ * again has two rows, one revoked and one live.
10
+ */
11
+ export declare const LIST_REPORT_SHARES: string;
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LIST_REPORT_SHARES = void 0;
4
+ const graphql_request_1 = require("graphql-request");
5
+ /**
6
+ * Where this graph's reports have been shared: each recipient graph, when,
7
+ * by whom, how many facts it received, and whether the share was revoked.
8
+ *
9
+ * The sender's record behind `share-report` and `revoke-report-share`.
10
+ * `reportId` narrows to one report; omitted, the list is the graph's whole
11
+ * distribution log. Revoked shares are history and stay out unless
12
+ * `includeRevoked` is set — a recipient shared to, revoked, and shared to
13
+ * again has two rows, one revoked and one live.
14
+ */
15
+ exports.LIST_REPORT_SHARES = (0, graphql_request_1.gql) `
16
+ query ListLedgerReportShares(
17
+ $reportId: String
18
+ $includeRevoked: Boolean! = false
19
+ $limit: Int! = 100
20
+ $offset: Int! = 0
21
+ ) {
22
+ reportShares(
23
+ reportId: $reportId
24
+ includeRevoked: $includeRevoked
25
+ limit: $limit
26
+ offset: $offset
27
+ ) {
28
+ reportShares {
29
+ id
30
+ reportId
31
+ targetGraphId
32
+ targetGraphName
33
+ sharedBy
34
+ sharedAt
35
+ revokedAt
36
+ factCount
37
+ }
38
+ pagination {
39
+ total
40
+ limit
41
+ offset
42
+ hasMore
43
+ }
44
+ }
45
+ }
46
+ `;
@@ -0,0 +1,44 @@
1
+ import { gql } from 'graphql-request'
2
+
3
+ /**
4
+ * Where this graph's reports have been shared: each recipient graph, when,
5
+ * by whom, how many facts it received, and whether the share was revoked.
6
+ *
7
+ * The sender's record behind `share-report` and `revoke-report-share`.
8
+ * `reportId` narrows to one report; omitted, the list is the graph's whole
9
+ * distribution log. Revoked shares are history and stay out unless
10
+ * `includeRevoked` is set — a recipient shared to, revoked, and shared to
11
+ * again has two rows, one revoked and one live.
12
+ */
13
+ export const LIST_REPORT_SHARES = gql`
14
+ query ListLedgerReportShares(
15
+ $reportId: String
16
+ $includeRevoked: Boolean! = false
17
+ $limit: Int! = 100
18
+ $offset: Int! = 0
19
+ ) {
20
+ reportShares(
21
+ reportId: $reportId
22
+ includeRevoked: $includeRevoked
23
+ limit: $limit
24
+ offset: $offset
25
+ ) {
26
+ reportShares {
27
+ id
28
+ reportId
29
+ targetGraphId
30
+ targetGraphName
31
+ sharedBy
32
+ sharedAt
33
+ revokedAt
34
+ factCount
35
+ }
36
+ pagination {
37
+ total
38
+ limit
39
+ offset
40
+ hasMore
41
+ }
42
+ }
43
+ }
44
+ `
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@robosystems/client",
3
- "version": "2.26.1",
3
+ "version": "2.27.0",
4
4
  "description": "TypeScript client library for the RoboSystems financial intelligence platform",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",