Repository navigation
Expand file tree
/
Copy pathschema.graphql
More file actions
5237 lines (4194 loc) · 149 KB
/
Copy pathschema.graphql
File metadata and controls
5237 lines (4194 loc) · 149 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
type Query {
"""Paginated list of portfolios."""
portfolios(
"""
Maximum rows to return, 1-1000. Omit to use this field's own default; out of range raises `INVALID_PAGINATION`.
"""
limit: Int = null
"""
Rows to skip before returning, 0 or greater. Out of range raises `INVALID_PAGINATION`.
"""
offset: Int = null
): PortfolioList
"""Paginated list of securities."""
securities(
"""Filter to securities issued by one entity."""
entityId: String = null
"""Filter by instrument type."""
securityType: String = null
"""Filter on active status. Omit for both."""
isActive: Boolean = null
"""
Maximum rows to return, 1-1000. Omit to use this field's own default; out of range raises `INVALID_PAGINATION`.
"""
limit: Int = null
"""
Rows to skip before returning, 0 or greater. Out of range raises `INVALID_PAGINATION`.
"""
offset: Int = null
): SecurityList
"""Single security by id."""
security(
"""The security's id."""
securityId: String!
): Security
"""Paginated list of positions."""
positions(
"""Filter to one portfolio."""
portfolioId: String = null
"""Filter to holdings of one security."""
securityId: String = null
"""Filter by position status."""
status: String = null
"""
Maximum rows to return, 1-1000. Omit to use this field's own default; out of range raises `INVALID_PAGINATION`.
"""
limit: Int = null
"""
Rows to skip before returning, 0 or greater. Out of range raises `INVALID_PAGINATION`.
"""
offset: Int = null
): PositionList
"""Single enriched position by id."""
position(
"""The position's id."""
positionId: String!
): Position
"""Portfolio positions grouped by entity."""
holdings(
"""The portfolio whose positions are grouped by entity."""
portfolioId: String!
): HoldingsList
"""
Portfolio-centric molecule: portfolio + active positions + securities + entities.
"""
portfolioBlock(
"""The portfolio to assemble the molecule for."""
portfolioId: String!
): PortfolioBlock
"""
One entity of the graph's reporting group: the named one, else the
group parent. Null on a graph with no entity yet.
"""
entity(
"""A subsidiary's id. Omit for the group parent."""
entityId: String = null
): LedgerEntity
"""List entities for a graph, optionally filtered by source."""
entities(
"""Filter by the system an entity came from, e.g. `quickbooks`."""
source: String = null
): [LedgerEntity!]!
"""Fetch a single counterparty agent by id."""
agent(
"""The agent's id (`agt_`-prefixed)."""
id: String!
): Agent
"""List counterparty agents with optional filters."""
agents(
"""Filter by counterparty role, e.g. `customer` or `vendor`."""
agentType: String = null
"""Filter by originating system, e.g. `quickbooks`."""
source: String = null
"""Filter on active status. Defaults to active only; pass null for both."""
isActive: Boolean = true
"""
Maximum rows to return, 1-1000. Omit to use this field's own default; out of range raises `INVALID_PAGINATION`.
"""
limit: Int = null
"""
Rows to skip before returning, 0 or greater. Out of range raises `INVALID_PAGINATION`.
"""
offset: Int = null
): [Agent!]!
"""
One entity's open AR — total + counterparty count + open invoice count.
Derived from the event duality chain: unsettled `invoice_issued`
amounts less the discharges pointed at them.
"""
openReceivables(
"""The entity whose books to read. Omit for the group parent."""
entityId: String = null
): OpenBalanceAggregate!
"""One entity's open AP — symmetric to `openReceivables`."""
openPayables(
"""The entity whose books to read. Omit for the group parent."""
entityId: String = null
): OpenBalanceAggregate!
"""Per-counterparty open AR rows, ordered by absolute balance descending."""
openReceivablesByAgent(
"""The entity whose books to read. Omit for the group parent."""
entityId: String = null
): [OpenBalanceByAgent!]!
"""Per-counterparty open AP rows, ordered by absolute balance descending."""
openPayablesByAgent(
"""The entity whose books to read. Omit for the group parent."""
entityId: String = null
): [OpenBalanceByAgent!]!
"""
Receivables aged at a date: bucket totals, a row per customer, and each
entity's tie-out to its receivables accounts.
"""
agedReceivables(
"""The date to age at. Omit for today."""
asOf: Date = null
"""
The entity whose books to read, or the group parent for a group. Omit for the group parent.
"""
entityId: String = null
"""
`entity` for one entity's books, `group` for the parent and the members consolidated in full, intercompany items set apart.
"""
scope: String! = "entity"
): AgedBalances!
"""Payables aged at a date — symmetric to `agedReceivables`."""
agedPayables(
"""The date to age at. Omit for today."""
asOf: Date = null
"""
The entity whose books to read, or the group parent for a group. Omit for the group parent.
"""
entityId: String = null
"""`entity` or `group`."""
scope: String! = "entity"
): AgedBalances!
"""
One counterparty's open invoices or bills at a date, oldest first,
each with its due date, age and bucket.
"""
openItemsForAgent(
"""The counterparty."""
agentId: String!
"""`receivables` or `payables`."""
kind: String!
"""The date the items are open at. Omit for today."""
asOf: Date = null
"""The entity whose books to read. Omit for the group parent."""
entityId: String = null
): [OpenItem!]!
"""
The open invoices or bills a payment or bank line may settle.
Its own entity's and counterparty's, open at its date: an exact amount
match first, then the oldest due date. A person picks; the commit records
the choice with `discharge_allocations`. Null when there is no such event.
"""
dischargeCandidates(
"""The payment or bank line."""
eventId: String!
): DischargeCandidates
"""Fetch a single event block by id."""
eventBlock(
"""The event block's id."""
id: String!
): EventBlock
"""
List one entity's event blocks with optional filters.
Recent events first (`occurred_at` descending). Filter by `status`
(`captured` is the unposted queue, `committed` the audit trail),
`source` (`quickbooks` / `schedule` / `manual`), `eventType`,
and `isReconcilingItem` — `true` returns the post-sync
reconciliation worklist, committed events whose upstream payload
changed after they were posted.
"""
eventBlocks(
"""Filter to one event type, e.g. `invoice_issued`."""
eventType: String = null
"""Filter on the event's category label."""
eventCategory: String = null
"""
`economic` for business activity, `support` for evidence about it (balance readings, reconciliation sign-offs), `operational` for schedule obligations. A balance reading's amount is a balance, not a flow.
"""
eventClass: String = null
"""
Filter by lifecycle state: `captured` is the unposted queue, `committed` the audit trail.
"""
status: String = null
"""Filter to events involving one counterparty."""
agentId: String = null
"""Filter by originating system: `quickbooks`, `schedule` or `manual`."""
source: String = null
"""
True returns the post-sync reconciliation worklist - committed events whose upstream payload changed after posting.
"""
isReconcilingItem: Boolean = null
"""
Maximum rows to return, 1-1000. Omit to use this field's own default; out of range raises `INVALID_PAGINATION`.
"""
limit: Int = null
"""
Rows to skip before returning, 0 or greater. Out of range raises `INVALID_PAGINATION`.
"""
offset: Int = null
"""The entity whose books to read. Omit for the group parent."""
entityId: String = null
): [EventBlock!]!
"""
One entity's ledger counts + date range, with the graph's connection
metadata.
Counts and dates come from the ledger itself; the connection fields
describe the source system feeding it. If connection metadata cannot be
read the field still resolves, reporting a zero count and a null
timestamp rather than failing the whole query.
"""
summary(
"""The entity whose books to count. Omit for the group parent."""
entityId: String = null
): LedgerSummary
"""Paginated Chart of Accounts listing, one entity's chart."""
accounts(
"""
Filter on the account's statement classification, e.g. `asset` or `revenue`.
"""
classification: String = null
"""Filter on active status. Omit for both."""
isActive: Boolean = null
"""
Maximum rows to return, 1-1000. Omit to use this field's own default; out of range raises `INVALID_PAGINATION`.
"""
limit: Int = null
"""
Rows to skip before returning, 0 or greater. Out of range raises `INVALID_PAGINATION`.
"""
offset: Int = null
"""The entity whose chart to read. Omit for the group parent."""
entityId: String = null
): AccountList
"""
One entity's Chart of Accounts as a recursive tree.
`includeInactive` defaults to `False` so deleted source-system
accounts (still kept in OLTP for historical journal-line FK integrity)
don't clutter the standard CoA view. Set `True` for admin / cleanup
contexts.
"""
accountTree(
"""
Include accounts deleted upstream but retained for journal-line integrity. Defaults to false.
"""
includeInactive: Boolean = null
"""The entity whose chart to read. Omit for the group parent."""
entityId: String = null
): AccountTree
"""
The group's bank and card accounts, with what writes to each.
Every chart account a feed books to, or that a source system types as a
bank or card account, with the entity whose chart it is in and the
health of the connection that writes to it.
"""
bankAccounts(
"""One entity's accounts. Omit for every entity in the group."""
entityId: String = null
): BankAccountList
"""CoA accounts grouped by reporting element with balances."""
accountRollups(
"""
The mapping whose associations group the accounts. Omit for the entity's active mapping.
"""
mappingId: String = null
"""Start of the balance window (inclusive)."""
startDate: Date = null
"""End of the balance window (inclusive)."""
endDate: Date = null
"""The entity whose books to read. Omit for the group parent."""
entityId: String = null
): AccountRollups
"""
Every reconciliation's standing at a period end, for one entity.
A reconciliation not yet compared for the period is `not_started`.
Comparisons are recorded by the `refresh-reconciliations` operation.
"""
reconciliations(
"""The period, as YYYY-MM."""
period: String!
"""The entity whose books to read. Omit for the group parent."""
entityId: String = null
): ReconciliationList
"""One entity's trial balance for posted entries in a date range."""
trialBalance(
"""Start of the posting window (inclusive)."""
startDate: Date = null
"""End of the posting window (inclusive)."""
endDate: Date = null
"""The entity whose books to read. Omit for the group parent."""
entityId: String = null
"""
A management dimension axis (department, class, location, project) to slice by, with dimension_member_id.
"""
dimensionType: String = null
"""
The one member whose lines to sum, or `unallocated` for the lines no member of the axis tags.
"""
dimensionMemberId: String = null
): TrialBalance
"""
One entity's posted lines on one account, oldest first, each with the
balance it leaves.
The lines run from an opening balance to a closing one, which is the
trial balance's for the same window added to the opening. An income or
expense account's opening counts from the fiscal year's start.
"""
accountRegister(
"""The account."""
accountId: String!
"""Start of the window (inclusive). Omit from the first line."""
startDate: Date = null
"""End of the window (inclusive). Omit through the last line."""
endDate: Date = null
"""The entity whose books to read. Omit for the group parent."""
entityId: String = null
"""A management dimension axis to slice by, with dimension_member_id."""
dimensionType: String = null
"""
The one member whose lines to read, or `unallocated` for the lines no member of the axis tags.
"""
dimensionMemberId: String = null
"""Only the lines tagged to this cash flow or equity movement row."""
flowElementId: String = null
"""Also return the window's draft lines, outside every balance."""
includeDrafts: Boolean! = false
"""The `nextCursor` of the page before."""
after: String = null
"""
Maximum rows to return, 1-1000. Omit to use this field's own default; out of range raises `INVALID_PAGINATION`.
"""
limit: Int = null
): AccountRegister
"""
The graph's management dimension members (departments, classes,
locations, projects), by axis then name, each with how many lines carry
it.
"""
dimensions(
"""One axis; omit for all."""
dimensionType: String = null
"""Also list retired members."""
includeInactive: Boolean! = false
): DimensionList
"""Paginated list of one entity's transactions."""
transactions(
"""Filter by transaction type."""
type: String = null
"""Start of the transaction-date window (inclusive)."""
startDate: Date = null
"""End of the transaction-date window (inclusive)."""
endDate: Date = null
"""
Maximum rows to return, 1-1000. Omit to use this field's own default; out of range raises `INVALID_PAGINATION`.
"""
limit: Int = null
"""
Rows to skip before returning, 0 or greater. Out of range raises `INVALID_PAGINATION`.
"""
offset: Int = null
"""The entity whose books to read. Omit for the group parent."""
entityId: String = null
): LedgerTransactionList
"""Single transaction with all entries and line items."""
transaction(
"""The transaction's id."""
transactionId: String!
): LedgerTransactionDetail
"""
Paginated journal — one entity's entries with their line items,
newest first.
The entry-centric read. `transactions` lists transactions and hangs
entries off them, so it cannot show an entry with no parent; the
schedule engine and event handlers create exactly those, which is
why everything the close posts is absent from that list. Here an
entry stands on its own and `transactionId` is projected, null for a
standalone one.
Filter by `provenance` (`schedule_derived` for what the close
posted), `type` (`adjusting` / `closing`), `status`, or a parent
`transactionId`.
"""
journalEntries(
"""Start of the entry-date window (inclusive)."""
startDate: Date = null
"""End of the entry-date window (inclusive)."""
endDate: Date = null
"""Filter by entry status, e.g. `draft` or `posted`."""
status: String = null
"""Filter by entry type: `adjusting` or `closing`."""
type: String = null
"""
Filter by what created the entry; `schedule_derived` is what the close posted.
"""
provenance: String = null
"""Filter to entries under one parent transaction."""
transactionId: String = null
"""
Maximum rows to return, 1-1000. Omit to use this field's own default; out of range raises `INVALID_PAGINATION`.
"""
limit: Int = null
"""
Rows to skip before returning, 0 or greater. Out of range raises `INVALID_PAGINATION`.
"""
offset: Int = null
"""The entity whose books to read. Omit for the group parent."""
entityId: String = null
): LedgerJournalEntryList
"""List all active taxonomies, optionally filtered by type."""
taxonomies(
"""Filter by taxonomy type."""
taxonomyType: String = null
): TaxonomyList
"""The locked US GAAP reporting taxonomy, or null."""
reportingTaxonomy: Taxonomy
"""Paginated list of taxonomy elements."""
elements(
"""Filter to elements of one taxonomy."""
taxonomyId: String = null
"""Filter by the element's originating system."""
source: String = null
"""Filter on the element's statement classification."""
classification: String = null
"""
True for abstract presentation nodes only, false for concrete elements, omit for both.
"""
isAbstract: Boolean = null
"""
Include retired accounts (`isActive: false`), so one can be found and reactivated. Omit for active elements only.
"""
includeInactive: Boolean! = false
"""
Maximum rows to return, 1-1000. Omit to use this field's own default; out of range raises `INVALID_PAGINATION`.
"""
limit: Int = null
"""
Rows to skip before returning, 0 or greater. Out of range raises `INVALID_PAGINATION`.
"""
offset: Int = null
): ElementList
"""
The rs-gaap concepts a chart-of-accounts element may map to.
Limited to concepts that actually render under the entity's Reporting
Style — falling back to the rs-gaap-presentation set when no Style is
seeded — with statement-level subtotals excluded. It is the same candidate
set the mapping operator picks from, so a target that would land a fact on
an unreachable branch is never offered.
"""
mappingCandidates(
"""
The CoA element's EFS classification - asset, liability, equity, revenue, expense, gain or loss - whose eligible rs-gaap targets to return.
"""
classification: String!
"""The entity whose chart is being mapped. Omit for the group parent."""
entityId: String = null
): [Element!]!
"""
The cash flow rows a line may be tagged with.
A flow is a second classification beside the account: it overrides the
account's default flow on the cash flow and equity statements (a bank
line's `classified_flow_qname`, a journal-entry line's
`transaction_description_code`). These are the leaf investing and
financing rows of the entity's cash flow statement under its Reporting
Style - the set the write path accepts - so a picker built from them
never offers a row the statement cannot present. By section, investing
then financing, and by name within each.
"""
flowCandidates(
"""
The entity whose statement the rows come from. Omit for the group parent.
"""
entityId: String = null
): [FlowCandidate!]!
"""CoA elements not yet mapped to the reporting taxonomy."""
unmappedElements(
"""The mapping to measure against. Omit for the active mapping."""
mappingId: String = null
): [UnmappedElement!]!
"""List active structures."""
structures(
"""Filter to structures of one taxonomy."""
taxonomyId: String = null
"""Filter to one block type."""
blockType: String = null
): StructureList
"""
List the active mapping structures, each naming the entity whose chart
it maps from.
"""
mappings(
"""Keep only this entity's mappings. Omit for every entity's."""
entityId: String = null
): StructureList
"""Single mapping structure with all associations."""
mapping(
"""The mapping structure's id."""
mappingId: String!
): MappingDetail
"""
How one month's bank lines were classified, per suggestion source.
Taken as suggested, overridden, split, or chosen with no suggestion to
take, and the share that needed a person's choice. Counted from the
lines committed in the month; lines posted before outcomes were recorded
are `unstamped` and outside the share.
"""
classificationStats(
"""The month, `YYYY-MM`, over the lines' own dates."""
period: String!
"""The entity whose lines to count. Omit for the group parent."""
entityId: String = null
): ClassificationStats
"""Coverage stats for a mapping."""
mappingCoverage(
"""The mapping structure to report coverage for."""
mappingId: String!
): MappingCoverage
"""
Trial balance rolled up to reporting concepts via mapping associations.
"""
mappedTrialBalance(
"""
The mapping whose associations roll accounts up to reporting concepts. Omit for the active mapping.
"""
mappingId: String!
"""Start of the posting window (inclusive)."""
startDate: Date = null
"""End of the posting window (inclusive)."""
endDate: Date = null
): MappedTrialBalance
"""Close status for an entity's schedules in a fiscal period."""
periodCloseStatus(
"""First day of the fiscal period, as `YYYY-MM-DD`."""
periodStart: Date!
"""Last day of the fiscal period, as `YYYY-MM-DD`."""
periodEnd: Date!
"""The entity whose schedules to read. Omit for the group parent."""
entityId: String = null
): PeriodCloseStatus
"""
Shipped chart-of-accounts templates for `initialize-chart-of-accounts`.
"""
chartTemplates: [ChartTemplate!]!
"""An entity's fiscal calendar — pointers, gap, closeable status."""
fiscalCalendar(
"""The entity whose calendar to read. Omit for the group parent."""
entityId: String = null
): FiscalCalendar
"""
An entity's draft entries for a fiscal period, ready for review
before close.
The close-review *outbox*: each draft is annotated with its QB
write-back disposition (`willPublishToQb`) and the response carries
a publish summary — which drafts `close-period` will push to
QuickBooks vs. post locally only.
"""
periodDrafts(
"""The fiscal period, as `YYYY-MM`."""
period: String!
"""The entity whose drafts to list. Omit for the group parent."""
entityId: String = null
): PeriodDrafts
"""
One entity's closing book sidebar navigation (statements, schedules,
rollups, etc.).
"""
closingBookStructures(
"""The entity whose books to read. Omit for the group parent."""
entityId: String = null
): ClosingBookStructures
"""List one entity's report definitions, newest first."""
reports(
"""
`CURRENT` (the default) leaves out archived reports, `ARCHIVED` returns only those, `ALL` returns every report.
"""
lifecycle: ReportLifecycle! = CURRENT
"""
The entity whose reports to list. Omit for the group parent, whose list also carries reports shared in from other graphs.
"""
entityId: String = null
): ReportList
"""Single report definition with structures + entity name."""
report(
"""The report's id."""
reportId: String!
): Report
"""
Rehydrate a Report as a package.
Report metadata plus one rendered Information Block envelope per
attached FactSet, so a whole published report is read in a single
round trip rather than one `statement` call per block.
"""
reportPackage(
"""The report to rehydrate."""
reportId: String!
): ReportPackage
"""
Presigned download URL for a published Report's serialization bundle.
The only way to download a report's bundle. Every format resolves to a
short-lived presigned S3 URL which the client follows directly — the
field returns the URL, never the bytes. The holon is stamped at
publish time; the Tavi, the XBRL and the holon with lineage are
materialized and cached on first request. `HOLON_JSONLD_LINEAGE` carries
the books behind the report's frozen figures, so it is for this graph's
members only: a report shared in from another graph raises
`REPORT_BUNDLE_NOT_AVAILABLE` for it. `expiresIn`
is the URL's lifetime in seconds, bounded 60-3600.
Returns null when the report doesn't exist; raises
`REPORT_BUNDLE_NOT_AVAILABLE` when it exists but has no published
bundle yet.
"""
reportDownloadUrl(
"""The published report whose bundle to link."""
reportId: String!
"""Serialization flavor. Defaults to the holon."""
format: ReportDownloadFormat = null
"""
URL lifetime in seconds, 60-3600. Out of range raises `INVALID_EXPIRES_IN`.
"""
expiresIn: Int = null
): ReportBundleDownload
"""Rendered financial statement for a report + block_type."""
statement(
"""The report the statement belongs to."""
reportId: String!
"""Which statement to render, e.g. `income_statement`."""
blockType: String!
): Statement
"""Paginated list of publish lists for this graph."""
publishLists(
"""
Maximum rows to return, 1-1000. Omit to use this field's own default; out of range raises `INVALID_PAGINATION`.
"""
limit: Int = null
"""
Rows to skip before returning, 0 or greater. Out of range raises `INVALID_PAGINATION`.
"""
offset: Int = null
): PublishListList
"""Single publish list with enriched members, or null."""
publishList(
"""The publish list's id."""
listId: String!
): PublishListDetail
"""
The outside owners' share of a member's result for one month.
The pro-rata figure its ownership gives, the override set with
`set-allocation-override` if any, and the share the consolidating entries
use. Null for an entity that is not a member consolidated in full that
month: its outside owners have no share the engine allocates.
"""
allocationShare(
"""The member."""
entityId: String!
"""The month, as YYYY-MM."""
period: String!
): AllocationShare
"""Every month a member's allocation override is set for, oldest first."""
allocationOverrides(
"""The member."""
entityId: String!
): AllocationOverrideList
"""
The graph's event handlers — the rules that turn a matching event into
GL rows — highest priority first, active or not.
A handler an AI client created, or whose match or template an AI client
last changed, is a suggestion (`awaitingApproval`): it takes no part in
matching until a person approves it with `update-event-handler`.
"""
eventHandlers(
"""Only handlers for this event type."""
eventType: String = null
"""Only active (true) or inactive (false) handlers. Omit for both."""
isActive: Boolean = null
"""
Only the AI's unapproved suggestions (true), or everything else (false). Omit for both.
"""
awaitingApproval: Boolean = null
"""
Maximum rows to return, 1-1000. Omit to use this field's own default; out of range raises `INVALID_PAGINATION`.
"""
limit: Int = null
"""
Rows to skip before returning, 0 or greater. Out of range raises `INVALID_PAGINATION`.
"""
offset: Int = null
): EventHandlerList
"""One event handler, or null."""
eventHandler(
"""The handler's id (`hdl_`-prefixed)."""
id: String!
): EventHandler
"""
Where this graph's reports have been shared: each recipient graph, when,
by whom, how many facts it received, and whether the share was revoked.
The sender's record behind `share-report` and `revoke-report-share`.
Revoked shares are history: a recipient shared to, revoked, and shared to
again has two rows, one revoked and one live.
"""
reportShares(
"""One report's shares. Omit for the graph's whole distribution log."""
reportId: String = null
"""
Also list revoked shares. Off by default, so the list is the copies recipients still hold.
"""
includeRevoked: Boolean! = false
"""
Maximum rows to return, 1-1000. Omit to use this field's own default; out of range raises `INVALID_PAGINATION`.
"""
limit: Int = null
"""
Rows to skip before returning, 0 or greater. Out of range raises `INVALID_PAGINATION`.
"""
offset: Int = null
): ReportShareList
"""
Source graphs barred from sharing reports into this graph.
The read side of the recipient's exit from cross-graph sharing; manage the
list with the `block-source-graph` / `unblock-source-graph` operations.
"""
blockedSourceGraphs(
"""
Maximum rows to return, 1-1000. Omit to use this field's own default; out of range raises `INVALID_PAGINATION`.
"""
limit: Int = null
"""
Rows to skip before returning, 0 or greater. Out of range raises `INVALID_PAGINATION`.
"""
offset: Int = null
): BlockedSourceGraphList
"""
Fetch a single Information Block envelope by id.
`scenarioId` selects the FactSet slice: omitted = actuals; a
forecast block's structure id = that scenario's parallel universe
(statement envelopes bind its latest computed month, metric
envelopes extend the series with its forward columns, labeled
"(forecast)").
`series` renders a statement block as its whole report-set time
series — one column per period, actuals-preferred at the seam when
combined with `scenarioId`; forecast columns carry
`periods[].forecast = true`. Non-statement block types ignore it.
`seriesHistory` / `seriesForecast` window the series to its
seam-adjacent columns — the last N actual columns and the first N
forecast columns; omitted = unbounded. Pass the visible window so
the envelope scales with the screen, not the ledger's age.
`entityId` picks whose books a block shared by the group reads
(statements, metrics, disclosures); omitted = the scenario's entity,
else the group parent. A schedule, reconciliation or forecast is one
entity's own and always reads its owner's. `entityId` on the envelope
names the entity it read.
"""
informationBlock(
"""The block's structure id."""
id: ID!
"""A forecast block's structure id. Omit for actuals."""
scenarioId: String = null
"""
Render a statement block as its whole report-set time series, one column per period. Ignored by non-statement block types.
"""
series: Boolean = null
"""Cap the series at the last N actual columns. Omit for unbounded."""
seriesHistory: Int = null
"""Cap the series at the first N forecast columns. Omit for unbounded."""
seriesForecast: Int = null
"""
The entity whose books a shared block reads. Omit for the group parent.
"""
entityId: String = null
): InformationBlock
"""
List Information Blocks with optional block_type + category filters.
`blockType` filters to one registered block type (e.g.
`'schedule'`). `category` filters on the registry entry's
category label ('Close', 'Reporting', …). Both combine as AND.
`scenarioId` threads into each envelope's FactSet binding (the
Structure list itself is scenario-independent).
`entityId` (omitted = the scenario's entity, else the group parent)
lists the blocks shared by the group plus that entity's own schedules,
reconciliations and forecasts, never another entity's; shared blocks
read its books.
"""
informationBlocks(
"""Filter to one registered block type, e.g. `schedule`."""
blockType: String = null
"""
Filter on the registry entry's category label, e.g. `Close` or `Reporting`.
"""
category: String = null
"""
Maximum rows to return, 1-1000. Omit to use this field's own default; out of range raises `INVALID_PAGINATION`.