Skip to content

Commit 5376ff2

Browse files
committed
feat: the envelope operations select each fact's provenance and frozenAt
GetInformationBlock, ListInformationBlocks and GetLedgerReportPackage now read the two fields the facade's envelope exposes; generated models follow. Claude-Session: https://claude.ai/code/session_013UXnatpnbiixt1ZVHfdZAP
1 parent 7608199 commit 5376ff2

8 files changed

Lines changed: 17 additions & 3 deletions

File tree

‎robosystems_client/graphql/generated/get_information_block.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ class GetInformationBlockInformationBlockFacts(BaseModel):
8787
unit: str
8888
fact_scope: str = Field(alias="factScope")
8989
fact_set_id: Optional[str] = Field(alias="factSetId")
90+
provenance: Optional[Any]
91+
frozen_at: Optional[str] = Field(alias="frozenAt")
9092

9193

9294
class GetInformationBlockInformationBlockRules(BaseModel):

‎robosystems_client/graphql/generated/get_ledger_report_package.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,8 @@ class GetLedgerReportPackageReportPackageItemsBlockFacts(BaseModel):
118118
unit: str
119119
fact_scope: str = Field(alias="factScope")
120120
fact_set_id: Optional[str] = Field(alias="factSetId")
121+
provenance: Optional[Any]
122+
frozen_at: Optional[str] = Field(alias="frozenAt")
121123

122124

123125
class GetLedgerReportPackageReportPackageItemsBlockRules(BaseModel):

‎robosystems_client/graphql/generated/list_information_blocks.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ class ListInformationBlocksInformationBlocksFacts(BaseModel):
8787
unit: str
8888
fact_scope: str = Field(alias="factScope")
8989
fact_set_id: Optional[str] = Field(alias="factSetId")
90+
provenance: Optional[Any]
91+
frozen_at: Optional[str] = Field(alias="frozenAt")
9092

9193

9294
class ListInformationBlocksInformationBlocksRules(BaseModel):

‎robosystems_client/graphql/generated/operations.py‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -553,6 +553,8 @@
553553
unit
554554
factScope
555555
factSetId
556+
provenance
557+
frozenAt
556558
}
557559
rules {
558560
id
@@ -1323,6 +1325,8 @@
13231325
unit
13241326
factScope
13251327
factSetId
1328+
provenance
1329+
frozenAt
13261330
}
13271331
rules {
13281332
id
@@ -1648,6 +1652,8 @@
16481652
unit
16491653
factScope
16501654
factSetId
1655+
provenance
1656+
frozenAt
16511657
}
16521658
rules {
16531659
id

‎robosystems_client/graphql/operations/ledger/GetInformationBlock.graphql‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ query GetInformationBlock(
2828
}
2929
facts {
3030
id elementId value textValue factType contentType periodStart periodEnd
31-
periodType unit factScope factSetId
31+
periodType unit factScope factSetId provenance frozenAt
3232
}
3333
rules {
3434
id ruleCategory rulePattern ruleCheckKind ruleExpression

‎robosystems_client/graphql/operations/ledger/GetLedgerReportPackage.graphql‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ query GetLedgerReportPackage($reportId: String!) {
2424
}
2525
facts {
2626
id elementId value textValue factType contentType periodStart periodEnd
27-
periodType unit factScope factSetId
27+
periodType unit factScope factSetId provenance frozenAt
2828
}
2929
rules {
3030
id ruleCategory rulePattern ruleCheckKind ruleExpression

‎robosystems_client/graphql/operations/ledger/ListInformationBlocks.graphql‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ query ListInformationBlocks(
2828
}
2929
facts {
3030
id elementId value textValue factType contentType periodStart periodEnd
31-
periodType unit factScope factSetId
31+
periodType unit factScope factSetId provenance frozenAt
3232
}
3333
rules {
3434
id ruleCategory rulePattern ruleCheckKind ruleExpression

‎tests/test_ledger_client.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1998,6 +1998,8 @@ def test_get_information_block(self, mock_execute, mock_config, graph_id):
19981998
"unit": "USD",
19991999
"factScope": "in_scope",
20002000
"factSetId": None,
2001+
"provenance": None,
2002+
"frozenAt": None,
20012003
}
20022004
],
20032005
"rules": [],

0 commit comments

Comments
 (0)