Coverage for functions \ flipdare \ generated \ schema \ email \ body \ admin \ log_email_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, Any 

25from flipdare.generated.shared.backend.system_log_type import SystemLogType 

26from flipdare.generated.shared.backend.app_job_type import AppJobType 

27from enum import StrEnum 

28 

29 

30class LogEmailKey(StrEnum): 

31 LOG_TYPE = "log_type" 

32 CALLED_FROM = "called_from" 

33 ERROR_CODE = "error_code" 

34 SOURCE = "source" 

35 OCCURRED_AT = "occurred_at" 

36 JOB_TYPE = "job_type" 

37 DOC_ID = "doc_id" 

38 DURATION = "duration" 

39 MESSAGE = "message" 

40 DETAIL = "detail" 

41 EXTRA = "extra" 

42 STACK_TRACE = "stack_trace" 

43 

44 

45class LogEmailSchema(TypedDict): 

46 """admin log email schema""" 

47 

48 log_type: SystemLogType 

49 called_from: str 

50 error_code: NotRequired[str] 

51 source: str 

52 occurred_at: str 

53 job_type: NotRequired[AppJobType] 

54 doc_id: NotRequired[str] 

55 duration: NotRequired[int] 

56 message: str 

57 detail: NotRequired[str] 

58 extra: NotRequired[dict[str, Any]] 

59 stack_trace: NotRequired[str]