feat: add Teams (Circles) async API [TEST PR]#403
Draft
Conversation
Implements issue #343 — adds async-only Teams/Circles API to nc_py_api. New module `nc_py_api/teams.py` provides: - Data classes: Circle, Member - Enums: MemberType, MemberLevel, CircleConfig - _AsyncTeamsAPI with methods: available, get_list, create, get_details, destroy, edit_name, edit_description, edit_config, get_members, add_member, add_members, remove_member, set_member_level, confirm_member, join, leave Registered on _AsyncNextcloudBasic (AsyncNextcloud + AsyncNextcloudApp). 17 tests covering both client and AppAPI modes.
for more information, see https://pre-commit.ci
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
Closes #343
_AsyncTeamsAPImodule (nc_py_api/teams.py) for managing Nextcloud Teams (Circles)Circle,Memberwith typed propertiesMemberType,MemberLevel,CircleConfig(IntFlag)_AsyncNextcloudBasic— available on bothAsyncNextcloudandAsyncNextcloudAppFollowing the async-only policy for new features — no sync variant.
Test plan
tests/actual_tests/teams_test.pytest_teams_availableandtest_teams_create_destroyrun in both client and AppAPI modes (ancfixture)NextcloudException