talentro-commons 0.19.15__py3-none-any.whl → 0.19.17__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.
- talentro/acquisition/dataclasses.py +2 -0
- talentro/acquisition/models.py +3 -0
- talentro/services/billing.py +3 -3
- {talentro_commons-0.19.15.dist-info → talentro_commons-0.19.17.dist-info}/METADATA +1 -1
- {talentro_commons-0.19.15.dist-info → talentro_commons-0.19.17.dist-info}/RECORD +6 -6
- {talentro_commons-0.19.15.dist-info → talentro_commons-0.19.17.dist-info}/WHEEL +0 -0
|
@@ -34,6 +34,7 @@ class CampaignInfo(ResolvableCompanyModel):
|
|
|
34
34
|
selection_criteria: Optional[dict]
|
|
35
35
|
application_flow_settings: Optional[dict]
|
|
36
36
|
status_detail: Optional[str]
|
|
37
|
+
apply_count: int
|
|
37
38
|
|
|
38
39
|
@staticmethod
|
|
39
40
|
async def resolve_object(object_id: UUID, organization_id: UUID) -> "CampaignInfo | None":
|
|
@@ -116,6 +117,7 @@ class AdInfo(ResolvableCompanyModel):
|
|
|
116
117
|
status_detail: Optional[str]
|
|
117
118
|
conversion_goal: Optional[str]
|
|
118
119
|
vacancy_id: UUID
|
|
120
|
+
apply_count: int
|
|
119
121
|
|
|
120
122
|
campaign: CampaignInfo
|
|
121
123
|
|
talentro/acquisition/models.py
CHANGED
|
@@ -65,6 +65,7 @@ class Campaign(CampaignsOrganizationModel, table=True):
|
|
|
65
65
|
selection_criteria: dict = Field(sa_column=Column(JSON))
|
|
66
66
|
application_flow_settings: dict = Field(sa_column=Column(JSON))
|
|
67
67
|
status_detail: Optional[str] = Field()
|
|
68
|
+
apply_count: int = Field(default=0)
|
|
68
69
|
|
|
69
70
|
ad_sets: list["AdSet"] = Relationship(back_populates="campaign", cascade_delete=True)
|
|
70
71
|
ads: list["Ad"] = Relationship(back_populates="campaign", cascade_delete=True)
|
|
@@ -77,6 +78,7 @@ class AdSet(CampaignsOrganizationModel, table=True):
|
|
|
77
78
|
platforms: list = Field(sa_column=Column(JSON))
|
|
78
79
|
ad_types: list = Field(sa_column=Column(JSON))
|
|
79
80
|
settings: dict = Field(sa_column=Column(JSON))
|
|
81
|
+
apply_count: int = Field(default=0)
|
|
80
82
|
|
|
81
83
|
campaign_id: UUID = Field(foreign_key="campaign.id", ondelete="CASCADE", index=True)
|
|
82
84
|
campaign: "Campaign" = Relationship(back_populates="ad_sets")
|
|
@@ -109,6 +111,7 @@ class Ad(CampaignsOrganizationModel, table=True):
|
|
|
109
111
|
description: Optional[str] = Field()
|
|
110
112
|
conversion_goal: Optional[str] = Field()
|
|
111
113
|
status_detail: Optional[str] = Field()
|
|
114
|
+
apply_count: int = Field(default=0)
|
|
112
115
|
|
|
113
116
|
campaign_id: UUID = Field(foreign_key="campaign.id", ondelete="CASCADE", index=True)
|
|
114
117
|
campaign: "Campaign" = Relationship(back_populates="ads")
|
talentro/services/billing.py
CHANGED
|
@@ -46,7 +46,7 @@ async def send_billing_event(sku: SKU, organization_id: str, count: int = 1, det
|
|
|
46
46
|
|
|
47
47
|
metadata = EventMeta(
|
|
48
48
|
event_type='billing.event',
|
|
49
|
-
source="
|
|
49
|
+
source="commons",
|
|
50
50
|
idempotency_key=f"sku:{sku}:count:{count}:org:{str(organization_id)}:unix:{datetime.now(UTC).timestamp()}",
|
|
51
51
|
)
|
|
52
52
|
|
|
@@ -63,8 +63,8 @@ async def send_billing_event(sku: SKU, organization_id: str, count: int = 1, det
|
|
|
63
63
|
|
|
64
64
|
message = Message(
|
|
65
65
|
event=event,
|
|
66
|
-
exchange="x.
|
|
67
|
-
routing_key="billing.
|
|
66
|
+
exchange="x.billing",
|
|
67
|
+
routing_key="billing.event",
|
|
68
68
|
)
|
|
69
69
|
|
|
70
70
|
await context.send_message(message)
|
|
@@ -1,7 +1,7 @@
|
|
|
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=
|
|
4
|
-
talentro/acquisition/models.py,sha256=
|
|
3
|
+
talentro/acquisition/dataclasses.py,sha256=6mOlK3V8REaa3IshRiXfBx-m4o6T5DosZhT6l6rE19Y,4925
|
|
4
|
+
talentro/acquisition/models.py,sha256=gBkxPFfrlOkx4KNCoKXDQggNAVaYHo6pJ07RCfUeeJ0,4148
|
|
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
|
|
@@ -22,7 +22,7 @@ talentro/integrations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3h
|
|
|
22
22
|
talentro/integrations/dataclasses.py,sha256=FxYbtglKvp_BAufQSCw-IO3wraJUuMvoKZnwJMd5W6w,4482
|
|
23
23
|
talentro/integrations/models.py,sha256=iNgmAahbonQj2EVd1776xcYzv-1mtAkzGvgDdbjocjo,1292
|
|
24
24
|
talentro/services/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
25
|
-
talentro/services/billing.py,sha256=
|
|
25
|
+
talentro/services/billing.py,sha256=8pX57-tP7HyRqB_afB-CpEJXiZzMTJyjLyDI3vLvQsI,1989
|
|
26
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
|
|
@@ -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.19.
|
|
43
|
-
talentro_commons-0.19.
|
|
44
|
-
talentro_commons-0.19.
|
|
42
|
+
talentro_commons-0.19.17.dist-info/METADATA,sha256=j-QoL-OSr91TWPXcs0HFW2da5UfmCPLPfb1BgF1AuFc,1508
|
|
43
|
+
talentro_commons-0.19.17.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
|
|
44
|
+
talentro_commons-0.19.17.dist-info/RECORD,,
|
|
File without changes
|