AuthzUserUpdatedEvent
v1

User account updated

Details

Example event payload

1{
2  "id": 6198422,
3  "createdAt": "2023-07-12T08:57:47.033Z",
4  "updatedAt": "2023-07-12T08:57:47.054Z",
5  "eventName": "AuthzUserUpdatedEvent",
6  "keyId": "f3953ac8-2acc-4ff7-81cb-0940c82c90d7",
7  "eventData": {
8    "name": "AuthzUserUpdatedEvent",
9    "type": "event",
10    "user": {
11      "id": "b4eb84e4-10b4-4187-a73c-a6851cc63faf",
12      "email": "redsdr@gmail.com",
13      "gender": 0,
14      "auth0Id": null,
15      "lastName": "Rello",
16      "password": "",
17      "talentId": "1fcbb2b5-108f-434e-a6ec-1fe79e580f2b",
18      "userType": "TALENT",
19      "username": null,
20      "avatarUrl": null,
21      "birthDate": null,
22      "createdAt": "2023-07-12T12:54:12.116Z",
23      "deletedAt": null,
24      "firstName": "Jade",
25      "freeTrial": false,
26      "updatedAt": "2023-07-12T12:57:46.014Z",
27      "activatedAt": null,
28      "hasReferral": false,
29      "phoneNumber": null,
30      "isTestAccount": false,
31      "tocAcceptedAt": null,
32      "notificationIds": []
33    },
34    "keyId": "f3953ac8-2acc-4ff7-81cb-0940c82c90d7",
35    "version": 1
36  },
37  "status": "ACKNOWLEDGED",
38  "publisherNodeId": "phoenix-production-788774c7f-jz25k",
39  "processorNodeId": "phoenix-production-788774c7f-v2hp2",
40  "version": 1,
41  "userId": "b4eb84e4-10b4-4187-a73c-a6851cc63faf",
42  "talentId": "1fcbb2b5-108f-434e-a6ec-1fe79e580f2b"
43}
44

AuthzUserUpdatedEvent payload

AuthzUserUpdatedEvent Schema (json)
{
  "$id": "AuthzUserUpdatedEventPayloadTSchema",
  "type": "object",
  "properties": {
    "user": {
      "$id": "UserEntity",
      "type": "object",
      "properties": {
        "createdAt": { "format": "datetime", "type": "string" },
        "updatedAt": {
          "anyOf": [
            { "format": "datetime", "type": "string" },
            { "type": "null" }
          ]
        },
        "deletedAt": {
          "anyOf": [
            { "format": "datetime", "type": "string" },
            { "type": "null" }
          ]
        },
        "id": { "type": "string" },
        "firstName": { "anyOf": [{ "type": "string" }, { "type": "null" }] },
        "lastName": { "anyOf": [{ "type": "string" }, { "type": "null" }] },
        "username": { "anyOf": [{ "type": "string" }, { "type": "null" }] },
        "password": {
          "anyOf": [{ "default": "", "type": "string" }, { "type": "null" }]
        },
        "hasPassword": { "type": "boolean" },
        "gender": {
          "default": 0,
          "anyOf": [
            { "const": 0, "type": "number" },
            { "const": 1, "type": "number" }
          ]
        },
        "freeTrial": { "default": false, "type": "boolean" },
        "isTestAccount": { "default": false, "type": "boolean" },
        "hasReferral": { "default": false, "type": "boolean" },
        "activatedAt": {
          "anyOf": [
            { "format": "datetime", "type": "string" },
            { "type": "null" }
          ]
        },
        "avatarUrl": { "anyOf": [{ "type": "string" }, { "type": "null" }] },
        "email": { "type": "string" },
        "phoneNumber": { "anyOf": [{ "type": "string" }, { "type": "null" }] },
        "auth0Id": { "anyOf": [{ "type": "string" }, { "type": "null" }] },
        "tocAcceptedAt": {
          "anyOf": [
            { "format": "datetime", "type": "string" },
            { "type": "null" }
          ]
        },
        "birthDate": {
          "anyOf": [
            { "format": "datetime", "type": "string" },
            { "type": "null" }
          ]
        },
        "availableContexts": {
          "anyOf": [
            {
              "type": "array",
              "items": {
                "description": "Easily identify what context (app or service) can be displayed to the user.",
                "anyOf": [
                  { "const": "BACKOFFICE_SPACE", "type": "string" },
                  { "const": "MUTUAL_HELP_SPACE", "type": "string" },
                  { "const": "FEEDBACK_ME_SPACE", "type": "string" },
                  { "const": "TALENT_SPACE", "type": "string" }
                ]
              }
            },
            { "type": "null" }
          ]
        },
        "userType": {
          "anyOf": [
            {
              "anyOf": [
                { "const": "ADMIN", "type": "string" },
                { "const": "AGENT", "type": "string" },
                { "const": "TALENT", "type": "string" },
                { "const": "COACH", "type": "string" },
                { "const": "PROGRAM_EDITOR", "type": "string" },
                { "const": "COMMUNITY_MEMBER", "type": "string" }
              ]
            },
            { "type": "null" }
          ]
        },
        "talent": { "anyOf": [{}, { "type": "null" }] },
        "talentId": { "anyOf": [{ "type": "string" }, { "type": "null" }] },
        "coach": { "anyOf": [{}, { "type": "null" }] },
        "coachId": { "anyOf": [{ "type": "string" }, { "type": "null" }] },
        "agent": { "anyOf": [{}, { "type": "null" }] },
        "agentId": { "anyOf": [{ "type": "string" }, { "type": "null" }] },
        "programEditor": { "anyOf": [{}, { "type": "null" }] },
        "programEditorId": {
          "anyOf": [{ "type": "string" }, { "type": "null" }]
        },
        "type": { "anyOf": [{}, {}, {}, {}, { "type": "null" }] },
        "notifications": { "type": "array", "items": {} },
        "notificationIds": { "type": "array", "items": { "type": "string" } },
        "preSave": {
          "type": "Function",
          "parameters": [],
          "returns": { "type": "Promise", "item": { "type": "void" } }
        }
      },
      "required": [
        "createdAt",
        "id",
        "password",
        "hasPassword",
        "gender",
        "freeTrial",
        "isTestAccount",
        "hasReferral",
        "activatedAt",
        "email",
        "phoneNumber",
        "auth0Id",
        "tocAcceptedAt",
        "birthDate",
        "talent",
        "talentId",
        "coach",
        "coachId",
        "agent",
        "agentId",
        "programEditor",
        "programEditorId",
        "type",
        "notifications",
        "notificationIds",
        "preSave"
      ]
    }
  },
  "required": ["user"]
}


Edit this pageLast updated on 2024/8/5