linagora / tmail-backend

GNU Affero General Public License v3.0
41 stars 22 forks source link

Label/change JMAP method #710

Closed vttranlina closed 1 year ago

vttranlina commented 1 year ago

Epic: https://github.com/linagora/tmail-backend/issues/702

Requirement

How

Request sample:

{
  "using": ["urn:ietf:params:jmap:core", "com:linagora:params:jmap:labels"],
  "methodCalls": [
    [
      "Label/changes",
      {
        "accountId": "29883977c13473ae7cb7678ef767cbfbaffc8a44a6e463d971d23a65c1dc4af6",
        "sinceState": "2c9f1b12-b35a-43e6-9af2-0106fb53a943"
      },
      "c1"
    ]
  ]
}

Response sample

{
  "sessionState": "2c9f1b12-b35a-43e6-9af2-0106fb53a943",
  "methodResponses": [
    ["Label/set", {
      "accountId": "29883977c13473ae7cb7678ef767cbfbaffc8a44a6e463d971d23a65c1dc4af6",
      "newState": "2c9f1b12-b35a-43e6-9af2-0106fb53a943",
      "updated": {}
    }, "0"]
  ]
}

Dod

implement + integration test

quantranhong1999 commented 1 year ago

Q: What is the implementation for this? LabelChangesRepository? Do we need that ATM?

vttranlina commented 1 year ago

Q: What is the implementation for this? LabelChangesRepository? Do we need that ATM?

yes, I updated the description

vttranlina commented 1 year ago

WIP PR https://github.com/linagora/tmail-backend/pull/733