pyios-firebase 0.2.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (65) hide show
  1. pyios_firebase/__init__.py +26 -0
  2. pyios_firebase/analytics/__init__.py +434 -0
  3. pyios_firebase/analytics/names.py +251 -0
  4. pyios_firebase/app_check/__init__.py +483 -0
  5. pyios_firebase/auth/__init__.py +131 -0
  6. pyios_firebase/auth/_apple_name_cache.py +97 -0
  7. pyios_firebase/auth/_common.py +121 -0
  8. pyios_firebase/auth/_ui.py +21 -0
  9. pyios_firebase/auth/apple.py +326 -0
  10. pyios_firebase/auth/auth.py +592 -0
  11. pyios_firebase/auth/credentials.py +551 -0
  12. pyios_firebase/auth/errors.py +321 -0
  13. pyios_firebase/auth/facebook.py +240 -0
  14. pyios_firebase/auth/google.py +167 -0
  15. pyios_firebase/auth/multi_factor.py +394 -0
  16. pyios_firebase/auth/results.py +361 -0
  17. pyios_firebase/auth/user.py +457 -0
  18. pyios_firebase/core/__init__.py +32 -0
  19. pyios_firebase/crashlytics/__init__.py +463 -0
  20. pyios_firebase/database/__init__.py +62 -0
  21. pyios_firebase/database/database.py +144 -0
  22. pyios_firebase/database/errors.py +80 -0
  23. pyios_firebase/database/query.py +569 -0
  24. pyios_firebase/database/reference.py +428 -0
  25. pyios_firebase/database/snapshot.py +218 -0
  26. pyios_firebase/database/values.py +271 -0
  27. pyios_firebase/firestore/__init__.py +59 -0
  28. pyios_firebase/firestore/_limits.py +48 -0
  29. pyios_firebase/firestore/_query_state.py +228 -0
  30. pyios_firebase/firestore/_write.py +18 -0
  31. pyios_firebase/firestore/aggregate.py +137 -0
  32. pyios_firebase/firestore/collection_reference.py +100 -0
  33. pyios_firebase/firestore/document_change.py +63 -0
  34. pyios_firebase/firestore/document_reference.py +229 -0
  35. pyios_firebase/firestore/document_snapshot.py +102 -0
  36. pyios_firebase/firestore/enums.py +66 -0
  37. pyios_firebase/firestore/field_value.py +94 -0
  38. pyios_firebase/firestore/filter.py +319 -0
  39. pyios_firebase/firestore/firestore.py +184 -0
  40. pyios_firebase/firestore/listener_registration.py +55 -0
  41. pyios_firebase/firestore/query.py +679 -0
  42. pyios_firebase/firestore/query_snapshot.py +103 -0
  43. pyios_firebase/firestore/snapshot_metadata.py +36 -0
  44. pyios_firebase/firestore/transaction.py +130 -0
  45. pyios_firebase/firestore/write_batch.py +125 -0
  46. pyios_firebase/functions/__init__.py +329 -0
  47. pyios_firebase/messaging/__init__.py +37 -0
  48. pyios_firebase/messaging/messaging.py +435 -0
  49. pyios_firebase/messaging/notifications.py +292 -0
  50. pyios_firebase/performance/__init__.py +486 -0
  51. pyios_firebase/py.typed +0 -0
  52. pyios_firebase/remote_config/__init__.py +660 -0
  53. pyios_firebase/storage/__init__.py +41 -0
  54. pyios_firebase/storage/errors.py +103 -0
  55. pyios_firebase/storage/metadata.py +202 -0
  56. pyios_firebase/storage/reference.py +402 -0
  57. pyios_firebase/storage/storage.py +120 -0
  58. pyios_firebase/storage/task.py +198 -0
  59. pyios_firebase/types.py +93 -0
  60. pyios_firebase/util.py +413 -0
  61. pyios_firebase-0.2.0.dist-info/METADATA +1969 -0
  62. pyios_firebase-0.2.0.dist-info/RECORD +65 -0
  63. pyios_firebase-0.2.0.dist-info/WHEEL +5 -0
  64. pyios_firebase-0.2.0.dist-info/licenses/LICENSE +21 -0
  65. pyios_firebase-0.2.0.dist-info/top_level.txt +1 -0
