rocketchat-API 3.6.0__tar.gz → 3.6.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (87) hide show
  1. {rocketchat_api-3.6.0 → rocketchat_api-3.6.1}/PKG-INFO +1 -1
  2. {rocketchat_api-3.6.0 → rocketchat_api-3.6.1}/rocketchat_API/APISections/dm.py +3 -3
  3. {rocketchat_api-3.6.0 → rocketchat_api-3.6.1}/rocketchat_API/APISections/teams.py +1 -3
  4. {rocketchat_api-3.6.0 → rocketchat_api-3.6.1}/rocketchat_API/APISections/users.py +1 -1
  5. {rocketchat_api-3.6.0 → rocketchat_api-3.6.1}/rocketchat_API.egg-info/PKG-INFO +1 -1
  6. {rocketchat_api-3.6.0 → rocketchat_api-3.6.1}/tests/test_dms.py +1 -1
  7. {rocketchat_api-3.6.0 → rocketchat_api-3.6.1}/.coveragerc +0 -0
  8. {rocketchat_api-3.6.0 → rocketchat_api-3.6.1}/.deepsource.toml +0 -0
  9. {rocketchat_api-3.6.0 → rocketchat_api-3.6.1}/.editorconfig +0 -0
  10. {rocketchat_api-3.6.0 → rocketchat_api-3.6.1}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
  11. {rocketchat_api-3.6.0 → rocketchat_api-3.6.1}/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
  12. {rocketchat_api-3.6.0 → rocketchat_api-3.6.1}/.github/actions/test_rocketchat/action.yml +0 -0
  13. {rocketchat_api-3.6.0 → rocketchat_api-3.6.1}/.github/dependabot.yml +0 -0
  14. {rocketchat_api-3.6.0 → rocketchat_api-3.6.1}/.github/workflows/lint.yml +0 -0
  15. {rocketchat_api-3.6.0 → rocketchat_api-3.6.1}/.github/workflows/release.yml +0 -0
  16. {rocketchat_api-3.6.0 → rocketchat_api-3.6.1}/.github/workflows/test.yml +0 -0
  17. {rocketchat_api-3.6.0 → rocketchat_api-3.6.1}/.github/workflows/test_latest.yml +0 -0
  18. {rocketchat_api-3.6.0 → rocketchat_api-3.6.1}/.github/workflows/test_manually.yml +0 -0
  19. {rocketchat_api-3.6.0 → rocketchat_api-3.6.1}/.gitignore +0 -0
  20. {rocketchat_api-3.6.0 → rocketchat_api-3.6.1}/CONTRIBUTING.md +0 -0
  21. {rocketchat_api-3.6.0 → rocketchat_api-3.6.1}/LICENSE.txt +0 -0
  22. {rocketchat_api-3.6.0 → rocketchat_api-3.6.1}/README.md +0 -0
  23. {rocketchat_api-3.6.0 → rocketchat_api-3.6.1}/bandit.yml +0 -0
  24. {rocketchat_api-3.6.0 → rocketchat_api-3.6.1}/docker-compose.yml +0 -0
  25. {rocketchat_api-3.6.0 → rocketchat_api-3.6.1}/pyproject.toml +0 -0
  26. {rocketchat_api-3.6.0 → rocketchat_api-3.6.1}/qodana.yaml +0 -0
  27. {rocketchat_api-3.6.0 → rocketchat_api-3.6.1}/rocketchat_API/APIExceptions/RocketExceptions.py +0 -0
  28. {rocketchat_api-3.6.0 → rocketchat_api-3.6.1}/rocketchat_API/APIExceptions/__init__.py +0 -0
  29. {rocketchat_api-3.6.0 → rocketchat_api-3.6.1}/rocketchat_API/APISections/__init__.py +0 -0
  30. {rocketchat_api-3.6.0 → rocketchat_api-3.6.1}/rocketchat_API/APISections/assets.py +0 -0
  31. {rocketchat_api-3.6.0 → rocketchat_api-3.6.1}/rocketchat_API/APISections/banners.py +0 -0
  32. {rocketchat_api-3.6.0 → rocketchat_api-3.6.1}/rocketchat_API/APISections/base.py +0 -0
  33. {rocketchat_api-3.6.0 → rocketchat_api-3.6.1}/rocketchat_API/APISections/channels.py +0 -0
  34. {rocketchat_api-3.6.0 → rocketchat_api-3.6.1}/rocketchat_API/APISections/chat.py +0 -0
  35. {rocketchat_api-3.6.0 → rocketchat_api-3.6.1}/rocketchat_API/APISections/custom_emoji.py +0 -0
  36. {rocketchat_api-3.6.0 → rocketchat_api-3.6.1}/rocketchat_API/APISections/custom_sounds.py +0 -0
  37. {rocketchat_api-3.6.0 → rocketchat_api-3.6.1}/rocketchat_API/APISections/custom_user_status.py +0 -0
  38. {rocketchat_api-3.6.0 → rocketchat_api-3.6.1}/rocketchat_API/APISections/groups.py +0 -0
  39. {rocketchat_api-3.6.0 → rocketchat_api-3.6.1}/rocketchat_API/APISections/integrations.py +0 -0
  40. {rocketchat_api-3.6.0 → rocketchat_api-3.6.1}/rocketchat_API/APISections/invites.py +0 -0
  41. {rocketchat_api-3.6.0 → rocketchat_api-3.6.1}/rocketchat_API/APISections/licenses.py +0 -0
  42. {rocketchat_api-3.6.0 → rocketchat_api-3.6.1}/rocketchat_API/APISections/livechat.py +0 -0
  43. {rocketchat_api-3.6.0 → rocketchat_api-3.6.1}/rocketchat_API/APISections/miscellaneous.py +0 -0
  44. {rocketchat_api-3.6.0 → rocketchat_api-3.6.1}/rocketchat_API/APISections/moderation.py +0 -0
  45. {rocketchat_api-3.6.0 → rocketchat_api-3.6.1}/rocketchat_API/APISections/permissions.py +0 -0
  46. {rocketchat_api-3.6.0 → rocketchat_api-3.6.1}/rocketchat_API/APISections/roles.py +0 -0
  47. {rocketchat_api-3.6.0 → rocketchat_api-3.6.1}/rocketchat_API/APISections/rooms.py +0 -0
  48. {rocketchat_api-3.6.0 → rocketchat_api-3.6.1}/rocketchat_API/APISections/settings.py +0 -0
  49. {rocketchat_api-3.6.0 → rocketchat_api-3.6.1}/rocketchat_API/APISections/statistics.py +0 -0
  50. {rocketchat_api-3.6.0 → rocketchat_api-3.6.1}/rocketchat_API/APISections/subscriptions.py +0 -0
  51. {rocketchat_api-3.6.0 → rocketchat_api-3.6.1}/rocketchat_API/APISections/users_engagement.py +0 -0
  52. {rocketchat_api-3.6.0 → rocketchat_api-3.6.1}/rocketchat_API/__init__.py +0 -0
  53. {rocketchat_api-3.6.0 → rocketchat_api-3.6.1}/rocketchat_API/rocketchat.py +0 -0
  54. {rocketchat_api-3.6.0 → rocketchat_api-3.6.1}/rocketchat_API.egg-info/SOURCES.txt +0 -0
  55. {rocketchat_api-3.6.0 → rocketchat_api-3.6.1}/rocketchat_API.egg-info/dependency_links.txt +0 -0
  56. {rocketchat_api-3.6.0 → rocketchat_api-3.6.1}/rocketchat_API.egg-info/requires.txt +0 -0
  57. {rocketchat_api-3.6.0 → rocketchat_api-3.6.1}/rocketchat_API.egg-info/top_level.txt +0 -0
  58. {rocketchat_api-3.6.0 → rocketchat_api-3.6.1}/setup.cfg +0 -0
  59. {rocketchat_api-3.6.0 → rocketchat_api-3.6.1}/tests/__init__.py +0 -0
  60. {rocketchat_api-3.6.0 → rocketchat_api-3.6.1}/tests/assets/avatar.png +0 -0
  61. {rocketchat_api-3.6.0 → rocketchat_api-3.6.1}/tests/assets/avatar.svg +0 -0
  62. {rocketchat_api-3.6.0 → rocketchat_api-3.6.1}/tests/assets/logo.png +0 -0
  63. {rocketchat_api-3.6.0 → rocketchat_api-3.6.1}/tests/conftest.py +0 -0
  64. {rocketchat_api-3.6.0 → rocketchat_api-3.6.1}/tests/test_assets.py +0 -0
  65. {rocketchat_api-3.6.0 → rocketchat_api-3.6.1}/tests/test_banners.py +0 -0
  66. {rocketchat_api-3.6.0 → rocketchat_api-3.6.1}/tests/test_channels.py +0 -0
  67. {rocketchat_api-3.6.0 → rocketchat_api-3.6.1}/tests/test_chat.py +0 -0
  68. {rocketchat_api-3.6.0 → rocketchat_api-3.6.1}/tests/test_custom_emoji.py +0 -0
  69. {rocketchat_api-3.6.0 → rocketchat_api-3.6.1}/tests/test_custom_sounds.py +0 -0
  70. {rocketchat_api-3.6.0 → rocketchat_api-3.6.1}/tests/test_custom_user_status.py +0 -0
  71. {rocketchat_api-3.6.0 → rocketchat_api-3.6.1}/tests/test_exceptions.py +0 -0
  72. {rocketchat_api-3.6.0 → rocketchat_api-3.6.1}/tests/test_groups.py +0 -0
  73. {rocketchat_api-3.6.0 → rocketchat_api-3.6.1}/tests/test_integrations.py +0 -0
  74. {rocketchat_api-3.6.0 → rocketchat_api-3.6.1}/tests/test_invites.py +0 -0
  75. {rocketchat_api-3.6.0 → rocketchat_api-3.6.1}/tests/test_licenses.py +0 -0
  76. {rocketchat_api-3.6.0 → rocketchat_api-3.6.1}/tests/test_livechat.py +0 -0
  77. {rocketchat_api-3.6.0 → rocketchat_api-3.6.1}/tests/test_moderation.py +0 -0
  78. {rocketchat_api-3.6.0 → rocketchat_api-3.6.1}/tests/test_paginated.py +0 -0
  79. {rocketchat_api-3.6.0 → rocketchat_api-3.6.1}/tests/test_permissions.py +0 -0
  80. {rocketchat_api-3.6.0 → rocketchat_api-3.6.1}/tests/test_roles.py +0 -0
  81. {rocketchat_api-3.6.0 → rocketchat_api-3.6.1}/tests/test_rooms.py +0 -0
  82. {rocketchat_api-3.6.0 → rocketchat_api-3.6.1}/tests/test_server.py +0 -0
  83. {rocketchat_api-3.6.0 → rocketchat_api-3.6.1}/tests/test_settings.py +0 -0
  84. {rocketchat_api-3.6.0 → rocketchat_api-3.6.1}/tests/test_subscriptions.py +0 -0
  85. {rocketchat_api-3.6.0 → rocketchat_api-3.6.1}/tests/test_teams.py +0 -0
  86. {rocketchat_api-3.6.0 → rocketchat_api-3.6.1}/tests/test_user.py +0 -0
  87. {rocketchat_api-3.6.0 → rocketchat_api-3.6.1}/tests/test_users_engagement.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: rocketchat_API
