Coverage for functions \ flipdare \ generated \ shared \ firestore_collections.py: 100%
0 statements
« prev ^ index » next coverage.py v7.13.0, created at 2026-05-08 12:22 +1000
« 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#
21# pragma: no cover
22from enum import StrEnum
25class FirestoreCollections(StrEnum):
26 """Firestore Collections"""
28 USER = "user"
29 INVITE = "invite"
30 FRIEND = "friend"
31 CHAT = "chat"
32 DARE = "dare"
33 GROUP = "group"
34 GROUP_MEMBER = "group_member"
35 CONTENT = "content"
36 ISSUE = "issue"
37 PAYMENT_ISSUE = "payment_issue"
38 FLAG = "flag"
39 PLEDGE = "pledge"
40 NOTIFICATIONS = "notifications"
41 CHAT_COMMENTS = "chat_comments"
42 FLAG_COMMENTS = "flag_comments"
43 ISSUE_COMMENTS = "issue_comments"
44 PLEDGE_PAYMENT_EVENTS = "pledge_payment_events"
45 TAG = "tag"
46 RESTRICTION = "restriction"
47 EXCHANGE_RATE = "exchange_rate"
48 USER_SUMMARY = "user_summary"
49 USER_SUMMARY_ENTRY = "user_summary_entry"
50 STRIPE_MAPPING = "stripe_mapping"
51 APP_JOB = "app_job"
52 APP_LOG = "app_log"
53 COMPLIANCE = "compliance"
54 RUNTIME_GROUP = "runtime_group"
55 RUNTIME_JOB = "runtime_job"
56 APP_STAT = "app_stat"
57 APP_STAT_METRIC = "app_stat_metric"
59 # ---- Convenience predicates -----------------------------------------
61 @property
62 def collect_daily_stats(self) -> bool:
63 """Whether to collect daily stats for this collection"""
64 return self in {
65 FirestoreCollections.DARE,
66 FirestoreCollections.USER,
67 FirestoreCollections.GROUP,
68 FirestoreCollections.CONTENT,
69 FirestoreCollections.ISSUE,
70 FirestoreCollections.PLEDGE,
71 }