diff --git a/monarchmoney/monarchmoney.py b/monarchmoney/monarchmoney.py index 5901081..317f7b3 100644 --- a/monarchmoney/monarchmoney.py +++ b/monarchmoney/monarchmoney.py @@ -482,6 +482,11 @@ async def get_transactions( needsReview attachments { id + extension + filename + originalAssetUrl + publicId + sizeBytes __typename } isSplitTransaction @@ -640,6 +645,8 @@ async def get_transaction_categories(self) -> Dict[str, Any]: systemCategory isSystemCategory isDisabled + updatedAt + createdAt group { id name @@ -652,6 +659,29 @@ async def get_transaction_categories(self) -> Dict[str, Any]: ) return await self.gql_call(operation="GetCategories", graphql_query=query) + async def get_transaction_category_groups(self) -> Dict[str, Any]: + """ + Gets all the category groups configured in the account. + """ + query = gql( + """ + query ManageGetCategoryGroups { + categoryGroups { + id + name + order + type + updatedAt + createdAt + __typename + } + } + """ + ) + return await self.gql_call( + operation="ManageGetCategoryGroups", graphql_query=query + ) + async def get_transaction_tags(self) -> Dict[str, Any]: """ Gets all the tags configured in the account.