Refactored the Clappia Tools package for linting and other refactoring#8
Closed
madara-uchihaaa wants to merge 47 commits intomasterfrom
Closed
Refactored the Clappia Tools package for linting and other refactoring#8madara-uchihaaa wants to merge 47 commits intomasterfrom
madara-uchihaaa wants to merge 47 commits intomasterfrom
Conversation
…ionClient documentation - Incremented version to 1.0.2 in `__init__.py` files. - Removed `ClappiaClient` class and its references to streamline the client structure. - Updated `__all__` attributes in `__init__.py` files to reflect the removal of `ClappiaClient`. - Enhanced documentation in `AppDefinitionClient` to clarify the formula field usage and provide important notes for users. Signed-off-by: Rishabh Verma <rishabh.v@clappia.com>
- Updated `pyproject.toml` to include `pydantic[email]` and added `dnspython` and `email-validator` as dependencies. - Incremented version to 1.0.1 in `uv.lock` to reflect the new dependencies. - Enhanced `SubmissionClient` with new methods for retrieving submissions, aggregating data, and exporting submissions to Excel. - Introduced new models for request and response handling in submissions, improving the structure and clarity of the code. - Added validation logic for filter conditions and aggregation types in the submission client. Signed-off-by: Rishabh Verma <rishabh.v@clappia.com>
- Updated README.md to include new features for Workflow and Analytics management. - Added examples for WorkflowDefinitionClient and AnalyticsClient usage. - Removed unused models and utility functions to streamline the codebase. - Updated __init__.py to reflect the removal of obsolete models and include new clients. Signed-off-by: Rishabh Verma <rishabh.v@clappia.com>
- Updated the AnalyticsClient and WorkflowDefinitionClient to include workplace_id in requests. - Refactored request models for analytics and workflow to improve validation and structure. - Removed unused models and response types to streamline the codebase. - Enhanced README.md to reflect changes in client capabilities and added new references. - Updated unit tests to ensure proper validation and error handling. Signed-off-by: Rishabh Verma <rishabh.v@clappia.com>
Signed-off-by: Rishabh Verma <rishabh.v@clappia.com>
- Added `phonenumbers` as a dependency in `pyproject.toml` to support phone number validation. - Updated `uv.lock` to include the new dependency. - Enhanced `__init__.py` to include new models and response types for phone number handling. - Refactored client models to improve structure and validation logic, including new methods for phone number validation. Signed-off-by: Rishabh Verma <rishabh.v@clappia.com>
…unctionality - Removed workplace_id from various client models and requests to streamline the API usage. - Introduced a new WorkplaceClient for managing workplace users and their attributes. - Added methods for retrieving charts in the AnalyticsClient, including validation and response handling. - Updated README and documentation to reflect changes in client capabilities and usage examples. - Enhanced unit tests for the AnalyticsClient to ensure proper functionality and error handling. Signed-off-by: Rishabh Verma <rishabh.v@clappia.com>
…ion Management - Added `get_schema` method to both `AnalyticsClient` and `WorkflowDefinitionClient` for retrieving schema information. - Introduced new methods in `AppDefinitionClient` for adding and updating sections, including validation and response handling. - Updated request and response models to support new functionalities, including `AddSectionRequest`, `UpdateSectionRequest`, and their corresponding response types. - Enhanced documentation to reflect the new methods and usage examples for schema retrieval and section management. Signed-off-by: Rishabh Verma <rishabh.v@clappia.com>
… and Enhance Documentation - Removed `requesting_user_email_address` parameter from various methods in `SubmissionClient` and `AnalyticsClient` to streamline API usage. - Eliminated unused request models for removing charts and workflow steps, simplifying the client structure. - Updated documentation across multiple client files to reflect the removal of parameters and provide clearer usage examples. - Enhanced README.md to include updated method signatures and descriptions for better clarity. Signed-off-by: Rishabh Verma <rishabh.v@clappia.com>
…ality - Introduced multiple new field request models including AddFieldTextRequest, AddFieldTextAreaRequest, AddFieldDependencyAppRequest, and others to support various field types in app definitions. - Enhanced AppDefinitionClient with methods for adding different field types, including validation and logging for each operation. - Updated __init__.py files to include new models and ensure proper exports. - Improved documentation to reflect the new functionalities and provide clearer usage examples. Signed-off-by: Rishabh Verma <rishabh.v@clappia.com>
- Replaced existing field request models with new Upsert variants to enhance functionality and consistency in app definition management. - Introduced methods for adding and updating sections, including validation and logging for operations. - Updated response models to reflect changes in section management, including new UpsertSectionOperationResponse and ReorderSectionOperationResponse. - Removed deprecated models and cleaned up imports to streamline the codebase. - Enhanced documentation to provide clearer usage examples and reflect the updated request and response structures. Signed-off-by: Rishabh Verma <rishabh.v@clappia.com>
- Introduced multiple new Upsert request models for various workflow steps, including AI, Approval, Code, Condition, Database, Email, Loop, Mobile Notification, REST API, Slack, SMS, Wait, WhatsApp, Create Submission, Delete Submission, Find Submission, and Edit Submission. - Updated WorkflowDefinitionClient with methods for adding and updating these workflow steps, including validation and logging for each operation. - Removed deprecated request models and cleaned up imports to streamline the codebase. - Enhanced documentation to reflect the new functionalities and provide clearer usage examples. Signed-off-by: Rishabh Verma <rishabh.v@clappia.com>
- Replaced deprecated chart request models with new Upsert variants for better functionality in chart management. - Enhanced the AnalyticsClient with methods for adding and retrieving various chart types, including summary, bar, pie, doughnut, line, data table, map, and Gantt charts. - Updated response handling to reflect changes in chart retrieval, including improved logging and error handling. - Removed unused request models and cleaned up imports to streamline the codebase. - Enhanced documentation to provide clearer usage examples for the updated chart management features. Signed-off-by: Rishabh Verma <rishabh.v@clappia.com>
- Renamed workflow step methods in WorkflowDefinitionClient for consistency, changing `add_workflow_step` to `add_step`, `update_workflow_step` to `update_step`, and similar updates for other methods. - Updated parameter names from `parent_variable_name` to `parent_step_variable_name` across various methods and documentation for clarity. - Removed deprecated enums and request models, streamlining the codebase. - Enhanced documentation to reflect the updated method names and parameter changes, providing clearer usage examples. Signed-off-by: Rishabh Verma <rishabh.v@clappia.com>
- Introduced JsonSerializableMixin to various models for enhanced JSON serialization capabilities. - Removed deprecated classes and cleaned up imports across multiple files to streamline the codebase. - Updated __init__.py files to ensure proper exports of new and existing models. Signed-off-by: Rishabh Verma <rishabh.v@clappia.com>
- Bumped the version of the clappia-api-tools package from 1.0.1 to 2.0.0 to reflect significant updates and improvements in the codebase. Signed-off-by: Rishabh Verma <rishabh.v@clappia.com>
- Introduced new methods in AppDefinitionClient for managing app versions, including `get_app_versions`, `create_new_app_version`, and `update_app_version`. - Added functionality to update app metadata with the new `update_app_metadata` method. - Enhanced logging and error handling for each operation to improve traceability and user feedback. - Updated request and response models to support the new functionalities. Signed-off-by: Rishabh Verma <rishabh.v@clappia.com>
- Introduced new methods in the AnalyticsClient for adding and updating various chart types, including summary, bar, pie, doughnut, line, data table, map, and Gantt charts, using a unified request structure. - Enhanced request models with Union types for better type safety and clarity in chart definitions. - Updated existing methods to improve error handling and logging for chart operations. - Cleaned up imports and removed deprecated models to streamline the codebase. Signed-off-by: Rishabh Verma <rishabh.v@clappia.com>
- Bumped the version of the clappia-api-tools package from 2.0.0 to 2.0.1 to reflect minor updates and improvements in the codebase. Signed-off-by: Rishabh Verma <rishabh.v@clappia.com>
…lace_id and requesting_user_email_address)
- Bumped the version of the clappia-api-tools package from 2.0.0 to 2.0.8. - Added optional `version_variable_name` parameter across various client methods to support version-specific operations. - Updated request and response models to include `version_variable_name` for better version management in API interactions. Signed-off-by: Rishabh Verma <rishabh.v@clappia.com>
- Updated .gitignore to include additional file types and directories for better exclusion management. - Introduced a new .pre-commit-config.yaml file to enforce code quality checks and formatting. - Added a Makefile to streamline development tasks such as installation, formatting, and testing. - Updated pyproject.toml to include new development dependencies and improve project setup. - Refactored client imports for better organization and clarity across various modules. - Removed outdated test files to clean up the codebase.
…est files - Updated type hints from List and Optional to list and str | None for consistency and clarity. - Enhanced model definitions in analytics, app definition, and workflow step request files. - Improved validation methods to align with new type hints. - Cleaned up imports and ensured better organization within the codebase.
- Updated various client models to use async methods for improved performance. - Removed deprecated models and unnecessary imports to streamline the codebase. - Enhanced validation methods and type hints for better clarity and consistency. - Updated the Makefile to reflect changes in testing and linting tasks. - Cleaned up the .gitignore and pre-commit configuration for better management of ignored files and code quality checks. - Bumped version to 2.0.10 in `uv.lock` to reflect these changes.
…tem flag for consistency
…improved compatibility and security. This includes configuring safe directories and adjusting URL handling for GitHub.
…itHub token for improved security and compatibility.
…tHub Actions for cleaner project setup. This includes deleting the .pre-commit-config.yaml file and related pre-commit checks from the publish and pre-commit workflows.
…Request models to use lowercase literals for consistency
- Introduced FileManagementAPIKeyClient, FileManagementAuthTokenClient, and FileManagementClient to the API tools. - Updated AppDefinitionClient to utilize the FileManagementClient for handling app icons and templates. - Added ExternalTemplateDefinition model for managing template details. - Enhanced utility functions for file handling in the client. - Updated module imports and __all__ exports accordingly.
- Updated the body_html parameter to accept None as a valid value. - Modified upload_tasks to conditionally include body_html only if it is provided. - Adjusted payload construction to check for the presence of bodyKey in file_ids before assignment.
…ool for getSubmission; add reqUserEmail to CreateSubmissionRequest
- Added .pre-commit-config.yaml to enforce code quality checks. - Updated version in pyproject.toml and uv.lock to 2.0.17. - Refactored Makefile to streamline commands and remove unnecessary sections. - Enhanced imports in __init__.py and adjusted method signatures in client classes for consistency.
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.
No description provided.