Add taxonomy block models and consolidate ledger API operations#101
Merged
Add taxonomy block models and consolidate ledger API operations#101
Conversation
- Deleted the following models as they are no longer needed: - CreateStructureRequestStructureType - CreateTaxonomyRequest - CreateTaxonomyRequestTaxonomyType - DeleteAssociationRequest - DeleteElementRequest - DeleteStructureRequest - DeleteTaxonomyRequest - UpdateAssociationRequest - UpdateElementRequest - UpdateStructureRequest - UpdateTaxonomyRequest - UpdateElementRequestBalanceTypeType0 - UpdateElementRequestClassificationType0 - UpdateElementRequestPeriodTypeType0 - Introduced DisposeScheduleRequest model to handle disposal of schedules with attributes for structure ID, disposal date, memo, reason, sale proceeds, and related element IDs.
- Introduced `TaxonomyBlockElementRequestMetadata`, `TaxonomyBlockRuleRequest`, and related models for taxonomy block rules and elements. - Implemented enums for rule categories, patterns, and severities to standardize taxonomy block rule definitions. - Created `TaxonomyBlockStructureRequest` and its metadata model to define structure within taxonomy blocks. - Added `UpdateTaxonomyBlockRequest` to facilitate updates to taxonomy blocks, including elements, structures, associations, and rules. - Enhanced serialization and deserialization methods for all new models to support dictionary conversions.
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
Introduces the taxonomy block abstraction to the robosystems client, replacing the previous granular CRUD operations for individual entities (elements, structures, taxonomies, associations) with a unified taxonomy block-based API. This also adds a new
DisposeScheduleRequestmodel and corresponding operation.Key Changes
New Taxonomy Block Models
CreateTaxonomyBlockRequest— supports creating a full taxonomy block with nested elements, structures, associations, and rules in a single requestUpdateTaxonomyBlockRequest/DeleteTaxonomyBlockRequest— lifecycle management for taxonomy blocksTaxonomyBlockElementRequest,TaxonomyBlockStructureRequest,TaxonomyBlockAssociationRequest,TaxonomyBlockRuleRequest— sub-models representing the components of a taxonomy block, each with dedicated metadata and enum types (e.g.,rule_category,rule_pattern,severity,association_type,structure_type)ElementUpdatePatchandStructureUpdatePatch— new patch models for partial updates with nullable metadata supportNew Dispose Schedule Operation
DisposeScheduleRequestmodel andop_dispose_scheduleAPI operation replace the formerop_update_structureoperationRemoved Obsolete Models & Operations
create_element,create_structure,create_taxonomy,delete_element,delete_taxonomy,delete_association,update_element,update_taxonomy,update_association,bulk_create_associations, and all associated request models and enumsLedger Client Refactor
ledger_client.pysignificantly simplified — removed methods for individual entity operations and replaced with taxonomy block lifecycle methodsop_create_mapping_associationandop_link_entity_taxonomyupdated for request/response handling changesModel Exports
models/__init__.pyupdated to export all new models and remove references to deleted onesBreaking Changes
LedgerClient(elements, structures, taxonomies, associations)CreateElementRequest,CreateTaxonomyRequest,CreateStructureRequest,BulkCreateAssociationsRequest,UpdateElementRequest,UpdateTaxonomyRequest,UpdateAssociationRequest,DeleteStructureRequest,DeleteTaxonomyRequest,DeleteElementRequest,DeleteAssociationRequest, and related enums)op_update_structureoperation is nowop_dispose_schedulewith a different request modelTesting Notes
test_ledger_client.pyhave been updated to reflect the new API surfaceInfrastructure Considerations
🤖 Generated with Claude Code
Branch Info:
feature/info-taxonomy-blockmainCo-Authored-By: Claude noreply@anthropic.com