letschatty 0.4.353__py3-none-any.whl → 0.4.354__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.
@@ -10,10 +10,11 @@ import json
10
10
  class ProductPreview(ChattyAssetPreview):
11
11
  color: str = Field(default="#000000")
12
12
  price: Optional[Dict[str, float]] = Field(default=None)
13
+ external_id: Optional[str] = Field(default=None)
13
14
 
14
15
  @classmethod
15
16
  def get_projection(cls) -> dict[str, Any]:
16
- return super().get_projection() | {"color": 1, "description": 1, "price": 1}
17
+ return super().get_projection() | {"color": 1, "description": 1, "price": 1, "external_id":1}
17
18
 
18
19
  @classmethod
19
20
  def from_asset(cls, asset: 'Product') -> 'ProductPreview':
@@ -23,7 +24,8 @@ class ProductPreview(ChattyAssetPreview):
23
24
  company_id=asset.company_id,
24
25
  created_at=asset.created_at,
25
26
  color=asset.color,
26
- updated_at=asset.updated_at
27
+ updated_at=asset.updated_at,
28
+ external_id=asset.external_id
27
29
  )
28
30
 
29
31
  class Product(CompanyAssetModel):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: letschatty
3
- Version: 0.4.353
3
+ Version: 0.4.354
4
4
  Summary: Models and custom classes to work across the Chattyverse
5
5
  License: MIT
6
6
  Author: Axel
@@ -116,7 +116,7 @@ letschatty/models/company/assets/launch/scheduled_communication.py,sha256=EfsTVl
116
116
  letschatty/models/company/assets/launch/subscription.py,sha256=BnZuNK0jMOzn0s9zgS8FAVuwDEb4xKnK_Mvum4SIcYQ,2204
117
117
  letschatty/models/company/assets/media/__init__.py,sha256=o22MHvoqGBUeG1P383KfBfsu-Fg0YdVh9FYeNB1j14s,38
118
118
  letschatty/models/company/assets/media/file.py,sha256=MFhTNe8zsgjR1zMm2UIAznp4vtD4U12UMfu7mjFIGfE,1902
119
- letschatty/models/company/assets/product.py,sha256=02eAZlE74nRzwOPAmbCHkQj7czVNgEtJQNzWxSBPP_w,2406
119
+ letschatty/models/company/assets/product.py,sha256=5KsDfkc7URI_pQzVmhpDvkx_pvooKvHQOd_lJQ7-yKo,2519
120
120
  letschatty/models/company/assets/sale.py,sha256=8YiZoRHA0l6-JHX4N0jDe8PDu5Kkw1O2tZLDNOGL8p8,1143
121
121
  letschatty/models/company/assets/tag.py,sha256=P1jRAvaebEtdAUs-07sRbCK25vmS6Q5NNtH7UX7bK-0,1008
122
122
  letschatty/models/company/assets/users/agent_chats_snapshot.py,sha256=CTNRN8p9HE57bvxI8MbO2krg8KD3yIo3PmFjIV0iVWg,568
@@ -284,7 +284,7 @@ letschatty/services/template_campaigns/template_campaign_service.py,sha256=jORgD
284
284
  letschatty/services/users/agent_service.py,sha256=hIkUUJ1SpkKbh5_uo4i2CeqGtuMTjU7tSV8k5J7WPG4,279
285
285
  letschatty/services/users/user_factory.py,sha256=FCB9uiAfjMeYfh4kMdx5h8VDHJ8MCsD-uaxW3X3KaWM,6681
286
286
  letschatty/services/validators/analytics_validator.py,sha256=6ejecLcif2i1C5trUo1qQgp8vKr9WchdljFZ5GzB2i4,7239
287
- letschatty-0.4.353.dist-info/LICENSE,sha256=EClLu_bO2HBLDcThowIwfaIg5EOwIYhpRsBJjVEk92A,1197
288
- letschatty-0.4.353.dist-info/METADATA,sha256=enxIjZaJH3c7BOLyvpQ0CjT1B7FDvoQ5V8WE-keSqdk,3283
289
- letschatty-0.4.353.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
290
- letschatty-0.4.353.dist-info/RECORD,,
287
+ letschatty-0.4.354.dist-info/LICENSE,sha256=EClLu_bO2HBLDcThowIwfaIg5EOwIYhpRsBJjVEk92A,1197
288
+ letschatty-0.4.354.dist-info/METADATA,sha256=yu2vzkQgrt-zFTv1gtOcDIPYyBfQ4qQ1uVF0fPHBw6o,3283
289
+ letschatty-0.4.354.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
290
+ letschatty-0.4.354.dist-info/RECORD,,