Skip to content

Commit

Permalink
Merge pull request #42 from Crown-Commercial-Service/feature/DMPGC14-…
Browse files Browse the repository at this point in the history
…510-add-conversation-audit-types

DMPGC14-510 - Create the conversation message audit types
  • Loading branch information
tim-s-ccs committed Mar 14, 2024
2 parents 611362d + ef3bdb2 commit 3406d66
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

Records breaking changes from major version bumps

## 25.2.0

Add new audit types for conversation messages

## 25.1.0

Allow for use with all currently maintained Python versions:
Expand Down
2 changes: 1 addition & 1 deletion dmapiclient/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = '25.1.0'
__version__ = '25.2.0'

from .errors import APIError, HTTPError, InvalidResponse # noqa
from .errors import REQUEST_ERROR_STATUS_CODE, REQUEST_ERROR_MESSAGE # noqa
Expand Down
6 changes: 6 additions & 0 deletions dmapiclient/audit.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,12 @@ class AuditTypes(Enum):
# Mailing list actions
mailing_list_subscription = "mailing_list_subscription"

# Conversations
create_conversation = "create_conversation"
archive_conversation = "archive_conversation"
send_conversation_message = "send_conversation_message"
read_conversation_message = "read_conversation_message"

@staticmethod
def is_valid_audit_type(test_audit_type):

Expand Down

0 comments on commit 3406d66

Please sign in to comment.