ipulse-shared-core-ftredge 7.1.1__py3-none-any.whl → 8.1.1__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.
Potentially problematic release.
This version of ipulse-shared-core-ftredge might be problematic. Click here for more details.
- ipulse_shared_core_ftredge/__init__.py +1 -1
- ipulse_shared_core_ftredge/dependencies/authz_for_apis.py +10 -2
- ipulse_shared_core_ftredge/dependencies/firestore_client.py +1 -1
- ipulse_shared_core_ftredge/models/__init__.py +1 -1
- ipulse_shared_core_ftredge/models/base_data_model.py +6 -6
- ipulse_shared_core_ftredge/models/organization_profile.py +4 -4
- ipulse_shared_core_ftredge/models/subscription.py +140 -21
- ipulse_shared_core_ftredge/models/user_profile.py +75 -46
- ipulse_shared_core_ftredge/models/user_status.py +517 -48
- ipulse_shared_core_ftredge/services/base_firestore_service.py +10 -10
- {ipulse_shared_core_ftredge-7.1.1.dist-info → ipulse_shared_core_ftredge-8.1.1.dist-info}/METADATA +3 -2
- {ipulse_shared_core_ftredge-7.1.1.dist-info → ipulse_shared_core_ftredge-8.1.1.dist-info}/RECORD +15 -16
- {ipulse_shared_core_ftredge-7.1.1.dist-info → ipulse_shared_core_ftredge-8.1.1.dist-info}/WHEEL +1 -1
- ipulse_shared_core_ftredge/models/resource_catalog_item.py +0 -115
- {ipulse_shared_core_ftredge-7.1.1.dist-info → ipulse_shared_core_ftredge-8.1.1.dist-info/licenses}/LICENCE +0 -0
- {ipulse_shared_core_ftredge-7.1.1.dist-info → ipulse_shared_core_ftredge-8.1.1.dist-info}/top_level.txt +0 -0
{ipulse_shared_core_ftredge-7.1.1.dist-info → ipulse_shared_core_ftredge-8.1.1.dist-info}/RECORD
RENAMED
|
@@ -1,28 +1,27 @@
|
|
|
1
|
-
ipulse_shared_core_ftredge/__init__.py,sha256=
|
|
1
|
+
ipulse_shared_core_ftredge/__init__.py,sha256=Hq78Uo7vzYi8S0emftXjJ5SUZXzxsqKjLAf8Lr79b0I,474
|
|
2
2
|
ipulse_shared_core_ftredge/dependencies/__init__.py,sha256=HGsR8HUguKTfjz_BorCILS4izX8CAjG-apE0kIPE0Yo,68
|
|
3
3
|
ipulse_shared_core_ftredge/dependencies/auth_firebase_token_validation.py,sha256=EFWyhoVOI0tGYOWqN5St4JNIy4cMwpxeBhKdjOwEfbg,1888
|
|
4
4
|
ipulse_shared_core_ftredge/dependencies/auth_protected_router.py,sha256=em5D5tE7OkgZmuCtYCKuUAnIZCgRJhCF8Ye5QmtGWlk,1807
|
|
5
|
-
ipulse_shared_core_ftredge/dependencies/authz_for_apis.py,sha256=
|
|
6
|
-
ipulse_shared_core_ftredge/dependencies/firestore_client.py,sha256=
|
|
7
|
-
ipulse_shared_core_ftredge/models/__init__.py,sha256
|
|
5
|
+
ipulse_shared_core_ftredge/dependencies/authz_for_apis.py,sha256=UqP8mW1XreCrIKAFSoDpLka4gruT0kNa0ynH08wk7mE,10578
|
|
6
|
+
ipulse_shared_core_ftredge/dependencies/firestore_client.py,sha256=VbTb121nsc9EZPd1RDEsHBLW5pIiVw6Wdo2JFL4afMg,714
|
|
7
|
+
ipulse_shared_core_ftredge/models/__init__.py,sha256=cf2P65BXRQoOrcuvlbmT6yW50U7wyj8ZNvHTuTvlETo,344
|
|
8
8
|
ipulse_shared_core_ftredge/models/base_api_response.py,sha256=nH2xhofRzizayod0IuYma8WilFQ_Qgt-fFSU2XugJjA,1049
|
|
9
|
-
ipulse_shared_core_ftredge/models/base_data_model.py,sha256=
|
|
10
|
-
ipulse_shared_core_ftredge/models/organization_profile.py,sha256=
|
|
11
|
-
ipulse_shared_core_ftredge/models/
|
|
12
|
-
ipulse_shared_core_ftredge/models/subscription.py,sha256=pd8YQ_i5imhi8T6j2R0ZlmYIZcGOTA-sd3Cl23-jwQQ,2118
|
|
9
|
+
ipulse_shared_core_ftredge/models/base_data_model.py,sha256=SMyU794JFUJz04q6dZYvkT36DMl1GX0audJoN7igHM0,1450
|
|
10
|
+
ipulse_shared_core_ftredge/models/organization_profile.py,sha256=OnjsSVcp_LSB65F9Tl9udwNgqMg7gjSpv38eArpVXPc,3668
|
|
11
|
+
ipulse_shared_core_ftredge/models/subscription.py,sha256=HUbODMv18zdGC6qqNBEUpXfTN7wO2UnSiFXZlcl5TJM,6789
|
|
13
12
|
ipulse_shared_core_ftredge/models/user_auth.py,sha256=YgCeK0uJ-JOkPavwzogl4wGC3RpA8PVfl-5MPS4Kxhk,432
|
|
14
|
-
ipulse_shared_core_ftredge/models/user_profile.py,sha256
|
|
13
|
+
ipulse_shared_core_ftredge/models/user_profile.py,sha256=-q6eDOUxTQJO_wc6GH6RyVxhg8wGIElbqXTa1NL-hb4,4143
|
|
15
14
|
ipulse_shared_core_ftredge/models/user_profile_update.py,sha256=3BqAAqnVKXPKhAcfV_aOERe8GyIkX0NU_LJcQa02aLw,1319
|
|
16
|
-
ipulse_shared_core_ftredge/models/user_status.py,sha256
|
|
15
|
+
ipulse_shared_core_ftredge/models/user_status.py,sha256=-W4FAG4EPLOh8bGyCk4C-NEUlrUP8CDE0eQXwOsCk3c,23214
|
|
17
16
|
ipulse_shared_core_ftredge/services/__init__.py,sha256=Ji9AhDy1HVwcJjYMdyfggerxa0b8e78JAnCQ-o-_sSA,304
|
|
18
|
-
ipulse_shared_core_ftredge/services/base_firestore_service.py,sha256=
|
|
17
|
+
ipulse_shared_core_ftredge/services/base_firestore_service.py,sha256=VtJ7iffCFR4hpGHf987fH0LiprPtHWAb7KlYsARZ0Ik,6570
|
|
19
18
|
ipulse_shared_core_ftredge/services/base_service_exceptions.py,sha256=Bi0neeMY0YncWDeqUavu5JUslkjJ6QcDVRU32Ipjc08,4294
|
|
20
19
|
ipulse_shared_core_ftredge/services/fastapiservicemon.py,sha256=27clTZXH32mbju8o-HLO_8VrmugmpXwHLuX-OOoIAew,5308
|
|
21
20
|
ipulse_shared_core_ftredge/services/servicemon.py,sha256=wWhsLwU1_07emaEyCNziZA1bDQVLxcfvQj0OseTLSTI,7969
|
|
22
21
|
ipulse_shared_core_ftredge/utils/__init__.py,sha256=TeiidwpuZ2YTVOYBd2kUS2iG6UxZcV99Do38enLL2RU,43
|
|
23
22
|
ipulse_shared_core_ftredge/utils/json_encoder.py,sha256=gBX6npueUyeOq1BSLs6s0SpqsCwelzJKxUOUzHnNZmE,540
|
|
24
|
-
ipulse_shared_core_ftredge-
|
|
25
|
-
ipulse_shared_core_ftredge-
|
|
26
|
-
ipulse_shared_core_ftredge-
|
|
27
|
-
ipulse_shared_core_ftredge-
|
|
28
|
-
ipulse_shared_core_ftredge-
|
|
23
|
+
ipulse_shared_core_ftredge-8.1.1.dist-info/licenses/LICENCE,sha256=YBtYAXNqCCOo9Mr2hfkbSPAM9CeAr2j1VZBSwQTrNwE,1060
|
|
24
|
+
ipulse_shared_core_ftredge-8.1.1.dist-info/METADATA,sha256=vCb73O_7ymJ6sWpS_GZIflcki3NwXZr-OydKxl4rp10,802
|
|
25
|
+
ipulse_shared_core_ftredge-8.1.1.dist-info/WHEEL,sha256=7ciDxtlje1X8OhobNuGgi1t-ACdFSelPnSmDPrtlobY,91
|
|
26
|
+
ipulse_shared_core_ftredge-8.1.1.dist-info/top_level.txt,sha256=8sgYrptpexkA_6_HyGvho26cVFH9kmtGvaK8tHbsGHk,27
|
|
27
|
+
ipulse_shared_core_ftredge-8.1.1.dist-info/RECORD,,
|
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
# import uuid
|
|
2
|
-
# from datetime import datetime
|
|
3
|
-
# from pydantic import BaseModel, validator, ValidationError
|
|
4
|
-
# from typing import Dict, Any, Set, Optional
|
|
5
|
-
|
|
6
|
-
# import dateutil.parser
|
|
7
|
-
|
|
8
|
-
# CLASS_VERSION = 1.0
|
|
9
|
-
# CLASS_REF = "resdes"
|
|
10
|
-
# MODULE = "core"
|
|
11
|
-
|
|
12
|
-
# class ResourceCatalogItem(BaseModel):
|
|
13
|
-
|
|
14
|
-
# resr_puid_or_name: str #Ex: username
|
|
15
|
-
# resr_path: str #Ex: ipulse-401013/cloud/firesotre/Users/{user_uid}/username
|
|
16
|
-
# resr_name: str #Ex: username
|
|
17
|
-
# resr_pulse_module: str #Ex: core
|
|
18
|
-
# resr_type: str
|
|
19
|
-
# resr_classifications: Set[str]
|
|
20
|
-
# resr_contents:Set[str]
|
|
21
|
-
# resr_original_or_processed: str
|
|
22
|
-
# resr_origin: str
|
|
23
|
-
# resr_origin_organizations_uids: Set[str]
|
|
24
|
-
# resr_origin_description: str
|
|
25
|
-
# resr_licences_types: Set[str]
|
|
26
|
-
# resr_description_details: str
|
|
27
|
-
# resr_updtbl_by_non_staff: bool
|
|
28
|
-
# resr_creat_by_user_uid: str
|
|
29
|
-
# resr_creat_date: datetime
|
|
30
|
-
# class_version:float = CLASS_VERSION
|
|
31
|
-
# resr_columns_count: int
|
|
32
|
-
# resr_columns: Optional[Dict[Any, Any]] = None #OPTIONAL
|
|
33
|
-
# resr_structure_version: Optional[str]=None # OPTIONAL
|
|
34
|
-
# resr_structure_updt_date: Optional[str]=None #OPTIONAL
|
|
35
|
-
# resr_structure_updt_by_user_uid: Optional[str]=None # OPTIONAL
|
|
36
|
-
# resr_tags: Optional[Dict[Any, Any]] = None #OPTIONAL
|
|
37
|
-
# resr_content_updt_date: Optional[str]=None #OPTIONAL
|
|
38
|
-
# resr_content_updt_by_user_uid: Optional[str]=None # OPTIONAL
|
|
39
|
-
# puid: Optional[str] = None #TO BE SETUP BY Validator
|
|
40
|
-
# metadata_version: Optional[float] = None #TO BE SETUP BY Validator
|
|
41
|
-
# metadata_creat_date: Optional[datetime] = None #TO BE SETUP BY Management Service
|
|
42
|
-
# metadata_creat_by: Optional[str] = None #TO BE SETUP BY Management Service
|
|
43
|
-
# metadata_updt_date: Optional[datetime] = None #TO BE SETUP BY Management Service
|
|
44
|
-
# metadata_updt_by: Optional[str] = None #TO BE SETUP BY Management Service
|
|
45
|
-
|
|
46
|
-
# @validator('puid', pre=True, always=True)
|
|
47
|
-
# def set_puid(cls, puid, values):
|
|
48
|
-
# if puid is None:
|
|
49
|
-
# return f"{datetime.utcnow().strftime('%Y%m%d%H%M')}{uuid.uuid4().hex[:8]}_{MODULE}{CLASS_REF}".lower()
|
|
50
|
-
# return puid
|
|
51
|
-
|
|
52
|
-
# @validator('metadata_version', pre=True, always=True)
|
|
53
|
-
# def set_metadata_version(cls, metadata_version, values):
|
|
54
|
-
# if metadata_version is None:
|
|
55
|
-
# return 1.0
|
|
56
|
-
# else:
|
|
57
|
-
# return metadata_version + 0.1
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
# @validator('resr_pulse_module', pre=True, always=True)
|
|
61
|
-
# def validate_resr_pulse_module(cls, resr_pulse_modules):
|
|
62
|
-
# if resr_pulse_modules not in enums.pulse_modules:
|
|
63
|
-
# raise ValueError("Invalid pulse_modules values provided.")
|
|
64
|
-
# return resr_pulse_modules
|
|
65
|
-
|
|
66
|
-
# @validator('resr_type', pre=True, always=True)
|
|
67
|
-
# def validate_resr_type(cls, resr_type):
|
|
68
|
-
# if resr_type not in enums.resource_types:
|
|
69
|
-
# raise ValueError("Invalid resource_types value provided.")
|
|
70
|
-
# return resr_type
|
|
71
|
-
|
|
72
|
-
# @validator('resr_classifications', pre=True, always=True)
|
|
73
|
-
# def validate_resr_classifications(cls, resr_classifications):
|
|
74
|
-
# if not resr_classifications.issubset(enums.resource_classifications):
|
|
75
|
-
# raise ValueError("Invalid resr_classifications values provided.")
|
|
76
|
-
# return resr_classifications
|
|
77
|
-
|
|
78
|
-
# @validator('resr_contents', pre=True, always=True)
|
|
79
|
-
# def validate_resr_contents(cls, resr_contents):
|
|
80
|
-
# if not resr_contents.issubset(enums.resource_contents):
|
|
81
|
-
# raise ValueError("Invalid resr_contents values provided.")
|
|
82
|
-
# return resr_contents
|
|
83
|
-
|
|
84
|
-
# @validator('resr_original_or_processed', pre=True, always=True)
|
|
85
|
-
# def validate_resr_original_or_processed(cls, resr_original_or_processed):
|
|
86
|
-
# if resr_original_or_processed not in enums.resource_original_or_processed:
|
|
87
|
-
# raise ValueError("Invalid resr_original_or_processed value provided.")
|
|
88
|
-
# return resr_original_or_processed
|
|
89
|
-
|
|
90
|
-
# @validator('resr_origin', pre=True, always=True)
|
|
91
|
-
# def validate_resr_origin(cls, resr_origin):
|
|
92
|
-
# if resr_origin not in enums.resource_origins:
|
|
93
|
-
# raise ValueError("Invalid resource_origins value provided.")
|
|
94
|
-
# return resr_origin
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
# @validator('metadata_creat_date', 'metadata_updt_date', pre=True)
|
|
98
|
-
# def parse_date(cls, value):
|
|
99
|
-
# if value is None:
|
|
100
|
-
# return value
|
|
101
|
-
# if isinstance(value, datetime):
|
|
102
|
-
# return value
|
|
103
|
-
# try:
|
|
104
|
-
# # Assuming Firestore returns an ISO 8601 string, adjust if necessary
|
|
105
|
-
# return dateutil.parser.isoparse(value)
|
|
106
|
-
# except (TypeError, ValueError):
|
|
107
|
-
# raise ValidationError(f"Invalid datetime format inside Resource Description: {value}")
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
# @validator('metadata_updt_date', 'metadata_updt_date', pre=True, always=True)
|
|
112
|
-
# def set_default_updt_date(cls, date, values):
|
|
113
|
-
# if date is None:
|
|
114
|
-
# return datetime.utcnow().isoformat()
|
|
115
|
-
# return date
|
|
File without changes
|
|
File without changes
|