Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ class GetLedgerEventBlockEventBlock(BaseModel):
replaces_event_id: Optional[str] = Field(alias="replacesEventId")
obligated_by_event_id: Optional[str] = Field(alias="obligatedByEventId")
discharges_event_id: Optional[str] = Field(alias="dischargesEventId")
document_id: Optional[str] = Field(alias="documentId")
created_at: str = Field(alias="createdAt")
created_by: str = Field(alias="createdBy")

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ class ListLedgerEventBlocksEventBlocks(BaseModel):
replaces_event_id: Optional[str] = Field(alias="replacesEventId")
obligated_by_event_id: Optional[str] = Field(alias="obligatedByEventId")
discharges_event_id: Optional[str] = Field(alias="dischargesEventId")
document_id: Optional[str] = Field(alias="documentId")
created_at: str = Field(alias="createdAt")
created_by: str = Field(alias="createdBy")

Expand Down
2 changes: 2 additions & 0 deletions robosystems_client/graphql/generated/operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -630,6 +630,7 @@
replacesEventId
obligatedByEventId
dischargesEventId
documentId
createdAt
createdBy
}
Expand Down Expand Up @@ -1554,6 +1555,7 @@
replacesEventId
obligatedByEventId
dischargesEventId
documentId
createdAt
createdBy
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ query GetLedgerEventBlock($id: String!) {
id eventType eventCategory eventClass status occurredAt effectiveAt
source externalId externalUrl amount currency description metadata
dimensionIds agentId resourceType resourceElementId
replacedByEventId replacesEventId obligatedByEventId dischargesEventId
replacedByEventId replacesEventId obligatedByEventId dischargesEventId documentId
createdAt createdBy
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ query ListLedgerEventBlocks(
id eventType eventCategory eventClass status occurredAt effectiveAt
source externalId externalUrl amount currency description metadata
dimensionIds agentId resourceType resourceElementId
replacedByEventId replacesEventId obligatedByEventId dischargesEventId
replacedByEventId replacesEventId obligatedByEventId dischargesEventId documentId
createdAt createdBy
}
}
1 change: 1 addition & 0 deletions robosystems_client/graphql/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -1613,6 +1613,7 @@ type EventBlock {
replacesEventId: String
obligatedByEventId: String
dischargesEventId: String
documentId: String
createdAt: DateTime!
createdBy: String!
}
Expand Down
3 changes: 3 additions & 0 deletions tests/test_ledger_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -1181,6 +1181,7 @@ def test_list_event_blocks(self, mock_execute, mock_config, graph_id):
"replacesEventId": None,
"obligatedByEventId": None,
"dischargesEventId": None,
"documentId": None,
"createdAt": "2026-03-15T12:00:00Z",
"createdBy": "user_1",
}
Expand Down Expand Up @@ -1236,6 +1237,7 @@ def test_get_event_block(self, mock_execute, mock_config, graph_id):
"replacesEventId": None,
"obligatedByEventId": None,
"dischargesEventId": None,
"documentId": "doc_inv_9",
"createdAt": "2026-03-15T12:00:00Z",
"createdBy": "user_1",
}
Expand All @@ -1244,6 +1246,7 @@ def test_get_event_block(self, mock_execute, mock_config, graph_id):
result = client.get_event_block(graph_id, "evt_1")
assert result is not None
assert result.id == "evt_1"
assert result.document_id == "doc_inv_9"
variables = mock_execute.call_args[0][2]
assert variables["id"] == "evt_1"

Expand Down
Loading