Coverage for functions \ flipdare \ generated \ schema \ search \ general_document_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 enum import StrEnum 

27 

28 

29class GeneralDocumentKey(StrEnum): 

30 UID = "uid" 

31 OBJ_ID = "obj_id" 

32 OBJ_TYPE = "obj_type" 

33 GROUP_ID = "group_id" 

34 KEYWORDS = "keywords" 

35 TAGS = "tags" 

36 SCORE = "score" 

37 TAG_SCORE = "tag_score" 

38 VIEWS = "views" 

39 CREATED_AT = "created_at" 

40 UPDATED_AT = "updated_at" 

41 

42 

43class GeneralDocumentSchema(TypedDict): 

44 """General Search Document.""" 

45 

46 uid: str 

47 obj_id: str 

48 obj_type: SearchObjType 

49 group_id: NotRequired[str] 

50 keywords: list[str] 

51 tags: list[str] 

52 score: float 

53 tag_score: float 

54 views: int 

55 created_at: int 

56 updated_at: int