@@ -0,0 +1,251 @@
1
+ """Names Google Analytics understands, generated from the SDK headers
2
+ (``FIREventNames.h``, ``FIRParameterNames.h``, ``FIRUserPropertyNames.h``).
3
+
4
+ Use them for the reports Analytics builds from them (e-commerce, levels,
5
+ screens...). Your own names work too.
6
+ """
7
+
8
+ from __future__ import annotations
9
+
10
+ __all__ = ("Event", "Param", "UserProperty")
11
+
12
+ from typing import Final
13
+
14
+
15
+ class Event:
16
+ """Event names Google Analytics understands (``FIREventNames.h``)."""
17
+
18
+ AD_IMPRESSION: Final = "ad_impression"
19
+ """Ad Impression event."""
20
+ ADD_PAYMENT_INFO: Final = "add_payment_info"
21
+ """Add Payment Info event."""
22
+ ADD_SHIPPING_INFO: Final = "add_shipping_info"
23
+ """Add Shipping Info event."""
24
+ ADD_TO_CART: Final = "add_to_cart"
25
+ """E-Commerce Add To Cart event."""
26
+ ADD_TO_WISHLIST: Final = "add_to_wishlist"
27
+ """E-Commerce Add To Wishlist event."""
28
+ APP_OPEN: Final = "app_open"
29
+ """App Open event."""
30
+ BEGIN_CHECKOUT: Final = "begin_checkout"
31
+ """E-Commerce Begin Checkout event."""
32
+ CAMPAIGN_DETAILS: Final = "campaign_details"
33
+ """Campaign Detail event."""
34
+ EARN_VIRTUAL_CURRENCY: Final = "earn_virtual_currency"
35
+ """Earn Virtual Currency event."""
36
+ GENERATE_LEAD: Final = "generate_lead"
37
+ """Generate Lead event."""
38
+ IN_APP_PURCHASE: Final = "in_app_purchase"
39
+ """In-App Purchase event."""
40
+ JOIN_GROUP: Final = "join_group"
41
+ """Join Group event."""
42
+ LEVEL_END: Final = "level_end"
43
+ """Level End event."""
44
+ LEVEL_START: Final = "level_start"
45
+ """Level Start event."""
46
+ LEVEL_UP: Final = "level_up"
47
+ """Level Up event."""
48
+ LOGIN: Final = "login"
49
+ """Login event."""
50
+ POST_SCORE: Final = "post_score"
51
+ """Post Score event."""
52
+ PURCHASE: Final = "purchase"
53
+ """E-Commerce Purchase event."""
54
+ REFUND: Final = "refund"
55
+ """E-Commerce Refund event."""
56
+ REMOVE_FROM_CART: Final = "remove_from_cart"
57
+ """E-Commerce Remove from Cart event."""
58
+ SCREEN_VIEW: Final = "screen_view"
59
+ """Screen View event."""
60
+ SEARCH: Final = "search"
61
+ """Search event."""
62
+ SELECT_CONTENT: Final = "select_content"
63
+ """Select Content event."""
64
+ SELECT_ITEM: Final = "select_item"
65
+ """Select Item event."""
66
+ SELECT_PROMOTION: Final = "select_promotion"
67
+ """Select promotion event."""
68
+ SHARE: Final = "share"
69
+ """Share event."""
70
+ SIGN_UP: Final = "sign_up"
71
+ """Sign Up event."""
72
+ SPEND_VIRTUAL_CURRENCY: Final = "spend_virtual_currency"
73
+ """Spend Virtual Currency event."""
74
+ TUTORIAL_BEGIN: Final = "tutorial_begin"
75
+ """Tutorial Begin event."""
76
+ TUTORIAL_COMPLETE: Final = "tutorial_complete"
77
+ """Tutorial End event."""
78
+ UNLOCK_ACHIEVEMENT: Final = "unlock_achievement"
79
+ """Unlock Achievement event."""
80
+ VIEW_CART: Final = "view_cart"
81
+ """E-commerce View Cart event."""
82
+ VIEW_ITEM: Final = "view_item"
83
+ """View Item event."""
84
+ VIEW_ITEM_LIST: Final = "view_item_list"
85
+ """View Item List event."""
86
+ VIEW_PROMOTION: Final = "view_promotion"
87
+ """View Promotion event."""
88
+ VIEW_SEARCH_RESULTS: Final = "view_search_results"
89
+ """View Search Results event."""
90
+
91
+
92
+ class Param:
93
+ """Event parameter names Google Analytics understands (``FIRParameterNames.h``)."""
94
+
95
+ ACHIEVEMENT_ID: Final = "achievement_id"
96
+ """Game achievement ID (String)."""
97
+ AD_FORMAT: Final = "ad_format"
98
+ """The ad format (e.g."""
99
+ AD_NETWORK_CLICK_ID: Final = "aclid"
100
+ """Ad Network Click ID (String)."""
101
+ AD_PLATFORM: Final = "ad_platform"
102
+ """The ad platform (e.g."""
103
+ AD_SOURCE: Final = "ad_source"
104
+ """The ad source (e.g."""
105
+ AD_UNIT_NAME: Final = "ad_unit_name"
106
+ """The ad unit name (e.g."""
107
+ AFFILIATION: Final = "affiliation"
108
+ """A product affiliation to designate a supplying company or brick and mortar store location (String)."""
109
+ CP1: Final = "cp1"
110
+ """Campaign custom parameter (String)."""
111
+ CAMPAIGN: Final = "campaign"
112
+ """The individual campaign name, slogan, promo code, etc."""
113
+ CAMPAIGN_ID: Final = "campaign_id"
114
+ """Campaign ID (String)."""
115
+ CHARACTER: Final = "character"
116
+ """Character used in game (String)."""
117
+ CONTENT: Final = "content"
118
+ """Campaign content (String)."""
119
+ CONTENT_TYPE: Final = "content_type"
120
+ """Type of content selected (String)."""
121
+ COUPON: Final = "coupon"
122
+ """Coupon code used for a purchase (String)."""
123
+ CREATIVE_FORMAT: Final = "creative_format"
124
+ """Creative Format (String)."""
125
+ CREATIVE_NAME: Final = "creative_name"
126
+ """The name of a creative used in a promotional spot (String)."""
127
+ CREATIVE_SLOT: Final = "creative_slot"
128
+ """The name of a creative slot (String)."""
129
+ CURRENCY: Final = "currency"
130
+ """Currency of the purchase or items associated with the event, in 3-letter <a href='http://en.wikipedia.org/wiki/ISO_4217#Active_codes'> ISO_4217</a> format (String)."""
131
+ DESTINATION: Final = "destination"
132
+ """Flight or Travel destination (String)."""
133
+ DISCOUNT: Final = "discount"
134
+ """Monetary value of discount associated with a purchase (Double)."""
135
+ END_DATE: Final = "end_date"
136
+ """The arrival date, check-out date or rental end date for the item."""
137
+ EXTEND_SESSION: Final = "extend_session"
138
+ """Indicates that the associated event should either extend the current session or start a new session if no session was active when the event was logged."""
139
+ FLIGHT_NUMBER: Final = "flight_number"
140
+ """Flight number for travel events (String)."""
141
+ FREE_TRIAL: Final = "free_trial"
142
+ """Indicates if the user is on a free trial of a subscription."""
143
+ GROUP_ID: Final = "group_id"
144
+ """Group/clan/guild ID (String)."""
145
+ INDEX: Final = "index"
146
+ """The index of the item in a list (Int)."""
147
+ ITEM_BRAND: Final = "item_brand"
148
+ """Item brand (String)."""
149
+ ITEM_CATEGORY: Final = "item_category"
150
+ """Item category (context-specific) (String)."""
151
+ ITEM_CATEGORY2: Final = "item_category2"
152
+ """Item Category (context-specific) (String)."""
153
+ ITEM_CATEGORY3: Final = "item_category3"
154
+ """Item Category (context-specific) (String)."""
155
+ ITEM_CATEGORY4: Final = "item_category4"
156
+ """Item Category (context-specific) (String)."""
157
+ ITEM_CATEGORY5: Final = "item_category5"
158
+ """Item Category (context-specific) (String)."""
159
+ ITEM_ID: Final = "item_id"
160
+ """Item ID (context-specific) (String)."""
161
+ ITEM_LIST_ID: Final = "item_list_id"
162
+ """The ID of the list in which the item was presented to the user (String)."""
163
+ ITEM_LIST_NAME: Final = "item_list_name"
164
+ """The name of the list in which the item was presented to the user (String)."""
165
+ ITEM_NAME: Final = "item_name"
166
+ """Item Name (context-specific) (String)."""
167
+ ITEM_VARIANT: Final = "item_variant"
168
+ """Item variant (String)."""
169
+ ITEMS: Final = "items"
170
+ """The list of items involved in the transaction expressed as `[[String: Any]]`."""
171
+ LEVEL: Final = "level"
172
+ """Level in game (Int)."""
173
+ LEVEL_NAME: Final = "level_name"
174
+ """The name of a level in a game (String)."""
175
+ LOCATION: Final = "location"
176
+ """Location (String)."""
177
+ LOCATION_ID: Final = "location_id"
178
+ """The location associated with the event."""
179
+ MARKETING_TACTIC: Final = "marketing_tactic"
180
+ """Marketing Tactic (String)."""
181
+ MEDIUM: Final = "medium"
182
+ """The advertising or marketing medium, for example: cpc, banner, email, push."""
183
+ METHOD: Final = "method"
184
+ """A particular approach used in an operation; for example, 'facebook' or 'email' in the context of a sign_up or login event."""
185
+ NUMBER_OF_NIGHTS: Final = "number_of_nights"
186
+ """Number of nights staying at hotel (Int)."""
187
+ NUMBER_OF_PASSENGERS: Final = "number_of_passengers"
188
+ """Number of passengers traveling (Int)."""
189
+ NUMBER_OF_ROOMS: Final = "number_of_rooms"
190
+ """Number of rooms for travel events (Int)."""
191
+ ORIGIN: Final = "origin"
192
+ """Flight or Travel origin (String)."""
193
+ PAYMENT_TYPE: Final = "payment_type"
194
+ """The chosen method of payment (String)."""
195
+ PRICE: Final = "price"
196
+ """Purchase price (Double)."""
197
+ PRICE_IS_DISCOUNTED: Final = "price_is_discounted"
198
+ """Indicates if an item's price is discounted."""
199
+ PRODUCT_ID: Final = "product_id"
200
+ """The ID of a product (String)."""
201
+ PRODUCT_NAME: Final = "product_name"
202
+ """The name of a product (String)."""
203
+ PROMOTION_ID: Final = "promotion_id"
204
+ """The ID of a product promotion (String)."""
205
+ PROMOTION_NAME: Final = "promotion_name"
206
+ """The name of a product promotion (String)."""
207
+ QUANTITY: Final = "quantity"
208
+ """Purchase quantity (Int)."""
209
+ SCORE: Final = "score"
210
+ """Score in game (Int)."""
211
+ SCREEN_CLASS: Final = "screen_class"
212
+ """Current screen class, such as the class name of the UIViewController, logged with screen_view event and added to every event (String)."""
213
+ SCREEN_NAME: Final = "screen_name"
214
+ """Current screen name, such as the name of the UIViewController, logged with screen_view event and added to every event (String)."""
215
+ SEARCH_TERM: Final = "search_term"
216
+ """The search string/keywords used (String)."""
217
+ SHIPPING: Final = "shipping"
218
+ """Shipping cost associated with a transaction (Double)."""
219
+ SHIPPING_TIER: Final = "shipping_tier"
220
+ """The shipping tier (e.g."""
221
+ SOURCE: Final = "source"
222
+ """The origin of your traffic, such as an Ad network (for example, google) or partner (urban airship)."""
223
+ SOURCE_PLATFORM: Final = "source_platform"
224
+ """Source Platform (String)."""
225
+ START_DATE: Final = "start_date"
226
+ """The departure date, check-in date or rental start date for the item."""
227
+ SUBSCRIPTION: Final = "subscription"
228
+ """Indicates if the purchase is a subscription."""
229
+ SUCCESS: Final = "success"
230
+ """The result of an operation."""
231
+ TAX: Final = "tax"
232
+ """Tax cost associated with a transaction (Double)."""
233
+ TERM: Final = "term"
234
+ """If you're manually tagging keyword campaigns, you should use utm_term to specify the keyword (String)."""
235
+ TRANSACTION_ID: Final = "transaction_id"
236
+ """The unique identifier of a transaction (String)."""
237
+ TRAVEL_CLASS: Final = "travel_class"
238
+ """Travel class (String)."""
239
+ VALUE: Final = "value"
240
+ """A context-specific numeric value which is accumulated automatically for each event type."""
241
+ VIRTUAL_CURRENCY_NAME: Final = "virtual_currency_name"
242
+ """Name of virtual currency type (String)."""
243
+
244
+
245
+ class UserProperty:
246
+ """User property names Google Analytics understands (``FIRUserPropertyNames.h``)."""
247
+
248
+ ALLOW_AD_PERSONALIZATION_SIGNALS: Final = "allow_personalized_ads"
249
+ """Indicates whether events logged by Google Analytics can be used to personalize ads for the user."""
250
+ SIGN_UP_METHOD: Final = "sign_up_method"
251
+ """The method used to sign in."""