Files
Scraperr/api/backend/job/models/site_map.py
Jayden Pyles 7d80ff5c7f
Some checks failed
Unit Tests / unit-tests (push) Has been cancelled
Feat: Site Mapping (#46)
* wip: add site mapping

* chore: cleanup
2024-11-16 20:55:23 -06:00

15 lines
249 B
Python

from pydantic import BaseModel
from typing import Literal
class Action(BaseModel):
type: Literal["click", "input"]
xpath: str
name: str
input: str = ""
do_once: bool = True
class SiteMap(BaseModel):
actions: list[Action]