@robosystems/client 2.9.2 → 2.10.1

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.
@@ -105,6 +105,12 @@ export interface CreateReportOptions {
105
105
  periodType?: string;
106
106
  comparative?: boolean;
107
107
  periods?: PeriodSpecInput[];
108
+ /**
109
+ * The entity the report is for. Omit for the entity whose chart
110
+ * `mappingId` maps from; named alongside another entity's mapping, the
111
+ * server refuses it.
112
+ */
113
+ entityId?: string | null;
108
114
  }
109
115
  export interface InitializeLedgerResult {
110
116
  fiscalCalendar: LedgerFiscalCalendar;
@@ -323,6 +329,8 @@ export interface CreateScheduleOptions {
323
329
  */
324
330
  bookedOn?: string;
325
331
  };
332
+ /** The entity whose books the schedule belongs to. Omit for the group parent. */
333
+ entityId?: string | null;
326
334
  }
327
335
  export interface JournalEntryLineItem {
328
336
  elementId: string;
@@ -560,11 +568,14 @@ export declare class LedgerClient {
560
568
  /**
561
569
  * rs-gaap concepts a CoA element of the given EFS `classification`
562
570
  * (asset / liability / equity / revenue / expense) may map to — limited
563
- * to concepts that render under the graph's active Reporting Style, with
564
- * statement-level subtotals excluded. Use this to populate the mapping
565
- * picker so it never offers an unreachable target.
571
+ * to concepts that render under the Reporting Style of the entity whose
572
+ * chart is being mapped (`options.entityId`, default the group parent),
573
+ * with statement-level subtotals excluded. Use this to populate the
574
+ * mapping picker so it never offers an unreachable target.
566
575
  */
567
- getMappingCandidates(graphId: string, classification: string): Promise<LedgerMappingCandidate[]>;
576
+ getMappingCandidates(graphId: string, classification: string, options?: {
577
+ entityId?: string | null;
578
+ }): Promise<LedgerMappingCandidate[]>;
568
579
  /** CoA elements not yet mapped to a reporting concept. */
569
580
  listUnmappedElements(graphId: string, options?: {
570
581
  mappingId?: string;
@@ -576,9 +587,13 @@ export declare class LedgerClient {
576
587
  }): Promise<LedgerStructure[]>;
577
588
  /**
578
589
  * List active CoA→reporting mapping structures, the book mapping first.
579
- * Each carries `framework`: the reporting framework it maps the chart into.
590
+ * Each carries `framework`: the reporting framework it maps the chart into,
591
+ * and `entityId`: the entity whose chart it maps from, so whose reports it
592
+ * can produce. `options.entityId` keeps that entity's mappings only.
580
593
  */
581
- listMappings(graphId: string): Promise<LedgerMappingInfo[]>;
594
+ listMappings(graphId: string, options?: {
595
+ entityId?: string | null;
596
+ }): Promise<LedgerMappingInfo[]>;
582
597
  /** Get a mapping structure with all its associations. */
583
598
  getMapping(graphId: string, mappingId: string): Promise<LedgerMapping | null>;
584
599
  /** Mapping coverage stats — how many CoA elements are mapped. */
@@ -619,12 +634,19 @@ export declare class LedgerClient {
619
634
  * window arguments — a pre-window server rejects it. Callers that
620
635
  * never pass a window keep the un-windowed document and stay
621
636
  * compatible with older backends.
637
+ *
638
+ * `options.entityId` picks whose books a block shared by the group
639
+ * reads (statements, metrics, disclosures); omitted, the scenario's
640
+ * entity, else the group parent. A schedule, reconciliation or forecast
641
+ * always reads its own entity's. The envelope's `entityId` names the
642
+ * entity it read.
622
643
  */
623
644
  getInformationBlock(graphId: string, id: string, options?: {
624
645
  scenarioId?: string;
625
646
  series?: boolean;
626
647
  seriesHistory?: number;
627
648
  seriesForecast?: number;
649
+ entityId?: string | null;
628
650
  }): Promise<InformationBlock | null>;
629
651
  /**
630
652
  * List Information Block envelopes with optional block_type + category
@@ -632,6 +654,11 @@ export declare class LedgerClient {
632
654
  * `{blockType: 'schedule'}` to get the same set of blocks.
633
655
  * `options.scenarioId` threads into each envelope's FactSet binding
634
656
  * (the block list itself is scenario-independent).
657
+ *
658
+ * `options.entityId` (omitted: the scenario's entity, else the group
659
+ * parent) lists the blocks shared by the group plus that entity's own
660
+ * schedules, reconciliations and forecasts, never another entity's;
661
+ * shared blocks read its books.
635
662
  */
636
663
  listInformationBlocks(graphId: string, options?: {
637
664
  blockType?: string;
@@ -639,6 +666,7 @@ export declare class LedgerClient {
639
666
  limit?: number;
640
667
  offset?: number;
641
668
  scenarioId?: string;
669
+ entityId?: string | null;
642
670
  }): Promise<InformationBlockList>;
643
671
  /**
644
672
  * Create an Information Block of any registered block_type.
@@ -282,12 +282,13 @@ class LedgerClient {
282
282
  /**
283
283
  * rs-gaap concepts a CoA element of the given EFS `classification`
284
284
  * (asset / liability / equity / revenue / expense) may map to — limited
285
- * to concepts that render under the graph's active Reporting Style, with
286
- * statement-level subtotals excluded. Use this to populate the mapping
287
- * picker so it never offers an unreachable target.
285
+ * to concepts that render under the Reporting Style of the entity whose
286
+ * chart is being mapped (`options.entityId`, default the group parent),
287
+ * with statement-level subtotals excluded. Use this to populate the
288
+ * mapping picker so it never offers an unreachable target.
288
289
  */
289
- async getMappingCandidates(graphId, classification) {
290
- return this.gqlQuery(graphId, graphql_1.MappingCandidatesDocument, { classification }, 'Mapping candidates', (data) => data.mappingCandidates);
290
+ async getMappingCandidates(graphId, classification, options) {
291
+ return this.gqlQuery(graphId, graphql_1.MappingCandidatesDocument, { classification, entityId: options?.entityId ?? null }, 'Mapping candidates', (data) => data.mappingCandidates);
291
292
  }
292
293
  /** CoA elements not yet mapped to a reporting concept. */
293
294
  async listUnmappedElements(graphId, options) {
@@ -305,10 +306,12 @@ class LedgerClient {
305
306
  // ── Mappings ────────────────────────────────────────────────────────
306
307
  /**
307
308
  * List active CoA→reporting mapping structures, the book mapping first.
308
- * Each carries `framework`: the reporting framework it maps the chart into.
309
+ * Each carries `framework`: the reporting framework it maps the chart into,
310
+ * and `entityId`: the entity whose chart it maps from, so whose reports it
311
+ * can produce. `options.entityId` keeps that entity's mappings only.
309
312
  */
310
- async listMappings(graphId) {
311
- const list = await this.gqlQuery(graphId, graphql_1.ListLedgerMappingsDocument, undefined, 'List mappings', (data) => data.mappings);
313
+ async listMappings(graphId, options) {
314
+ const list = await this.gqlQuery(graphId, graphql_1.ListLedgerMappingsDocument, { entityId: options?.entityId ?? null }, 'List mappings', (data) => data.mappings);
312
315
  return list?.structures ?? [];
313
316
  }
314
317
  /** Get a mapping structure with all its associations. */
@@ -362,6 +365,12 @@ class LedgerClient {
362
365
  * window arguments — a pre-window server rejects it. Callers that
363
366
  * never pass a window keep the un-windowed document and stay
364
367
  * compatible with older backends.
368
+ *
369
+ * `options.entityId` picks whose books a block shared by the group
370
+ * reads (statements, metrics, disclosures); omitted, the scenario's
371
+ * entity, else the group parent. A schedule, reconciliation or forecast
372
+ * always reads its own entity's. The envelope's `entityId` names the
373
+ * entity it read.
365
374
  */
366
375
  async getInformationBlock(graphId, id, options) {
367
376
  const windowed = options?.seriesHistory !== undefined || options?.seriesForecast !== undefined;
@@ -372,11 +381,13 @@ class LedgerClient {
372
381
  series: options?.series ?? false,
373
382
  seriesHistory: options?.seriesHistory ?? null,
374
383
  seriesForecast: options?.seriesForecast ?? null,
384
+ entityId: options?.entityId ?? null,
375
385
  }, 'Get information block', (data) => data.informationBlock ?? null)
376
386
  : await this.gqlQuery(graphId, graphql_1.GetInformationBlockDocument, {
377
387
  id,
378
388
  scenarioId: options?.scenarioId ?? null,
379
389
  series: options?.series ?? false,
390
+ entityId: options?.entityId ?? null,
380
391
  }, 'Get information block', (data) => data.informationBlock ?? null);
381
392
  return block ?? null;
382
393
  }
@@ -386,6 +397,11 @@ class LedgerClient {
386
397
  * `{blockType: 'schedule'}` to get the same set of blocks.
387
398
  * `options.scenarioId` threads into each envelope's FactSet binding
388
399
  * (the block list itself is scenario-independent).
400
+ *
401
+ * `options.entityId` (omitted: the scenario's entity, else the group
402
+ * parent) lists the blocks shared by the group plus that entity's own
403
+ * schedules, reconciliations and forecasts, never another entity's;
404
+ * shared blocks read its books.
389
405
  */
390
406
  async listInformationBlocks(graphId, options) {
391
407
  const blocks = await this.gqlQuery(graphId, graphql_1.ListInformationBlocksDocument, {
@@ -394,6 +410,7 @@ class LedgerClient {
394
410
  limit: options?.limit ?? null,
395
411
  offset: options?.offset ?? null,
396
412
  scenarioId: options?.scenarioId ?? null,
413
+ entityId: options?.entityId ?? null,
397
414
  }, 'List information blocks', (data) => data.informationBlocks);
398
415
  return blocks ?? [];
399
416
  }
@@ -450,6 +467,7 @@ class LedgerClient {
450
467
  memo_template: options.entryTemplate.memoTemplate,
451
468
  },
452
469
  taxonomy_id: options.taxonomyId,
470
+ ...(options.entityId ? { entity_id: options.entityId } : {}),
453
471
  schedule_metadata: options.scheduleMetadata
454
472
  ? {
455
473
  method: options.scheduleMetadata.method,
@@ -1067,6 +1085,9 @@ class LedgerClient {
1067
1085
  if (options.periods && options.periods.length > 0) {
1068
1086
  body.periods = options.periods;
1069
1087
  }
1088
+ if (options.entityId) {
1089
+ body.entity_id = options.entityId;
1090
+ }
1070
1091
  const envelope = await this.callOperation('Create report', (o) => (0, sdk_gen_1.createReport)({ ...o, path: { graph_id: graphId }, body }));
1071
1092
  return this.requireResult('Create report', envelope.result);
1072
1093
  }
@@ -360,6 +360,13 @@ export type LedgerReconciliationComponent = LedgerReconciliation['components'][n
360
360
  export type Report = NonNullable<GetLedgerReportQuery['report']>
361
361
  export type ReportPackage = NonNullable<GetLedgerReportPackageQuery['reportPackage']>
362
362
  export type ReportPackageItem = ReportPackage['items'][number]
363
+ // A report's block renders through the same viewers as a read block, so its
364
+ // selection must keep pace with the information-block documents.
365
+ type AssertTrue<T extends true> = T
366
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
367
+ type ReportBlockIsInformationBlock = AssertTrue<
368
+ ReportPackageItem['block'] extends InformationBlock ? true : false
369
+ >
363
370
  export type ReportListItem = NonNullable<ListLedgerReportsQuery['reports']>['reports'][number]
364
371
  export type StatementData = NonNullable<GetLedgerStatementQuery['statement']>
365
372
  export type StatementPeriod = StatementData['periods'][number]
@@ -412,6 +419,12 @@ export interface CreateReportOptions {
412
419
  periodType?: string
413
420
  comparative?: boolean
414
421
  periods?: PeriodSpecInput[]
422
+ /**
423
+ * The entity the report is for. Omit for the entity whose chart
424
+ * `mappingId` maps from; named alongside another entity's mapping, the
425
+ * server refuses it.
426
+ */
427
+ entityId?: string | null
415
428
  }
416
429
 
417
430
  // ── Write result shapes (envelope.result payloads) ─────────────────────
@@ -733,6 +746,8 @@ export interface CreateScheduleOptions {
733
746
  */
734
747
  bookedOn?: string
735
748
  }
749
+ /** The entity whose books the schedule belongs to. Omit for the group parent. */
750
+ entityId?: string | null
736
751
  }
737
752
 
738
753
  export interface JournalEntryLineItem {
@@ -1338,18 +1353,20 @@ export class LedgerClient {
1338
1353
  /**
1339
1354
  * rs-gaap concepts a CoA element of the given EFS `classification`
1340
1355
  * (asset / liability / equity / revenue / expense) may map to — limited
1341
- * to concepts that render under the graph's active Reporting Style, with
1342
- * statement-level subtotals excluded. Use this to populate the mapping
1343
- * picker so it never offers an unreachable target.
1356
+ * to concepts that render under the Reporting Style of the entity whose
1357
+ * chart is being mapped (`options.entityId`, default the group parent),
1358
+ * with statement-level subtotals excluded. Use this to populate the
1359
+ * mapping picker so it never offers an unreachable target.
1344
1360
  */
1345
1361
  async getMappingCandidates(
1346
1362
  graphId: string,
1347
- classification: string
1363
+ classification: string,
1364
+ options?: { entityId?: string | null }
1348
1365
  ): Promise<LedgerMappingCandidate[]> {
1349
1366
  return this.gqlQuery(
1350
1367
  graphId,
1351
1368
  MappingCandidatesDocument,
1352
- { classification },
1369
+ { classification, entityId: options?.entityId ?? null },
1353
1370
  'Mapping candidates',
1354
1371
  (data) => data.mappingCandidates
1355
1372
  )
@@ -1393,13 +1410,18 @@ export class LedgerClient {
1393
1410
 
1394
1411
  /**
1395
1412
  * List active CoA→reporting mapping structures, the book mapping first.
1396
- * Each carries `framework`: the reporting framework it maps the chart into.
1413
+ * Each carries `framework`: the reporting framework it maps the chart into,
1414
+ * and `entityId`: the entity whose chart it maps from, so whose reports it
1415
+ * can produce. `options.entityId` keeps that entity's mappings only.
1397
1416
  */
1398
- async listMappings(graphId: string): Promise<LedgerMappingInfo[]> {
1417
+ async listMappings(
1418
+ graphId: string,
1419
+ options?: { entityId?: string | null }
1420
+ ): Promise<LedgerMappingInfo[]> {
1399
1421
  const list = await this.gqlQuery(
1400
1422
  graphId,
1401
1423
  ListLedgerMappingsDocument,
1402
- undefined,
1424
+ { entityId: options?.entityId ?? null },
1403
1425
  'List mappings',
1404
1426
  (data) => data.mappings
1405
1427
  )
@@ -1493,6 +1515,12 @@ export class LedgerClient {
1493
1515
  * window arguments — a pre-window server rejects it. Callers that
1494
1516
  * never pass a window keep the un-windowed document and stay
1495
1517
  * compatible with older backends.
1518
+ *
1519
+ * `options.entityId` picks whose books a block shared by the group
1520
+ * reads (statements, metrics, disclosures); omitted, the scenario's
1521
+ * entity, else the group parent. A schedule, reconciliation or forecast
1522
+ * always reads its own entity's. The envelope's `entityId` names the
1523
+ * entity it read.
1496
1524
  */
1497
1525
  async getInformationBlock(
1498
1526
  graphId: string,
@@ -1502,6 +1530,7 @@ export class LedgerClient {
1502
1530
  series?: boolean
1503
1531
  seriesHistory?: number
1504
1532
  seriesForecast?: number
1533
+ entityId?: string | null
1505
1534
  }
1506
1535
  ): Promise<InformationBlock | null> {
1507
1536
  const windowed = options?.seriesHistory !== undefined || options?.seriesForecast !== undefined
@@ -1515,6 +1544,7 @@ export class LedgerClient {
1515
1544
  series: options?.series ?? false,
1516
1545
  seriesHistory: options?.seriesHistory ?? null,
1517
1546
  seriesForecast: options?.seriesForecast ?? null,
1547
+ entityId: options?.entityId ?? null,
1518
1548
  },
1519
1549
  'Get information block',
1520
1550
  (data) => data.informationBlock ?? null
@@ -1526,6 +1556,7 @@ export class LedgerClient {
1526
1556
  id,
1527
1557
  scenarioId: options?.scenarioId ?? null,
1528
1558
  series: options?.series ?? false,
1559
+ entityId: options?.entityId ?? null,
1529
1560
  },
1530
1561
  'Get information block',
1531
1562
  (data) => data.informationBlock ?? null
@@ -1539,6 +1570,11 @@ export class LedgerClient {
1539
1570
  * `{blockType: 'schedule'}` to get the same set of blocks.
1540
1571
  * `options.scenarioId` threads into each envelope's FactSet binding
1541
1572
  * (the block list itself is scenario-independent).
1573
+ *
1574
+ * `options.entityId` (omitted: the scenario's entity, else the group
1575
+ * parent) lists the blocks shared by the group plus that entity's own
1576
+ * schedules, reconciliations and forecasts, never another entity's;
1577
+ * shared blocks read its books.
1542
1578
  */
1543
1579
  async listInformationBlocks(
1544
1580
  graphId: string,
@@ -1548,6 +1584,7 @@ export class LedgerClient {
1548
1584
  limit?: number
1549
1585
  offset?: number
1550
1586
  scenarioId?: string
1587
+ entityId?: string | null
1551
1588
  }
1552
1589
  ): Promise<InformationBlockList> {
1553
1590
  const blocks = await this.gqlQuery(
@@ -1559,6 +1596,7 @@ export class LedgerClient {
1559
1596
  limit: options?.limit ?? null,
1560
1597
  offset: options?.offset ?? null,
1561
1598
  scenarioId: options?.scenarioId ?? null,
1599
+ entityId: options?.entityId ?? null,
1562
1600
  },
1563
1601
  'List information blocks',
1564
1602
  (data) => data.informationBlocks
@@ -1642,6 +1680,7 @@ export class LedgerClient {
1642
1680
  memo_template: options.entryTemplate.memoTemplate,
1643
1681
  },
1644
1682
  taxonomy_id: options.taxonomyId,
1683
+ ...(options.entityId ? { entity_id: options.entityId } : {}),
1645
1684
  schedule_metadata: options.scheduleMetadata
1646
1685
  ? {
1647
1686
  method: options.scheduleMetadata.method,
@@ -2565,6 +2604,9 @@ export class LedgerClient {
2565
2604
  if (options.periods && options.periods.length > 0) {
2566
2605
  body.periods = options.periods
2567
2606
  }
2607
+ if (options.entityId) {
2608
+ body.entity_id = options.entityId
2609
+ }
2568
2610
  const envelope = await this.callOperation('Create report', (o) =>
2569
2611
  createReport({ ...o, path: { graph_id: graphId }, body })
2570
2612
  )
@@ -696,6 +696,7 @@ export type GetInformationBlockQueryVariables = Exact<{
696
696
  id: string | number;
697
697
  scenarioId: string | null | undefined;
698
698
  series?: boolean;
699
+ entityId: string | null | undefined;
699
700
  }>;
700
701
  export type GetInformationBlockQuery = {
701
702
  informationBlock: {
@@ -706,6 +707,7 @@ export type GetInformationBlockQuery = {
706
707
  category: string;
707
708
  taxonomyId: string | null;
708
709
  taxonomyName: string | null;
710
+ entityId: string | null;
709
711
  informationModel: {
710
712
  conceptArrangement: string | null;
711
713
  memberArrangement: string | null;
@@ -854,6 +856,7 @@ export type GetInformationBlockWindowedQueryVariables = Exact<{
854
856
  series?: boolean;
855
857
  seriesHistory: number | null | undefined;
856
858
  seriesForecast: number | null | undefined;
859
+ entityId: string | null | undefined;
857
860
  }>;
858
861
  export type GetInformationBlockWindowedQuery = {
859
862
  informationBlock: {
@@ -864,6 +867,7 @@ export type GetInformationBlockWindowedQuery = {
864
867
  category: string;
865
868
  taxonomyId: string | null;
866
869
  taxonomyName: string | null;
870
+ entityId: string | null;
867
871
  informationModel: {
868
872
  conceptArrangement: string | null;
869
873
  memberArrangement: string | null;
@@ -1012,6 +1016,7 @@ export type ListInformationBlocksQueryVariables = Exact<{
1012
1016
  limit: number | null | undefined;
1013
1017
  offset: number | null | undefined;
1014
1018
  scenarioId: string | null | undefined;
1019
+ entityId: string | null | undefined;
1015
1020
  }>;
1016
1021
  export type ListInformationBlocksQuery = {
1017
1022
  informationBlocks: Array<{
@@ -1022,6 +1027,7 @@ export type ListInformationBlocksQuery = {
1022
1027
  category: string;
1023
1028
  taxonomyId: string | null;
1024
1029
  taxonomyName: string | null;
1030
+ entityId: string | null;
1025
1031
  informationModel: {
1026
1032
  conceptArrangement: string | null;
1027
1033
  memberArrangement: string | null;
@@ -1263,6 +1269,7 @@ export type GetLedgerMappingQuery = {
1263
1269
  };
1264
1270
  export type MappingCandidatesQueryVariables = Exact<{
1265
1271
  classification: string;
1272
+ entityId: string | null | undefined;
1266
1273
  }>;
1267
1274
  export type MappingCandidatesQuery = {
1268
1275
  mappingCandidates: Array<{
@@ -1288,7 +1295,7 @@ export type GetLedgerMappingCoverageQuery = {
1288
1295
  } | null;
1289
1296
  };
1290
1297
  export type ListLedgerMappingsQueryVariables = Exact<{
1291
- [key: string]: never;
1298
+ entityId: string | null | undefined;
1292
1299
  }>;
1293
1300
  export type ListLedgerMappingsQuery = {
1294
1301
  mappings: {
@@ -1300,6 +1307,7 @@ export type ListLedgerMappingsQuery = {
1300
1307
  taxonomyId: string;
1301
1308
  isActive: boolean;
1302
1309
  framework: string | null;
1310
+ entityId: string | null;
1303
1311
  }>;
1304
1312
  } | null;
1305
1313
  };
@@ -1565,6 +1573,7 @@ export type GetLedgerReportPackageQuery = {
1565
1573
  category: string;
1566
1574
  taxonomyId: string | null;
1567
1575
  taxonomyName: string | null;
1576
+ entityId: string | null;
1568
1577
  informationModel: {
1569
1578
  conceptArrangement: string | null;
1570
1579
  memberArrangement: string | null;
@@ -1989,6 +1989,11 @@ exports.GetInformationBlockDocument = {
1989
1989
  },
1990
1990
  defaultValue: { kind: 'BooleanValue', value: false },
1991
1991
  },
1992
+ {
1993
+ kind: 'VariableDefinition',
1994
+ variable: { kind: 'Variable', name: { kind: 'Name', value: 'entityId' } },
1995
+ type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } },
1996
+ },
1992
1997
  ],
1993
1998
  selectionSet: {
1994
1999
  kind: 'SelectionSet',
@@ -2012,6 +2017,11 @@ exports.GetInformationBlockDocument = {
2012
2017
  name: { kind: 'Name', value: 'series' },
2013
2018
  value: { kind: 'Variable', name: { kind: 'Name', value: 'series' } },
2014
2019
  },
2020
+ {
2021
+ kind: 'Argument',
2022
+ name: { kind: 'Name', value: 'entityId' },
2023
+ value: { kind: 'Variable', name: { kind: 'Name', value: 'entityId' } },
2024
+ },
2015
2025
  ],
2016
2026
  selectionSet: {
2017
2027
  kind: 'SelectionSet',
@@ -2023,6 +2033,7 @@ exports.GetInformationBlockDocument = {
2023
2033
  { kind: 'Field', name: { kind: 'Name', value: 'category' } },
2024
2034
  { kind: 'Field', name: { kind: 'Name', value: 'taxonomyId' } },
2025
2035
  { kind: 'Field', name: { kind: 'Name', value: 'taxonomyName' } },
2036
+ { kind: 'Field', name: { kind: 'Name', value: 'entityId' } },
2026
2037
  {
2027
2038
  kind: 'Field',
2028
2039
  name: { kind: 'Name', value: 'informationModel' },
@@ -2357,6 +2368,11 @@ exports.GetInformationBlockWindowedDocument = {
2357
2368
  variable: { kind: 'Variable', name: { kind: 'Name', value: 'seriesForecast' } },
2358
2369
  type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } },
2359
2370
  },
2371
+ {
2372
+ kind: 'VariableDefinition',
2373
+ variable: { kind: 'Variable', name: { kind: 'Name', value: 'entityId' } },
2374
+ type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } },
2375
+ },
2360
2376
  ],
2361
2377
  selectionSet: {
2362
2378
  kind: 'SelectionSet',
@@ -2390,6 +2406,11 @@ exports.GetInformationBlockWindowedDocument = {
2390
2406
  name: { kind: 'Name', value: 'seriesForecast' },
2391
2407
  value: { kind: 'Variable', name: { kind: 'Name', value: 'seriesForecast' } },
2392
2408
  },
2409
+ {
2410
+ kind: 'Argument',
2411
+ name: { kind: 'Name', value: 'entityId' },
2412
+ value: { kind: 'Variable', name: { kind: 'Name', value: 'entityId' } },
2413
+ },
2393
2414
  ],
2394
2415
  selectionSet: {
2395
2416
  kind: 'SelectionSet',
@@ -2401,6 +2422,7 @@ exports.GetInformationBlockWindowedDocument = {
2401
2422
  { kind: 'Field', name: { kind: 'Name', value: 'category' } },
2402
2423
  { kind: 'Field', name: { kind: 'Name', value: 'taxonomyId' } },
2403
2424
  { kind: 'Field', name: { kind: 'Name', value: 'taxonomyName' } },
2425
+ { kind: 'Field', name: { kind: 'Name', value: 'entityId' } },
2404
2426
  {
2405
2427
  kind: 'Field',
2406
2428
  name: { kind: 'Name', value: 'informationModel' },
@@ -2728,6 +2750,11 @@ exports.ListInformationBlocksDocument = {
2728
2750
  variable: { kind: 'Variable', name: { kind: 'Name', value: 'scenarioId' } },
2729
2751
  type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } },
2730
2752
  },
2753
+ {
2754
+ kind: 'VariableDefinition',
2755
+ variable: { kind: 'Variable', name: { kind: 'Name', value: 'entityId' } },
2756
+ type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } },
2757
+ },
2731
2758
  ],
2732
2759
  selectionSet: {
2733
2760
  kind: 'SelectionSet',
@@ -2761,6 +2788,11 @@ exports.ListInformationBlocksDocument = {
2761
2788
  name: { kind: 'Name', value: 'scenarioId' },
2762
2789
  value: { kind: 'Variable', name: { kind: 'Name', value: 'scenarioId' } },
2763
2790
  },
2791
+ {
2792
+ kind: 'Argument',
2793
+ name: { kind: 'Name', value: 'entityId' },
2794
+ value: { kind: 'Variable', name: { kind: 'Name', value: 'entityId' } },
2795
+ },
2764
2796
  ],
2765
2797
  selectionSet: {
2766
2798
  kind: 'SelectionSet',
@@ -2772,6 +2804,7 @@ exports.ListInformationBlocksDocument = {
2772
2804
  { kind: 'Field', name: { kind: 'Name', value: 'category' } },
2773
2805
  { kind: 'Field', name: { kind: 'Name', value: 'taxonomyId' } },
2774
2806
  { kind: 'Field', name: { kind: 'Name', value: 'taxonomyName' } },
2807
+ { kind: 'Field', name: { kind: 'Name', value: 'entityId' } },
2775
2808
  {
2776
2809
  kind: 'Field',
2777
2810
  name: { kind: 'Name', value: 'informationModel' },
@@ -3411,6 +3444,11 @@ exports.MappingCandidatesDocument = {
3411
3444
  type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } },
3412
3445
  },
3413
3446
  },
3447
+ {
3448
+ kind: 'VariableDefinition',
3449
+ variable: { kind: 'Variable', name: { kind: 'Name', value: 'entityId' } },
3450
+ type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } },
3451
+ },
3414
3452
  ],
3415
3453
  selectionSet: {
3416
3454
  kind: 'SelectionSet',
@@ -3424,6 +3462,11 @@ exports.MappingCandidatesDocument = {
3424
3462
  name: { kind: 'Name', value: 'classification' },
3425
3463
  value: { kind: 'Variable', name: { kind: 'Name', value: 'classification' } },
3426
3464
  },
3465
+ {
3466
+ kind: 'Argument',
3467
+ name: { kind: 'Name', value: 'entityId' },
3468
+ value: { kind: 'Variable', name: { kind: 'Name', value: 'entityId' } },
3469
+ },
3427
3470
  ],
3428
3471
  selectionSet: {
3429
3472
  kind: 'SelectionSet',
@@ -3496,12 +3539,26 @@ exports.ListLedgerMappingsDocument = {
3496
3539
  kind: 'OperationDefinition',
3497
3540
  operation: 'query',
3498
3541
  name: { kind: 'Name', value: 'ListLedgerMappings' },
3542
+ variableDefinitions: [
3543
+ {
3544
+ kind: 'VariableDefinition',
3545
+ variable: { kind: 'Variable', name: { kind: 'Name', value: 'entityId' } },
3546
+ type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } },
3547
+ },
3548
+ ],
3499
3549
  selectionSet: {
3500
3550
  kind: 'SelectionSet',
3501
3551
  selections: [
3502
3552
  {
3503
3553
  kind: 'Field',
3504
3554
  name: { kind: 'Name', value: 'mappings' },
3555
+ arguments: [
3556
+ {
3557
+ kind: 'Argument',
3558
+ name: { kind: 'Name', value: 'entityId' },
3559
+ value: { kind: 'Variable', name: { kind: 'Name', value: 'entityId' } },
3560
+ },
3561
+ ],
3505
3562
  selectionSet: {
3506
3563
  kind: 'SelectionSet',
3507
3564
  selections: [
@@ -3518,6 +3575,7 @@ exports.ListLedgerMappingsDocument = {
3518
3575
  { kind: 'Field', name: { kind: 'Name', value: 'taxonomyId' } },
3519
3576
  { kind: 'Field', name: { kind: 'Name', value: 'isActive' } },
3520
3577
  { kind: 'Field', name: { kind: 'Name', value: 'framework' } },
3578
+ { kind: 'Field', name: { kind: 'Name', value: 'entityId' } },
3521
3579
  ],
3522
3580
  },
3523
3581
  },
@@ -4224,6 +4282,7 @@ exports.GetLedgerReportPackageDocument = {
4224
4282
  { kind: 'Field', name: { kind: 'Name', value: 'category' } },
4225
4283
  { kind: 'Field', name: { kind: 'Name', value: 'taxonomyId' } },
4226
4284
  { kind: 'Field', name: { kind: 'Name', value: 'taxonomyName' } },
4285
+ { kind: 'Field', name: { kind: 'Name', value: 'entityId' } },
4227
4286
  {
4228
4287
  kind: 'Field',
4229
4288
  name: { kind: 'Name', value: 'informationModel' },