@robosystems/client 2.26.0 → 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.
- package/artifacts/LedgerClient.d.ts +24 -1
- package/artifacts/LedgerClient.js +21 -0
- package/artifacts/LedgerClient.ts +51 -0
- package/artifacts/graphql/generated/graphql.d.ts +29 -0
- package/artifacts/graphql/generated/graphql.js +113 -1
- package/artifacts/graphql/generated/graphql.ts +137 -0
- package/artifacts/graphql/queries/ledger/fiscalCalendar.js +2 -0
- package/artifacts/graphql/queries/ledger/fiscalCalendar.ts +2 -0
- package/artifacts/graphql/queries/ledger/reportShares.d.ts +11 -0
- package/artifacts/graphql/queries/ledger/reportShares.js +46 -0
- package/artifacts/graphql/queries/ledger/reportShares.ts +44 -0
- package/index.ts +1 -1
- package/package.json +1 -1
- package/sdk/index.d.ts +1 -1
- package/sdk/index.ts +1 -1
- package/sdk/sdk.gen.d.ts +3 -3
- package/sdk/sdk.gen.js +3 -3
- package/sdk/sdk.gen.ts +3 -3
- package/sdk/types.gen.d.ts +71 -145
- package/sdk/types.gen.ts +71 -148
- package/sdk.gen.d.ts +3 -3
- package/sdk.gen.js +3 -3
- package/sdk.gen.ts +3 -3
- package/types.gen.d.ts +71 -145
- package/types.gen.ts +71 -148
|
@@ -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
|
*
|
|
@@ -283,6 +285,12 @@ export interface ClosePeriodOptions extends EntityScopeOptions {
|
|
|
283
285
|
* or voiding each. The override is recorded in the close audit note.
|
|
284
286
|
*/
|
|
285
287
|
allowUnpostedSourceEvents?: boolean;
|
|
288
|
+
/**
|
|
289
|
+
* Close despite bank lines a sync held out of an earlier, closed month.
|
|
290
|
+
* Each is recorded as decided and none posts; reopening that month gives
|
|
291
|
+
* them back instead. The override is recorded in the close audit note.
|
|
292
|
+
*/
|
|
293
|
+
allowHeldBankLines?: boolean;
|
|
286
294
|
}
|
|
287
295
|
/** Which reconciliation check to run. */
|
|
288
296
|
export type ReconciliationMethod = NonNullable<PreviewReconciliationsRequest['method']>;
|
|
@@ -1326,6 +1334,21 @@ export declare class LedgerClient {
|
|
|
1326
1334
|
* investor's declared holding survives the withdrawal.
|
|
1327
1335
|
*/
|
|
1328
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[]>;
|
|
1329
1352
|
/** List source graphs barred from sharing reports into this graph. */
|
|
1330
1353
|
listBlockedSourceGraphs(graphId: string, options?: {
|
|
1331
1354
|
limit?: number;
|
|
@@ -884,6 +884,7 @@ class LedgerClient {
|
|
|
884
884
|
allow_reconciling_items: options?.allowReconcilingItems,
|
|
885
885
|
allow_unposted_source_events: options?.allowUnpostedSourceEvents,
|
|
886
886
|
allow_unexplained_residuals: options?.allowUnexplainedResiduals,
|
|
887
|
+
allow_held_bank_lines: options?.allowHeldBankLines,
|
|
887
888
|
};
|
|
888
889
|
const envelope = await this.callOperation('Close period', (o) => (0, sdk_gen_1.closePeriod)({ ...o, path: { graph_id: graphId }, body }));
|
|
889
890
|
const raw = envelope.result;
|
|
@@ -1537,6 +1538,24 @@ class LedgerClient {
|
|
|
1537
1538
|
}));
|
|
1538
1539
|
return this.requireResult('Revoke report share', envelope.result);
|
|
1539
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
|
+
}
|
|
1540
1559
|
// ── Blocked source graphs ────────────────────────────────────────────
|
|
1541
1560
|
//
|
|
1542
1561
|
// Sharing is authorized capability-style — whoever holds this graph's id
|
|
@@ -1716,6 +1735,8 @@ function rawFiscalCalendarToCamel(raw) {
|
|
|
1716
1735
|
unpostedSourceEventSample: raw.unposted_source_event_sample ?? [],
|
|
1717
1736
|
unreconciledAccountCount: raw.unreconciled_account_count ?? 0,
|
|
1718
1737
|
unreconciledAccountSample: raw.unreconciled_account_sample ?? [],
|
|
1738
|
+
heldBankLineCount: raw.held_bank_line_count ?? 0,
|
|
1739
|
+
heldBankLineSample: raw.held_bank_line_sample ?? [],
|
|
1719
1740
|
groupOpenEntities: raw.group_open_entities ?? [],
|
|
1720
1741
|
groupPendingAdjustments: raw.group_pending_adjustments ?? [],
|
|
1721
1742
|
groupUnexplained: raw.group_unexplained ?? [],
|
|
@@ -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
|
*
|
|
@@ -534,6 +541,8 @@ interface RawFiscalCalendar {
|
|
|
534
541
|
unposted_source_event_sample?: string[]
|
|
535
542
|
unreconciled_account_count?: number
|
|
536
543
|
unreconciled_account_sample?: string[]
|
|
544
|
+
held_bank_line_count?: number
|
|
545
|
+
held_bank_line_sample?: string[]
|
|
537
546
|
group_open_entities?: string[]
|
|
538
547
|
group_pending_adjustments?: string[]
|
|
539
548
|
group_unexplained?: string[]
|
|
@@ -747,6 +756,12 @@ export interface ClosePeriodOptions extends EntityScopeOptions {
|
|
|
747
756
|
* or voiding each. The override is recorded in the close audit note.
|
|
748
757
|
*/
|
|
749
758
|
allowUnpostedSourceEvents?: boolean
|
|
759
|
+
/**
|
|
760
|
+
* Close despite bank lines a sync held out of an earlier, closed month.
|
|
761
|
+
* Each is recorded as decided and none posts; reopening that month gives
|
|
762
|
+
* them back instead. The override is recorded in the close audit note.
|
|
763
|
+
*/
|
|
764
|
+
allowHeldBankLines?: boolean
|
|
750
765
|
}
|
|
751
766
|
|
|
752
767
|
/** Which reconciliation check to run. */
|
|
@@ -2483,6 +2498,7 @@ export class LedgerClient {
|
|
|
2483
2498
|
allow_reconciling_items: options?.allowReconcilingItems,
|
|
2484
2499
|
allow_unposted_source_events: options?.allowUnpostedSourceEvents,
|
|
2485
2500
|
allow_unexplained_residuals: options?.allowUnexplainedResiduals,
|
|
2501
|
+
allow_held_bank_lines: options?.allowHeldBankLines,
|
|
2486
2502
|
}
|
|
2487
2503
|
const envelope = await this.callOperation('Close period', (o) =>
|
|
2488
2504
|
closePeriod({ ...o, path: { graph_id: graphId }, body })
|
|
@@ -3446,6 +3462,39 @@ export class LedgerClient {
|
|
|
3446
3462
|
return this.requireResult('Revoke report share', envelope.result)
|
|
3447
3463
|
}
|
|
3448
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
|
+
|
|
3449
3498
|
// ── Blocked source graphs ────────────────────────────────────────────
|
|
3450
3499
|
//
|
|
3451
3500
|
// Sharing is authorized capability-style — whoever holds this graph's id
|
|
@@ -3705,6 +3754,8 @@ function rawFiscalCalendarToCamel(raw: RawFiscalCalendar): LedgerFiscalCalendar
|
|
|
3705
3754
|
unpostedSourceEventSample: raw.unposted_source_event_sample ?? [],
|
|
3706
3755
|
unreconciledAccountCount: raw.unreconciled_account_count ?? 0,
|
|
3707
3756
|
unreconciledAccountSample: raw.unreconciled_account_sample ?? [],
|
|
3757
|
+
heldBankLineCount: raw.held_bank_line_count ?? 0,
|
|
3758
|
+
heldBankLineSample: raw.held_bank_line_sample ?? [],
|
|
3708
3759
|
groupOpenEntities: raw.group_open_entities ?? [],
|
|
3709
3760
|
groupPendingAdjustments: raw.group_pending_adjustments ?? [],
|
|
3710
3761
|
groupUnexplained: raw.group_unexplained ?? [],
|
|
@@ -1191,6 +1191,8 @@ export type GetLedgerFiscalCalendarQuery = {
|
|
|
1191
1191
|
unpostedSourceEventSample: Array<string>;
|
|
1192
1192
|
unreconciledAccountCount: number;
|
|
1193
1193
|
unreconciledAccountSample: Array<string>;
|
|
1194
|
+
heldBankLineCount: number;
|
|
1195
|
+
heldBankLineSample: Array<string>;
|
|
1194
1196
|
groupOpenEntities: Array<string>;
|
|
1195
1197
|
groupPendingAdjustments: Array<string>;
|
|
1196
1198
|
groupUnexplained: Array<string>;
|
|
@@ -2322,6 +2324,32 @@ export type GetLedgerReportPackageQuery = {
|
|
|
2322
2324
|
}>;
|
|
2323
2325
|
} | null;
|
|
2324
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
|
+
};
|
|
2325
2353
|
export type GetLedgerReportingTaxonomyQueryVariables = Exact<{
|
|
2326
2354
|
[key: string]: never;
|
|
2327
2355
|
}>;
|
|
@@ -2895,6 +2923,7 @@ export declare const ListLedgerReconciliationsDocument: DocumentNode<ListLedgerR
|
|
|
2895
2923
|
export declare const GetLedgerReportDocument: DocumentNode<GetLedgerReportQuery, GetLedgerReportQueryVariables>;
|
|
2896
2924
|
export declare const GetLedgerReportDownloadUrlDocument: DocumentNode<GetLedgerReportDownloadUrlQuery, GetLedgerReportDownloadUrlQueryVariables>;
|
|
2897
2925
|
export declare const GetLedgerReportPackageDocument: DocumentNode<GetLedgerReportPackageQuery, GetLedgerReportPackageQueryVariables>;
|
|
2926
|
+
export declare const ListLedgerReportSharesDocument: DocumentNode<ListLedgerReportSharesQuery, ListLedgerReportSharesQueryVariables>;
|
|
2898
2927
|
export declare const GetLedgerReportingTaxonomyDocument: DocumentNode<GetLedgerReportingTaxonomyQuery, GetLedgerReportingTaxonomyQueryVariables>;
|
|
2899
2928
|
export declare const ListLedgerReportsDocument: DocumentNode<ListLedgerReportsQuery, ListLedgerReportsQueryVariables>;
|
|
2900
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: [
|
|
@@ -3259,6 +3259,8 @@ exports.GetLedgerFiscalCalendarDocument = {
|
|
|
3259
3259
|
{ kind: 'Field', name: { kind: 'Name', value: 'unpostedSourceEventSample' } },
|
|
3260
3260
|
{ kind: 'Field', name: { kind: 'Name', value: 'unreconciledAccountCount' } },
|
|
3261
3261
|
{ kind: 'Field', name: { kind: 'Name', value: 'unreconciledAccountSample' } },
|
|
3262
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'heldBankLineCount' } },
|
|
3263
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'heldBankLineSample' } },
|
|
3262
3264
|
{ kind: 'Field', name: { kind: 'Name', value: 'groupOpenEntities' } },
|
|
3263
3265
|
{ kind: 'Field', name: { kind: 'Name', value: 'groupPendingAdjustments' } },
|
|
3264
3266
|
{ kind: 'Field', name: { kind: 'Name', value: 'groupUnexplained' } },
|
|
@@ -6216,6 +6218,116 @@ exports.GetLedgerReportPackageDocument = {
|
|
|
6216
6218
|
},
|
|
6217
6219
|
],
|
|
6218
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
|
+
};
|
|
6219
6331
|
exports.GetLedgerReportingTaxonomyDocument = {
|
|
6220
6332
|
kind: 'Document',
|
|
6221
6333
|
definitions: [
|
|
@@ -1185,6 +1185,8 @@ export type GetLedgerFiscalCalendarQuery = {
|
|
|
1185
1185
|
unpostedSourceEventSample: Array<string>
|
|
1186
1186
|
unreconciledAccountCount: number
|
|
1187
1187
|
unreconciledAccountSample: Array<string>
|
|
1188
|
+
heldBankLineCount: number
|
|
1189
|
+
heldBankLineSample: Array<string>
|
|
1188
1190
|
groupOpenEntities: Array<string>
|
|
1189
1191
|
groupPendingAdjustments: Array<string>
|
|
1190
1192
|
groupUnexplained: Array<string>
|
|
@@ -2271,6 +2273,29 @@ export type GetLedgerReportPackageQuery = {
|
|
|
2271
2273
|
} | null
|
|
2272
2274
|
}
|
|
2273
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
|
+
|
|
2274
2299
|
export type GetLedgerReportingTaxonomyQueryVariables = Exact<{ [key: string]: never }>
|
|
2275
2300
|
|
|
2276
2301
|
export type GetLedgerReportingTaxonomyQuery = {
|
|
@@ -6041,6 +6066,8 @@ export const GetLedgerFiscalCalendarDocument = {
|
|
|
6041
6066
|
{ kind: 'Field', name: { kind: 'Name', value: 'unpostedSourceEventSample' } },
|
|
6042
6067
|
{ kind: 'Field', name: { kind: 'Name', value: 'unreconciledAccountCount' } },
|
|
6043
6068
|
{ kind: 'Field', name: { kind: 'Name', value: 'unreconciledAccountSample' } },
|
|
6069
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'heldBankLineCount' } },
|
|
6070
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'heldBankLineSample' } },
|
|
6044
6071
|
{ kind: 'Field', name: { kind: 'Name', value: 'groupOpenEntities' } },
|
|
6045
6072
|
{ kind: 'Field', name: { kind: 'Name', value: 'groupPendingAdjustments' } },
|
|
6046
6073
|
{ kind: 'Field', name: { kind: 'Name', value: 'groupUnexplained' } },
|
|
@@ -9016,6 +9043,116 @@ export const GetLedgerReportPackageDocument = {
|
|
|
9016
9043
|
},
|
|
9017
9044
|
],
|
|
9018
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>
|
|
9019
9156
|
export const GetLedgerReportingTaxonomyDocument = {
|
|
9020
9157
|
kind: 'Document',
|
|
9021
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
|
+
`;
|