{
 "openapi": "3.1.0",
 "info": {
  "title": "Joining & Leaving (HRMS)",
  "version": "20261030b",
  "description": "Every checklist actually running: whose it is, what is done, what is overdue. A new joiner's access, card and desk are on one of these, and so is what a leaver still has to hand back."
 },
 "servers": [
  {
   "url": "https://{tenant}.tranxact.ai",
   "variables": {
    "tenant": {
     "default": "demo"
    }
   }
  }
 ],
 "components": {
  "securitySchemes": {
   "bearer": {
    "type": "http",
    "scheme": "bearer"
   }
  },
  "schemas": {
   "checklists": {
    "type": "object",
    "required": [],
    "properties": {
     "id": {
      "type": "string",
      "format": "uuid",
      "description": "Id",
      "readOnly": true
     },
     "org_id": {
      "type": "string",
      "format": "uuid",
      "description": "Org id",
      "readOnly": true
     },
     "org_unit_id": {
      "type": "string",
      "format": "uuid",
      "description": "Org unit id",
      "readOnly": true
     },
     "checklist_no": {
      "type": "string",
      "description": "Checklist no",
      "readOnly": true
     },
     "purpose": {
      "type": "string",
      "description": "Purpose",
      "readOnly": true
     },
     "anchor_date": {
      "type": "string",
      "format": "date",
      "description": "Anchor date",
      "readOnly": true
     },
     "status": {
      "type": "string",
      "description": "Status",
      "readOnly": true
     },
     "employee_no": {
      "type": "string",
      "description": "Employee no",
      "readOnly": true
     },
     "employee_name": {
      "type": "string",
      "description": "Employee name",
      "readOnly": true
     },
     "candidate_no": {
      "type": "string",
      "description": "Candidate no",
      "readOnly": true
     },
     "candidate_name": {
      "type": "string",
      "description": "Candidate name",
      "readOnly": true
     },
     "template": {
      "type": "string",
      "description": "Template",
      "readOnly": true
     },
     "tasks": {
      "type": "integer",
      "description": "Tasks",
      "readOnly": true
     },
     "done": {
      "type": "integer",
      "description": "Done",
      "readOnly": true
     },
     "overdue": {
      "type": "integer",
      "description": "Overdue",
      "readOnly": true
     },
     "blocking": {
      "type": "integer",
      "description": "Blocking",
      "readOnly": true
     },
     "standing": {
      "type": "string",
      "description": "Standing",
      "readOnly": true
     }
    }
   }
  }
 },
 "security": [
  {
   "bearer": []
  }
 ],
 "paths": {
  "/api/hrms/checklists": {
   "get": {
    "summary": "list checklists",
    "operationId": "list_checklists_0_4",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "post": {
    "summary": "Post joining & leaving",
    "operationId": "action_checklists_1_4",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/hrms/checklists/{id}": {
   "get": {
    "summary": "get checklists",
    "operationId": "get_checklists_0_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "put": {
    "summary": "Put joining & leaving",
    "operationId": "action_checklists_1_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "delete": {
    "summary": "Delete joining & leaving",
    "operationId": "action_checklists_2_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/hrms/checklists/{id}/tasks": {
   "get": {
    "summary": "Tasks",
    "operationId": "action_checklists_0_6",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/hrms/checklists/{id}/tasks/{taskId}/complete": {
   "post": {
    "summary": "Tasks complete",
    "operationId": "action_checklists_0_8",
    "description": "Body keys: signedByName, waive, notes",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/hrms/checklists/start": {
   "post": {
    "summary": "Start",
    "operationId": "action_checklists_0_5",
    "description": "Body keys: employeeId*, purpose, anchorDate",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/hrms/checklists/{id}/copy": {
   "post": {
    "summary": "Copy",
    "operationId": "action_checklists_0_6",
    "description": "Body keys: overrides, preview, withLines",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  }
 }
}