Coverage for functions \ flipdare \ generated \ schema \ search \ search_request_schema.py: 100%

0 statements  

« prev     ^ index     » next       coverage.py v7.13.0, created at 2026-05-08 12:22 +1000

1#!/usr/bin/env python 

2# 

3# Copyright (c) 2026 Flipdare Pty Ltd. All rights reserved. 

4# 

5# This file is part of Flipdare's proprietary software and contains 

6# confidential and copyrighted material. Unauthorised copying, 

7# modification, distribution, or use of this file is strictly 

8# prohibited without prior written permission from Flipdare Pty Ltd. 

9# 

10# This software includes third-party components licensed under MIT, 

11# BSD, and Apache 2.0 licences. See THIRD_PARTY_NOTICES for details. 

12# 

13# NOTE: THIS FILE IS AUTO GENERATED. DO NOT EDIT. 

14# 

15# Generated by codegen_models.py 

16# 

17# Modify 'codegen_models.py' 

18# and re-run the script above to update. 

19# 

20 

21# pragma: no cover 

22 

23 

24from typing import TypedDict, NotRequired 

25from flipdare.generated.shared.search.search_obj_type import SearchObjType 

26from flipdare.generated.shared.search.search_relation_type import SearchRelationType 

27from flipdare.generated.shared.search.search_sort_type import SearchSortType 

28from flipdare.generated.shared.search.search_collections import SearchCollections 

29from enum import StrEnum 

30 

31 

32class SearchRequestKey(StrEnum): 

33 QUERY = "query" 

34 PAGE_NUM = "page_num" 

35 OBJ_TYPES = "obj_types" 

36 RELATION_TYPE = "relation_type" 

37 SORT_TYPE = "sort_type" 

38 COLLECTION = "collection" 

39 AUTO_COMPLETE = "auto_complete" 

40 

41 

42class SearchRequestSchema(TypedDict): 

43 """Request body for all search callable functions.""" 

44 

45 query: str 

46 page_num: int 

47 obj_types: NotRequired[list[SearchObjType]] 

48 relation_type: NotRequired[SearchRelationType] 

49 sort_type: SearchSortType 

50 collection: SearchCollections 

51 auto_complete: NotRequired[bool]