UserAcceptedTOCEvent
v1

User accepting terms of service

Details

Example event payload

1{
2  "id": 6106150,
3  "createdAt": "2023-07-10T03:36:36.043Z",
4  "updatedAt": "2023-07-10T03:36:36.081Z",
5  "eventName": "UserAcceptedTOCEvent",
6  "keyId": "dadc49c3-8893-4c01-b7d3-d1100f3115b1",
7  "eventData": {
8    "name": "UserAcceptedTOCEvent",
9    "type": "event",
10    "user": {
11      "id": "6adbf032-ff67-4d38-9ef7-e1b278d4a147",
12      "email": "tsafads@outlook.fr",
13      "gender": 0,
14      "auth0Id": null,
15      "lastName": "Charron",
16      "password": "",
17      "talentId": "6d61aa0f-ea39-4d5e-b752-5982d7a60ed3",
18      "userType": "TALENT",
19      "username": null,
20      "avatarUrl": null,
21      "birthDate": null,
22      "createdAt": "2023-07-10T07:35:16.167Z",
23      "deletedAt": null,
24      "firstName": "Thibaut",
25      "freeTrial": false,
26      "updatedAt": "2023-07-10T07:36:36.035Z",
27      "activatedAt": null,
28      "hasReferral": false,
29      "phoneNumber": null,
30      "isTestAccount": false,
31      "tocAcceptedAt": "2023-07-10T07:36:36.017Z",
32      "notificationIds": []
33    },
34    "keyId": "dadc49c3-8893-4c01-b7d3-d1100f3115b1",
35    "version": 1
36  },
37  "status": "ACKNOWLEDGED",
38  "publisherNodeId": "phoenix-production-788774c7f-ptzwj",
39  "processorNodeId": "phoenix-production-788774c7f-jz25k",
40  "version": 1,
41  "userId": "6adbf032-ff67-4d38-9ef7-e1b278d4a147",
42  "talentId": "6d61aa0f-ea39-4d5e-b752-5982d7a60ed3"
43}
44

UserAcceptedTOCEvent payload

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