IndividualHelpingActRespondToHRAddedEvent
v2

Add a helping act when a member responds to another member help request

Details

IndividualHelpingActRespondToHRAddedEvent payload

IndividualHelpingActRespondToHRAddedEvent Schema (json)
{
  "$id": "IndividualHelpingActRespondToHRAddedEventPayloadTSchema",
  "type": "object",
  "properties": {
    "helpingAct": {
      "type": "object",
      "properties": {
        "createdAt": { "format": "datetime", "type": "string" },
        "id": { "type": "string" },
        "category": {
          "anyOf": [
            { "const": "INDIVIDUAL", "type": "string" },
            { "const": "ANONYM", "type": "string" }
          ]
        },
        "type": {
          "anyOf": [
            { "const": "HELP_REQUEST_RESPONSE", "type": "string" },
            { "const": "REFERRAL", "type": "string" },
            { "const": "MY_CIRCLE", "type": "string" },
            { "const": "LIVE", "type": "string" },
            { "const": "SOLIDARITY_COOPTATION", "type": "string" },
            { "const": "FORWARD_HELP_REQUEST", "type": "string" }
          ]
        },
        "version": { "type": "number" },
        "payload": {
          "anyOf": [
            {
              "$id": "HelpingActPayloadDTO",
              "additionalProperties": true,
              "type": "object",
              "properties": {
                "helpRequestId": { "type": "string" },
                "referralId": { "type": "string" },
                "liveMeetingMetadata": {
                  "type": "object",
                  "properties": {
                    "id": { "type": "string" },
                    "date": { "format": "datetime", "type": "string" },
                    "numberOfAttendees": { "type": "number" },
                    "speakerEmail": { "type": "string" }
                  },
                  "required": [
                    "id",
                    "date",
                    "numberOfAttendees",
                    "speakerEmail"
                  ]
                },
                "helpedUserId": { "type": "string" },
                "sharedToUserId": { "type": "string" }
              }
            },
            { "type": "null" }
          ]
        }
      },
      "required": ["createdAt", "id", "category", "type", "version"]
    },
    "helpingUser": {
      "type": "object",
      "properties": {
        "id": { "type": "string" },
        "firstName": { "anyOf": [{ "type": "string" }, { "type": "null" }] }
      },
      "required": ["id"]
    },
    "helpedUser": {
      "type": "object",
      "properties": { "id": { "type": "string" } },
      "required": ["id"]
    }
  },
  "required": ["helpingAct", "helpingUser", "helpedUser"]
}


Edit this pageLast updated on 2024/8/5