Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Activities API add activity type #10176

Open
AlexAndBear opened this issue Sep 26, 2024 · 0 comments
Open

Activities API add activity type #10176

AlexAndBear opened this issue Sep 26, 2024 · 0 comments

Comments

@AlexAndBear
Copy link
Contributor

AlexAndBear commented Sep 26, 2024

To differentiate activities we need to have an activity type enum per activity,
the output could be e.G:

{
    "id": "2a1d46f4-bb24-432a-9aca-efd373cb00e2",
     **"type": "ITEM_RENAMED"**,
    "template": {
        "message": "{user} renamed {oldResource} to {resource}",
        "variables": {
            "folder": {
                "id": "b3c3a3e6-c1dc-48f0-b36f-fcfd2e78fe6c",
                "name": "Admin"
            },
            "oldResource": {
                "id": "",
                "name": "EEE.txt"
            },
            "resource": {
                "id": "a0b3f3e2-ff9a-4834-bf66-63119bc5eb22$b3c3a3e6-c1dc-48f0-b36f-fcfd2e78fe6c!743f8694-c785-4af9-8174-5acce3f3a543",
                "name": "aaa.txt"
            },
            "user": {
                "id": "b3c3a3e6-c1dc-48f0-b36f-fcfd2e78fe6c",
                "displayName": "admin"
            }
        }
    },
    "times": {
        "recordedTime": "2024-09-26T19:20:37.205994671Z"
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant