organizations-local 0.0.26__py3-none-any.whl → 0.0.28__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.
@@ -183,10 +183,25 @@ class OrganizationsLocal(GenericCRUDML, metaclass=MetaLogger,
183
183
  return test_organization_id
184
184
 
185
185
  # If we add the support of multiple organizations per contact, We will have to fix this method
186
- def get_update_status(self, *, last_modified_timestamp: str, main_profile_id: int) -> UpdateStatus:
186
+ def get_update_status_and_information_list(self, *, last_modified_timestamp: str, main_profile_id: int) -> list[dict]:
187
+ if main_profile_id is None:
188
+ return UpdateStatus.UPDATE_CIRCLEZ
187
189
  sync_conflict_resolution = SyncConflictResolution()
188
- update_status: UpdateStatus = sync_conflict_resolution.get_update_status_by_where(
190
+ update_status_and_information_list: list[dict] = sync_conflict_resolution.get_update_status_and_information_list_by_where(
189
191
  schema_name=DEFAULT_SCHEMA_NAME, view_table_name="organization_profile_view",
190
- where="profile_id = %s", params=(main_profile_id,), select_clause_value="updated_timestamp",
192
+ where="profile_id = %s", params=(main_profile_id,), local_last_modified_column_name="updated_timestamp",
191
193
  remote_last_modified_timestamp=last_modified_timestamp)
192
- return update_status
194
+ return update_status_and_information_list
195
+
196
+
197
+
198
+ def get_organization_name_by_organization_identifier(self, organization_identifier: str) -> str or None:
199
+ organization_name=self.select_one_value_by_column_and_value(
200
+ select_clause_value="name",
201
+ schema_name="organization",
202
+ view_table_name="organization_view",
203
+ column_name="identifier",
204
+ column_value=organization_identifier,
205
+ )
206
+
207
+ return organization_name
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: organizations-local
3
- Version: 0.0.26
3
+ Version: 0.0.28
4
4
  Summary: PyPI Package for Circles organizations-local Python
5
5
  Home-page: https://github.com/circles-zone/organizations-local-python-package
6
6
  Author: Circles
@@ -0,0 +1,7 @@
1
+ organizations_local/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
+ organizations_local/organizations_constants.py,sha256=pxyAMmv4BFCfzyDsF92vImLdazA7_0ecKyVmOR9peEE,900
3
+ organizations_local/organizations_local.py,sha256=TViHrNnCa8y5Q7_xoKBhxrFpiffU-pM2Wn-l3DMYHvs,10891
4
+ organizations_local-0.0.28.dist-info/METADATA,sha256=xLsi0xo4HzHESojPkBI5yCUVzAJhwoW88JF1Pdx4wPY,654
5
+ organizations_local-0.0.28.dist-info/WHEEL,sha256=Z4pYXqR_rTB7OWNDYFOm1qRk0RX6GFP2o8LgvP453Hk,91
6
+ organizations_local-0.0.28.dist-info/top_level.txt,sha256=Y8wRcm3jFTyMdysBub_P8iqX1VOMS0ohUxA1GQdngFU,20
7
+ organizations_local-0.0.28.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (70.2.0)
2
+ Generator: setuptools (70.3.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -1,7 +0,0 @@
1
- organizations_local/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- organizations_local/organizations_constants.py,sha256=pxyAMmv4BFCfzyDsF92vImLdazA7_0ecKyVmOR9peEE,900
3
- organizations_local/organizations_local.py,sha256=MrrHr5l1MSC1xxASIbPiFU3niOHABhHB_NCNMz-abOo,9935
4
- organizations_local-0.0.26.dist-info/METADATA,sha256=g4OH3yyJ43wE0qUTzcqGzbNkfx-QKrNbSHcKx7uH-8k,654
5
- organizations_local-0.0.26.dist-info/WHEEL,sha256=y4mX-SOX4fYIkonsAGA5N0Oy-8_gI4FXw5HNI1xqvWg,91
6
- organizations_local-0.0.26.dist-info/top_level.txt,sha256=Y8wRcm3jFTyMdysBub_P8iqX1VOMS0ohUxA1GQdngFU,20
7
- organizations_local-0.0.26.dist-info/RECORD,,