Job Ended Notification

Schemas

Body

{
  "type": "object",
  "properties": {
    "registration_ids": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The firebase receivers ID"
    },
    "time_to_live": {
      "type": "number",
      "description": "The number of seconds that a notification has to be delivered to the receiver before being discarded"
    },
    "data": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "description": "See enum Notification Type"
        },
        "title": {
          "type": "string",
          "description": "Title entered by the Nido"
        },
        "job_id": {
          "type": "number",
          "description": "The job id in the server db"
        },
        "user_type": {
            "type": "string",
            "description": "The type of user of the receiver respective to the job. 'dodo' or 'nest'."
        }
      },
      "required": [
        "type",
        "title",
        "user_type",
        "job_id",
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "registration_ids",
    "data"
  ],
  "additionalProperties": false
}

Rules

This notification will alert the user that the job was finished and it needs rating.