3
- Version: 3.6.0
3
+ Version: 3.6.1
4
4
  Summary: Python API wrapper for Rocket.Chat
5
5
  Author-email: "Jorge Alberto Díaz Orozco (Akiel)" <diazorozcoj@gmail.com>
6
6
  Maintainer-email: "Jorge Alberto Díaz Orozco (Akiel)" <diazorozcoj@gmail.com>
@@ -78,10 +78,10 @@ class RocketChatDM(RocketChatBase):
78
78
  return self.call_api_get("dm.files", username=user_name, kwargs=kwargs)
79
79
  raise RocketMissingParamException(ROOM_ID_OR_USERNAME_REQUIRED)
80
80
 
81
- def dm_counters(self, room_id, user_name=None):
81
+ def dm_counters(self, room_id, user_id=None):
82
82
  """Gets counters of direct messages."""
83
- if user_name:
84
- return self.call_api_get("dm.counters", roomId=room_id, username=user_name)
83
+ if user_id:
84
+ return self.call_api_get("dm.counters", roomId=room_id, userId=user_id)
85
85
  return self.call_api_get("dm.counters", roomId=room_id)
86
86
 
87
87
  def dm_delete(self, room_id, **kwargs):
@@ -173,7 +173,7 @@ class RocketChatTeams(RocketChatBase):
173
173
 
