@robosystems/client 0.5.5 → 0.5.7

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.
@@ -368,18 +368,28 @@ export declare class LedgerClient {
368
368
  * Fetch an Information Block envelope by id — the generic
369
369
  * cross-block-type read. Returns `null` when the block doesn't exist
370
370
  * (or its type isn't registered). See `information-block.md`.
371
+ *
372
+ * `options.scenarioId` selects the FactSet slice: omitted = actuals;
373
+ * a forecast block's structure id = that scenario's parallel universe
374
+ * (statement envelopes bind its latest computed month, metric
375
+ * envelopes extend the series with "(forecast)"-labeled columns).
371
376
  */
372
- getInformationBlock(graphId: string, id: string): Promise<InformationBlock | null>;
377
+ getInformationBlock(graphId: string, id: string, options?: {
378
+ scenarioId?: string;
379
+ }): Promise<InformationBlock | null>;
373
380
  /**
374
381
  * List Information Block envelopes with optional block_type + category
375
382
  * filters. Replaces the old `listSchedules` method — callers use
376
383
  * `{blockType: 'schedule'}` to get the same set of blocks.
384
+ * `options.scenarioId` threads into each envelope's FactSet binding
385
+ * (the block list itself is scenario-independent).
377
386
  */
378
387
  listInformationBlocks(graphId: string, options?: {
379
388
  blockType?: string;
380
389
  category?: string;
381
390
  limit?: number;
382
391
  offset?: number;
392
+ scenarioId?: string;
383
393
  }): Promise<InformationBlockList>;
384
394
  /** Create a new schedule with pre-generated monthly facts. */
385
395
  /**
@@ -254,15 +254,22 @@ class LedgerClient {
254
254
  * Fetch an Information Block envelope by id — the generic
255
255
  * cross-block-type read. Returns `null` when the block doesn't exist
256
256
  * (or its type isn't registered). See `information-block.md`.
257
+ *
258
+ * `options.scenarioId` selects the FactSet slice: omitted = actuals;
259
+ * a forecast block's structure id = that scenario's parallel universe
260
+ * (statement envelopes bind its latest computed month, metric
261
+ * envelopes extend the series with "(forecast)"-labeled columns).
257
262
  */
258
- async getInformationBlock(graphId, id) {
259
- const block = await this.gqlQuery(graphId, graphql_1.GetInformationBlockDocument, { id }, 'Get information block', (data) => data.informationBlock ?? null);
263
+ async getInformationBlock(graphId, id, options) {
264
+ const block = await this.gqlQuery(graphId, graphql_1.GetInformationBlockDocument, { id, scenarioId: options?.scenarioId ?? null }, 'Get information block', (data) => data.informationBlock ?? null);
260
265
  return block ?? null;
261
266
  }
262
267
  /**
263
268
  * List Information Block envelopes with optional block_type + category
264
269
  * filters. Replaces the old `listSchedules` method — callers use
265
270
  * `{blockType: 'schedule'}` to get the same set of blocks.
271
+ * `options.scenarioId` threads into each envelope's FactSet binding
272
+ * (the block list itself is scenario-independent).
266
273
  */
267
274
  async listInformationBlocks(graphId, options) {
268
275
  const blocks = await this.gqlQuery(graphId, graphql_1.ListInformationBlocksDocument, {
@@ -270,6 +277,7 @@ class LedgerClient {
270
277
  category: options?.category ?? null,
271
278
  limit: options?.limit ?? null,
272
279
  offset: options?.offset ?? null,
280
+ scenarioId: options?.scenarioId ?? null,
273
281
  }, 'List information blocks', (data) => data.informationBlocks);
274
282
  return blocks ?? [];
275
283
  }
@@ -1080,12 +1080,21 @@ export class LedgerClient {
1080
1080
  * Fetch an Information Block envelope by id — the generic
1081
1081
  * cross-block-type read. Returns `null` when the block doesn't exist
1082
1082
  * (or its type isn't registered). See `information-block.md`.
1083
+ *
1084
+ * `options.scenarioId` selects the FactSet slice: omitted = actuals;
1085
+ * a forecast block's structure id = that scenario's parallel universe
1086
+ * (statement envelopes bind its latest computed month, metric
1087
+ * envelopes extend the series with "(forecast)"-labeled columns).
1083
1088
  */
1084
- async getInformationBlock(graphId: string, id: string): Promise<InformationBlock | null> {
1089
+ async getInformationBlock(
1090
+ graphId: string,
1091
+ id: string,
1092
+ options?: { scenarioId?: string }
1093
+ ): Promise<InformationBlock | null> {
1085
1094
  const block = await this.gqlQuery(
1086
1095
  graphId,
1087
1096
  GetInformationBlockDocument,
1088
- { id },
1097
+ { id, scenarioId: options?.scenarioId ?? null },
1089
1098
  'Get information block',
1090
1099
  (data) => data.informationBlock ?? null
1091
1100
  )
@@ -1096,6 +1105,8 @@ export class LedgerClient {
1096
1105
  * List Information Block envelopes with optional block_type + category
1097
1106
  * filters. Replaces the old `listSchedules` method — callers use
1098
1107
  * `{blockType: 'schedule'}` to get the same set of blocks.
1108
+ * `options.scenarioId` threads into each envelope's FactSet binding
1109
+ * (the block list itself is scenario-independent).
1099
1110
  */
1100
1111
  async listInformationBlocks(
1101
1112
  graphId: string,
@@ -1104,6 +1115,7 @@ export class LedgerClient {
1104
1115
  category?: string
1105
1116
  limit?: number
1106
1117
  offset?: number
1118
+ scenarioId?: string
1107
1119
  }
1108
1120
  ): Promise<InformationBlockList> {
1109
1121
  const blocks = await this.gqlQuery(
@@ -1114,6 +1126,7 @@ export class LedgerClient {
1114
1126
  category: options?.category ?? null,
1115
1127
  limit: options?.limit ?? null,
1116
1128
  offset: options?.offset ?? null,
1129
+ scenarioId: options?.scenarioId ?? null,
1117
1130
  },
1118
1131
  'List information blocks',
1119
1132
  (data) => data.informationBlocks
@@ -606,7 +606,7 @@ export type InformationBlockFact = {
606
606
  */
607
607
  export type InformationBlockFactSet = {
608
608
  entityId: Scalars['String']['output'];
609
- /** 'report' | 'schedule' | 'custom' | 'disclosure'. Enum closure enforced by the ``public.fact_sets`` CHECK constraint. */
609
+ /** 'report' | 'schedule' | 'custom' | 'disclosure' | 'metric'. Enum closure enforced by the ``public.fact_sets`` CHECK constraint. */
610
610
  factsetType: Scalars['String']['output'];
611
611
  id: Scalars['String']['output'];
612
612
  periodEnd: Scalars['Date']['output'];
@@ -615,6 +615,8 @@ export type InformationBlockFactSet = {
615
615
  provenance: Maybe<Scalars['JSON']['output']>;
616
616
  /** Back-pointer to the ``reports`` table while ``report_id`` still lives on facts. Drops out once the retirement migration lands. */
617
617
  reportId: Maybe<Scalars['String']['output']>;
618
+ /** Scenario axis (the forecast engine). NULL = actuals; non-NULL names the owning forecast block whose parallel universe this set belongs to. */
619
+ scenarioId: Maybe<Scalars['String']['output']>;
618
620
  structureId: Maybe<Scalars['String']['output']>;
619
621
  };
620
622
  /**
@@ -1619,12 +1621,14 @@ export type QueryHoldingsArgs = {
1619
1621
  };
1620
1622
  export type QueryInformationBlockArgs = {
1621
1623
  id: Scalars['ID']['input'];
1624
+ scenarioId?: InputMaybe<Scalars['String']['input']>;
1622
1625
  };
1623
1626
  export type QueryInformationBlocksArgs = {
1624
1627
  blockType?: InputMaybe<Scalars['String']['input']>;
1625
1628
  category?: InputMaybe<Scalars['String']['input']>;
1626
1629
  limit?: InputMaybe<Scalars['Int']['input']>;
1627
1630
  offset?: InputMaybe<Scalars['Int']['input']>;
1631
+ scenarioId?: InputMaybe<Scalars['String']['input']>;
1628
1632
  };
1629
1633
  export type QueryLibraryElementArgs = {
1630
1634
  id?: InputMaybe<Scalars['ID']['input']>;
@@ -2768,6 +2772,7 @@ export type GetLedgerFiscalCalendarQuery = {
2768
2772
  };
2769
2773
  export type GetInformationBlockQueryVariables = Exact<{
2770
2774
  id: Scalars['ID']['input'];
2775
+ scenarioId: InputMaybe<Scalars['String']['input']>;
2771
2776
  }>;
2772
2777
  export type GetInformationBlockQuery = {
2773
2778
  informationBlock: {
@@ -2848,6 +2853,7 @@ export type GetInformationBlockQuery = {
2848
2853
  factsetType: string;
2849
2854
  entityId: string;
2850
2855
  reportId: string | null;
2856
+ scenarioId: string | null;
2851
2857
  provenance: any | null;
2852
2858
  } | null;
2853
2859
  verificationResults: Array<{
@@ -2923,6 +2929,7 @@ export type ListInformationBlocksQueryVariables = Exact<{
2923
2929
  category: InputMaybe<Scalars['String']['input']>;
2924
2930
  limit: InputMaybe<Scalars['Int']['input']>;
2925
2931
  offset: InputMaybe<Scalars['Int']['input']>;
2932
+ scenarioId: InputMaybe<Scalars['String']['input']>;
2926
2933
  }>;
2927
2934
  export type ListInformationBlocksQuery = {
2928
2935
  informationBlocks: Array<{
@@ -3003,6 +3010,7 @@ export type ListInformationBlocksQuery = {
3003
3010
  factsetType: string;
3004
3011
  entityId: string;
3005
3012
  reportId: string | null;
3013
+ scenarioId: string | null;
3006
3014
  provenance: any | null;
3007
3015
  } | null;
3008
3016
  verificationResults: Array<{
@@ -3424,6 +3432,7 @@ export type GetLedgerReportPackageQuery = {
3424
3432
  factsetType: string;
3425
3433
  entityId: string;
3426
3434
  reportId: string | null;
3435
+ scenarioId: string | null;
3427
3436
  provenance: any | null;
3428
3437
  } | null;
3429
3438
  verificationResults: Array<{
@@ -3461,6 +3470,7 @@ export type GetLedgerReportPackageQuery = {
3461
3470
  elementName: string;
3462
3471
  classification: string | null;
3463
3472
  balanceType: string | null;
3473
+ itemType: string | null;
3464
3474
  values: Array<number | null>;
3465
3475
  textValue: string | null;
3466
3476
  isSubtotal: boolean;
@@ -3478,6 +3488,18 @@ export type GetLedgerReportPackageQuery = {
3478
3488
  warnings: Array<string>;
3479
3489
  } | null;
3480
3490
  } | null;
3491
+ chart: {
3492
+ panels: Array<{
3493
+ label: string | null;
3494
+ itemType: string | null;
3495
+ kind: string;
3496
+ series: Array<{
3497
+ key: string;
3498
+ elementId: string;
3499
+ label: string;
3500
+ }>;
3501
+ }>;
3502
+ } | null;
3481
3503
  };
3482
3504
  };
3483
3505
  }>;
@@ -1662,6 +1662,11 @@ exports.GetInformationBlockDocument = {
1662
1662
  type: { kind: 'NamedType', name: { kind: 'Name', value: 'ID' } },
1663
1663
  },
1664
1664
  },
1665
+ {
1666
+ kind: 'VariableDefinition',
1667
+ variable: { kind: 'Variable', name: { kind: 'Name', value: 'scenarioId' } },
1668
+ type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } },
1669
+ },
1665
1670
  ],
1666
1671
  selectionSet: {
1667
1672
  kind: 'SelectionSet',
@@ -1675,6 +1680,11 @@ exports.GetInformationBlockDocument = {
1675
1680
  name: { kind: 'Name', value: 'id' },
1676
1681
  value: { kind: 'Variable', name: { kind: 'Name', value: 'id' } },
1677
1682
  },
1683
+ {
1684
+ kind: 'Argument',
1685
+ name: { kind: 'Name', value: 'scenarioId' },
1686
+ value: { kind: 'Variable', name: { kind: 'Name', value: 'scenarioId' } },
1687
+ },
1678
1688
  ],
1679
1689
  selectionSet: {
1680
1690
  kind: 'SelectionSet',
@@ -1817,6 +1827,7 @@ exports.GetInformationBlockDocument = {
1817
1827
  { kind: 'Field', name: { kind: 'Name', value: 'factsetType' } },
1818
1828
  { kind: 'Field', name: { kind: 'Name', value: 'entityId' } },
1819
1829
  { kind: 'Field', name: { kind: 'Name', value: 'reportId' } },
1830
+ { kind: 'Field', name: { kind: 'Name', value: 'scenarioId' } },
1820
1831
  { kind: 'Field', name: { kind: 'Name', value: 'provenance' } },
1821
1832
  ],
1822
1833
  },
@@ -2006,6 +2017,11 @@ exports.ListInformationBlocksDocument = {
2006
2017
  variable: { kind: 'Variable', name: { kind: 'Name', value: 'offset' } },
2007
2018
  type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } },
2008
2019
  },
2020
+ {
2021
+ kind: 'VariableDefinition',
2022
+ variable: { kind: 'Variable', name: { kind: 'Name', value: 'scenarioId' } },
2023
+ type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } },
2024
+ },
2009
2025
  ],
2010
2026
  selectionSet: {
2011
2027
  kind: 'SelectionSet',
@@ -2034,6 +2050,11 @@ exports.ListInformationBlocksDocument = {
2034
2050
  name: { kind: 'Name', value: 'offset' },
2035
2051
  value: { kind: 'Variable', name: { kind: 'Name', value: 'offset' } },
2036
2052
  },
2053
+ {
2054
+ kind: 'Argument',
2055
+ name: { kind: 'Name', value: 'scenarioId' },
2056
+ value: { kind: 'Variable', name: { kind: 'Name', value: 'scenarioId' } },
2057
+ },
2037
2058
  ],
2038
2059
  selectionSet: {
2039
2060
  kind: 'SelectionSet',
@@ -2176,6 +2197,7 @@ exports.ListInformationBlocksDocument = {
2176
2197
  { kind: 'Field', name: { kind: 'Name', value: 'factsetType' } },
2177
2198
  { kind: 'Field', name: { kind: 'Name', value: 'entityId' } },
2178
2199
  { kind: 'Field', name: { kind: 'Name', value: 'reportId' } },
2200
+ { kind: 'Field', name: { kind: 'Name', value: 'scenarioId' } },
2179
2201
  { kind: 'Field', name: { kind: 'Name', value: 'provenance' } },
2180
2202
  ],
2181
2203
  },
@@ -3309,6 +3331,7 @@ exports.GetLedgerReportPackageDocument = {
3309
3331
  { kind: 'Field', name: { kind: 'Name', value: 'factsetType' } },
3310
3332
  { kind: 'Field', name: { kind: 'Name', value: 'entityId' } },
3311
3333
  { kind: 'Field', name: { kind: 'Name', value: 'reportId' } },
3334
+ { kind: 'Field', name: { kind: 'Name', value: 'scenarioId' } },
3312
3335
  { kind: 'Field', name: { kind: 'Name', value: 'provenance' } },
3313
3336
  ],
3314
3337
  },
@@ -3401,6 +3424,10 @@ exports.GetLedgerReportPackageDocument = {
3401
3424
  kind: 'Field',
3402
3425
  name: { kind: 'Name', value: 'balanceType' },
3403
3426
  },
3427
+ {
3428
+ kind: 'Field',
3429
+ name: { kind: 'Name', value: 'itemType' },
3430
+ },
3404
3431
  {
3405
3432
  kind: 'Field',
3406
3433
  name: { kind: 'Name', value: 'values' },
@@ -3473,6 +3500,57 @@ exports.GetLedgerReportPackageDocument = {
3473
3500
  ],
3474
3501
  },
3475
3502
  },
3503
+ {
3504
+ kind: 'Field',
3505
+ name: { kind: 'Name', value: 'chart' },
3506
+ selectionSet: {
3507
+ kind: 'SelectionSet',
3508
+ selections: [
3509
+ {
3510
+ kind: 'Field',
3511
+ name: { kind: 'Name', value: 'panels' },
3512
+ selectionSet: {
3513
+ kind: 'SelectionSet',
3514
+ selections: [
3515
+ {
3516
+ kind: 'Field',
3517
+ name: { kind: 'Name', value: 'label' },
3518
+ },
3519
+ {
3520
+ kind: 'Field',
3521
+ name: { kind: 'Name', value: 'itemType' },
3522
+ },
3523
+ {
3524
+ kind: 'Field',
3525
+ name: { kind: 'Name', value: 'kind' },
3526
+ },
3527
+ {
3528
+ kind: 'Field',
3529
+ name: { kind: 'Name', value: 'series' },
3530
+ selectionSet: {
3531
+ kind: 'SelectionSet',
3532
+ selections: [
3533
+ {
3534
+ kind: 'Field',
3535
+ name: { kind: 'Name', value: 'key' },
3536
+ },
3537
+ {
3538
+ kind: 'Field',
3539
+ name: { kind: 'Name', value: 'elementId' },
3540
+ },
3541
+ {
3542
+ kind: 'Field',
3543
+ name: { kind: 'Name', value: 'label' },
3544
+ },
3545
+ ],
3546
+ },
3547
+ },
3548
+ ],
3549
+ },
3550
+ },
3551
+ ],
3552
+ },
3553
+ },
3476
3554
  ],
3477
3555
  },
3478
3556
  },
@@ -605,7 +605,7 @@ export type InformationBlockFact = {
605
605
  */
606
606
  export type InformationBlockFactSet = {
607
607
  entityId: Scalars['String']['output']
608
- /** 'report' | 'schedule' | 'custom' | 'disclosure'. Enum closure enforced by the ``public.fact_sets`` CHECK constraint. */
608
+ /** 'report' | 'schedule' | 'custom' | 'disclosure' | 'metric'. Enum closure enforced by the ``public.fact_sets`` CHECK constraint. */
609
609
  factsetType: Scalars['String']['output']
610
610
  id: Scalars['String']['output']
611
611
  periodEnd: Scalars['Date']['output']
@@ -614,6 +614,8 @@ export type InformationBlockFactSet = {
614
614
  provenance: Maybe<Scalars['JSON']['output']>
615
615
  /** Back-pointer to the ``reports`` table while ``report_id`` still lives on facts. Drops out once the retirement migration lands. */
616
616
  reportId: Maybe<Scalars['String']['output']>
617
+ /** Scenario axis (the forecast engine). NULL = actuals; non-NULL names the owning forecast block whose parallel universe this set belongs to. */
618
+ scenarioId: Maybe<Scalars['String']['output']>
617
619
  structureId: Maybe<Scalars['String']['output']>
618
620
  }
619
621
 
@@ -1681,6 +1683,7 @@ export type QueryHoldingsArgs = {
1681
1683
 
1682
1684
  export type QueryInformationBlockArgs = {
1683
1685
  id: Scalars['ID']['input']
1686
+ scenarioId?: InputMaybe<Scalars['String']['input']>
1684
1687
  }
1685
1688
 
1686
1689
  export type QueryInformationBlocksArgs = {
@@ -1688,6 +1691,7 @@ export type QueryInformationBlocksArgs = {
1688
1691
  category?: InputMaybe<Scalars['String']['input']>
1689
1692
  limit?: InputMaybe<Scalars['Int']['input']>
1690
1693
  offset?: InputMaybe<Scalars['Int']['input']>
1694
+ scenarioId?: InputMaybe<Scalars['String']['input']>
1691
1695
  }
1692
1696
 
1693
1697
  export type QueryLibraryElementArgs = {
@@ -2894,6 +2898,7 @@ export type GetLedgerFiscalCalendarQuery = {
2894
2898
 
2895
2899
  export type GetInformationBlockQueryVariables = Exact<{
2896
2900
  id: Scalars['ID']['input']
2901
+ scenarioId: InputMaybe<Scalars['String']['input']>
2897
2902
  }>
2898
2903
 
2899
2904
  export type GetInformationBlockQuery = {
@@ -2966,6 +2971,7 @@ export type GetInformationBlockQuery = {
2966
2971
  factsetType: string
2967
2972
  entityId: string
2968
2973
  reportId: string | null
2974
+ scenarioId: string | null
2969
2975
  provenance: any | null
2970
2976
  } | null
2971
2977
  verificationResults: Array<{
@@ -3034,6 +3040,7 @@ export type ListInformationBlocksQueryVariables = Exact<{
3034
3040
  category: InputMaybe<Scalars['String']['input']>
3035
3041
  limit: InputMaybe<Scalars['Int']['input']>
3036
3042
  offset: InputMaybe<Scalars['Int']['input']>
3043
+ scenarioId: InputMaybe<Scalars['String']['input']>
3037
3044
  }>
3038
3045
 
3039
3046
  export type ListInformationBlocksQuery = {
@@ -3106,6 +3113,7 @@ export type ListInformationBlocksQuery = {
3106
3113
  factsetType: string
3107
3114
  entityId: string
3108
3115
  reportId: string | null
3116
+ scenarioId: string | null
3109
3117
  provenance: any | null
3110
3118
  } | null
3111
3119
  verificationResults: Array<{
@@ -3514,6 +3522,7 @@ export type GetLedgerReportPackageQuery = {
3514
3522
  factsetType: string
3515
3523
  entityId: string
3516
3524
  reportId: string | null
3525
+ scenarioId: string | null
3517
3526
  provenance: any | null
3518
3527
  } | null
3519
3528
  verificationResults: Array<{
@@ -3551,6 +3560,7 @@ export type GetLedgerReportPackageQuery = {
3551
3560
  elementName: string
3552
3561
  classification: string | null
3553
3562
  balanceType: string | null
3563
+ itemType: string | null
3554
3564
  values: Array<number | null>
3555
3565
  textValue: string | null
3556
3566
  isSubtotal: boolean
@@ -3564,6 +3574,14 @@ export type GetLedgerReportPackageQuery = {
3564
3574
  warnings: Array<string>
3565
3575
  } | null
3566
3576
  } | null
3577
+ chart: {
3578
+ panels: Array<{
3579
+ label: string | null
3580
+ itemType: string | null
3581
+ kind: string
3582
+ series: Array<{ key: string; elementId: string; label: string }>
3583
+ }>
3584
+ } | null
3567
3585
  }
3568
3586
  }
3569
3587
  }>
@@ -5724,6 +5742,11 @@ export const GetInformationBlockDocument = {
5724
5742
  type: { kind: 'NamedType', name: { kind: 'Name', value: 'ID' } },
5725
5743
  },
5726
5744
  },
5745
+ {
5746
+ kind: 'VariableDefinition',
5747
+ variable: { kind: 'Variable', name: { kind: 'Name', value: 'scenarioId' } },
5748
+ type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } },
5749
+ },
5727
5750
  ],
5728
5751
  selectionSet: {
5729
5752
  kind: 'SelectionSet',
@@ -5737,6 +5760,11 @@ export const GetInformationBlockDocument = {
5737
5760
  name: { kind: 'Name', value: 'id' },
5738
5761
  value: { kind: 'Variable', name: { kind: 'Name', value: 'id' } },
5739
5762
  },
5763
+ {
5764
+ kind: 'Argument',
5765
+ name: { kind: 'Name', value: 'scenarioId' },
5766
+ value: { kind: 'Variable', name: { kind: 'Name', value: 'scenarioId' } },
5767
+ },
5740
5768
  ],
5741
5769
  selectionSet: {
5742
5770
  kind: 'SelectionSet',
@@ -5879,6 +5907,7 @@ export const GetInformationBlockDocument = {
5879
5907
  { kind: 'Field', name: { kind: 'Name', value: 'factsetType' } },
5880
5908
  { kind: 'Field', name: { kind: 'Name', value: 'entityId' } },
5881
5909
  { kind: 'Field', name: { kind: 'Name', value: 'reportId' } },
5910
+ { kind: 'Field', name: { kind: 'Name', value: 'scenarioId' } },
5882
5911
  { kind: 'Field', name: { kind: 'Name', value: 'provenance' } },
5883
5912
  ],
5884
5913
  },
@@ -6068,6 +6097,11 @@ export const ListInformationBlocksDocument = {
6068
6097
  variable: { kind: 'Variable', name: { kind: 'Name', value: 'offset' } },
6069
6098
  type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } },
6070
6099
  },
6100
+ {
6101
+ kind: 'VariableDefinition',
6102
+ variable: { kind: 'Variable', name: { kind: 'Name', value: 'scenarioId' } },
6103
+ type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } },
6104
+ },
6071
6105
  ],
6072
6106
  selectionSet: {
6073
6107
  kind: 'SelectionSet',
@@ -6096,6 +6130,11 @@ export const ListInformationBlocksDocument = {
6096
6130
  name: { kind: 'Name', value: 'offset' },
6097
6131
  value: { kind: 'Variable', name: { kind: 'Name', value: 'offset' } },
6098
6132
  },
6133
+ {
6134
+ kind: 'Argument',
6135
+ name: { kind: 'Name', value: 'scenarioId' },
6136
+ value: { kind: 'Variable', name: { kind: 'Name', value: 'scenarioId' } },
6137
+ },
6099
6138
  ],
6100
6139
  selectionSet: {
6101
6140
  kind: 'SelectionSet',
@@ -6238,6 +6277,7 @@ export const ListInformationBlocksDocument = {
6238
6277
  { kind: 'Field', name: { kind: 'Name', value: 'factsetType' } },
6239
6278
  { kind: 'Field', name: { kind: 'Name', value: 'entityId' } },
6240
6279
  { kind: 'Field', name: { kind: 'Name', value: 'reportId' } },
6280
+ { kind: 'Field', name: { kind: 'Name', value: 'scenarioId' } },
6241
6281
  { kind: 'Field', name: { kind: 'Name', value: 'provenance' } },
6242
6282
  ],
6243
6283
  },
@@ -7380,6 +7420,7 @@ export const GetLedgerReportPackageDocument = {
7380
7420
  { kind: 'Field', name: { kind: 'Name', value: 'factsetType' } },
7381
7421
  { kind: 'Field', name: { kind: 'Name', value: 'entityId' } },
7382
7422
  { kind: 'Field', name: { kind: 'Name', value: 'reportId' } },
7423
+ { kind: 'Field', name: { kind: 'Name', value: 'scenarioId' } },
7383
7424
  { kind: 'Field', name: { kind: 'Name', value: 'provenance' } },
7384
7425
  ],
7385
7426
  },
@@ -7472,6 +7513,10 @@ export const GetLedgerReportPackageDocument = {
7472
7513
  kind: 'Field',
7473
7514
  name: { kind: 'Name', value: 'balanceType' },
7474
7515
  },
7516
+ {
7517
+ kind: 'Field',
7518
+ name: { kind: 'Name', value: 'itemType' },
7519
+ },
7475
7520
  {
7476
7521
  kind: 'Field',
7477
7522
  name: { kind: 'Name', value: 'values' },
@@ -7544,6 +7589,57 @@ export const GetLedgerReportPackageDocument = {
7544
7589
  ],
7545
7590
  },
7546
7591
  },
7592
+ {
7593
+ kind: 'Field',
7594
+ name: { kind: 'Name', value: 'chart' },
7595
+ selectionSet: {
7596
+ kind: 'SelectionSet',
7597
+ selections: [
7598
+ {
7599
+ kind: 'Field',
7600
+ name: { kind: 'Name', value: 'panels' },
7601
+ selectionSet: {
7602
+ kind: 'SelectionSet',
7603
+ selections: [
7604
+ {
7605
+ kind: 'Field',
7606
+ name: { kind: 'Name', value: 'label' },
7607
+ },
7608
+ {
7609
+ kind: 'Field',
7610
+ name: { kind: 'Name', value: 'itemType' },
7611
+ },
7612
+ {
7613
+ kind: 'Field',
7614
+ name: { kind: 'Name', value: 'kind' },
7615
+ },
7616
+ {
7617
+ kind: 'Field',
7618
+ name: { kind: 'Name', value: 'series' },
7619
+ selectionSet: {
7620
+ kind: 'SelectionSet',
7621
+ selections: [
7622
+ {
7623
+ kind: 'Field',
7624
+ name: { kind: 'Name', value: 'key' },
7625
+ },
7626
+ {
7627
+ kind: 'Field',
7628
+ name: { kind: 'Name', value: 'elementId' },
7629
+ },
7630
+ {
7631
+ kind: 'Field',
7632
+ name: { kind: 'Name', value: 'label' },
7633
+ },
7634
+ ],
7635
+ },
7636
+ },
7637
+ ],
7638
+ },
7639
+ },
7640
+ ],
7641
+ },
7642
+ },
7547
7643
  ],
7548
7644
  },
7549
7645
  },
@@ -10,8 +10,8 @@ const graphql_request_1 = require("graphql-request");
10
10
  * branch. See `local/docs/specs/information-block.md` §2.
11
11
  */
12
12
  exports.GET_INFORMATION_BLOCK = (0, graphql_request_1.gql) `
13
- query GetInformationBlock($id: ID!) {
14
- informationBlock(id: $id) {
13
+ query GetInformationBlock($id: ID!, $scenarioId: String) {
14
+ informationBlock(id: $id, scenarioId: $scenarioId) {
15
15
  id
16
16
  blockType
17
17
  name
@@ -89,6 +89,7 @@ exports.GET_INFORMATION_BLOCK = (0, graphql_request_1.gql) `
89
89
  factsetType
90
90
  entityId
91
91
  reportId
92
+ scenarioId
92
93
  provenance
93
94
  }
94
95
  verificationResults {
@@ -167,8 +168,20 @@ exports.GET_INFORMATION_BLOCK = (0, graphql_request_1.gql) `
167
168
  * blocks.
168
169
  */
169
170
  exports.LIST_INFORMATION_BLOCKS = (0, graphql_request_1.gql) `
170
- query ListInformationBlocks($blockType: String, $category: String, $limit: Int, $offset: Int) {
171
- informationBlocks(blockType: $blockType, category: $category, limit: $limit, offset: $offset) {
171
+ query ListInformationBlocks(
172
+ $blockType: String
173
+ $category: String
174
+ $limit: Int
175
+ $offset: Int
176
+ $scenarioId: String
177
+ ) {
178
+ informationBlocks(
179
+ blockType: $blockType
180
+ category: $category
181
+ limit: $limit
182
+ offset: $offset
183
+ scenarioId: $scenarioId
184
+ ) {
172
185
  id
173
186
  blockType
174
187
  name
@@ -246,6 +259,7 @@ exports.LIST_INFORMATION_BLOCKS = (0, graphql_request_1.gql) `
246
259
  factsetType
247
260
  entityId
248
261
  reportId
262
+ scenarioId
249
263
  provenance
250
264
  }
251
265
  verificationResults {