talentro-commons 0.20.0__py3-none-any.whl → 0.20.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.
@@ -1,16 +1,13 @@
1
+ from pydantic import BaseModel
1
2
  from datetime import datetime
2
3
  from typing import Optional
3
4
  from uuid import UUID
4
5
 
5
- from pydantic import BaseModel
6
-
7
- from .models import CampaignStatus
8
- from ..acquisition.models import ChannelType, CampaignGoal, Campaign as CampaignModel, Ad as AdModel, AdStatus
6
+ from ..acquisition.models import ChannelType, CampaignGoal, Campaign as CampaignModel, Ad as AdModel
9
7
  from ..general.dataclasses import ResolvableCompanyModel
10
8
  from ..integrations.dataclasses import LinkInfo
11
9
  from ..services.caching import CacheService
12
10
  from ..services.clients import MSClient
13
- from ..util.enum import to_enum
14
11
  from ..vacancies.dataclasses import FeedInfo
15
12
 
16
13
 
@@ -64,7 +61,7 @@ class CampaignInfo(ResolvableCompanyModel):
64
61
  organization=model.organization,
65
62
  name=model.name,
66
63
  external_id=model.external_id,
67
- status=to_enum(CampaignStatus, model.status),
64
+ status=model.status,
68
65
  last_sync_date=model.last_sync_date,
69
66
  ad_count=model.ad_count,
70
67
  auto_sync=model.auto_sync,
@@ -150,7 +147,7 @@ class AdInfo(ResolvableCompanyModel):
150
147
 
151
148
  name=model.name,
152
149
  external_id=model.external_id,
153
- status=model.status.value,
150
+ status=model.status,
154
151
  primary_text=model.primary_text,
155
152
  title=model.title,
156
153
  description=model.description,
@@ -203,6 +203,7 @@ class ExternalLinkInfo(BaseModel):
203
203
 
204
204
  link: Optional[LinkInfo]
205
205
  external_id: Optional[str]
206
+ external_url: Optional[str]
206
207
  status: str
207
208
  application_id: UUID
208
209
 
@@ -222,5 +223,6 @@ class ExternalLinkInfo(BaseModel):
222
223
  link=link,
223
224
  status=model.status,
224
225
  external_id=model.external_id,
226
+ external_url=model.external_url,
225
227
  application_id=model.application_id,
226
228
  )
@@ -42,6 +42,7 @@ class Candidate(CandidatesOrganizationModel, table=True):
42
42
  class ExternalLink(CandidatesOrganizationModel, table=True):
43
43
  link_id: Optional[UUID] = Field(index=True, nullable=True)
44
44
  external_id: Optional[str] = Field(index=True, nullable=True)
45
+ external_url: Optional[str] = Field(index=True, nullable=True)
45
46
  status: str = Field(index=True)
46
47
 
47
48
  application_id: UUID = Field(foreign_key="application.id", ondelete="CASCADE", index=True)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: talentro-commons
3
- Version: 0.20.0
3
+ Version: 0.20.2
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,13 +1,13 @@
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=5NoDPCyRLDmj16Mz8O11osjAWVVp3BeUZnzwg51lZ6g,5010
3
+ talentro/acquisition/dataclasses.py,sha256=j0yL7hXeExVUyxJB9NWQxi7WvLJ4qj2_PYVFmD_jYAM,4901
4
4
  talentro/acquisition/models.py,sha256=LxD_UPKFoeylRzr4X4h6AhwIJREw4Ie8Gk9slrbFsw0,3545
5
5
  talentro/billing/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
6
  talentro/billing/dataclasses.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
7
7
  talentro/billing/models.py,sha256=rbmcJh-FcU5I3oFRhnD413YqIade1nxvqvksvEtCvMs,825
8
8
  talentro/candidates/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
9
- talentro/candidates/dataclasses.py,sha256=YHN7qRx1TXgH-zcwkQDB5Ai8saeNSQlNrLvLSKajHoU,6619
10
- talentro/candidates/models.py,sha256=K4MH42ADd_L8i4jBAC35HZFZaHSvIFXS9N8k79CQ7h8,2885
9
+ talentro/candidates/dataclasses.py,sha256=oDlI9-Pv4XAXdJ6aWW42o6mbOGGTSiyOKZy9wE0EbQ0,6696
10
+ talentro/candidates/models.py,sha256=2FktzPjsL8YJw4JTazzby5Q4LX5UdAutaSigIXpJJmc,2952
11
11
  talentro/constants.py,sha256=08CuJ1qVbgi4IDZThw7CQt_D65jGwekGrkMEg8eDGZo,861
12
12
  talentro/event.py,sha256=Xie-nosLwEpg35Hir9yCKtJBXM-_R4O1fyknOtG_6IY,4595
13
13
  talentro/exceptions.py,sha256=-0i7G0-IF3PeWKBMMQ6eq2Hb-Q3OHt-cCqVgxPiWiiQ,1226
@@ -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=B6DMq9Wbs0aXFwD9aZveSlLwAC9eq1iCO_KM-FmrV7M,6384
42
- talentro_commons-0.20.0.dist-info/METADATA,sha256=tlN4XghcKTKAgPvgrzxWOYg2rbj0hOOhvE2WZDfD1TM,1507
43
- talentro_commons-0.20.0.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
44
- talentro_commons-0.20.0.dist-info/RECORD,,
42
+ talentro_commons-0.20.2.dist-info/METADATA,sha256=_4ar6E1DpSvDmlq1o2POoA6LchCfLn2Lot3S1VOZH7k,1507
43
+ talentro_commons-0.20.2.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
44
+ talentro_commons-0.20.2.dist-info/RECORD,,