Update event block and taxonomy block models with new attributes#104
Merged
Update event block and taxonomy block models with new attributes#104
Conversation
…ttributes and improve documentation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR extends the event block and taxonomy block request models with new attributes, introduces a new
CreateEventBlockRequestEventClassenum model, and improves the ledger client with additional convenience methods. Documentation across affected models has also been improved.Key Accomplishments
New Model & Exports
CreateEventBlockRequestEventClassenum model to support event classificationmodels/__init__.pyfor proper module exportsEvent Block Model Enhancements
CreateEventBlockRequest: Significantly expanded with new attributes (~75 lines of additions), enriching the data that can be provided when creating event blocksUpdateEventBlockRequest: Extended with additional fields (~50 lines of additions) to bring update capabilities in line with the expanded creation modelCreateEventBlockRequestEventCategory: Added new event category optionsTaxonomy Block & Element Model Refinements
TaxonomyBlockElementRequest: Refactored field definitions (field reordering/renaming across ~24 lines changed)UpdateTaxonomyBlockRequest: Minor attribute adjustmentsElementUpdatePatch: Refactored field definitions for consistencyLedger Client Improvements
ledger_client.pywith ~40 lines of new client methods or method enhancements, providing richer API interaction capabilities for event and taxonomy blocksAPI Operation Updates
op_evaluate_rules.py: Adjusted request model usage to align with updatedEvaluateRulesRequestop_update_taxonomy_block.py: Updated to work with revised taxonomy block modelsBreaking Changes
ElementUpdatePatchandTaxonomyBlockElementRequestmay break existing consumers relying on previous field names or orderingEvaluateRulesRequestfields may affect existing rule evaluation callersUpdateTaxonomyBlockRequestattributes may require callers to adjust payloadsConsumers of these models should review their usage and update accordingly.
Testing Notes
CreateEventBlockRequestEventClassenum values are accepted by the APIEvaluateRulesRequestmodelInfrastructure Considerations
🤖 Generated with Claude Code
Branch Info:
feature/update-event-blockmainCo-Authored-By: Claude noreply@anthropic.com