@robosystems/client 0.5.6 → 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.
- package/artifacts/LedgerClient.d.ts +11 -1
- package/artifacts/LedgerClient.js +10 -2
- package/artifacts/LedgerClient.ts +15 -2
- package/artifacts/graphql/generated/graphql.d.ts +10 -1
- package/artifacts/graphql/generated/graphql.js +23 -0
- package/artifacts/graphql/generated/graphql.ts +33 -1
- package/artifacts/graphql/queries/ledger/informationBlock.js +18 -4
- package/artifacts/graphql/queries/ledger/informationBlock.ts +18 -4
- package/artifacts/graphql/queries/ledger/reportPackage.js +1 -0
- package/artifacts/graphql/queries/ledger/reportPackage.ts +1 -0
- package/index.ts +2 -2
- package/package.json +1 -1
- package/sdk/index.d.ts +2 -2
- package/sdk/index.js +5 -4
- package/sdk/index.ts +2 -2
- package/sdk/sdk.gen.d.ts +9 -1
- package/sdk/sdk.gen.js +19 -2
- package/sdk/sdk.gen.ts +18 -1
- package/sdk/types.gen.d.ts +571 -2
- package/sdk/types.gen.ts +590 -2
- package/sdk.gen.d.ts +9 -1
- package/sdk.gen.js +19 -2
- package/sdk.gen.ts +18 -1
- package/types.gen.d.ts +571 -2
- package/types.gen.ts +590 -2
|
@@ -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
|
|
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(
|
|
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<{
|
|
@@ -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
|
},
|
|
@@ -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<{
|
|
@@ -5733,6 +5742,11 @@ export const GetInformationBlockDocument = {
|
|
|
5733
5742
|
type: { kind: 'NamedType', name: { kind: 'Name', value: 'ID' } },
|
|
5734
5743
|
},
|
|
5735
5744
|
},
|
|
5745
|
+
{
|
|
5746
|
+
kind: 'VariableDefinition',
|
|
5747
|
+
variable: { kind: 'Variable', name: { kind: 'Name', value: 'scenarioId' } },
|
|
5748
|
+
type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } },
|
|
5749
|
+
},
|
|
5736
5750
|
],
|
|
5737
5751
|
selectionSet: {
|
|
5738
5752
|
kind: 'SelectionSet',
|
|
@@ -5746,6 +5760,11 @@ export const GetInformationBlockDocument = {
|
|
|
5746
5760
|
name: { kind: 'Name', value: 'id' },
|
|
5747
5761
|
value: { kind: 'Variable', name: { kind: 'Name', value: 'id' } },
|
|
5748
5762
|
},
|
|
5763
|
+
{
|
|
5764
|
+
kind: 'Argument',
|
|
5765
|
+
name: { kind: 'Name', value: 'scenarioId' },
|
|
5766
|
+
value: { kind: 'Variable', name: { kind: 'Name', value: 'scenarioId' } },
|
|
5767
|
+
},
|
|
5749
5768
|
],
|
|
5750
5769
|
selectionSet: {
|
|
5751
5770
|
kind: 'SelectionSet',
|
|
@@ -5888,6 +5907,7 @@ export const GetInformationBlockDocument = {
|
|
|
5888
5907
|
{ kind: 'Field', name: { kind: 'Name', value: 'factsetType' } },
|
|
5889
5908
|
{ kind: 'Field', name: { kind: 'Name', value: 'entityId' } },
|
|
5890
5909
|
{ kind: 'Field', name: { kind: 'Name', value: 'reportId' } },
|
|
5910
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'scenarioId' } },
|
|
5891
5911
|
{ kind: 'Field', name: { kind: 'Name', value: 'provenance' } },
|
|
5892
5912
|
],
|
|
5893
5913
|
},
|
|
@@ -6077,6 +6097,11 @@ export const ListInformationBlocksDocument = {
|
|
|
6077
6097
|
variable: { kind: 'Variable', name: { kind: 'Name', value: 'offset' } },
|
|
6078
6098
|
type: { kind: 'NamedType', name: { kind: 'Name', value: 'Int' } },
|
|
6079
6099
|
},
|
|
6100
|
+
{
|
|
6101
|
+
kind: 'VariableDefinition',
|
|
6102
|
+
variable: { kind: 'Variable', name: { kind: 'Name', value: 'scenarioId' } },
|
|
6103
|
+
type: { kind: 'NamedType', name: { kind: 'Name', value: 'String' } },
|
|
6104
|
+
},
|
|
6080
6105
|
],
|
|
6081
6106
|
selectionSet: {
|
|
6082
6107
|
kind: 'SelectionSet',
|
|
@@ -6105,6 +6130,11 @@ export const ListInformationBlocksDocument = {
|
|
|
6105
6130
|
name: { kind: 'Name', value: 'offset' },
|
|
6106
6131
|
value: { kind: 'Variable', name: { kind: 'Name', value: 'offset' } },
|
|
6107
6132
|
},
|
|
6133
|
+
{
|
|
6134
|
+
kind: 'Argument',
|
|
6135
|
+
name: { kind: 'Name', value: 'scenarioId' },
|
|
6136
|
+
value: { kind: 'Variable', name: { kind: 'Name', value: 'scenarioId' } },
|
|
6137
|
+
},
|
|
6108
6138
|
],
|
|
6109
6139
|
selectionSet: {
|
|
6110
6140
|
kind: 'SelectionSet',
|
|
@@ -6247,6 +6277,7 @@ export const ListInformationBlocksDocument = {
|
|
|
6247
6277
|
{ kind: 'Field', name: { kind: 'Name', value: 'factsetType' } },
|
|
6248
6278
|
{ kind: 'Field', name: { kind: 'Name', value: 'entityId' } },
|
|
6249
6279
|
{ kind: 'Field', name: { kind: 'Name', value: 'reportId' } },
|
|
6280
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'scenarioId' } },
|
|
6250
6281
|
{ kind: 'Field', name: { kind: 'Name', value: 'provenance' } },
|
|
6251
6282
|
],
|
|
6252
6283
|
},
|
|
@@ -7389,6 +7420,7 @@ export const GetLedgerReportPackageDocument = {
|
|
|
7389
7420
|
{ kind: 'Field', name: { kind: 'Name', value: 'factsetType' } },
|
|
7390
7421
|
{ kind: 'Field', name: { kind: 'Name', value: 'entityId' } },
|
|
7391
7422
|
{ kind: 'Field', name: { kind: 'Name', value: 'reportId' } },
|
|
7423
|
+
{ kind: 'Field', name: { kind: 'Name', value: 'scenarioId' } },
|
|
7392
7424
|
{ kind: 'Field', name: { kind: 'Name', value: 'provenance' } },
|
|
7393
7425
|
],
|
|
7394
7426
|
},
|
|
@@ -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(
|
|
171
|
-
|
|
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 {
|
|
@@ -8,8 +8,8 @@ import { gql } from 'graphql-request'
|
|
|
8
8
|
* branch. See `local/docs/specs/information-block.md` §2.
|
|
9
9
|
*/
|
|
10
10
|
export const GET_INFORMATION_BLOCK = gql`
|
|
11
|
-
query GetInformationBlock($id: ID
|
|
12
|
-
informationBlock(id: $id) {
|
|
11
|
+
query GetInformationBlock($id: ID!, $scenarioId: String) {
|
|
12
|
+
informationBlock(id: $id, scenarioId: $scenarioId) {
|
|
13
13
|
id
|
|
14
14
|
blockType
|
|
15
15
|
name
|
|
@@ -87,6 +87,7 @@ export const GET_INFORMATION_BLOCK = gql`
|
|
|
87
87
|
factsetType
|
|
88
88
|
entityId
|
|
89
89
|
reportId
|
|
90
|
+
scenarioId
|
|
90
91
|
provenance
|
|
91
92
|
}
|
|
92
93
|
verificationResults {
|
|
@@ -166,8 +167,20 @@ export const GET_INFORMATION_BLOCK = gql`
|
|
|
166
167
|
* blocks.
|
|
167
168
|
*/
|
|
168
169
|
export const LIST_INFORMATION_BLOCKS = gql`
|
|
169
|
-
query ListInformationBlocks(
|
|
170
|
-
|
|
170
|
+
query ListInformationBlocks(
|
|
171
|
+
$blockType: String
|
|
172
|
+
$category: String
|
|
173
|
+
$limit: Int
|
|
174
|
+
$offset: Int
|
|
175
|
+
$scenarioId: String
|
|
176
|
+
) {
|
|
177
|
+
informationBlocks(
|
|
178
|
+
blockType: $blockType
|
|
179
|
+
category: $category
|
|
180
|
+
limit: $limit
|
|
181
|
+
offset: $offset
|
|
182
|
+
scenarioId: $scenarioId
|
|
183
|
+
) {
|
|
171
184
|
id
|
|
172
185
|
blockType
|
|
173
186
|
name
|
|
@@ -245,6 +258,7 @@ export const LIST_INFORMATION_BLOCKS = gql`
|
|
|
245
258
|
factsetType
|
|
246
259
|
entityId
|
|
247
260
|
reportId
|
|
261
|
+
scenarioId
|
|
248
262
|
provenance
|
|
249
263
|
}
|
|
250
264
|
verificationResults {
|