from rest_framework.fields import ChoiceField, IntegerField
from rest_framework.serializers import Serializer
from wagtail.actions.move_page import MovePageAction as MovePageAction
from wagtail.models import Page as Page

from .base import APIAction as APIAction

class MovePageAPIActionSerializer(Serializer):
    destination_page_id: IntegerField
    position: ChoiceField

class MovePageAPIAction(APIAction):
    serializer = MovePageAPIActionSerializer
    def execute(self, instance, data): ...
