letschatty 0.4.353__py3-none-any.whl → 0.4.355__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.
Potentially problematic release.
This version of letschatty might be problematic. Click here for more details.
- letschatty/models/company/assets/product.py +5 -2
- {letschatty-0.4.353.dist-info → letschatty-0.4.355.dist-info}/METADATA +1 -1
- {letschatty-0.4.353.dist-info → letschatty-0.4.355.dist-info}/RECORD +5 -5
- {letschatty-0.4.353.dist-info → letschatty-0.4.355.dist-info}/LICENSE +0 -0
- {letschatty-0.4.353.dist-info → letschatty-0.4.355.dist-info}/WHEEL +0 -0
|
@@ -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,9 @@ 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,
|
|
29
|
+
description=asset.description
|
|
27
30
|
)
|
|
28
31
|
|
|
29
32
|
class Product(CompanyAssetModel):
|
|
@@ -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=
|
|
119
|
+
letschatty/models/company/assets/product.py,sha256=Ombx4H8QOao_iBXtXZ4OqZahr8ZqMARq-OnklNwKeFc,2562
|
|
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.
|
|
288
|
-
letschatty-0.4.
|
|
289
|
-
letschatty-0.4.
|
|
290
|
-
letschatty-0.4.
|
|
287
|
+
letschatty-0.4.355.dist-info/LICENSE,sha256=EClLu_bO2HBLDcThowIwfaIg5EOwIYhpRsBJjVEk92A,1197
|
|
288
|
+
letschatty-0.4.355.dist-info/METADATA,sha256=xhdxCwxKBCFdC9ylTkpm_7jKZ-1GEnOmWUWAW_tQtQs,3283
|
|
289
|
+
letschatty-0.4.355.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
|
|
290
|
+
letschatty-0.4.355.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|