174
174
  @paginated("rooms")
175
175
  def teams_list_rooms_of_user(
176
- self, team_id=None, team_name=None, user_id=None, can_add=False, **kwargs
176
+ self, team_id=None, team_name=None, user_id=None, **kwargs
177
177
  ):
178
178
  """
179
179
  Lists only the team's rooms that a particular user has joined.
@@ -184,7 +184,6 @@ class RocketChatTeams(RocketChatBase):
184
184
  "teams.listRoomsOfUser",
185
185
  teamId=team_id,
186
186
  userId=user_id,
187
- canAdd=can_add,
188
187
  kwargs=kwargs,
189
188
  )
190
189
  if team_name:
@@ -192,7 +191,6 @@ class RocketChatTeams(RocketChatBase):
192
191
  "teams.listRoomsOfUser",
193
192
  teamName=team_name,
194
193
  userId=user_id,
195
- canAdd=can_add,
196
194
  kwargs=kwargs,
197
195
  )
198
196
  raise RocketMissingParamException(TEAM_ID_OR_TEAM_NAME_REQUIRED)
@@ -129,7 +129,7 @@ class RocketChatUsers(RocketChatBase):
129
129
 
130
130
  def users_forgot_password(self, email, **kwargs):
131
131
  """Send email to reset your password."""
132
- return self.call_api_post("users.forgotPassword", email=email, data=kwargs)
132
+ return self.call_api_post("users.forgotPassword", email=email, kwargs=kwargs)
133
133
 
134
134
  def users_get_preferences(self, **kwargs):
135
135
  """Gets all preferences of user."""
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: rocketchat_API
3
- Version: 3.6.0
3
+ Version: 3.6.1
4
4
  Summary: Python API wrapper for Rocket.Chat
5
5
  Author-email: "Jorge Alberto Díaz Orozco (Akiel)" <diazorozcoj@gmail.com>
6
6
  Maintainer-email: "Jorge Alberto Díaz Orozco (Akiel)" <diazorozcoj@gmail.com>
@@ -146,7 +146,7 @@ def test_dm_counters(logged_rocket, recipient_user):
146
146
 
147
147
  dm_counters = logged_rocket.dm_counters(
148
148
  room_id=dm_create.get("room").get("_id"),
149
- user_name=logged_rocket.me().get("_id"),
149
+ user_id=logged_rocket.me().get("_id"),
150
150
  )
151
151
  assert all(
152
152
  key in dm_counters
File without changes
File without changes