UserDeactivatedEvent
v1

Admin

Details

Example event payload

1{
2	"id": 6307754,
3	"createdAt": "2023-07-17T10:18:39.643Z",
4	"updatedAt": "2023-07-17T10:18:39.718Z",
5	"eventName": "UserDeactivatedEvent",
6	"keyId": "23f55fb6-e49e-436e-9736-712856030c18",
7	"eventData": {
8		"name": "UserDeactivatedEvent",
9		"type": "event",
10		"user": {
11			"id": "c153b2ae-0a2f-497c-87a2-36548dbe18b1",
12			"email": "aslevrat@conseiletcarriere.fr",
13			"gender": 0,
14			"auth0Id": "email|625810274c09001125390f87",
15			"coachId": "12a885eb-4ded-41bd-9ca4-16e4867c33a0",
16			"lastName": "Levrat",
17			"password": "",
18			"userType": "COACH",
19			"username": "Anne-Sophie",
20			"avatarUrl": null,
21			"birthDate": null,
22			"createdAt": "2022-05-02T16:30:30.996Z",
23			"deletedAt": null,
24			"firstName": "Anne-Sophie",
25			"freeTrial": false,
26			"updatedAt": "2023-07-17T14:18:39.582Z",
27			"activatedAt": null,
28			"hasReferral": false,
29			"phoneNumber": "",
30			"isTestAccount": false,
31			"tocAcceptedAt": "2022-05-13T08:18:30.738Z",
32			"notificationIds": []
33		},
34		"keyId": "23f55fb6-e49e-436e-9736-712856030c18",
35		"version": 1
36	},
37	"status": "ACKNOWLEDGED",
38	"publisherNodeId": "phoenix-production-5648b58f5c-kxq7x",
39	"processorNodeId": "phoenix-production-5648b58f5c-kxq7x",
40	"version": 1,
41	"userId": "c153b2ae-0a2f-497c-87a2-36548dbe18b1",
42	"talentId": null
43}

UserDeactivatedEvent payload

UserDeactivatedEvent Schema (json)
{
  "$id": "UserDeactivatedEventPayloadTSchema",
  "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