talentro-commons 0.19.5__py3-none-any.whl → 0.19.9__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.
@@ -109,7 +109,7 @@ class AdInfo(ResolvableCompanyModel):
109
109
 
110
110
  name: str
111
111
  external_id: Optional[str]
112
- status: AdStatus
112
+ status: str
113
113
  primary_text: str
114
114
  title: str
115
115
  description: Optional[str]
@@ -147,7 +147,7 @@ class AdInfo(ResolvableCompanyModel):
147
147
 
148
148
  name=model.name,
149
149
  external_id=model.external_id,
150
- status=model.status,
150
+ status=model.status.value,
151
151
  primary_text=model.primary_text,
152
152
  title=model.title,
153
153
  description=model.description,
@@ -65,6 +65,7 @@ class IntegrationConfig(BaseModel):
65
65
  description: str | None
66
66
  code_reference: str
67
67
  setup_config: dict
68
+ external_settings: dict
68
69
  order: int
69
70
 
70
71
  @classmethod
@@ -152,6 +153,7 @@ class SourceData(BaseModel):
152
153
  applied_on: datetime
153
154
  event_id: Optional[str] = None
154
155
  campaign_id: Optional[str] = None
156
+ ad_id: Optional[str] = None
155
157
 
156
158
 
157
159
  class ApplicationDetails(BaseModel):
@@ -33,6 +33,7 @@ class Integration(IntegrationsModel, table=True):
33
33
  description: str = Field(index=True, nullable=True)
34
34
  code_reference: str = Field(index=True)
35
35
  setup_config: dict = Field(sa_column=Column(JSON))
36
+ external_settings: dict = Field(sa_column=Column(JSON), default_factory=dict)
36
37
  order: int = Field(default=0)
37
38
 
38
39
 
@@ -79,8 +79,9 @@ def cache_response(namespace: str, include_keys: List[str] = list, ttl: int = 30
79
79
  response = await func(*args, **kwargs)
80
80
 
81
81
  try:
82
- # Store the response in Redis with a TTL
83
- await cache.set(cache_key, response, ttl=ttl)
82
+ if response is not None:
83
+ # Store the response in Redis with a TTL
84
+ await cache.set(cache_key, response, ttl=ttl)
84
85
  except Exception as e:
85
86
  print(f"Error caching data: {e}")
86
87
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: talentro-commons
3
- Version: 0.19.5
3
+ Version: 0.19.9
4
4
  Summary: This package contains all globally used code, services, models and data structures for Talentro
5
5
  License: Proprietary
6
6
  Author: Emiel van Essen
@@ -1,6 +1,6 @@
1
1
  talentro/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
2
  talentro/acquisition/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
- talentro/acquisition/dataclasses.py,sha256=hEiAlRc10Fk1RezJPuP7fWGk5ZhwCkHqiQI1-rJJTdA,4882
3
+ talentro/acquisition/dataclasses.py,sha256=GTMR1K-fVBMN1phfWREB_HgybKTcNoiNtT5JdXP0OZU,4883
4
4
  talentro/acquisition/models.py,sha256=4gUvspqV-JBoz5cwkSGYZlJrQQ4ctRchYwGcVE960Og,4028
5
5
  talentro/billing/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
6
  talentro/billing/dataclasses.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -19,11 +19,11 @@ talentro/iam/dataclasses.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
19
19
  talentro/iam/models.py,sha256=NPoa2-3YmEqMi9xxKl79Ab3tPX3CuIAo7Ic95Y2tzUY,722
20
20
  talentro/iam/types.py,sha256=xJjujucc_MJitwPSB3QVFR4c5YZXJLM5cS-ym6rv_dU,206
21
21
  talentro/integrations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
22
- talentro/integrations/dataclasses.py,sha256=hkvrK7NfrRNKfXcps_dE5PmZDh5RqtUYY9BOmgf6OPo,4422
23
- talentro/integrations/models.py,sha256=yhaJWYVTwPUTqqzhpUHtWQHyUYq9aCG9pyQRG2TN3Y0,1210
22
+ talentro/integrations/dataclasses.py,sha256=FxYbtglKvp_BAufQSCw-IO3wraJUuMvoKZnwJMd5W6w,4482
23
+ talentro/integrations/models.py,sha256=iNgmAahbonQj2EVd1776xcYzv-1mtAkzGvgDdbjocjo,1292
24
24
  talentro/services/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
25
25
  talentro/services/billing.py,sha256=Y2UaQK8lSRa3G8lTZKqLi4t-Jc-EWd7Yn15nR9HOAx8,2000
26
- talentro/services/caching.py,sha256=ZVXE2mcVAX0gTgcj17Ctiu4SUAyRS1a9JT9kwOgnCqs,2872
26
+ talentro/services/caching.py,sha256=mmjhXAMJ_g8D8cJqn15YqZ7ST-G5lD9MS-PmlowI7pU,2921
27
27
  talentro/services/clients.py,sha256=vluOrdYdDAQLyGR9-EmogLjA9OUlJtHy0tYD9LhwxKg,2174
28
28
  talentro/services/db.py,sha256=cnKCrYG7GwIu7ZZhA25D-yaXaiCJqPpzfcanWquyrBY,822
29
29
  talentro/services/google_storage.py,sha256=p7fX9u8rWLS0DHcw-4aYVJAqkA_RYkDgEBGH6zmpzdA,4835
@@ -39,6 +39,6 @@ talentro/vacancies/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuF
39
39
  talentro/vacancies/dataclasses.py,sha256=E6H5fsZH4IwtBFSLDolzF6u39tEIrANtWiNVoB65P0c,15074
40
40
  talentro/vacancies/models.py,sha256=GoXr71CNzU6csf8gdmv84etb3Rm-Cdfigp1yqPI_jjQ,4822
41
41
  talentro/vacancies/taxanomy.py,sha256=K3f0yD5g-oxhLXSYNY4WSsGzBfBIb6ngsTDVNGbqO30,6324
42
- talentro_commons-0.19.5.dist-info/METADATA,sha256=fd6UfJLEYRnH2kEL2LIR5VkqVNA8V9fXshvzO6TmG5E,1507
43
- talentro_commons-0.19.5.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
44
- talentro_commons-0.19.5.dist-info/RECORD,,
42
+ talentro_commons-0.19.9.dist-info/METADATA,sha256=SaULkE38ZGSyPMutptjhRGCpQf4yL-WZmVi_Q0yCW40,1507
43
+ talentro_commons-0.19.9.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
44
+ talentro_commons-0.19.9.dist-info/RECORD,,