ipulse-shared-core-ftredge 27.6.1__py3-none-any.whl → 27.6.2__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.
@@ -358,6 +358,17 @@ class CatalogUserTypeService(BaseFirestoreService[UserType]):
358
358
  limit=1
359
359
  )
360
360
 
361
+ # Fallback to AUTHENTICATED if primary usertype not found (especially for CUSTOMER)
362
+ if not usertypes and primary_usertype == IAMUserType.CUSTOMER:
363
+ self.logger.warning(f"No CUSTOMER usertype found, falling back to AUTHENTICATED for email: {email}")
364
+ usertypes = await self.list_usertypes(
365
+ primary_usertype=IAMUserType.AUTHENTICATED,
366
+ pulse_status=ObjectOverallStatus.ACTIVE,
367
+ latest_version_only=True,
368
+ limit=1
369
+ )
370
+ primary_usertype = IAMUserType.AUTHENTICATED # Update for logging
371
+
361
372
  if not usertypes:
362
373
  from ipulse_shared_core_ftredge.exceptions import ServiceError
363
374
  raise ServiceError(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ipulse_shared_core_ftredge
3
- Version: 27.6.1
3
+ Version: 27.6.2
4
4
  Summary: Shared Core models and Logger util for the Pulse platform project. Using AI for financial advisory and investment management.
5
5
  Home-page: https://github.com/TheFutureEdge/ipulse_shared_core
6
6
  Author: Russlan Ramdowar
@@ -36,7 +36,7 @@ ipulse_shared_core_ftredge/services/base/cache_aware_firestore_service.py,sha256
36
36
  ipulse_shared_core_ftredge/services/base/multi_collection_cache_aware_firestore_service.py,sha256=Ffv8jgMUETMGPK3Hyvi17734fcJ8zT4zHf5w6KSqu3o,10743
37
37
  ipulse_shared_core_ftredge/services/catalog/__init__.py,sha256=ctc2nDGwsW_Ji4lk9pys3oyNwR_V-gHSbSHawym5fKQ,385
38
38
  ipulse_shared_core_ftredge/services/catalog/catalog_subscriptionplan_service.py,sha256=X5xAi9sOk_F1ky0ECwPVlwIPPsN2PrZC6bN_pASGDjQ,9702
39
- ipulse_shared_core_ftredge/services/catalog/catalog_usertype_service.py,sha256=C_VWxZ5iPcybjsSXdmZHyqS--rI3KY8pp7JDIy_L7S8,12833
39
+ ipulse_shared_core_ftredge/services/catalog/catalog_usertype_service.py,sha256=smVlQCeKZBZBOvaTHZKsPfD3UK6tB8GZjGfdiAJ0Xuo,13437
40
40
  ipulse_shared_core_ftredge/services/user/__init__.py,sha256=PDpxTGt6Gn3yJNiU2vvksfJF78-wPsnA5yeTL9SeR1Y,945
41
41
  ipulse_shared_core_ftredge/services/user/user_charging_operations.py,sha256=s4NKV7z35B2bnpmX4-XMWVAL9751xTW-sxIMjBnOvj8,32651
42
42
  ipulse_shared_core_ftredge/services/user/user_core_service.py,sha256=M9H8dU9O21GVVXV400-sLUTPFXWzd-XODXChI59JXmM,32340
@@ -49,8 +49,8 @@ ipulse_shared_core_ftredge/services/user/userstatus_operations.py,sha256=Om9d94c
49
49
  ipulse_shared_core_ftredge/utils/__init__.py,sha256=JnxUb8I2MRjJC7rBPXSrpwBIQDEOku5O9JsiTi3oun8,56
50
50
  ipulse_shared_core_ftredge/utils/custom_json_encoder.py,sha256=DblQLD0KOSNDyQ58wQRogBrShIXzPIZUw_oGOBATnJY,1366
51
51
  ipulse_shared_core_ftredge/utils/json_encoder.py,sha256=QkcaFneVv3-q-s__Dz4OiUWYnM6jgHDJrDMdPv09RCA,2093
52
- ipulse_shared_core_ftredge-27.6.1.dist-info/licenses/LICENCE,sha256=YBtYAXNqCCOo9Mr2hfkbSPAM9CeAr2j1VZBSwQTrNwE,1060
53
- ipulse_shared_core_ftredge-27.6.1.dist-info/METADATA,sha256=udibAOyhvEywPMz3dcZQytGh4QkIBGySWW0R9MH8dwM,782
54
- ipulse_shared_core_ftredge-27.6.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
55
- ipulse_shared_core_ftredge-27.6.1.dist-info/top_level.txt,sha256=8sgYrptpexkA_6_HyGvho26cVFH9kmtGvaK8tHbsGHk,27
56
- ipulse_shared_core_ftredge-27.6.1.dist-info/RECORD,,
52
+ ipulse_shared_core_ftredge-27.6.2.dist-info/licenses/LICENCE,sha256=YBtYAXNqCCOo9Mr2hfkbSPAM9CeAr2j1VZBSwQTrNwE,1060
53
+ ipulse_shared_core_ftredge-27.6.2.dist-info/METADATA,sha256=hFD0y9FH0_T2FdD5W55AjFSTq1Dn89DxkdMYhsbzZAE,782
54
+ ipulse_shared_core_ftredge-27.6.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
55
+ ipulse_shared_core_ftredge-27.6.2.dist-info/top_level.txt,sha256=8sgYrptpexkA_6_HyGvho26cVFH9kmtGvaK8tHbsGHk,27
56
+ ipulse_shared_core_ftredge-27.6.2.dist-info/RECORD,,