{
  "name": "Time off on the team calendar",
  "description": "Every approved absence blocks the calendar and notifies the team.",
  "tags": [
    "HR"
  ],
  "pieces": [
    "@flooows/component-humaneo",
    "@flooows/component-google-calendar",
    "@flooows/component-microsoft-teams"
  ],
  "template": {
    "displayName": "Time off on the team calendar",
    "trigger": {
      "name": "trigger",
      "type": "PIECE_TRIGGER",
      "valid": false,
      "displayName": "Absence approved in Humaneo",
      "settings": {
        "pieceName": "@flooows/component-humaneo",
        "pieceVersion": "~1.0.0",
        "pieceType": "OFFICIAL",
        "packageType": "REGISTRY",
        "triggerName": "absence_approved",
        "input": {},
        "inputUiInfo": {},
        "propertySettings": {}
      },
      "nextAction": {
        "name": "step_1",
        "type": "PIECE",
        "valid": false,
        "skip": false,
        "displayName": "Block the calendar",
        "settings": {
          "pieceName": "@flooows/component-google-calendar",
          "pieceVersion": "~0.13.4",
          "pieceType": "OFFICIAL",
          "packageType": "REGISTRY",
          "actionName": "create_google_calendar_event",
          "input": {
            "title": "Ausencia · {{trigger.employee_name}}",
            "start_date_time": "{{trigger.start}}",
            "end_date_time": "{{trigger.end}}",
            "send_notifications": "none"
          },
          "inputUiInfo": {},
          "propertySettings": {},
          "errorHandlingOptions": {
            "retryOnFailure": {
              "value": true
            },
            "continueOnFailure": {
              "value": false
            }
          }
        },
        "nextAction": {
          "name": "step_2",
          "type": "PIECE",
          "valid": false,
          "skip": false,
          "displayName": "Notify the team on Teams",
          "settings": {
            "pieceName": "@flooows/component-microsoft-teams",
            "pieceVersion": "~0.8.2",
            "pieceType": "OFFICIAL",
            "packageType": "REGISTRY",
            "actionName": "microsoft_teams_send_channel_message",
            "input": {
              "contentType": "text",
              "content": "{{trigger.employee_name}} estará ausente del {{trigger.start}} al {{trigger.end}}."
            },
            "inputUiInfo": {},
            "propertySettings": {},
            "errorHandlingOptions": {
              "retryOnFailure": {
                "value": true
              },
              "continueOnFailure": {
                "value": false
              }
            }
          }
        }
      }
    },
    "valid": false,
    "schemaVersion": "1"
  },
  "blogUrl": "https://flooows.com/en/templates/absences-in-team-calendar",
  "metadata": {
    "publisher": "flooows",
    "lang": "en",
    "setupMinutes": 4,
    "creditsPerRun": 1
  }
}